| Index: test/cctest/test-compiler.cc
|
| diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
|
| index 1dd46bec3e1ce4945c37e12ad5a35f1198918c91..25cf83004b2eb4498b635609344bdeaaddf62c21 100644
|
| --- a/test/cctest/test-compiler.cc
|
| +++ b/test/cctest/test-compiler.cc
|
| @@ -349,9 +349,12 @@ TEST(FeedbackVectorUnaffectedByScopeChanges) {
|
| ->Get(context, v8_str("morphing_call"))
|
| .ToLocalChecked())));
|
|
|
| - // Not compiled, and so no feedback vector allocated yet.
|
| - CHECK(!f->shared()->is_compiled());
|
| - CHECK(f->shared()->feedback_vector()->is_empty());
|
| + if (FLAG_lazy && !FLAG_ignition) {
|
| + // If we are compiling lazily then it should not be compiled, and so no
|
| + // feedback vector allocated yet.
|
| + CHECK(!f->shared()->is_compiled());
|
| + CHECK(f->shared()->feedback_vector()->is_empty());
|
| + }
|
|
|
| CompileRun("morphing_call();");
|
|
|
|
|