Static and direct resolution stub.
Ensure that invoke static and direct go through a stub that causes
resolution and initialization.
Change-Id: I872900560322817d8f4378b04ac410d9ea0b3b17
diff --git a/src/compiler.h b/src/compiler.h
index f9a5c29..3b316eb 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -31,9 +31,11 @@
}
// Stub to throw AbstractMethodError
- // TODO: remove from Compiler
static ByteArray* CreateAbstractMethodErrorStub(InstructionSet instruction_set);
+ // Generate the trampoline that's invoked by unresolved direct methods
+ static ByteArray* CreateResolutionStub(InstructionSet instruction_set, bool is_static);
+
private:
// Attempt to resolve all type, methods, fields, and strings
// referenced from code in the dex file following PathClassLoader