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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 } | 935 } |
936 | 936 |
937 | 937 |
938 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 938 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
939 return new(zone()) LGoto(instr->FirstSuccessor()); | 939 return new(zone()) LGoto(instr->FirstSuccessor()); |
940 } | 940 } |
941 | 941 |
942 | 942 |
943 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 943 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
944 LInstruction* result = new (zone()) LPrologue(); | 944 LInstruction* result = new (zone()) LPrologue(); |
945 if (info_->num_heap_slots() > 0) { | 945 if (info_->scope()->num_heap_slots() > 0) { |
946 result = MarkAsCall(result, instr); | 946 result = MarkAsCall(result, instr); |
947 } | 947 } |
948 return result; | 948 return result; |
949 } | 949 } |
950 | 950 |
951 | 951 |
952 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { | 952 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
953 return new(zone()) LDebugBreak(); | 953 return new(zone()) LDebugBreak(); |
954 } | 954 } |
955 | 955 |
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 LOperand* index = UseTempRegister(instr->index()); | 2627 LOperand* index = UseTempRegister(instr->index()); |
2628 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2628 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2629 LInstruction* result = DefineSameAsFirst(load); | 2629 LInstruction* result = DefineSameAsFirst(load); |
2630 return AssignPointerMap(result); | 2630 return AssignPointerMap(result); |
2631 } | 2631 } |
2632 | 2632 |
2633 } // namespace internal | 2633 } // namespace internal |
2634 } // namespace v8 | 2634 } // namespace v8 |
2635 | 2635 |
2636 #endif // V8_TARGET_ARCH_X64 | 2636 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |