OLD | NEW |
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 Loading... |
849 UpdateStateValues(¶meters_node_, 0, parameters_count()); | 849 UpdateStateValues(¶meters_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 Loading... |
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 |
OLD | NEW |