Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index 1dd46bec3e1ce4945c37e12ad5a35f1198918c91..32d720e24e5f35961d03c319ae5b61e1139af289 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -327,7 +327,10 @@ TEST(FeedbackVectorPreservedAcrossRecompiles) { |
TEST(FeedbackVectorUnaffectedByScopeChanges) { |
- if (i::FLAG_always_opt || !i::FLAG_lazy) return; |
+ if (i::FLAG_always_opt || !i::FLAG_lazy || |
+ (FLAG_ignition && FLAG_ignition_eager)) { |
+ return; |
+ } |
CcTest::InitializeVM(); |
v8::HandleScope scope(CcTest::isolate()); |
v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext(); |
@@ -349,7 +352,8 @@ TEST(FeedbackVectorUnaffectedByScopeChanges) { |
->Get(context, v8_str("morphing_call")) |
.ToLocalChecked()))); |
- // Not compiled, and so no feedback vector allocated yet. |
+ // 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()); |