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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1244583003: [turbofan]: Add a context relaxer reducer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest Created 5 years, 5 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
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/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/js-type-feedback.h" 10 #include "src/compiler/js-type-feedback.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 try_catch_nesting_level_(0), 442 try_catch_nesting_level_(0),
443 try_nesting_level_(0), 443 try_nesting_level_(0),
444 input_buffer_size_(0), 444 input_buffer_size_(0),
445 input_buffer_(nullptr), 445 input_buffer_(nullptr),
446 exit_controls_(local_zone), 446 exit_controls_(local_zone),
447 loop_assignment_analysis_(loop), 447 loop_assignment_analysis_(loop),
448 state_values_cache_(jsgraph), 448 state_values_cache_(jsgraph),
449 liveness_analyzer_(static_cast<size_t>(info->scope()->num_stack_slots()), 449 liveness_analyzer_(static_cast<size_t>(info->scope()->num_stack_slots()),
450 local_zone), 450 local_zone),
451 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( 451 frame_state_function_info_(common()->CreateFrameStateFunctionInfo(
452 FrameStateType::kJavaScriptFunction, 452 FrameStateType::kJavaScriptFunction, info->num_parameters() + 1,
453 info->num_parameters_including_this(), 453 info->scope()->num_stack_slots(), info->shared_info(),
454 info->scope()->num_stack_slots(), info->shared_info())), 454 CALL_MAINTAINS_NATIVE_CONTEXT)),
455 js_type_feedback_(js_type_feedback) { 455 js_type_feedback_(js_type_feedback) {
456 InitializeAstVisitor(info->isolate(), local_zone); 456 InitializeAstVisitor(info->isolate(), local_zone);
457 } 457 }
458 458
459 459
460 Node* AstGraphBuilder::GetFunctionClosureForContext() { 460 Node* AstGraphBuilder::GetFunctionClosureForContext() {
461 Scope* declaration_scope = current_scope()->DeclarationScope(); 461 Scope* declaration_scope = current_scope()->DeclarationScope();
462 if (declaration_scope->is_script_scope() || 462 if (declaration_scope->is_script_scope() ||
463 declaration_scope->is_module_scope()) { 463 declaration_scope->is_module_scope()) {
464 // Contexts nested in the native context have a canonical empty function as 464 // Contexts nested in the native context have a canonical empty function as
(...skipping 3773 matching lines...) Expand 10 before | Expand all | Expand 10 after
4238 // Phi does not exist yet, introduce one. 4238 // Phi does not exist yet, introduce one.
4239 value = NewPhi(inputs, value, control); 4239 value = NewPhi(inputs, value, control);
4240 value->ReplaceInput(inputs - 1, other); 4240 value->ReplaceInput(inputs - 1, other);
4241 } 4241 }
4242 return value; 4242 return value;
4243 } 4243 }
4244 4244
4245 } // namespace compiler 4245 } // namespace compiler
4246 } // namespace internal 4246 } // namespace internal
4247 } // namespace v8 4247 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698