Separate OLD_JIT code.
Either move Old JIT code into OldJIT directory or wrap them
with #if USE_OLD_JIT, so that we can remove Old JIT easily
in the future.
Change-Id: Id820cc2143ac4b7685460ba38258c664f4da495e
diff --git a/lib/ExecutionEngine/ScriptCompiled.h b/lib/ExecutionEngine/ScriptCompiled.h
index 3800645..9593be8 100644
--- a/lib/ExecutionEngine/ScriptCompiled.h
+++ b/lib/ExecutionEngine/ScriptCompiled.h
@@ -61,11 +61,17 @@
FuncInfoMap mEmittedFunctions;
+#if USE_OLD_JIT
char *mContext; // Context of BCC script (code and data)
+#endif
public:
ScriptCompiled(Script *owner)
- : mpOwner(owner), mCompiler(this), mContext(NULL) {
+ : mpOwner(owner), mCompiler(this)
+#if USE_OLD_JIT
+ , mContext(NULL)
+#endif
+ {
}
~ScriptCompiled();
@@ -131,9 +137,12 @@
void getObjectSlotList(size_t objectSlotListSize,
uint32_t *objectSlotList);
+#if USE_OLD_JIT
char *getContext() {
return mContext;
}
+#endif
+
#if USE_MCJIT
const char *getELF() const {
return &*mCompiler.getELF().begin();