Index: test/cctest/test-disasm-mips.cc |
diff --git a/test/cctest/test-disasm-mips.cc b/test/cctest/test-disasm-mips.cc |
index 37aa5eb06b8f769f92b3a66dd2d1cf49e096d098..0e79a580f200ac4dea2617b0a86a11e6787a936a 100644 |
--- a/test/cctest/test-disasm-mips.cc |
+++ b/test/cctest/test-disasm-mips.cc |
@@ -40,17 +40,6 @@ |
using namespace v8::internal; |
-static v8::Persistent<v8::Context> env; |
- |
-static void InitializeVM() { |
- // Disable compilation of natives. |
- FLAG_disable_native_files = true; |
- if (env.IsEmpty()) { |
- env = v8::Context::New(); |
- } |
-} |
- |
- |
bool DisassembleAndCompare(byte* pc, const char* compare_string) { |
disasm::NameConverter converter; |
disasm::Disassembler disasm(converter); |
@@ -75,7 +64,7 @@ bool DisassembleAndCompare(byte* pc, const char* compare_string) { |
// disassembler. Declare the variables and allocate the data structures used |
// in the rest of the macros. |
#define SET_UP() \ |
- InitializeVM(); \ |
+ CcTest::InitializeVM(); \ |
Isolate* isolate = Isolate::Current(); \ |
HandleScope scope(isolate); \ |
byte *buffer = reinterpret_cast<byte*>(malloc(4*1024)); \ |