Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index b94d818081673e514aa3303b42dd57e54f3c3106..b96bd8a514b9f51f6d6b1a2d6bd2f505e23432c9 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -190,9 +190,10 @@ class FunctionTester : public InitializedHandleScope { |
} |
if (function->shared()->HasBytecodeArray()) { |
info.MarkAsOptimizeFromBytecode(); |
+ } else { |
+ CHECK(Compiler::Analyze(info.parse_info())); |
+ CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
} |
- CHECK(Compiler::Analyze(info.parse_info())); |
- CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
Pipeline pipeline(&info); |
Handle<Code> code = pipeline.GenerateCode(); |
@@ -230,8 +231,6 @@ class FunctionTester : public InitializedHandleScope { |
CHECK(Parser::ParseStatic(info.parse_info())); |
info.SetOptimizing(); |
- CHECK(Compiler::Analyze(info.parse_info())); |
- CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
Handle<Code> code = Pipeline::GenerateCodeForTesting(&info, graph); |
CHECK(!code.is_null()); |