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/compiler/ast-graph-builder.cc

Issue 2301423002: includes: Make ast.h not need isolate.h any more. (Closed)
Patch Set: rebased Created 4 years, 3 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/ast/prettyprinter.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 input_buffer_(nullptr), 429 input_buffer_(nullptr),
430 exit_controls_(local_zone), 430 exit_controls_(local_zone),
431 loop_assignment_analysis_(loop), 431 loop_assignment_analysis_(loop),
432 type_hint_analysis_(type_hint_analysis), 432 type_hint_analysis_(type_hint_analysis),
433 state_values_cache_(jsgraph), 433 state_values_cache_(jsgraph),
434 liveness_analyzer_(static_cast<size_t>(info->scope()->num_stack_slots()), 434 liveness_analyzer_(static_cast<size_t>(info->scope()->num_stack_slots()),
435 local_zone), 435 local_zone),
436 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( 436 frame_state_function_info_(common()->CreateFrameStateFunctionInfo(
437 FrameStateType::kJavaScriptFunction, info->num_parameters() + 1, 437 FrameStateType::kJavaScriptFunction, info->num_parameters() + 1,
438 info->scope()->num_stack_slots(), info->shared_info())) { 438 info->scope()->num_stack_slots(), info->shared_info())) {
439 InitializeAstVisitor(info->isolate()); 439 InitializeAstVisitor(info->isolate()->stack_guard()->real_climit());
440 } 440 }
441 441
442 442
443 Node* AstGraphBuilder::GetFunctionClosureForContext() { 443 Node* AstGraphBuilder::GetFunctionClosureForContext() {
444 DeclarationScope* closure_scope = current_scope()->GetClosureScope(); 444 DeclarationScope* closure_scope = current_scope()->GetClosureScope();
445 if (closure_scope->is_script_scope() || 445 if (closure_scope->is_script_scope() ||
446 closure_scope->is_module_scope()) { 446 closure_scope->is_module_scope()) {
447 // Contexts nested in the native context have a canonical empty function as 447 // Contexts nested in the native context have a canonical empty function as
448 // their closure, not the anonymous closure containing the global code. 448 // their closure, not the anonymous closure containing the global code.
449 return BuildLoadNativeContextField(Context::CLOSURE_INDEX); 449 return BuildLoadNativeContextField(Context::CLOSURE_INDEX);
(...skipping 3882 matching lines...) Expand 10 before | Expand all | Expand 10 after
4332 // Phi does not exist yet, introduce one. 4332 // Phi does not exist yet, introduce one.
4333 value = NewPhi(inputs, value, control); 4333 value = NewPhi(inputs, value, control);
4334 value->ReplaceInput(inputs - 1, other); 4334 value->ReplaceInput(inputs - 1, other);
4335 } 4335 }
4336 return value; 4336 return value;
4337 } 4337 }
4338 4338
4339 } // namespace compiler 4339 } // namespace compiler
4340 } // namespace internal 4340 } // namespace internal
4341 } // namespace v8 4341 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698