| 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 9 #include "src/compiler/ast-loop-assignment-analyzer.h" |
| 10 #include "src/compiler/control-builders.h" | 10 #include "src/compiler/control-builders.h" |
| (...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 PrepareFrameState(value, expr->LoadId(), OutputFrameStateCombine::Push()); | 2269 PrepareFrameState(value, expr->LoadId(), OutputFrameStateCombine::Push()); |
| 2270 break; | 2270 break; |
| 2271 } | 2271 } |
| 2272 } | 2272 } |
| 2273 ast_context()->ProduceValue(expr, value); | 2273 ast_context()->ProduceValue(expr, value); |
| 2274 } | 2274 } |
| 2275 | 2275 |
| 2276 | 2276 |
| 2277 void AstGraphBuilder::VisitCall(Call* expr) { | 2277 void AstGraphBuilder::VisitCall(Call* expr) { |
| 2278 Expression* callee = expr->expression(); | 2278 Expression* callee = expr->expression(); |
| 2279 Call::CallType call_type = expr->GetCallType(isolate()); | 2279 Call::CallType call_type = expr->GetCallType(); |
| 2280 | 2280 |
| 2281 // Prepare the callee and the receiver to the function call. This depends on | 2281 // Prepare the callee and the receiver to the function call. This depends on |
| 2282 // the semantics of the underlying call type. | 2282 // the semantics of the underlying call type. |
| 2283 ConvertReceiverMode receiver_hint = ConvertReceiverMode::kAny; | 2283 ConvertReceiverMode receiver_hint = ConvertReceiverMode::kAny; |
| 2284 Node* receiver_value = nullptr; | 2284 Node* receiver_value = nullptr; |
| 2285 Node* callee_value = nullptr; | 2285 Node* callee_value = nullptr; |
| 2286 bool possibly_eval = false; | 2286 bool possibly_eval = false; |
| 2287 switch (call_type) { | 2287 switch (call_type) { |
| 2288 case Call::GLOBAL_CALL: { | 2288 case Call::GLOBAL_CALL: { |
| 2289 VariableProxy* proxy = callee->AsVariableProxy(); | 2289 VariableProxy* proxy = callee->AsVariableProxy(); |
| (...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4318 // Phi does not exist yet, introduce one. | 4318 // Phi does not exist yet, introduce one. |
| 4319 value = NewPhi(inputs, value, control); | 4319 value = NewPhi(inputs, value, control); |
| 4320 value->ReplaceInput(inputs - 1, other); | 4320 value->ReplaceInput(inputs - 1, other); |
| 4321 } | 4321 } |
| 4322 return value; | 4322 return value; |
| 4323 } | 4323 } |
| 4324 | 4324 |
| 4325 } // namespace compiler | 4325 } // namespace compiler |
| 4326 } // namespace internal | 4326 } // namespace internal |
| 4327 } // namespace v8 | 4327 } // namespace v8 |
| OLD | NEW |