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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
10 #include "ia32/lithium-ia32.h" | 10 #include "ia32/lithium-ia32.h" |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 ASSERT(instr->value()->representation().IsDouble()); | 1212 ASSERT(instr->value()->representation().IsDouble()); |
1213 LOperand* value = UseTempRegister(instr->value()); | 1213 LOperand* value = UseTempRegister(instr->value()); |
1214 LOperand* temp1 = TempRegister(); | 1214 LOperand* temp1 = TempRegister(); |
1215 LOperand* temp2 = TempRegister(); | 1215 LOperand* temp2 = TempRegister(); |
1216 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); | 1216 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); |
1217 return DefineAsRegister(result); | 1217 return DefineAsRegister(result); |
1218 } | 1218 } |
1219 | 1219 |
1220 | 1220 |
1221 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { | 1221 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { |
1222 LOperand* input = UseRegisterAtStart(instr->value()); | 1222 LOperand* input = UseAtStart(instr->value()); |
1223 LMathSqrt* result = new(zone()) LMathSqrt(input); | 1223 return DefineAsRegister(new(zone()) LMathSqrt(input)); |
1224 return DefineSameAsFirst(result); | |
1225 } | 1224 } |
1226 | 1225 |
1227 | 1226 |
1228 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { | 1227 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { |
1229 LOperand* input = UseRegisterAtStart(instr->value()); | 1228 LOperand* input = UseRegisterAtStart(instr->value()); |
1230 LOperand* temp = TempRegister(); | 1229 LOperand* temp = TempRegister(); |
1231 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); | 1230 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); |
1232 return DefineSameAsFirst(result); | 1231 return DefineSameAsFirst(result); |
1233 } | 1232 } |
1234 | 1233 |
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2673 LOperand* index = UseTempRegister(instr->index()); | 2672 LOperand* index = UseTempRegister(instr->index()); |
2674 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2673 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2675 LInstruction* result = DefineSameAsFirst(load); | 2674 LInstruction* result = DefineSameAsFirst(load); |
2676 return AssignPointerMap(result); | 2675 return AssignPointerMap(result); |
2677 } | 2676 } |
2678 | 2677 |
2679 | 2678 |
2680 } } // namespace v8::internal | 2679 } } // namespace v8::internal |
2681 | 2680 |
2682 #endif // V8_TARGET_ARCH_IA32 | 2681 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |