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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { 1131 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) {
1132 LOperand* input = UseRegisterAtStart(instr->value()); 1132 LOperand* input = UseRegisterAtStart(instr->value());
1133 LMathClz32* result = new(zone()) LMathClz32(input); 1133 LMathClz32* result = new(zone()) LMathClz32(input);
1134 return DefineAsRegister(result); 1134 return DefineAsRegister(result);
1135 } 1135 }
1136 1136
1137 1137
1138 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1138 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1139 DCHECK(instr->representation().IsDouble()); 1139 DCHECK(instr->representation().IsDouble());
1140 DCHECK(instr->value()->representation().IsDouble()); 1140 DCHECK(instr->value()->representation().IsDouble());
1141 LOperand* input = UseRegister(instr->value()); 1141 LOperand* input = UseFixedDouble(instr->value(), d0);
1142 LOperand* temp1 = TempRegister(); 1142 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr);
1143 LOperand* temp2 = TempRegister();
1144 LOperand* double_temp = TempDoubleRegister();
1145 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2);
1146 return DefineAsRegister(result);
1147 } 1143 }
1148 1144
1149 1145
1150 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1146 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1151 LOperand* input = UseRegisterAtStart(instr->value()); 1147 LOperand* input = UseRegisterAtStart(instr->value());
1152 LMathSqrt* result = new(zone()) LMathSqrt(input); 1148 LMathSqrt* result = new(zone()) LMathSqrt(input);
1153 return DefineAsRegister(result); 1149 return DefineAsRegister(result);
1154 } 1150 }
1155 1151
1156 1152
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2496 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2501 LOperand* object = UseRegister(instr->object()); 2497 LOperand* object = UseRegister(instr->object());
2502 LOperand* index = UseTempRegister(instr->index()); 2498 LOperand* index = UseTempRegister(instr->index());
2503 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2499 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2504 LInstruction* result = DefineSameAsFirst(load); 2500 LInstruction* result = DefineSameAsFirst(load);
2505 return AssignPointerMap(result); 2501 return AssignPointerMap(result);
2506 } 2502 }
2507 2503
2508 } // namespace internal 2504 } // namespace internal
2509 } // namespace v8 2505 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698