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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 | 719 |
720 | 720 |
721 LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) { | 721 LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) { |
722 HEnvironment* hydrogen_env = current_block_->last_environment(); | 722 HEnvironment* hydrogen_env = current_block_->last_environment(); |
723 return LChunkBuilderBase::AssignEnvironment(instr, hydrogen_env); | 723 return LChunkBuilderBase::AssignEnvironment(instr, hydrogen_env); |
724 } | 724 } |
725 | 725 |
726 | 726 |
727 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 727 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
728 LInstruction* result = new (zone()) LPrologue(); | 728 LInstruction* result = new (zone()) LPrologue(); |
729 if (info_->scope()->num_heap_slots() > 0) { | 729 if (info_->scope()->NeedsContext()) { |
730 result = MarkAsCall(result, instr); | 730 result = MarkAsCall(result, instr); |
731 } | 731 } |
732 return result; | 732 return result; |
733 } | 733 } |
734 | 734 |
735 | 735 |
736 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 736 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
737 // The control instruction marking the end of a block that completed | 737 // The control instruction marking the end of a block that completed |
738 // abruptly (e.g., threw an exception). There is nothing specific to do. | 738 // abruptly (e.g., threw an exception). There is nothing specific to do. |
739 return NULL; | 739 return NULL; |
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 | 2585 |
2586 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2586 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2587 LOperand* receiver = UseRegister(instr->receiver()); | 2587 LOperand* receiver = UseRegister(instr->receiver()); |
2588 LOperand* function = UseRegister(instr->function()); | 2588 LOperand* function = UseRegister(instr->function()); |
2589 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2589 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2590 return AssignEnvironment(DefineAsRegister(result)); | 2590 return AssignEnvironment(DefineAsRegister(result)); |
2591 } | 2591 } |
2592 | 2592 |
2593 } // namespace internal | 2593 } // namespace internal |
2594 } // namespace v8 | 2594 } // namespace v8 |
OLD | NEW |