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

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

Issue 2077533002: [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Import tests from Raymond. 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
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/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { 1164 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) {
1165 LOperand* input = UseRegisterAtStart(instr->value()); 1165 LOperand* input = UseRegisterAtStart(instr->value());
1166 LMathClz32* result = new(zone()) LMathClz32(input); 1166 LMathClz32* result = new(zone()) LMathClz32(input);
1167 return DefineAsRegister(result); 1167 return DefineAsRegister(result);
1168 } 1168 }
1169 1169
1170 1170
1171 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1171 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1172 DCHECK(instr->representation().IsDouble()); 1172 DCHECK(instr->representation().IsDouble());
1173 DCHECK(instr->value()->representation().IsDouble()); 1173 DCHECK(instr->value()->representation().IsDouble());
1174 LOperand* value = UseTempRegister(instr->value()); 1174 LOperand* input = UseFixedDouble(instr->value(), xmm0);
1175 LOperand* temp1 = TempRegister(); 1175 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), xmm0),
1176 LOperand* temp2 = TempRegister(); 1176 instr);
1177 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2);
1178 return DefineAsRegister(result);
1179 } 1177 }
1180 1178
1181 1179
1182 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1180 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1183 LOperand* input = UseAtStart(instr->value()); 1181 LOperand* input = UseAtStart(instr->value());
1184 return DefineAsRegister(new(zone()) LMathSqrt(input)); 1182 return DefineAsRegister(new(zone()) LMathSqrt(input));
1185 } 1183 }
1186 1184
1187 1185
1188 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1186 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 LOperand* index = UseTempRegister(instr->index()); 2568 LOperand* index = UseTempRegister(instr->index());
2571 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2569 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2572 LInstruction* result = DefineSameAsFirst(load); 2570 LInstruction* result = DefineSameAsFirst(load);
2573 return AssignPointerMap(result); 2571 return AssignPointerMap(result);
2574 } 2572 }
2575 2573
2576 } // namespace internal 2574 } // namespace internal
2577 } // namespace v8 2575 } // namespace v8
2578 2576
2579 #endif // V8_TARGET_ARCH_X64 2577 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698