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_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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 890 |
891 // Count the fixups that produce a pointer offset, without processing | 891 // Count the fixups that produce a pointer offset, without processing |
892 // the fixups. | 892 // the fixups. |
893 intptr_t CountPointerOffsets() const { | 893 intptr_t CountPointerOffsets() const { |
894 return buffer_.CountPointerOffsets(); | 894 return buffer_.CountPointerOffsets(); |
895 } | 895 } |
896 | 896 |
897 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 897 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
898 return buffer_.pointer_offsets(); | 898 return buffer_.pointer_offsets(); |
899 } | 899 } |
900 const GrowableObjectArray& object_pool() const { return object_pool_.data(); } | 900 const GrowableObjectArray& object_pool_data() const { |
| 901 return object_pool_.data(); |
| 902 } |
| 903 |
| 904 ObjectPool& object_pool() { return object_pool_; } |
901 | 905 |
902 void FinalizeInstructions(const MemoryRegion& region) { | 906 void FinalizeInstructions(const MemoryRegion& region) { |
903 buffer_.FinalizeInstructions(region); | 907 buffer_.FinalizeInstructions(region); |
904 } | 908 } |
905 | 909 |
906 // Index of constant pool entries pointing to debugger stubs. | 910 // Index of constant pool entries pointing to debugger stubs. |
907 static const int kICCallBreakpointCPIndex = 5; | 911 static const int kICCallBreakpointCPIndex = 5; |
908 static const int kClosureCallBreakpointCPIndex = 6; | 912 static const int kClosureCallBreakpointCPIndex = 6; |
909 static const int kRuntimeCallBreakpointCPIndex = 7; | 913 static const int kRuntimeCallBreakpointCPIndex = 7; |
910 | 914 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 } | 1195 } |
1192 | 1196 |
1193 | 1197 |
1194 inline void Assembler::EmitOperandSizeOverride() { | 1198 inline void Assembler::EmitOperandSizeOverride() { |
1195 EmitUint8(0x66); | 1199 EmitUint8(0x66); |
1196 } | 1200 } |
1197 | 1201 |
1198 } // namespace dart | 1202 } // namespace dart |
1199 | 1203 |
1200 #endif // VM_ASSEMBLER_X64_H_ | 1204 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |