Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index d36457b714ecd16aa787241fc52d852c38940c40..c1f22f9e75cbaa2e8b47559af72d615a8062c18e 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -251,7 +251,7 @@ static void Serialize() { |
// can be loaded from v8natives.js and their addresses can be processed. This |
// will clear the pending fixups array, which would otherwise contain GC roots |
// that would confuse the serialization/deserialization process. |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = CcTest::isolate(); |
{ |
v8::HandleScope scope(isolate); |
v8::Context::New(isolate); |
@@ -292,7 +292,7 @@ static void Deserialize() { |
static void SanityCheck() { |
Isolate* isolate = Isolate::Current(); |
- v8::HandleScope scope(v8::Isolate::GetCurrent()); |
+ v8::HandleScope scope(CcTest::isolate()); |
#ifdef VERIFY_HEAP |
HEAP->Verify(); |
#endif |
@@ -309,7 +309,7 @@ DEPENDENT_TEST(Deserialize, Serialize) { |
// serialization. That doesn't matter. We don't need to be able to |
// serialize a snapshot in a VM that is booted from a snapshot. |
if (!Snapshot::HaveASnapshotToStartFrom()) { |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope scope(isolate); |
Deserialize(); |
@@ -323,7 +323,7 @@ DEPENDENT_TEST(Deserialize, Serialize) { |
DEPENDENT_TEST(DeserializeFromSecondSerialization, SerializeTwice) { |
if (!Snapshot::HaveASnapshotToStartFrom()) { |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope scope(isolate); |
Deserialize(); |
@@ -337,7 +337,7 @@ DEPENDENT_TEST(DeserializeFromSecondSerialization, SerializeTwice) { |
DEPENDENT_TEST(DeserializeAndRunScript2, Serialize) { |
if (!Snapshot::HaveASnapshotToStartFrom()) { |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope scope(isolate); |
Deserialize(); |
@@ -355,7 +355,7 @@ DEPENDENT_TEST(DeserializeAndRunScript2, Serialize) { |
DEPENDENT_TEST(DeserializeFromSecondSerializationAndRunScript2, |
SerializeTwice) { |
if (!Snapshot::HaveASnapshotToStartFrom()) { |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
+ v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope scope(isolate); |
Deserialize(); |