Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 030ef5c6160a3121662e43376eb583f1b372292b..36b6a8005e67bf8854e2afa427bb048743c700b6 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -1646,7 +1646,7 @@ int CountNativeContexts() { |
Object* object = CcTest::heap()->native_contexts_list(); |
while (!object->IsUndefined()) { |
count++; |
- object = Context::cast(object)->get(Context::NEXT_CONTEXT_LINK); |
+ object = Context::cast(object)->next_context_link(); |
} |
return count; |
} |
@@ -1784,8 +1784,7 @@ static int CountNativeContextsWithGC(Isolate* isolate, int n) { |
count++; |
if (count == n) heap->CollectAllGarbage(); |
object = |
- Handle<Object>(Context::cast(*object)->get(Context::NEXT_CONTEXT_LINK), |
- isolate); |
+ Handle<Object>(Context::cast(*object)->next_context_link(), isolate); |
} |
return count; |
} |