Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.cc

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 = UseFixedDouble(instr->value(), f4); 1110 LOperand* input = UseRegister(instr->value());
1111 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), f4), instr); 1111 LOperand* temp1 = TempRegister();
1112 LOperand* temp2 = TempRegister();
1113 LOperand* double_temp = TempDoubleRegister();
1114 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2);
1115 return DefineAsRegister(result);
1112 } 1116 }
1113 1117
1114 1118
1115 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1119 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
1116 // Input cannot be the same as the result, see LCodeGen::DoMathPowHalf. 1120 // Input cannot be the same as the result, see LCodeGen::DoMathPowHalf.
1117 LOperand* input = UseFixedDouble(instr->value(), f8); 1121 LOperand* input = UseFixedDouble(instr->value(), f8);
1118 LOperand* temp = TempDoubleRegister(); 1122 LOperand* temp = TempDoubleRegister();
1119 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); 1123 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp);
1120 return DefineFixedDouble(result, f4); 1124 return DefineFixedDouble(result, f4);
1121 } 1125 }
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2450 LOperand* index = UseTempRegister(instr->index()); 2454 LOperand* index = UseTempRegister(instr->index());
2451 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2455 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2452 LInstruction* result = DefineSameAsFirst(load); 2456 LInstruction* result = DefineSameAsFirst(load);
2453 return AssignPointerMap(result); 2457 return AssignPointerMap(result);
2454 } 2458 }
2455 2459
2456 } // namespace internal 2460 } // namespace internal
2457 } // namespace v8 2461 } // namespace v8
2458 2462
2459 #endif // V8_TARGET_ARCH_MIPS64 2463 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698