| Index: test/cctest/heap/test-heap.cc
|
| diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
|
| index a381950757830cddb65da624307b8cc022936f9f..beb8ecc6b8b73f391609e2837f81d917429e2164 100644
|
| --- a/test/cctest/heap/test-heap.cc
|
| +++ b/test/cctest/heap/test-heap.cc
|
| @@ -1692,7 +1692,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;
|
| }
|
| @@ -1830,8 +1830,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;
|
| }
|
|
|