Add slow path for OP_NEW_INSTANCE
If the type is unresolved at verification time, we can't be sure
it's a valid new. The compiler will now check for type resolution
at compile time. If unresolved, we'll call out to the slow path,
where the access check will take place.
This CL only contains the compiler portion of this change. For
now, the slow path code just calls out to the normal routine.
Change-Id: Ia568a164389baedaa695a44f6845a0fdfe585b56
diff --git a/src/thread.h b/src/thread.h
index e721df5..975edfc 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -120,6 +120,7 @@
void (*pCheckSuspendFromCode)(Thread*); // Stub that is called when the suspend count is non-zero
void (*pTestSuspendFromCode)(); // Stub that is periodically called to test the suspend count
void* (*pAllocObjectFromCode)(uint32_t, void*);
+ void* (*pAllocObjectFromCodeSlowPath)(uint32_t, void*);
void* (*pAllocArrayFromCode)(uint32_t, void*, int32_t);
void (*pCanPutArrayElementFromCode)(void*, void*);
void* (*pCheckAndAllocArrayFromCode)(uint32_t, void*, int32_t);