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 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2435 VisitForValue(expr->left()); | 2435 VisitForValue(expr->left()); |
2436 VisitForValue(expr->right()); | 2436 VisitForValue(expr->right()); |
2437 Node* right = environment()->Pop(); | 2437 Node* right = environment()->Pop(); |
2438 Node* left = environment()->Pop(); | 2438 Node* left = environment()->Pop(); |
2439 Node* value = NewNode(op, left, right); | 2439 Node* value = NewNode(op, left, right); |
2440 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); | 2440 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
2441 ast_context()->ProduceValue(value); | 2441 ast_context()->ProduceValue(value); |
2442 } | 2442 } |
2443 | 2443 |
2444 | 2444 |
| 2445 void AstGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } |
| 2446 |
| 2447 |
2445 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2448 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
2446 Node* value = GetFunctionClosure(); | 2449 Node* value = GetFunctionClosure(); |
2447 ast_context()->ProduceValue(value); | 2450 ast_context()->ProduceValue(value); |
2448 } | 2451 } |
2449 | 2452 |
2450 | 2453 |
2451 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { | 2454 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
2452 // TODO(turbofan): Implement super here. | 2455 // TODO(turbofan): Implement super here. |
2453 SetStackOverflow(); | 2456 SetStackOverflow(); |
2454 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); | 2457 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3554 // Phi does not exist yet, introduce one. | 3557 // Phi does not exist yet, introduce one. |
3555 value = NewPhi(inputs, value, control); | 3558 value = NewPhi(inputs, value, control); |
3556 value->ReplaceInput(inputs - 1, other); | 3559 value->ReplaceInput(inputs - 1, other); |
3557 } | 3560 } |
3558 return value; | 3561 return value; |
3559 } | 3562 } |
3560 | 3563 |
3561 } // namespace compiler | 3564 } // namespace compiler |
3562 } // namespace internal | 3565 } // namespace internal |
3563 } // namespace v8 | 3566 } // namespace v8 |
OLD | NEW |