| 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_ARM_H_ | 5 #ifndef VM_ASSEMBLER_ARM_H_ |
| 6 #define VM_ASSEMBLER_ARM_H_ | 6 #define VM_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_arm.h directly; use assembler.h instead. | 9 #error Do not include assembler_arm.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 comments_() { } | 306 comments_() { } |
| 307 ~Assembler() { } | 307 ~Assembler() { } |
| 308 | 308 |
| 309 void PopRegister(Register r) { Pop(r); } | 309 void PopRegister(Register r) { Pop(r); } |
| 310 | 310 |
| 311 void Bind(Label* label); | 311 void Bind(Label* label); |
| 312 | 312 |
| 313 // Misc. functionality | 313 // Misc. functionality |
| 314 intptr_t CodeSize() const { return buffer_.Size(); } | 314 intptr_t CodeSize() const { return buffer_.Size(); } |
| 315 intptr_t prologue_offset() const { return prologue_offset_; } | 315 intptr_t prologue_offset() const { return prologue_offset_; } |
| 316 |
| 317 // Count the fixups that produce a pointer offset, without processing |
| 318 // the fixups. On ARM there are no pointers in code. |
| 319 intptr_t CountPointerOffsets() const { return 0; } |
| 320 |
| 316 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 321 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
| 317 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. | 322 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. |
| 318 return buffer_.pointer_offsets(); | 323 return buffer_.pointer_offsets(); |
| 319 } | 324 } |
| 320 const GrowableObjectArray& object_pool() const { return object_pool_; } | 325 const GrowableObjectArray& object_pool() const { return object_pool_; } |
| 321 | 326 |
| 322 bool use_far_branches() const { | 327 bool use_far_branches() const { |
| 323 return FLAG_use_far_branches || use_far_branches_; | 328 return FLAG_use_far_branches || use_far_branches_; |
| 324 } | 329 } |
| 325 | 330 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 Register value, | 885 Register value, |
| 881 Label* no_update); | 886 Label* no_update); |
| 882 | 887 |
| 883 DISALLOW_ALLOCATION(); | 888 DISALLOW_ALLOCATION(); |
| 884 DISALLOW_COPY_AND_ASSIGN(Assembler); | 889 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 885 }; | 890 }; |
| 886 | 891 |
| 887 } // namespace dart | 892 } // namespace dart |
| 888 | 893 |
| 889 #endif // VM_ASSEMBLER_ARM_H_ | 894 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |