| 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 void SmiUntag(Register reg) { | 694 void SmiUntag(Register reg) { |
| 695 sarl(reg, Immediate(kSmiTagSize)); | 695 sarl(reg, Immediate(kSmiTagSize)); |
| 696 } | 696 } |
| 697 | 697 |
| 698 intptr_t PreferredLoopAlignment() { return 16; } | 698 intptr_t PreferredLoopAlignment() { return 16; } |
| 699 void Align(intptr_t alignment, intptr_t offset); | 699 void Align(intptr_t alignment, intptr_t offset); |
| 700 void Bind(Label* label); | 700 void Bind(Label* label); |
| 701 | 701 |
| 702 intptr_t CodeSize() const { return buffer_.Size(); } | 702 intptr_t CodeSize() const { return buffer_.Size(); } |
| 703 intptr_t prologue_offset() const { return prologue_offset_; } | 703 intptr_t prologue_offset() const { return prologue_offset_; } |
| 704 |
| 705 // Count the fixups that produce a pointer offset, without processing |
| 706 // the fixups. |
| 707 intptr_t CountPointerOffsets() const { |
| 708 return buffer_.CountPointerOffsets(); |
| 709 } |
| 704 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 710 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
| 705 return buffer_.pointer_offsets(); | 711 return buffer_.pointer_offsets(); |
| 706 } | 712 } |
| 707 const GrowableObjectArray& object_pool() const { return object_pool_; } | 713 const GrowableObjectArray& object_pool() const { return object_pool_; } |
| 708 | 714 |
| 709 void FinalizeInstructions(const MemoryRegion& region) { | 715 void FinalizeInstructions(const MemoryRegion& region) { |
| 710 buffer_.FinalizeInstructions(region); | 716 buffer_.FinalizeInstructions(region); |
| 711 } | 717 } |
| 712 | 718 |
| 713 // Set up a Dart frame on entry with a frame pointer and PC information to | 719 // Set up a Dart frame on entry with a frame pointer and PC information to |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 } | 887 } |
| 882 | 888 |
| 883 | 889 |
| 884 inline void Assembler::EmitOperandSizeOverride() { | 890 inline void Assembler::EmitOperandSizeOverride() { |
| 885 EmitUint8(0x66); | 891 EmitUint8(0x66); |
| 886 } | 892 } |
| 887 | 893 |
| 888 } // namespace dart | 894 } // namespace dart |
| 889 | 895 |
| 890 #endif // VM_ASSEMBLER_IA32_H_ | 896 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |