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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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/ia32/lithium-ia32.h" 5 #include "src/crankshaft/ia32/lithium-ia32.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { 1174 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) {
1175 LOperand* input = UseRegisterAtStart(instr->value()); 1175 LOperand* input = UseRegisterAtStart(instr->value());
1176 LMathClz32* result = new(zone()) LMathClz32(input); 1176 LMathClz32* result = new(zone()) LMathClz32(input);
1177 return DefineAsRegister(result); 1177 return DefineAsRegister(result);
1178 } 1178 }
1179 1179
1180 1180
1181 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1181 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1182 DCHECK(instr->representation().IsDouble()); 1182 DCHECK(instr->representation().IsDouble());
1183 DCHECK(instr->value()->representation().IsDouble()); 1183 DCHECK(instr->value()->representation().IsDouble());
1184 LOperand* value = UseTempRegister(instr->value()); 1184 LOperand* input = UseRegisterAtStart(instr->value());
1185 LOperand* temp1 = TempRegister(); 1185 return MarkAsCall(DefineSameAsFirst(new (zone()) LMathExp(input)), instr);
1186 LOperand* temp2 = TempRegister();
1187 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2);
1188 return DefineAsRegister(result);
1189 } 1186 }
1190 1187
1191 1188
1192 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1189 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1193 LOperand* input = UseAtStart(instr->value()); 1190 LOperand* input = UseAtStart(instr->value());
1194 return DefineAsRegister(new(zone()) LMathSqrt(input)); 1191 return DefineAsRegister(new(zone()) LMathSqrt(input));
1195 } 1192 }
1196 1193
1197 1194
1198 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1195 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2566 LOperand* index = UseTempRegister(instr->index()); 2563 LOperand* index = UseTempRegister(instr->index());
2567 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2568 LInstruction* result = DefineSameAsFirst(load); 2565 LInstruction* result = DefineSameAsFirst(load);
2569 return AssignPointerMap(result); 2566 return AssignPointerMap(result);
2570 } 2567 }
2571 2568
2572 } // namespace internal 2569 } // namespace internal
2573 } // namespace v8 2570 } // namespace v8
2574 2571
2575 #endif // V8_TARGET_ARCH_IA32 2572 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698