| Index: test/cctest/test-compiler.cc
|
| diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
|
| index 28cdda7f80b20016b891075afbe639c76141fab8..aed84d3a01d2081c6df7c021478ec0ac100647e4 100644
|
| --- a/test/cctest/test-compiler.cc
|
| +++ b/test/cctest/test-compiler.cc
|
| @@ -320,7 +320,10 @@ TEST(FeedbackVectorPreservedAcrossRecompiles) {
|
| // Verify that the feedback is still "gathered" despite a recompilation
|
| // of the full code.
|
| CHECK(f->IsOptimized());
|
| - CHECK(f->shared()->has_deoptimization_support());
|
| + // If the baseline code is bytecode, then it will not have deoptimization
|
| + // support. has_deoptimization_support() check is only required if the
|
| + // baseline code is from fullcodegen.
|
| + CHECK(f->shared()->has_deoptimization_support() || i::FLAG_ignition);
|
| object = f->feedback_vector()->Get(slot_for_a);
|
| CHECK(object->IsWeakCell() &&
|
| WeakCell::cast(object)->value()->IsJSFunction());
|
|
|