| Index: test/cctest/test-compiler.cc
|
| diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
|
| index 9982a5597d0e1061db55968233c1f8718f4a401a..e47b1d61bd9228b86c45098d6867b8a8f9de1e3c 100644
|
| --- a/test/cctest/test-compiler.cc
|
| +++ b/test/cctest/test-compiler.cc
|
| @@ -314,7 +314,9 @@ TEST(FeedbackVectorPreservedAcrossRecompiles) {
|
| CHECK_EQ(expected_slots, feedback_vector->Slots());
|
| CHECK_EQ(expected_ic_slots, feedback_vector->ICSlots());
|
| FeedbackVectorICSlot slot_for_a(0);
|
| - CHECK(feedback_vector->Get(slot_for_a)->IsJSFunction());
|
| + Object* object = feedback_vector->Get(slot_for_a);
|
| + CHECK(object->IsWeakCell() &&
|
| + WeakCell::cast(object)->value()->IsJSFunction());
|
|
|
| CompileRun("%OptimizeFunctionOnNextCall(f); f(fun1);");
|
|
|
| @@ -322,7 +324,9 @@ TEST(FeedbackVectorPreservedAcrossRecompiles) {
|
| // of the full code.
|
| CHECK(f->IsOptimized());
|
| CHECK(f->shared()->has_deoptimization_support());
|
| - CHECK(f->shared()->feedback_vector()->Get(slot_for_a)->IsJSFunction());
|
| + object = f->shared()->feedback_vector()->Get(slot_for_a);
|
| + CHECK(object->IsWeakCell() &&
|
| + WeakCell::cast(object)->value()->IsJSFunction());
|
| }
|
|
|
|
|
|
|