Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 292c3f2f4028fc1082d189795ac366bb095eec74..c7304f1da70089d791e249ac1107ea5269065c8f 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -208,9 +208,7 @@ |
CompilationInfo info(&parse_info, function); |
info.MarkAsDeoptimizationEnabled(); |
- if (!FLAG_turbo_from_bytecode) { |
- CHECK(Parser::ParseStatic(info.parse_info())); |
- } |
+ CHECK(Parser::ParseStatic(info.parse_info())); |
info.SetOptimizing(); |
if (flags_ & CompilationInfo::kFunctionContextSpecializing) { |
info.MarkAsFunctionContextSpecializing(); |
@@ -218,8 +216,7 @@ |
if (flags_ & CompilationInfo::kInliningEnabled) { |
info.MarkAsInliningEnabled(); |
} |
- if (FLAG_turbo_from_bytecode) { |
- CHECK(Compiler::EnsureBytecode(&info)); |
+ if (FLAG_turbo_from_bytecode && function->shared()->HasBytecodeArray()) { |
info.MarkAsOptimizeFromBytecode(); |
} else { |
CHECK(Compiler::Analyze(info.parse_info())); |