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

Unified Diff: test/cctest/compiler/test-pipeline.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-pipeline.cc
diff --git a/test/cctest/compiler/test-pipeline.cc b/test/cctest/compiler/test-pipeline.cc
index 7efedeeea2ac1dcc2aacc1182f844d84421fbab2..520c6dae745b2813d156c44f8bdfa7aee01bdb7e 100644
--- a/test/cctest/compiler/test-pipeline.cc
+++ b/test/cctest/compiler/test-pipeline.cc
@@ -29,6 +29,11 @@ TEST(PipelineAdd) {
CHECK(Scope::Analyze(&info));
CHECK_NE(NULL, info.scope());
+ if (!info.shared_info().is_null()) {
Michael Starzinger 2014/08/14 08:48:07 As discussed offline: Let's drop this as this test
sigurds 2014/08/14 09:53:34 Done.
+ Handle<ScopeInfo> scope_info = ScopeInfo::Create(info.scope(), info.zone());
+ info.shared_info()->set_scope_info(*scope_info);
+ }
+
Pipeline pipeline(&info);
#if V8_TURBOFAN_TARGET
Handle<Code> code = pipeline.GenerateCode();

Powered by Google App Engine
This is Rietveld 408576698