call vm::dynamicCall directly, instead of through System

This commit is contained in:
Joshua Warner
2014-02-22 21:40:57 -07:00
committed by Joshua Warner
parent d95a8a9626
commit e6eead07fa
5 changed files with 13 additions and 29 deletions

View File

@ -597,13 +597,12 @@ invokeNativeSlow(Thread* t, object method, void* function)
t->checkpoint->noThrow = true;
THREAD_RESOURCE(t, bool, noThrow, t->checkpoint->noThrow = noThrow);
result = t->m->system->call
(function,
RUNTIME_ARRAY_BODY(args),
RUNTIME_ARRAY_BODY(types),
count,
footprint * BytesPerWord,
returnType);
result = vm::dynamicCall(function,
RUNTIME_ARRAY_BODY(args),
RUNTIME_ARRAY_BODY(types),
count,
footprint * BytesPerWord,
returnType);
}
if (DebugRun) {