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 2422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2433 VisitForValue(expr->left()); | 2433 VisitForValue(expr->left()); |
2434 VisitForValue(expr->right()); | 2434 VisitForValue(expr->right()); |
2435 Node* right = environment()->Pop(); | 2435 Node* right = environment()->Pop(); |
2436 Node* left = environment()->Pop(); | 2436 Node* left = environment()->Pop(); |
2437 Node* value = NewNode(op, left, right); | 2437 Node* value = NewNode(op, left, right); |
2438 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); | 2438 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
2439 ast_context()->ProduceValue(value); | 2439 ast_context()->ProduceValue(value); |
2440 } | 2440 } |
2441 | 2441 |
2442 | 2442 |
| 2443 void AstGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } |
| 2444 |
| 2445 |
2443 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2446 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
2444 Node* value = GetFunctionClosure(); | 2447 Node* value = GetFunctionClosure(); |
2445 ast_context()->ProduceValue(value); | 2448 ast_context()->ProduceValue(value); |
2446 } | 2449 } |
2447 | 2450 |
2448 | 2451 |
2449 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { | 2452 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
2450 // TODO(turbofan): Implement super here. | 2453 // TODO(turbofan): Implement super here. |
2451 SetStackOverflow(); | 2454 SetStackOverflow(); |
2452 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); | 2455 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3520 // Phi does not exist yet, introduce one. | 3523 // Phi does not exist yet, introduce one. |
3521 value = NewPhi(inputs, value, control); | 3524 value = NewPhi(inputs, value, control); |
3522 value->ReplaceInput(inputs - 1, other); | 3525 value->ReplaceInput(inputs - 1, other); |
3523 } | 3526 } |
3524 return value; | 3527 return value; |
3525 } | 3528 } |
3526 | 3529 |
3527 } // namespace compiler | 3530 } // namespace compiler |
3528 } // namespace internal | 3531 } // namespace internal |
3529 } // namespace v8 | 3532 } // namespace v8 |
OLD | NEW |