OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/x64/lithium-x64.h" | 5 #include "src/crankshaft/x64/lithium-x64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 } | 900 } |
901 | 901 |
902 | 902 |
903 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 903 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
904 return new(zone()) LGoto(instr->FirstSuccessor()); | 904 return new(zone()) LGoto(instr->FirstSuccessor()); |
905 } | 905 } |
906 | 906 |
907 | 907 |
908 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 908 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
909 LInstruction* result = new (zone()) LPrologue(); | 909 LInstruction* result = new (zone()) LPrologue(); |
910 if (info_->scope()->num_heap_slots() > 0) { | 910 if (info_->scope()->NeedsContext()) { |
911 result = MarkAsCall(result, instr); | 911 result = MarkAsCall(result, instr); |
912 } | 912 } |
913 return result; | 913 return result; |
914 } | 914 } |
915 | 915 |
916 | 916 |
917 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { | 917 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
918 return new(zone()) LDebugBreak(); | 918 return new(zone()) LDebugBreak(); |
919 } | 919 } |
920 | 920 |
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 LOperand* index = UseTempRegister(instr->index()); | 2569 LOperand* index = UseTempRegister(instr->index()); |
2570 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2570 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2571 LInstruction* result = DefineSameAsFirst(load); | 2571 LInstruction* result = DefineSameAsFirst(load); |
2572 return AssignPointerMap(result); | 2572 return AssignPointerMap(result); |
2573 } | 2573 } |
2574 | 2574 |
2575 } // namespace internal | 2575 } // namespace internal |
2576 } // namespace v8 | 2576 } // namespace v8 |
2577 | 2577 |
2578 #endif // V8_TARGET_ARCH_X64 | 2578 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |