| 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 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2303 VisitForValue(expr->left()); | 2303 VisitForValue(expr->left()); |
| 2304 VisitForValue(expr->right()); | 2304 VisitForValue(expr->right()); |
| 2305 Node* right = environment()->Pop(); | 2305 Node* right = environment()->Pop(); |
| 2306 Node* left = environment()->Pop(); | 2306 Node* left = environment()->Pop(); |
| 2307 Node* value = NewNode(op, left, right); | 2307 Node* value = NewNode(op, left, right); |
| 2308 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); | 2308 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
| 2309 ast_context()->ProduceValue(value); | 2309 ast_context()->ProduceValue(value); |
| 2310 } | 2310 } |
| 2311 | 2311 |
| 2312 | 2312 |
| 2313 void AstGraphBuilder::VisitSpread(Spread* expr) { |
| 2314 UNREACHABLE(); |
| 2315 } |
| 2316 |
| 2317 |
| 2313 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2318 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
| 2314 Node* value = GetFunctionClosure(); | 2319 Node* value = GetFunctionClosure(); |
| 2315 ast_context()->ProduceValue(value); | 2320 ast_context()->ProduceValue(value); |
| 2316 } | 2321 } |
| 2317 | 2322 |
| 2318 | 2323 |
| 2319 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { | 2324 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
| 2320 // TODO(turbofan): Implement super here. | 2325 // TODO(turbofan): Implement super here. |
| 2321 SetStackOverflow(); | 2326 SetStackOverflow(); |
| 2322 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); | 2327 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3337 // Phi does not exist yet, introduce one. | 3342 // Phi does not exist yet, introduce one. |
| 3338 value = NewPhi(inputs, value, control); | 3343 value = NewPhi(inputs, value, control); |
| 3339 value->ReplaceInput(inputs - 1, other); | 3344 value->ReplaceInput(inputs - 1, other); |
| 3340 } | 3345 } |
| 3341 return value; | 3346 return value; |
| 3342 } | 3347 } |
| 3343 | 3348 |
| 3344 } // namespace compiler | 3349 } // namespace compiler |
| 3345 } // namespace internal | 3350 } // namespace internal |
| 3346 } // namespace v8 | 3351 } // namespace v8 |
| OLD | NEW |