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

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

Issue 639283003: [turbofan] IA: TruncateFloat64ToFloat32 supports mem operand (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ia32 port 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 __ add(esp, Immediate(kDoubleSize)); 347 __ add(esp, Immediate(kDoubleSize));
348 break; 348 break;
349 } 349 }
350 case kSSEFloat64Sqrt: 350 case kSSEFloat64Sqrt:
351 __ sqrtsd(i.OutputDoubleRegister(), i.InputOperand(0)); 351 __ sqrtsd(i.OutputDoubleRegister(), i.InputOperand(0));
352 break; 352 break;
353 case kSSECvtss2sd: 353 case kSSECvtss2sd:
354 __ cvtss2sd(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 354 __ cvtss2sd(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
355 break; 355 break;
356 case kSSECvtsd2ss: 356 case kSSECvtsd2ss:
357 __ cvtsd2ss(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 357 __ cvtsd2ss(i.OutputDoubleRegister(), i.InputOperand(0));
358 break; 358 break;
359 case kSSEFloat64ToInt32: 359 case kSSEFloat64ToInt32:
360 __ cvttsd2si(i.OutputRegister(), i.InputOperand(0)); 360 __ cvttsd2si(i.OutputRegister(), i.InputOperand(0));
361 break; 361 break;
362 case kSSEFloat64ToUint32: { 362 case kSSEFloat64ToUint32: {
363 XMMRegister scratch = xmm0; 363 XMMRegister scratch = xmm0;
364 __ Move(scratch, -2147483648.0); 364 __ Move(scratch, -2147483648.0);
365 __ addsd(scratch, i.InputOperand(0)); 365 __ addsd(scratch, i.InputOperand(0));
366 __ cvttsd2si(i.OutputRegister(), scratch); 366 __ cvttsd2si(i.OutputRegister(), scratch);
367 __ add(i.OutputRegister(), Immediate(0x80000000)); 367 __ add(i.OutputRegister(), Immediate(0x80000000));
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1032 }
1033 } 1033 }
1034 MarkLazyDeoptSite(); 1034 MarkLazyDeoptSite();
1035 } 1035 }
1036 1036
1037 #undef __ 1037 #undef __
1038 1038
1039 } // namespace compiler 1039 } // namespace compiler
1040 } // namespace internal 1040 } // namespace internal
1041 } // namespace v8 1041 } // 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