Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 2ed2fe99883da65ae29d0c40ef287d40b1b41ed0..a717fb5a3d2fd9989d7c584943c749dcb2c6b0b6 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -47,6 +47,12 @@ class FunctionTester : public InitializedHandleScope { |
CHECK(Scope::Analyze(&info)); |
CHECK_NE(NULL, info.scope()); |
+ if (!info.shared_info().is_null()) { |
sigurds
2014/08/08 11:53:44
Please advice if you think the null check is neces
Michael Starzinger
2014/08/14 08:48:07
Since we initialize the CompilationInfo from a JSF
sigurds
2014/08/14 09:53:33
Done.
|
+ Handle<ScopeInfo> scope_info = |
+ ScopeInfo::Create(info.scope(), info.zone()); |
+ info.shared_info()->set_scope_info(*scope_info); |
+ } |
+ |
EnsureDeoptimizationSupport(&info); |
Pipeline pipeline(&info); |