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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.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/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 = UseFixedDouble(instr->value(), d0); 1141 LOperand* input = UseRegister(instr->value());
1142 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr); 1142 LOperand* temp1 = TempRegister();
1143 LOperand* temp2 = TempRegister();
1144 LOperand* double_temp = TempDoubleRegister();
1145 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2);
1146 return DefineAsRegister(result);
1143 } 1147 }
1144 1148
1145 1149
1146 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1150 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1147 LOperand* input = UseRegisterAtStart(instr->value()); 1151 LOperand* input = UseRegisterAtStart(instr->value());
1148 LMathSqrt* result = new(zone()) LMathSqrt(input); 1152 LMathSqrt* result = new(zone()) LMathSqrt(input);
1149 return DefineAsRegister(result); 1153 return DefineAsRegister(result);
1150 } 1154 }
1151 1155
1152 1156
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
2496 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2500 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2497 LOperand* object = UseRegister(instr->object()); 2501 LOperand* object = UseRegister(instr->object());
2498 LOperand* index = UseTempRegister(instr->index()); 2502 LOperand* index = UseTempRegister(instr->index());
2499 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2503 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2500 LInstruction* result = DefineSameAsFirst(load); 2504 LInstruction* result = DefineSameAsFirst(load);
2501 return AssignPointerMap(result); 2505 return AssignPointerMap(result);
2502 } 2506 }
2503 2507
2504 } // namespace internal 2508 } // namespace internal
2505 } // namespace v8 2509 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698