Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 8fbe9963b1e749bf44c0474f5985c58cf0464ca9..f3782273598bf45ff00da41754f64bbf90096d94 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -1403,8 +1403,7 @@ |
// the loop breaks once the function is enqueued as a candidate. |
for (int i = 0; i < kAgingThreshold; i++) { |
heap::SimulateIncrementalMarking(CcTest::heap()); |
- if (!function->next_function_link()->IsUndefined(CcTest::i_isolate())) |
- break; |
+ if (!function->next_function_link()->IsUndefined()) break; |
CcTest::heap()->CollectAllGarbage(); |
} |
@@ -1683,7 +1682,7 @@ |
int CountNativeContexts() { |
int count = 0; |
Object* object = CcTest::heap()->native_contexts_list(); |
- while (!object->IsUndefined(CcTest::i_isolate())) { |
+ while (!object->IsUndefined()) { |
count++; |
object = Context::cast(object)->next_context_link(); |
} |
@@ -1819,7 +1818,7 @@ |
Heap* heap = isolate->heap(); |
int count = 0; |
Handle<Object> object(heap->native_contexts_list(), isolate); |
- while (!object->IsUndefined(isolate)) { |
+ while (!object->IsUndefined()) { |
count++; |
if (count == n) heap->CollectAllGarbage(); |
object = |
@@ -4664,7 +4663,7 @@ |
static int AllocationSitesCount(Heap* heap) { |
int count = 0; |
for (Object* site = heap->allocation_sites_list(); |
- !(site->IsUndefined(heap->isolate())); |
+ !(site->IsUndefined()); |
site = AllocationSite::cast(site)->weak_next()) { |
count++; |
} |