| 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_X64_H_ | 5 #ifndef VM_ASSEMBLER_X64_H_ |
| 6 #define VM_ASSEMBLER_X64_H_ | 6 #define VM_ASSEMBLER_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_x64.h directly; use assembler.h instead. | 9 #error Do not include assembler_x64.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 void addss(XmmRegister dst, XmmRegister src); | 337 void addss(XmmRegister dst, XmmRegister src); |
| 338 void subss(XmmRegister dst, XmmRegister src); | 338 void subss(XmmRegister dst, XmmRegister src); |
| 339 void mulss(XmmRegister dst, XmmRegister src); | 339 void mulss(XmmRegister dst, XmmRegister src); |
| 340 void divss(XmmRegister dst, XmmRegister src); | 340 void divss(XmmRegister dst, XmmRegister src); |
| 341 | 341 |
| 342 void movsd(XmmRegister dst, const Address& src); | 342 void movsd(XmmRegister dst, const Address& src); |
| 343 void movsd(const Address& dst, XmmRegister src); | 343 void movsd(const Address& dst, XmmRegister src); |
| 344 void movsd(XmmRegister dst, XmmRegister src); | 344 void movsd(XmmRegister dst, XmmRegister src); |
| 345 | 345 |
| 346 void movaps(XmmRegister dst, XmmRegister src); |
| 347 |
| 346 void addsd(XmmRegister dst, XmmRegister src); | 348 void addsd(XmmRegister dst, XmmRegister src); |
| 347 void subsd(XmmRegister dst, XmmRegister src); | 349 void subsd(XmmRegister dst, XmmRegister src); |
| 348 void mulsd(XmmRegister dst, XmmRegister src); | 350 void mulsd(XmmRegister dst, XmmRegister src); |
| 349 void divsd(XmmRegister dst, XmmRegister src); | 351 void divsd(XmmRegister dst, XmmRegister src); |
| 350 | 352 |
| 351 void comisd(XmmRegister a, XmmRegister b); | 353 void comisd(XmmRegister a, XmmRegister b); |
| 352 void cvtsi2sd(XmmRegister a, Register b); | 354 void cvtsi2sd(XmmRegister a, Register b); |
| 353 | 355 |
| 354 void xchgl(Register dst, Register src); | 356 void xchgl(Register dst, Register src); |
| 355 void xchgq(Register dst, Register src); | 357 void xchgq(Register dst, Register src); |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 // Debugging and bringup support. | 611 // Debugging and bringup support. |
| 610 void Stop(const char* message); | 612 void Stop(const char* message); |
| 611 void Unimplemented(const char* message); | 613 void Unimplemented(const char* message); |
| 612 void Untested(const char* message); | 614 void Untested(const char* message); |
| 613 void Unreachable(const char* message); | 615 void Unreachable(const char* message); |
| 614 | 616 |
| 615 static void InitializeMemoryWithBreakpoints(uword data, int length); | 617 static void InitializeMemoryWithBreakpoints(uword data, int length); |
| 616 | 618 |
| 617 static const char* RegisterName(Register reg); | 619 static const char* RegisterName(Register reg); |
| 618 | 620 |
| 621 static const char* XmmRegisterName(XmmRegister reg); |
| 622 |
| 619 private: | 623 private: |
| 620 AssemblerBuffer buffer_; | 624 AssemblerBuffer buffer_; |
| 621 int prolog_offset_; | 625 int prolog_offset_; |
| 622 | 626 |
| 623 class CodeComment : public ZoneAllocated { | 627 class CodeComment : public ZoneAllocated { |
| 624 public: | 628 public: |
| 625 CodeComment(intptr_t pc_offset, const String& comment) | 629 CodeComment(intptr_t pc_offset, const String& comment) |
| 626 : pc_offset_(pc_offset), comment_(comment) { } | 630 : pc_offset_(pc_offset), comment_(comment) { } |
| 627 | 631 |
| 628 intptr_t pc_offset() const { return pc_offset_; } | 632 intptr_t pc_offset() const { return pc_offset_; } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 } | 704 } |
| 701 | 705 |
| 702 | 706 |
| 703 inline void Assembler::EmitOperandSizeOverride() { | 707 inline void Assembler::EmitOperandSizeOverride() { |
| 704 EmitUint8(0x66); | 708 EmitUint8(0x66); |
| 705 } | 709 } |
| 706 | 710 |
| 707 } // namespace dart | 711 } // namespace dart |
| 708 | 712 |
| 709 #endif // VM_ASSEMBLER_X64_H_ | 713 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |