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

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

Issue 1146403008: [turbofan] Use Start as sentinel for frame states. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/js-graph.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/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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 UpdateStateValues(&parameters_node_, 0, parameters_count()); 849 UpdateStateValues(&parameters_node_, 0, parameters_count());
850 UpdateStateValuesWithCache(&locals_node_, parameters_count(), locals_count()); 850 UpdateStateValuesWithCache(&locals_node_, parameters_count(), locals_count());
851 UpdateStateValues(&stack_node_, parameters_count() + locals_count(), 851 UpdateStateValues(&stack_node_, parameters_count() + locals_count(),
852 stack_height()); 852 stack_height());
853 853
854 const Operator* op = common()->FrameState(JS_FRAME, ast_id, combine); 854 const Operator* op = common()->FrameState(JS_FRAME, ast_id, combine);
855 855
856 Node* result = graph()->NewNode(op, parameters_node_, locals_node_, 856 Node* result = graph()->NewNode(op, parameters_node_, locals_node_,
857 stack_node_, builder()->current_context(), 857 stack_node_, builder()->current_context(),
858 builder()->GetFunctionClosure(), 858 builder()->GetFunctionClosure(),
859 builder()->jsgraph()->UndefinedConstant()); 859 builder()->graph()->start());
860 860
861 DCHECK(IsLivenessBlockConsistent()); 861 DCHECK(IsLivenessBlockConsistent());
862 if (liveness_block() != nullptr) { 862 if (liveness_block() != nullptr) {
863 liveness_block()->Checkpoint(result); 863 liveness_block()->Checkpoint(result);
864 } 864 }
865 return result; 865 return result;
866 } 866 }
867 867
868 868
869 bool AstGraphBuilder::Environment::IsLivenessAnalysisEnabled() { 869 bool AstGraphBuilder::Environment::IsLivenessAnalysisEnabled() {
(...skipping 2927 matching lines...) Expand 10 before | Expand all | Expand 10 after
3797 // Phi does not exist yet, introduce one. 3797 // Phi does not exist yet, introduce one.
3798 value = NewPhi(inputs, value, control); 3798 value = NewPhi(inputs, value, control);
3799 value->ReplaceInput(inputs - 1, other); 3799 value->ReplaceInput(inputs - 1, other);
3800 } 3800 }
3801 return value; 3801 return value;
3802 } 3802 }
3803 3803
3804 } // namespace compiler 3804 } // namespace compiler
3805 } // namespace internal 3805 } // namespace internal
3806 } // namespace v8 3806 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698