Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: test/cctest/compiler/function-tester.h

Issue 453953002: Set ScopeInfo when compiling for unit tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « no previous file | test/cctest/compiler/test-changes-lowering.cc » ('j') | test/cctest/compiler/test-changes-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698