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