Index: test/cctest/test-disasm-x64.cc |
diff --git a/test/cctest/test-disasm-x64.cc b/test/cctest/test-disasm-x64.cc |
index fe7aab81187e5946fb8a0ccf306cf3bfe152bb58..1c7f416392e32d840d26758c4103b9bcab42be02 100644 |
--- a/test/cctest/test-disasm-x64.cc |
+++ b/test/cctest/test-disasm-x64.cc |
@@ -38,14 +38,6 @@ |
using namespace v8::internal; |
-static v8::Persistent<v8::Context> env; |
- |
-static void InitializeVM() { |
- if (env.IsEmpty()) { |
- env = v8::Context::New(); |
- } |
-} |
- |
#define __ assm. |
@@ -55,7 +47,7 @@ static void DummyStaticFunction(Object* result) { |
TEST(DisasmX64) { |
- InitializeVM(); |
+ CcTest::InitializeVM(); |
v8::HandleScope scope; |
v8::internal::byte buffer[2048]; |
Assembler assm(Isolate::Current(), buffer, sizeof buffer); |