| 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/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { | 1170 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { |
| 1171 LOperand* input = UseRegisterAtStart(instr->value()); | 1171 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1172 LMathClz32* result = new(zone()) LMathClz32(input); | 1172 LMathClz32* result = new(zone()) LMathClz32(input); |
| 1173 return DefineAsRegister(result); | 1173 return DefineAsRegister(result); |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 | 1176 |
| 1177 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1177 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
| 1178 DCHECK(instr->representation().IsDouble()); | 1178 DCHECK(instr->representation().IsDouble()); |
| 1179 DCHECK(instr->value()->representation().IsDouble()); | 1179 DCHECK(instr->value()->representation().IsDouble()); |
| 1180 LOperand* value = UseRegisterAtStart(instr->value()); | 1180 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1181 LOperand* temp1 = FixedTemp(ecx); | 1181 return MarkAsCall(DefineSameAsFirst(new (zone()) LMathExp(input)), instr); |
| 1182 LOperand* temp2 = FixedTemp(edx); | |
| 1183 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); | |
| 1184 return MarkAsCall(DefineSameAsFirst(result), instr); | |
| 1185 } | 1182 } |
| 1186 | 1183 |
| 1187 | 1184 |
| 1188 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { | 1185 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { |
| 1189 LOperand* input = UseRegisterAtStart(instr->value()); | 1186 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1190 LOperand* temp1 = FixedTemp(ecx); | 1187 LOperand* temp1 = FixedTemp(ecx); |
| 1191 LOperand* temp2 = FixedTemp(edx); | 1188 LOperand* temp2 = FixedTemp(edx); |
| 1192 LMathSqrt* result = new(zone()) LMathSqrt(input, temp1, temp2); | 1189 LMathSqrt* result = new(zone()) LMathSqrt(input, temp1, temp2); |
| 1193 return MarkAsCall(DefineSameAsFirst(result), instr); | 1190 return MarkAsCall(DefineSameAsFirst(result), instr); |
| 1194 } | 1191 } |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2559 LOperand* index = UseTempRegister(instr->index()); | 2556 LOperand* index = UseTempRegister(instr->index()); |
| 2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2557 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2561 LInstruction* result = DefineSameAsFirst(load); | 2558 LInstruction* result = DefineSameAsFirst(load); |
| 2562 return AssignPointerMap(result); | 2559 return AssignPointerMap(result); |
| 2563 } | 2560 } |
| 2564 | 2561 |
| 2565 } // namespace internal | 2562 } // namespace internal |
| 2566 } // namespace v8 | 2563 } // namespace v8 |
| 2567 | 2564 |
| 2568 #endif // V8_TARGET_ARCH_X87 | 2565 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |