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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 } | 589 } |
590 | 590 |
591 void SmiUntag(Register reg) { | 591 void SmiUntag(Register reg) { |
592 sarq(reg, Immediate(kSmiTagSize)); | 592 sarq(reg, Immediate(kSmiTagSize)); |
593 } | 593 } |
594 | 594 |
595 int PreferredLoopAlignment() { return 16; } | 595 int PreferredLoopAlignment() { return 16; } |
596 void Align(int alignment, int offset); | 596 void Align(int alignment, int offset); |
597 void Bind(Label* label); | 597 void Bind(Label* label); |
598 | 598 |
599 void Comment(const char* format, ...); | 599 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); |
600 const Code::Comments& GetCodeComments() const; | 600 const Code::Comments& GetCodeComments() const; |
601 | 601 |
602 int CodeSize() const { return buffer_.Size(); } | 602 int CodeSize() const { return buffer_.Size(); } |
603 int prolog_offset() const { return prolog_offset_; } | 603 int prolog_offset() const { return prolog_offset_; } |
604 const ZoneGrowableArray<int>& GetPointerOffsets() const { | 604 const ZoneGrowableArray<int>& GetPointerOffsets() const { |
605 return buffer_.pointer_offsets(); | 605 return buffer_.pointer_offsets(); |
606 } | 606 } |
607 | 607 |
608 void FinalizeInstructions(const MemoryRegion& region) { | 608 void FinalizeInstructions(const MemoryRegion& region) { |
609 buffer_.FinalizeInstructions(region); | 609 buffer_.FinalizeInstructions(region); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 } | 705 } |
706 | 706 |
707 | 707 |
708 inline void Assembler::EmitOperandSizeOverride() { | 708 inline void Assembler::EmitOperandSizeOverride() { |
709 EmitUint8(0x66); | 709 EmitUint8(0x66); |
710 } | 710 } |
711 | 711 |
712 } // namespace dart | 712 } // namespace dart |
713 | 713 |
714 #endif // VM_ASSEMBLER_X64_H_ | 714 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |