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/ScriptCached.cpp b/lib/ExecutionEngine/ScriptCached.cpp
index 7c3ad1f..a7d21f7 100644
--- a/lib/ExecutionEngine/ScriptCached.cpp
+++ b/lib/ExecutionEngine/ScriptCached.cpp
@@ -20,7 +20,10 @@
#include <bcc/bcc_cache.h>
-#include "ContextManager.h"
+#if USE_OLD_JIT
+#include "OldJIT/ContextManager.h"
+#endif
+
#include "DebugHelper.h"
#include <stdlib.h>
@@ -29,9 +32,11 @@
ScriptCached::~ScriptCached() {
// Deallocate the bcc script context
+#if USE_OLD_JIT
if (mContext) {
ContextManager::get().deallocateContext(mContext);
}
+#endif
// Deallocate string pool, exported var list, exported func list
if (mpStringPoolRaw) { free(mpStringPoolRaw); }