| 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 2847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2858 Node* value = NewNode(op, left, right); | 2858 Node* value = NewNode(op, left, right); |
| 2859 states.AddToNode(value, expr->id(), ast_context()->GetStateCombine()); | 2859 states.AddToNode(value, expr->id(), ast_context()->GetStateCombine()); |
| 2860 ast_context()->ProduceValue(value); | 2860 ast_context()->ProduceValue(value); |
| 2861 } | 2861 } |
| 2862 | 2862 |
| 2863 | 2863 |
| 2864 void AstGraphBuilder::VisitSpread(Spread* expr) { | 2864 void AstGraphBuilder::VisitSpread(Spread* expr) { |
| 2865 // Handled entirely by the parser itself. | 2865 // Handled entirely by the parser itself. |
| 2866 UNREACHABLE(); | 2866 UNREACHABLE(); |
| 2867 } | 2867 } |
| 2868 | |
| 2869 | |
| 2870 void AstGraphBuilder::VisitEmptyParentheses(EmptyParentheses* expr) { | |
| 2871 // Handled entirely by the parser itself. | |
| 2872 UNREACHABLE(); | |
| 2873 } | |
| 2874 | 2868 |
| 2875 | 2869 |
| 2876 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2870 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
| 2877 Node* value = GetFunctionClosure(); | 2871 Node* value = GetFunctionClosure(); |
| 2878 ast_context()->ProduceValue(value); | 2872 ast_context()->ProduceValue(value); |
| 2879 } | 2873 } |
| 2880 | 2874 |
| 2881 | 2875 |
| 2882 void AstGraphBuilder::VisitSuperPropertyReference( | 2876 void AstGraphBuilder::VisitSuperPropertyReference( |
| 2883 SuperPropertyReference* expr) { | 2877 SuperPropertyReference* expr) { |
| (...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4308 // Phi does not exist yet, introduce one. | 4302 // Phi does not exist yet, introduce one. |
| 4309 value = NewPhi(inputs, value, control); | 4303 value = NewPhi(inputs, value, control); |
| 4310 value->ReplaceInput(inputs - 1, other); | 4304 value->ReplaceInput(inputs - 1, other); |
| 4311 } | 4305 } |
| 4312 return value; | 4306 return value; |
| 4313 } | 4307 } |
| 4314 | 4308 |
| 4315 } // namespace compiler | 4309 } // namespace compiler |
| 4316 } // namespace internal | 4310 } // namespace internal |
| 4317 } // namespace v8 | 4311 } // namespace v8 |
| OLD | NEW |