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