Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index 7e87e109914c8b8a9ae9cd1810eab567e85a8f26..8bed93eb764058283565e509e65b3b4d3adb7870 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -79,7 +79,7 @@ v8::DeclareExtension kPrintExtensionDeclaration(&kPrintExtension); |
static MaybeObject* GetGlobalProperty(const char* name) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
Handle<String> internalized_name = |
isolate->factory()->InternalizeUtf8String(name); |
return isolate->context()->global_object()->GetProperty(*internalized_name); |
@@ -87,7 +87,7 @@ static MaybeObject* GetGlobalProperty(const char* name) { |
static void SetGlobalProperty(const char* name, Object* value) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
Handle<Object> object(value, isolate); |
Handle<String> internalized_name = |
isolate->factory()->InternalizeUtf8String(name); |
@@ -97,7 +97,7 @@ static void SetGlobalProperty(const char* name, Object* value) { |
static Handle<JSFunction> Compile(const char* source) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
Handle<String> source_code( |
isolate->factory()->NewStringFromUtf8(CStrVector(source))); |
Handle<SharedFunctionInfo> shared_function = |
@@ -312,7 +312,7 @@ TEST(C2JSFrames) { |
// source resulted in crash. |
TEST(Regression236) { |
CcTest::InitializeVM(); |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
Factory* factory = isolate->factory(); |
v8::HandleScope scope(CcTest::isolate()); |