OLD | NEW |
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 void subss(XmmRegister dst, const Address& src); | 323 void subss(XmmRegister dst, const Address& src); |
324 void mulss(XmmRegister dst, XmmRegister src); | 324 void mulss(XmmRegister dst, XmmRegister src); |
325 void mulss(XmmRegister dst, const Address& src); | 325 void mulss(XmmRegister dst, const Address& src); |
326 void divss(XmmRegister dst, XmmRegister src); | 326 void divss(XmmRegister dst, XmmRegister src); |
327 void divss(XmmRegister dst, const Address& src); | 327 void divss(XmmRegister dst, const Address& src); |
328 | 328 |
329 void movsd(XmmRegister dst, const Address& src); | 329 void movsd(XmmRegister dst, const Address& src); |
330 void movsd(const Address& dst, XmmRegister src); | 330 void movsd(const Address& dst, XmmRegister src); |
331 void movsd(XmmRegister dst, XmmRegister src); | 331 void movsd(XmmRegister dst, XmmRegister src); |
332 | 332 |
| 333 void movaps(XmmRegister dst, XmmRegister src); |
| 334 |
333 void addsd(XmmRegister dst, XmmRegister src); | 335 void addsd(XmmRegister dst, XmmRegister src); |
334 void addsd(XmmRegister dst, const Address& src); | 336 void addsd(XmmRegister dst, const Address& src); |
335 void subsd(XmmRegister dst, XmmRegister src); | 337 void subsd(XmmRegister dst, XmmRegister src); |
336 void subsd(XmmRegister dst, const Address& src); | 338 void subsd(XmmRegister dst, const Address& src); |
337 void mulsd(XmmRegister dst, XmmRegister src); | 339 void mulsd(XmmRegister dst, XmmRegister src); |
338 void mulsd(XmmRegister dst, const Address& src); | 340 void mulsd(XmmRegister dst, const Address& src); |
339 void divsd(XmmRegister dst, XmmRegister src); | 341 void divsd(XmmRegister dst, XmmRegister src); |
340 void divsd(XmmRegister dst, const Address& src); | 342 void divsd(XmmRegister dst, const Address& src); |
341 | 343 |
342 void cvtsi2ss(XmmRegister dst, Register src); | 344 void cvtsi2ss(XmmRegister dst, Register src); |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 void Unimplemented(const char* message); | 576 void Unimplemented(const char* message); |
575 void Untested(const char* message); | 577 void Untested(const char* message); |
576 void Unreachable(const char* message); | 578 void Unreachable(const char* message); |
577 | 579 |
578 static void InitializeMemoryWithBreakpoints(uword data, int length); | 580 static void InitializeMemoryWithBreakpoints(uword data, int length); |
579 | 581 |
580 void Comment(const char* format, ...); | 582 void Comment(const char* format, ...); |
581 const Code::Comments& GetCodeComments() const; | 583 const Code::Comments& GetCodeComments() const; |
582 | 584 |
583 static const char* RegisterName(Register reg); | 585 static const char* RegisterName(Register reg); |
| 586 static const char* XmmRegisterName(XmmRegister reg); |
584 | 587 |
585 private: | 588 private: |
586 AssemblerBuffer buffer_; | 589 AssemblerBuffer buffer_; |
587 int prolog_offset_; | 590 int prolog_offset_; |
588 | 591 |
589 class CodeComment : public ZoneAllocated { | 592 class CodeComment : public ZoneAllocated { |
590 public: | 593 public: |
591 CodeComment(intptr_t pc_offset, const String& comment) | 594 CodeComment(intptr_t pc_offset, const String& comment) |
592 : pc_offset_(pc_offset), comment_(comment) { } | 595 : pc_offset_(pc_offset), comment_(comment) { } |
593 | 596 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 } | 656 } |
654 | 657 |
655 | 658 |
656 inline void Assembler::EmitOperandSizeOverride() { | 659 inline void Assembler::EmitOperandSizeOverride() { |
657 EmitUint8(0x66); | 660 EmitUint8(0x66); |
658 } | 661 } |
659 | 662 |
660 } // namespace dart | 663 } // namespace dart |
661 | 664 |
662 #endif // VM_ASSEMBLER_IA32_H_ | 665 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |