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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 intptr_t prologue_offset() const { return prologue_offset_; } | 333 intptr_t prologue_offset() const { return prologue_offset_; } |
334 | 334 |
335 // Count the fixups that produce a pointer offset, without processing | 335 // Count the fixups that produce a pointer offset, without processing |
336 // the fixups. On ARM there are no pointers in code. | 336 // the fixups. On ARM there are no pointers in code. |
337 intptr_t CountPointerOffsets() const { return 0; } | 337 intptr_t CountPointerOffsets() const { return 0; } |
338 | 338 |
339 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 339 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
340 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. | 340 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. |
341 return buffer_.pointer_offsets(); | 341 return buffer_.pointer_offsets(); |
342 } | 342 } |
343 const GrowableObjectArray& object_pool() const { return object_pool_.data(); } | 343 |
| 344 const GrowableObjectArray& object_pool_data() const { |
| 345 return object_pool_.data(); |
| 346 } |
| 347 |
| 348 ObjectPool& object_pool() { return object_pool_; } |
344 | 349 |
345 bool use_far_branches() const { | 350 bool use_far_branches() const { |
346 return FLAG_use_far_branches || use_far_branches_; | 351 return FLAG_use_far_branches || use_far_branches_; |
347 } | 352 } |
348 | 353 |
349 #if defined(TESTING) || defined(DEBUG) | 354 #if defined(TESTING) || defined(DEBUG) |
350 // Used in unit tests and to ensure predictable verification code size in | 355 // Used in unit tests and to ensure predictable verification code size in |
351 // FlowGraphCompiler::EmitEdgeCounter. | 356 // FlowGraphCompiler::EmitEdgeCounter. |
352 void set_use_far_branches(bool b) { | 357 void set_use_far_branches(bool b) { |
353 use_far_branches_ = b; | 358 use_far_branches_ = b; |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 Register new_value, | 1123 Register new_value, |
1119 FieldContent old_content); | 1124 FieldContent old_content); |
1120 | 1125 |
1121 DISALLOW_ALLOCATION(); | 1126 DISALLOW_ALLOCATION(); |
1122 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1127 DISALLOW_COPY_AND_ASSIGN(Assembler); |
1123 }; | 1128 }; |
1124 | 1129 |
1125 } // namespace dart | 1130 } // namespace dart |
1126 | 1131 |
1127 #endif // VM_ASSEMBLER_ARM_H_ | 1132 #endif // VM_ASSEMBLER_ARM_H_ |
OLD | NEW |