Add upcall compiler.
Upcall compiler compiles the invoke stub for native-to-managed
method invocation.
Change-Id: I09fb1e4b3f166e8da5de73e8f39509cd9be6c152
diff --git a/src/compiled_method.h b/src/compiled_method.h
index 834ead0..d11f0e4 100644
--- a/src/compiled_method.h
+++ b/src/compiled_method.h
@@ -98,10 +98,17 @@
class CompiledInvokeStub {
public:
+#if defined(ART_USE_LLVM_COMPILER)
+ explicit CompiledInvokeStub(llvm::Function* func);
+#else
explicit CompiledInvokeStub(std::vector<uint8_t>& code);
+#endif
~CompiledInvokeStub();
const std::vector<uint8_t>& GetCode() const;
private:
+#if defined(ART_USE_LLVM_COMPILER)
+ llvm::Function* func_;
+#endif
std::vector<uint8_t> code_;
};