Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 555e049af44d6fe5d32a55951ad571135b1796c4..d95912fdb1b340571df2b6aa9a35ca6a9da79cb9 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -194,6 +194,7 @@ class FunctionTester : public InitializedHandleScope { |
CHECK(Compiler::Analyze(info.parse_info())); |
CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
} |
+ JSFunction::EnsureLiterals(function); |
Handle<Code> code = Pipeline::GenerateCodeForTesting(&info); |
CHECK(!code.is_null()); |
@@ -230,6 +231,9 @@ class FunctionTester : public InitializedHandleScope { |
CHECK(Parser::ParseStatic(info.parse_info())); |
info.SetOptimizing(); |
+ CHECK(Compiler::Analyze(info.parse_info())); |
+ CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
+ JSFunction::EnsureLiterals(function); |
Michael Starzinger
2016/05/10 13:47:20
nit: This is only used to compile hand-crafted gra
mvstanton
2016/05/24 16:31:50
Done.
|
Handle<Code> code = Pipeline::GenerateCodeForTesting(&info, graph); |
CHECK(!code.is_null()); |