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

Unified Diff: test/cctest/compiler/test-changes-lowering.cc

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/test-changes-lowering.cc
diff --git a/test/cctest/compiler/test-changes-lowering.cc b/test/cctest/compiler/test-changes-lowering.cc
index 3eec14a91ead068c5adb7521a9be91a0b8b0736f..65527cd4cb07ff5ca704342be9d7000d8f841e61 100644
--- a/test/cctest/compiler/test-changes-lowering.cc
+++ b/test/cctest/compiler/test-changes-lowering.cc
@@ -61,6 +61,11 @@ class ChangesLoweringTester : public GraphBuilderTester<ReturnType> {
CHECK(Rewriter::Rewrite(&info));
CHECK(Scope::Analyze(&info));
CHECK_NE(NULL, info.scope());
+ if (!info.shared_info().is_null()) {
Michael Starzinger 2014/08/14 08:48:07 Likewise.
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);
+ }
Pipeline pipeline(&info);
Linkage linkage(&info);
Handle<Code> code =

Powered by Google App Engine
This is Rietveld 408576698