OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/crankshaft/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1395 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 1395 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
1396 instr->inlining_kind(), instr->syntactic_tail_call_mode()); | 1396 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
1397 // Only replay binding of arguments object if it wasn't removed from graph. | 1397 // Only replay binding of arguments object if it wasn't removed from graph. |
1398 if ((instr->arguments_var() != NULL) && | 1398 if ((instr->arguments_var() != NULL) && |
1399 instr->arguments_object()->IsLinked()) { | 1399 instr->arguments_object()->IsLinked()) { |
1400 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 1400 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
1401 } | 1401 } |
1402 inner->BindContext(instr->closure_context()); | 1402 inner->BindContext(instr->closure_context()); |
1403 inner->set_entry(instr); | 1403 inner->set_entry(instr); |
1404 current_block_->UpdateEnvironment(inner); | 1404 current_block_->UpdateEnvironment(inner); |
1405 chunk_->AddInlinedFunction(instr->shared()); | |
1406 return NULL; | 1405 return NULL; |
1407 } | 1406 } |
1408 | 1407 |
1409 | 1408 |
1410 LInstruction* LChunkBuilder::DoEnvironmentMarker(HEnvironmentMarker* instr) { | 1409 LInstruction* LChunkBuilder::DoEnvironmentMarker(HEnvironmentMarker* instr) { |
1411 UNREACHABLE(); | 1410 UNREACHABLE(); |
1412 return NULL; | 1411 return NULL; |
1413 } | 1412 } |
1414 | 1413 |
1415 | 1414 |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2490 | 2489 |
2491 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2490 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2492 LOperand* receiver = UseRegister(instr->receiver()); | 2491 LOperand* receiver = UseRegister(instr->receiver()); |
2493 LOperand* function = UseRegister(instr->function()); | 2492 LOperand* function = UseRegister(instr->function()); |
2494 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2493 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2495 return AssignEnvironment(DefineAsRegister(result)); | 2494 return AssignEnvironment(DefineAsRegister(result)); |
2496 } | 2495 } |
2497 | 2496 |
2498 } // namespace internal | 2497 } // namespace internal |
2499 } // namespace v8 | 2498 } // namespace v8 |
OLD | NEW |