Chromium Code Reviews| 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/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2411 VisitForValue(expr->left()); | 2411 VisitForValue(expr->left()); |
| 2412 VisitForValue(expr->right()); | 2412 VisitForValue(expr->right()); |
| 2413 Node* right = environment()->Pop(); | 2413 Node* right = environment()->Pop(); |
| 2414 Node* left = environment()->Pop(); | 2414 Node* left = environment()->Pop(); |
| 2415 Node* value = NewNode(op, left, right); | 2415 Node* value = NewNode(op, left, right); |
| 2416 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); | 2416 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
| 2417 ast_context()->ProduceValue(value); | 2417 ast_context()->ProduceValue(value); |
| 2418 } | 2418 } |
| 2419 | 2419 |
| 2420 | 2420 |
| 2421 void AstGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) { | |
| 2422 Visit(expr->expression()); | |
|
Dmitry Lomov (no reviews)
2015/03/31 10:09:42
Bailout instead of visiting silently
| |
| 2423 } | |
| 2424 | |
| 2425 | |
| 2421 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2426 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
| 2422 Node* value = GetFunctionClosure(); | 2427 Node* value = GetFunctionClosure(); |
| 2423 ast_context()->ProduceValue(value); | 2428 ast_context()->ProduceValue(value); |
| 2424 } | 2429 } |
| 2425 | 2430 |
| 2426 | 2431 |
| 2427 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { | 2432 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
| 2428 // TODO(turbofan): Implement super here. | 2433 // TODO(turbofan): Implement super here. |
| 2429 SetStackOverflow(); | 2434 SetStackOverflow(); |
| 2430 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); | 2435 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); |
| (...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3486 // Phi does not exist yet, introduce one. | 3491 // Phi does not exist yet, introduce one. |
| 3487 value = NewPhi(inputs, value, control); | 3492 value = NewPhi(inputs, value, control); |
| 3488 value->ReplaceInput(inputs - 1, other); | 3493 value->ReplaceInput(inputs - 1, other); |
| 3489 } | 3494 } |
| 3490 return value; | 3495 return value; |
| 3491 } | 3496 } |
| 3492 | 3497 |
| 3493 } // namespace compiler | 3498 } // namespace compiler |
| 3494 } // namespace internal | 3499 } // namespace internal |
| 3495 } // namespace v8 | 3500 } // namespace v8 |
| OLD | NEW |