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

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

Issue 1134713004: [turbofan] Pass closure as node to FrameState. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | src/compiler/code-generator.cc » ('j') | src/compiler/code-generator.cc » ('J')
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/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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 807
808 UpdateStateValues(&parameters_node_, 0, parameters_count()); 808 UpdateStateValues(&parameters_node_, 0, parameters_count());
809 UpdateStateValuesWithCache(&locals_node_, parameters_count(), locals_count()); 809 UpdateStateValuesWithCache(&locals_node_, parameters_count(), locals_count());
810 UpdateStateValues(&stack_node_, parameters_count() + locals_count(), 810 UpdateStateValues(&stack_node_, parameters_count() + locals_count(),
811 stack_height()); 811 stack_height());
812 812
813 const Operator* op = common()->FrameState(JS_FRAME, ast_id, combine); 813 const Operator* op = common()->FrameState(JS_FRAME, ast_id, combine);
814 814
815 Node* result = graph()->NewNode(op, parameters_node_, locals_node_, 815 Node* result = graph()->NewNode(op, parameters_node_, locals_node_,
816 stack_node_, builder()->current_context(), 816 stack_node_, builder()->current_context(),
817 builder()->GetFunctionClosure(),
817 builder()->jsgraph()->UndefinedConstant()); 818 builder()->jsgraph()->UndefinedConstant());
818 if (FLAG_analyze_environment_liveness) { 819 if (FLAG_analyze_environment_liveness) {
819 liveness_block()->Checkpoint(result); 820 liveness_block()->Checkpoint(result);
820 } 821 }
821 return result; 822 return result;
822 } 823 }
823 824
824 825
825 AstGraphBuilder::AstContext::AstContext(AstGraphBuilder* own, 826 AstGraphBuilder::AstContext::AstContext(AstGraphBuilder* own,
826 Expression::Context kind) 827 Expression::Context kind)
(...skipping 2821 matching lines...) Expand 10 before | Expand all | Expand 10 after
3648 // Phi does not exist yet, introduce one. 3649 // Phi does not exist yet, introduce one.
3649 value = NewPhi(inputs, value, control); 3650 value = NewPhi(inputs, value, control);
3650 value->ReplaceInput(inputs - 1, other); 3651 value->ReplaceInput(inputs - 1, other);
3651 } 3652 }
3652 return value; 3653 return value;
3653 } 3654 }
3654 3655
3655 } // namespace compiler 3656 } // namespace compiler
3656 } // namespace internal 3657 } // namespace internal
3657 } // namespace v8 3658 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-generator.cc » ('j') | src/compiler/code-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698