Index: test/cctest/compiler/test-codegen-deopt.cc |
diff --git a/test/cctest/compiler/test-codegen-deopt.cc b/test/cctest/compiler/test-codegen-deopt.cc |
index a90e4025dc82d2689aa43c1cde1c316a8a6addc7..925ede9f5cd5ca26663a3cf1517e7c30ca0ddd4b 100644 |
--- a/test/cctest/compiler/test-codegen-deopt.cc |
+++ b/test/cctest/compiler/test-codegen-deopt.cc |
@@ -44,11 +44,12 @@ class DeoptCodegenTester { |
explicit DeoptCodegenTester(HandleAndZoneScope* scope, const char* src) |
: scope_(scope), |
function(NewFunction(src)), |
- info(function, scope->main_zone()), |
+ parse_info(scope->main_zone()), |
+ info(parse_info.InitializeFromJSFunction(function)), |
bailout_id(-1) { |
- CHECK(Parser::ParseStatic(&info)); |
+ CHECK(Parser::ParseStatic(&parse_info)); |
info.SetOptimizing(BailoutId::None(), Handle<Code>(function->code())); |
- CHECK(Compiler::Analyze(&info)); |
+ CHECK(Compiler::Analyze(&parse_info)); |
CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
DCHECK(info.shared_info()->has_deoptimization_support()); |
@@ -76,6 +77,7 @@ class DeoptCodegenTester { |
HandleAndZoneScope* scope_; |
Handle<JSFunction> function; |
+ ParseInfo parse_info; |
CompilationInfo info; |
BailoutId bailout_id; |
Handle<Code> result_code; |