| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 addl(reg, reg); | 721 addl(reg, reg); |
| 722 } | 722 } |
| 723 | 723 |
| 724 void SmiUntag(Register reg) { | 724 void SmiUntag(Register reg) { |
| 725 sarl(reg, Immediate(kSmiTagSize)); | 725 sarl(reg, Immediate(kSmiTagSize)); |
| 726 } | 726 } |
| 727 | 727 |
| 728 intptr_t PreferredLoopAlignment() { return 16; } | 728 intptr_t PreferredLoopAlignment() { return 16; } |
| 729 void Align(intptr_t alignment, intptr_t offset); | 729 void Align(intptr_t alignment, intptr_t offset); |
| 730 void Bind(Label* label); | 730 void Bind(Label* label); |
| 731 void Jump(Label* label) { jmp(label); } |
| 731 | 732 |
| 732 intptr_t CodeSize() const { return buffer_.Size(); } | 733 intptr_t CodeSize() const { return buffer_.Size(); } |
| 733 intptr_t prologue_offset() const { return prologue_offset_; } | 734 intptr_t prologue_offset() const { return prologue_offset_; } |
| 734 | 735 |
| 735 // Count the fixups that produce a pointer offset, without processing | 736 // Count the fixups that produce a pointer offset, without processing |
| 736 // the fixups. | 737 // the fixups. |
| 737 intptr_t CountPointerOffsets() const { | 738 intptr_t CountPointerOffsets() const { |
| 738 return buffer_.CountPointerOffsets(); | 739 return buffer_.CountPointerOffsets(); |
| 739 } | 740 } |
| 740 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 741 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 } | 946 } |
| 946 | 947 |
| 947 | 948 |
| 948 inline void Assembler::EmitOperandSizeOverride() { | 949 inline void Assembler::EmitOperandSizeOverride() { |
| 949 EmitUint8(0x66); | 950 EmitUint8(0x66); |
| 950 } | 951 } |
| 951 | 952 |
| 952 } // namespace dart | 953 } // namespace dart |
| 953 | 954 |
| 954 #endif // VM_ASSEMBLER_IA32_H_ | 955 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |