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/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { | 1100 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { |
1101 LOperand* input = UseRegisterAtStart(instr->value()); | 1101 LOperand* input = UseRegisterAtStart(instr->value()); |
1102 LMathClz32* result = new(zone()) LMathClz32(input); | 1102 LMathClz32* result = new(zone()) LMathClz32(input); |
1103 return DefineAsRegister(result); | 1103 return DefineAsRegister(result); |
1104 } | 1104 } |
1105 | 1105 |
1106 | 1106 |
1107 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1107 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
1108 DCHECK(instr->representation().IsDouble()); | 1108 DCHECK(instr->representation().IsDouble()); |
1109 DCHECK(instr->value()->representation().IsDouble()); | 1109 DCHECK(instr->value()->representation().IsDouble()); |
1110 LOperand* input = UseRegister(instr->value()); | 1110 LOperand* input = UseFixedDouble(instr->value(), f4); |
1111 LOperand* temp1 = TempRegister(); | 1111 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), f4), instr); |
1112 LOperand* temp2 = TempRegister(); | |
1113 LOperand* double_temp = TempDoubleRegister(); | |
1114 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2); | |
1115 return DefineAsRegister(result); | |
1116 } | 1112 } |
1117 | 1113 |
1118 | 1114 |
1119 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { | 1115 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { |
1120 // Input cannot be the same as the result, see LCodeGen::DoMathPowHalf. | 1116 // Input cannot be the same as the result, see LCodeGen::DoMathPowHalf. |
1121 LOperand* input = UseFixedDouble(instr->value(), f8); | 1117 LOperand* input = UseFixedDouble(instr->value(), f8); |
1122 LOperand* temp = TempDoubleRegister(); | 1118 LOperand* temp = TempDoubleRegister(); |
1123 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); | 1119 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); |
1124 return DefineFixedDouble(result, f4); | 1120 return DefineFixedDouble(result, f4); |
1125 } | 1121 } |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2449 LOperand* index = UseTempRegister(instr->index()); | 2445 LOperand* index = UseTempRegister(instr->index()); |
2450 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2446 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2451 LInstruction* result = DefineSameAsFirst(load); | 2447 LInstruction* result = DefineSameAsFirst(load); |
2452 return AssignPointerMap(result); | 2448 return AssignPointerMap(result); |
2453 } | 2449 } |
2454 | 2450 |
2455 } // namespace internal | 2451 } // namespace internal |
2456 } // namespace v8 | 2452 } // namespace v8 |
2457 | 2453 |
2458 #endif // V8_TARGET_ARCH_MIPS | 2454 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |