| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
| 10 #include "x64/lithium-x64.h" | 10 #include "x64/lithium-x64.h" |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 ASSERT(instr->value()->representation().IsDouble()); | 1175 ASSERT(instr->value()->representation().IsDouble()); |
| 1176 LOperand* value = UseTempRegister(instr->value()); | 1176 LOperand* value = UseTempRegister(instr->value()); |
| 1177 LOperand* temp1 = TempRegister(); | 1177 LOperand* temp1 = TempRegister(); |
| 1178 LOperand* temp2 = TempRegister(); | 1178 LOperand* temp2 = TempRegister(); |
| 1179 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); | 1179 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); |
| 1180 return DefineAsRegister(result); | 1180 return DefineAsRegister(result); |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 | 1183 |
| 1184 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { | 1184 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { |
| 1185 LOperand* input = UseRegisterAtStart(instr->value()); | 1185 LOperand* input = UseAtStart(instr->value()); |
| 1186 LMathSqrt* result = new(zone()) LMathSqrt(input); | 1186 return DefineAsRegister(new(zone()) LMathSqrt(input)); |
| 1187 return DefineSameAsFirst(result); | |
| 1188 } | 1187 } |
| 1189 | 1188 |
| 1190 | 1189 |
| 1191 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { | 1190 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { |
| 1192 LOperand* input = UseRegisterAtStart(instr->value()); | 1191 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1193 LMathPowHalf* result = new(zone()) LMathPowHalf(input); | 1192 LMathPowHalf* result = new(zone()) LMathPowHalf(input); |
| 1194 return DefineSameAsFirst(result); | 1193 return DefineSameAsFirst(result); |
| 1195 } | 1194 } |
| 1196 | 1195 |
| 1197 | 1196 |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2602 LOperand* index = UseTempRegister(instr->index()); | 2601 LOperand* index = UseTempRegister(instr->index()); |
| 2603 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2602 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2604 LInstruction* result = DefineSameAsFirst(load); | 2603 LInstruction* result = DefineSameAsFirst(load); |
| 2605 return AssignPointerMap(result); | 2604 return AssignPointerMap(result); |
| 2606 } | 2605 } |
| 2607 | 2606 |
| 2608 | 2607 |
| 2609 } } // namespace v8::internal | 2608 } } // namespace v8::internal |
| 2610 | 2609 |
| 2611 #endif // V8_TARGET_ARCH_X64 | 2610 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |