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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
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 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2454 LOperand* index = UseTempRegister(instr->index()); | 2450 LOperand* index = UseTempRegister(instr->index()); |
2455 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2451 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2456 LInstruction* result = DefineSameAsFirst(load); | 2452 LInstruction* result = DefineSameAsFirst(load); |
2457 return AssignPointerMap(result); | 2453 return AssignPointerMap(result); |
2458 } | 2454 } |
2459 | 2455 |
2460 } // namespace internal | 2456 } // namespace internal |
2461 } // namespace v8 | 2457 } // namespace v8 |
2462 | 2458 |
2463 #endif // V8_TARGET_ARCH_MIPS64 | 2459 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |