| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 | 807 |
| 808 UpdateStateValues(¶meters_node_, 0, parameters_count()); | 808 UpdateStateValues(¶meters_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 Loading... |
| 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 |
| OLD | NEW |