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 5b6c358d731c6839e528f2fa540bc1eb75b425f6..8217229bd588b85ceac87ed7e4d8ce698dd7aa74 100644 |
--- a/test/cctest/compiler/test-codegen-deopt.cc |
+++ b/test/cctest/compiler/test-codegen-deopt.cc |
@@ -48,11 +48,7 @@ class DeoptCodegenTester { |
info.SetOptimizing(BailoutId::None(), Handle<Code>(function->code())); |
CHECK(Rewriter::Rewrite(&info)); |
CHECK(Scope::Analyze(&info)); |
- CHECK_NE(NULL, info.scope()); |
- Handle<ScopeInfo> scope_info = ScopeInfo::Create(info.scope(), info.zone()); |
- info.shared_info()->set_scope_info(*scope_info); |
- |
- FunctionTester::EnsureDeoptimizationSupport(&info); |
+ CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
DCHECK(info.shared_info()->has_deoptimization_support()); |