Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 3326a015de5f0cf9920bc2184e66a53ae76a7da5..55bb97b485c964109017bb0a7fa59e5fde0845b2 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -207,7 +207,7 @@ static unsigned int Pseudorandom() { |
TEST(MemoryChunk) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
CHECK(heap->ConfigureHeapDefault()); |
@@ -263,7 +263,7 @@ TEST(MemoryChunk) { |
TEST(MemoryAllocator) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
CHECK(isolate->heap()->ConfigureHeapDefault()); |
@@ -312,7 +312,7 @@ TEST(MemoryAllocator) { |
TEST(NewSpace) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
CHECK(heap->ConfigureHeapDefault()); |
@@ -341,7 +341,7 @@ TEST(NewSpace) { |
TEST(OldSpace) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = CcTest::i_isolate(); |
isolate->InitializeLoggingAndCounters(); |
Heap* heap = isolate->heap(); |
CHECK(heap->ConfigureHeapDefault()); |