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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 662813002: IA: Double arithmetic binops support memory operand (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/ia32/instruction-selector-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 if (HasImmediateInput(instr, 1)) { 307 if (HasImmediateInput(instr, 1)) {
308 __ ror(i.OutputOperand(), i.InputInt5(1)); 308 __ ror(i.OutputOperand(), i.InputInt5(1));
309 } else { 309 } else {
310 __ ror_cl(i.OutputOperand()); 310 __ ror_cl(i.OutputOperand());
311 } 311 }
312 break; 312 break;
313 case kSSEFloat64Cmp: 313 case kSSEFloat64Cmp:
314 __ ucomisd(i.InputDoubleRegister(0), i.InputOperand(1)); 314 __ ucomisd(i.InputDoubleRegister(0), i.InputOperand(1));
315 break; 315 break;
316 case kSSEFloat64Add: 316 case kSSEFloat64Add:
317 __ addsd(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); 317 __ addsd(i.InputDoubleRegister(0), i.InputOperand(1));
318 break; 318 break;
319 case kSSEFloat64Sub: 319 case kSSEFloat64Sub:
320 __ subsd(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); 320 __ subsd(i.InputDoubleRegister(0), i.InputOperand(1));
321 break; 321 break;
322 case kSSEFloat64Mul: 322 case kSSEFloat64Mul:
323 __ mulsd(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); 323 __ mulsd(i.InputDoubleRegister(0), i.InputOperand(1));
324 break; 324 break;
325 case kSSEFloat64Div: 325 case kSSEFloat64Div:
326 __ divsd(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); 326 __ divsd(i.InputDoubleRegister(0), i.InputOperand(1));
327 break; 327 break;
328 case kSSEFloat64Mod: { 328 case kSSEFloat64Mod: {
329 // TODO(dcarney): alignment is wrong. 329 // TODO(dcarney): alignment is wrong.
330 __ sub(esp, Immediate(kDoubleSize)); 330 __ sub(esp, Immediate(kDoubleSize));
331 // Move values to st(0) and st(1). 331 // Move values to st(0) and st(1).
332 __ movsd(Operand(esp, 0), i.InputDoubleRegister(1)); 332 __ movsd(Operand(esp, 0), i.InputDoubleRegister(1));
333 __ fld_d(Operand(esp, 0)); 333 __ fld_d(Operand(esp, 0));
334 __ movsd(Operand(esp, 0), i.InputDoubleRegister(0)); 334 __ movsd(Operand(esp, 0), i.InputDoubleRegister(0));
335 __ fld_d(Operand(esp, 0)); 335 __ fld_d(Operand(esp, 0));
336 // Loop while fprem isn't done. 336 // Loop while fprem isn't done.
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 } 1034 }
1035 } 1035 }
1036 MarkLazyDeoptSite(); 1036 MarkLazyDeoptSite();
1037 } 1037 }
1038 1038
1039 #undef __ 1039 #undef __
1040 1040
1041 } // namespace compiler 1041 } // namespace compiler
1042 } // namespace internal 1042 } // namespace internal
1043 } // namespace v8 1043 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698