| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index bac579eb24fe00b6b0a1d36f49ba8368b70205aa..0de92ca38465c1cb826e9686125bfd61e59fe291 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -127,7 +127,7 @@ static void CheckFindCodeObject(Isolate* isolate) {
|
| Address obj_addr = obj->address();
|
|
|
| for (int i = 0; i < obj->Size(); i += kPointerSize) {
|
| - Object* found = heap->FindCodeObject(obj_addr + i);
|
| + Object* found = isolate->FindCodeObject(obj_addr + i);
|
| CHECK_EQ(code, found);
|
| }
|
|
|
| @@ -137,8 +137,8 @@ static void CheckFindCodeObject(Isolate* isolate) {
|
| Handle<Code>())->ToObjectChecked();
|
| CHECK(copy->IsCode());
|
| HeapObject* obj_copy = HeapObject::cast(copy);
|
| - Object* not_right = heap->FindCodeObject(obj_copy->address() +
|
| - obj_copy->Size() / 2);
|
| + Object* not_right = isolate->FindCodeObject(obj_copy->address() +
|
| + obj_copy->Size() / 2);
|
| CHECK(not_right != code);
|
| }
|
|
|
|
|