| 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..a4d7ca6591f8e64211dbbb6d8816ca65117002bf 100644
|
| --- a/test/cctest/compiler/test-codegen-deopt.cc
|
| +++ b/test/cctest/compiler/test-codegen-deopt.cc
|
| @@ -39,16 +39,23 @@ static Handle<JSFunction> NewFunction(const char* source) {
|
| }
|
|
|
|
|
| +static ParseInfo* InitParseInfo(ParseInfo* info, Handle<JSFunction> function) {
|
| + info->InitializeFromJSFunction(function);
|
| + return info;
|
| +}
|
| +
|
| +
|
| class DeoptCodegenTester {
|
| public:
|
| explicit DeoptCodegenTester(HandleAndZoneScope* scope, const char* src)
|
| : scope_(scope),
|
| function(NewFunction(src)),
|
| - info(function, scope->main_zone()),
|
| + parse_info(scope->main_zone()),
|
| + info(InitParseInfo(&parse_info, 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 +83,7 @@ class DeoptCodegenTester {
|
|
|
| HandleAndZoneScope* scope_;
|
| Handle<JSFunction> function;
|
| + ParseInfo parse_info;
|
| CompilationInfo info;
|
| BailoutId bailout_id;
|
| Handle<Code> result_code;
|
|
|