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

Side by Side Diff: runtime/vm/assembler_ia32.h

Issue 11573044: Inline Doubles truncate and round. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/assembler_ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_ASSEMBLER_IA32_H_ 5 #ifndef VM_ASSEMBLER_IA32_H_
6 #define VM_ASSEMBLER_IA32_H_ 6 #define VM_ASSEMBLER_IA32_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_ia32.h directly; use assembler.h instead. 9 #error Do not include assembler_ia32.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 void andpd(XmmRegister dst, XmmRegister src); 393 void andpd(XmmRegister dst, XmmRegister src);
394 394
395 void orpd(XmmRegister dst, XmmRegister src); 395 void orpd(XmmRegister dst, XmmRegister src);
396 396
397 void pextrd(Register dst, XmmRegister src, const Immediate& imm); 397 void pextrd(Register dst, XmmRegister src, const Immediate& imm);
398 void pmovsxdq(XmmRegister dst, XmmRegister src); 398 void pmovsxdq(XmmRegister dst, XmmRegister src);
399 void pcmpeqq(XmmRegister dst, XmmRegister src); 399 void pcmpeqq(XmmRegister dst, XmmRegister src);
400 400
401 void pxor(XmmRegister dst, XmmRegister src); 401 void pxor(XmmRegister dst, XmmRegister src);
402 402
403 enum RoundingMode {
404 kRoundToNearest = 0x0,
405 kRoundDown = 0x1,
406 kRoundUp = 0x2,
407 kRoundToZero = 0x3
408 };
409 void roundsd(XmmRegister dst, XmmRegister src, RoundingMode mode);
410
403 void flds(const Address& src); 411 void flds(const Address& src);
404 void fstps(const Address& dst); 412 void fstps(const Address& dst);
405 413
406 void fldl(const Address& src); 414 void fldl(const Address& src);
407 void fstpl(const Address& dst); 415 void fstpl(const Address& dst);
408 416
409 void fnstcw(const Address& dst); 417 void fnstcw(const Address& dst);
410 void fldcw(const Address& src); 418 void fldcw(const Address& src);
411 419
412 void fistpl(const Address& dst); 420 void fistpl(const Address& dst);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 const Object& value); 562 const Object& value);
555 563
556 void TraceStoreIntoObject(Register object, 564 void TraceStoreIntoObject(Register object,
557 const FieldAddress& dest, 565 const FieldAddress& dest,
558 Register value); 566 Register value);
559 567
560 void DoubleNegate(XmmRegister d); 568 void DoubleNegate(XmmRegister d);
561 void FloatNegate(XmmRegister f); 569 void FloatNegate(XmmRegister f);
562 570
563 void DoubleAbs(XmmRegister reg); 571 void DoubleAbs(XmmRegister reg);
572 void DoubleRound(XmmRegister dst, XmmRegister src, XmmRegister tmp);
564 573
565 void LockCmpxchgl(const Address& address, Register reg) { 574 void LockCmpxchgl(const Address& address, Register reg) {
566 lock(); 575 lock();
567 cmpxchgl(address, reg); 576 cmpxchgl(address, reg);
568 } 577 }
569 578
570 void EnterFrame(intptr_t frame_space); 579 void EnterFrame(intptr_t frame_space);
571 void LeaveFrame(); 580 void LeaveFrame();
572 void ReserveAlignedFrameSpace(intptr_t frame_space); 581 void ReserveAlignedFrameSpace(intptr_t frame_space);
573 582
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 } 709 }
701 710
702 711
703 inline void Assembler::EmitOperandSizeOverride() { 712 inline void Assembler::EmitOperandSizeOverride() {
704 EmitUint8(0x66); 713 EmitUint8(0x66);
705 } 714 }
706 715
707 } // namespace dart 716 } // namespace dart
708 717
709 #endif // VM_ASSEMBLER_IA32_H_ 718 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | runtime/vm/assembler_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698