Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 2fcd35398ce29a28b7070ade4dc3e5c25f4c6319..ebcb0a6f92c8e219940656b9137dadffdafdf331 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -182,6 +182,7 @@ class FunctionTester : public InitializedHandleScope { |
} |
CHECK(Compiler::Analyze(info.parse_info())); |
CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
+ JSFunction::EnsureLiterals(function); |
Pipeline pipeline(&info); |
Handle<Code> code = pipeline.GenerateCode(); |
@@ -235,6 +236,7 @@ class FunctionTester : public InitializedHandleScope { |
Handle<Code>(function->shared()->code())); |
CHECK(Compiler::Analyze(info.parse_info())); |
CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
+ JSFunction::EnsureLiterals(function); |
Handle<Code> code = Pipeline::GenerateCodeForTesting(&info, graph); |
CHECK(!code.is_null()); |