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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 LOperand* value = UseRegisterAtStart(instr->value()); | 1245 LOperand* value = UseRegisterAtStart(instr->value()); |
1246 LOperand* temp1 = FixedTemp(ecx); | 1246 LOperand* temp1 = FixedTemp(ecx); |
1247 LOperand* temp2 = FixedTemp(edx); | 1247 LOperand* temp2 = FixedTemp(edx); |
1248 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); | 1248 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); |
1249 return MarkAsCall(DefineSameAsFirst(result), instr); | 1249 return MarkAsCall(DefineSameAsFirst(result), instr); |
1250 } | 1250 } |
1251 | 1251 |
1252 | 1252 |
1253 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { | 1253 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { |
1254 LOperand* input = UseRegisterAtStart(instr->value()); | 1254 LOperand* input = UseRegisterAtStart(instr->value()); |
1255 LMathSqrt* result = new(zone()) LMathSqrt(input); | 1255 LOperand* temp1 = FixedTemp(ecx); |
1256 return DefineSameAsFirst(result); | 1256 LOperand* temp2 = FixedTemp(edx); |
| 1257 LMathSqrt* result = new(zone()) LMathSqrt(input, temp1, temp2); |
| 1258 return MarkAsCall(DefineSameAsFirst(result), instr); |
1257 } | 1259 } |
1258 | 1260 |
1259 | 1261 |
1260 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { | 1262 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { |
1261 LOperand* input = UseRegisterAtStart(instr->value()); | 1263 LOperand* input = UseRegisterAtStart(instr->value()); |
1262 LMathPowHalf* result = new (zone()) LMathPowHalf(input); | 1264 LMathPowHalf* result = new (zone()) LMathPowHalf(input); |
1263 return DefineSameAsFirst(result); | 1265 return DefineSameAsFirst(result); |
1264 } | 1266 } |
1265 | 1267 |
1266 | 1268 |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2709 LOperand* function = UseRegisterAtStart(instr->function()); | 2711 LOperand* function = UseRegisterAtStart(instr->function()); |
2710 LAllocateBlockContext* result = | 2712 LAllocateBlockContext* result = |
2711 new(zone()) LAllocateBlockContext(context, function); | 2713 new(zone()) LAllocateBlockContext(context, function); |
2712 return MarkAsCall(DefineFixed(result, esi), instr); | 2714 return MarkAsCall(DefineFixed(result, esi), instr); |
2713 } | 2715 } |
2714 | 2716 |
2715 | 2717 |
2716 } } // namespace v8::internal | 2718 } } // namespace v8::internal |
2717 | 2719 |
2718 #endif // V8_TARGET_ARCH_X87 | 2720 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |