| 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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 Representation r = instr->value()->representation(); | 1148 Representation r = instr->value()->representation(); |
| 1149 if (!r.IsDouble() && !r.IsSmiOrInteger32()) result = AssignPointerMap(result); | 1149 if (!r.IsDouble() && !r.IsSmiOrInteger32()) result = AssignPointerMap(result); |
| 1150 if (!r.IsDouble()) result = AssignEnvironment(result); | 1150 if (!r.IsDouble()) result = AssignEnvironment(result); |
| 1151 return result; | 1151 return result; |
| 1152 } | 1152 } |
| 1153 | 1153 |
| 1154 | 1154 |
| 1155 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { | 1155 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { |
| 1156 DCHECK(instr->representation().IsDouble()); | 1156 DCHECK(instr->representation().IsDouble()); |
| 1157 DCHECK(instr->value()->representation().IsDouble()); | 1157 DCHECK(instr->value()->representation().IsDouble()); |
| 1158 LOperand* input = UseRegisterAtStart(instr->value()); | 1158 LOperand* input = UseFixedDouble(instr->value(), xmm0); |
| 1159 return MarkAsCall(DefineSameAsFirst(new(zone()) LMathLog(input)), instr); | 1159 return MarkAsCall(DefineFixedDouble(new (zone()) LMathLog(input), xmm0), |
| 1160 instr); |
| 1160 } | 1161 } |
| 1161 | 1162 |
| 1162 | 1163 |
| 1163 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { | 1164 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { |
| 1164 LOperand* input = UseRegisterAtStart(instr->value()); | 1165 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1165 LMathClz32* result = new(zone()) LMathClz32(input); | 1166 LMathClz32* result = new(zone()) LMathClz32(input); |
| 1166 return DefineAsRegister(result); | 1167 return DefineAsRegister(result); |
| 1167 } | 1168 } |
| 1168 | 1169 |
| 1169 | 1170 |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2569 LOperand* index = UseTempRegister(instr->index()); | 2570 LOperand* index = UseTempRegister(instr->index()); |
| 2570 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2571 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2571 LInstruction* result = DefineSameAsFirst(load); | 2572 LInstruction* result = DefineSameAsFirst(load); |
| 2572 return AssignPointerMap(result); | 2573 return AssignPointerMap(result); |
| 2573 } | 2574 } |
| 2574 | 2575 |
| 2575 } // namespace internal | 2576 } // namespace internal |
| 2576 } // namespace v8 | 2577 } // namespace v8 |
| 2577 | 2578 |
| 2578 #endif // V8_TARGET_ARCH_X64 | 2579 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |