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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 1863083002: [parser] Remove ParseInfo::closure field. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-internal-9
Patch Set: Rebased. Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/parsing/parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast/ast-numbering.h" 10 #include "src/ast/ast-numbering.h"
(...skipping 8365 matching lines...) Expand 10 before | Expand all | Expand 10 after
8376 } 8376 }
8377 8377
8378 // Parse and allocate variables. 8378 // Parse and allocate variables.
8379 // Use the same AstValueFactory for creating strings in the sub-compilation 8379 // Use the same AstValueFactory for creating strings in the sub-compilation
8380 // step, but don't transfer ownership to target_info. 8380 // step, but don't transfer ownership to target_info.
8381 ParseInfo parse_info(zone(), target); 8381 ParseInfo parse_info(zone(), target);
8382 parse_info.set_ast_value_factory( 8382 parse_info.set_ast_value_factory(
8383 top_info()->parse_info()->ast_value_factory()); 8383 top_info()->parse_info()->ast_value_factory());
8384 parse_info.set_ast_value_factory_owned(false); 8384 parse_info.set_ast_value_factory_owned(false);
8385 8385
8386 CompilationInfo target_info(&parse_info); 8386 CompilationInfo target_info(&parse_info, target);
8387 Handle<SharedFunctionInfo> target_shared(target->shared()); 8387 Handle<SharedFunctionInfo> target_shared(target->shared());
8388 8388
8389 if (inlining_kind != CONSTRUCT_CALL_RETURN && 8389 if (inlining_kind != CONSTRUCT_CALL_RETURN &&
8390 IsClassConstructor(target_shared->kind())) { 8390 IsClassConstructor(target_shared->kind())) {
8391 TraceInline(target, caller, "target is classConstructor"); 8391 TraceInline(target, caller, "target is classConstructor");
8392 return false; 8392 return false;
8393 } 8393 }
8394 8394
8395 if (target_shared->HasDebugInfo()) { 8395 if (target_shared->HasDebugInfo()) {
8396 TraceInline(target, caller, "target is being debugged"); 8396 TraceInline(target, caller, "target is being debugged");
(...skipping 5159 matching lines...) Expand 10 before | Expand all | Expand 10 after
13556 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13556 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13557 } 13557 }
13558 13558
13559 #ifdef DEBUG 13559 #ifdef DEBUG
13560 graph_->Verify(false); // No full verify. 13560 graph_->Verify(false); // No full verify.
13561 #endif 13561 #endif
13562 } 13562 }
13563 13563
13564 } // namespace internal 13564 } // namespace internal
13565 } // namespace v8 13565 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698