| 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 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 VisitForValue(expr->left()); | 2437 VisitForValue(expr->left()); |
| 2438 VisitForValue(expr->right()); | 2438 VisitForValue(expr->right()); |
| 2439 Node* right = environment()->Pop(); | 2439 Node* right = environment()->Pop(); |
| 2440 Node* left = environment()->Pop(); | 2440 Node* left = environment()->Pop(); |
| 2441 Node* value = NewNode(op, left, right); | 2441 Node* value = NewNode(op, left, right); |
| 2442 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); | 2442 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
| 2443 ast_context()->ProduceValue(value); | 2443 ast_context()->ProduceValue(value); |
| 2444 } | 2444 } |
| 2445 | 2445 |
| 2446 | 2446 |
| 2447 void AstGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } |
| 2448 |
| 2449 |
| 2447 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2450 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
| 2448 Node* value = GetFunctionClosure(); | 2451 Node* value = GetFunctionClosure(); |
| 2449 ast_context()->ProduceValue(value); | 2452 ast_context()->ProduceValue(value); |
| 2450 } | 2453 } |
| 2451 | 2454 |
| 2452 | 2455 |
| 2453 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { | 2456 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
| 2454 // TODO(turbofan): Implement super here. | 2457 // TODO(turbofan): Implement super here. |
| 2455 SetStackOverflow(); | 2458 SetStackOverflow(); |
| 2456 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); | 2459 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3532 // Phi does not exist yet, introduce one. | 3535 // Phi does not exist yet, introduce one. |
| 3533 value = NewPhi(inputs, value, control); | 3536 value = NewPhi(inputs, value, control); |
| 3534 value->ReplaceInput(inputs - 1, other); | 3537 value->ReplaceInput(inputs - 1, other); |
| 3535 } | 3538 } |
| 3536 return value; | 3539 return value; |
| 3537 } | 3540 } |
| 3538 | 3541 |
| 3539 } // namespace compiler | 3542 } // namespace compiler |
| 3540 } // namespace internal | 3543 } // namespace internal |
| 3541 } // namespace v8 | 3544 } // namespace v8 |
| OLD | NEW |