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

Side by Side Diff: src/x87/lithium-x87.cc

Issue 606403002: X87: fix the Sqrt issue. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: fix the comments Created 6 years, 2 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/x87/lithium-x87.h ('k') | no next file » | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 LOperand* value = UseRegisterAtStart(instr->value()); 1245 LOperand* value = UseRegisterAtStart(instr->value());
1246 LOperand* temp1 = FixedTemp(ecx); 1246 LOperand* temp1 = FixedTemp(ecx);
1247 LOperand* temp2 = FixedTemp(edx); 1247 LOperand* temp2 = FixedTemp(edx);
1248 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); 1248 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2);
1249 return MarkAsCall(DefineSameAsFirst(result), instr); 1249 return MarkAsCall(DefineSameAsFirst(result), instr);
1250 } 1250 }
1251 1251
1252 1252
1253 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1253 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1254 LOperand* input = UseRegisterAtStart(instr->value()); 1254 LOperand* input = UseRegisterAtStart(instr->value());
1255 LMathSqrt* result = new(zone()) LMathSqrt(input); 1255 LOperand* temp1 = FixedTemp(ecx);
1256 return DefineSameAsFirst(result); 1256 LOperand* temp2 = FixedTemp(edx);
1257 LMathSqrt* result = new(zone()) LMathSqrt(input, temp1, temp2);
1258 return MarkAsCall(DefineSameAsFirst(result), instr);
1257 } 1259 }
1258 1260
1259 1261
1260 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1262 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
1261 LOperand* input = UseRegisterAtStart(instr->value()); 1263 LOperand* input = UseRegisterAtStart(instr->value());
1262 LMathPowHalf* result = new (zone()) LMathPowHalf(input); 1264 LMathPowHalf* result = new (zone()) LMathPowHalf(input);
1263 return DefineSameAsFirst(result); 1265 return DefineSameAsFirst(result);
1264 } 1266 }
1265 1267
1266 1268
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 LOperand* function = UseRegisterAtStart(instr->function()); 2711 LOperand* function = UseRegisterAtStart(instr->function());
2710 LAllocateBlockContext* result = 2712 LAllocateBlockContext* result =
2711 new(zone()) LAllocateBlockContext(context, function); 2713 new(zone()) LAllocateBlockContext(context, function);
2712 return MarkAsCall(DefineFixed(result, esi), instr); 2714 return MarkAsCall(DefineFixed(result, esi), instr);
2713 } 2715 }
2714 2716
2715 2717
2716 } } // namespace v8::internal 2718 } } // namespace v8::internal
2717 2719
2718 #endif // V8_TARGET_ARCH_X87 2720 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698