OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64_H_ | 5 #ifndef VM_ASSEMBLER_ARM64_H_ |
6 #define VM_ASSEMBLER_ARM64_H_ | 6 #define VM_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
9 #error Do not include assembler_arm64.h directly; use assembler.h instead. | 9 #error Do not include assembler_arm64.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 intptr_t prologue_offset() const { return prologue_offset_; } | 468 intptr_t prologue_offset() const { return prologue_offset_; } |
469 | 469 |
470 // Count the fixups that produce a pointer offset, without processing | 470 // Count the fixups that produce a pointer offset, without processing |
471 // the fixups. On ARM64 there are no pointers in code. | 471 // the fixups. On ARM64 there are no pointers in code. |
472 intptr_t CountPointerOffsets() const { return 0; } | 472 intptr_t CountPointerOffsets() const { return 0; } |
473 | 473 |
474 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { | 474 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { |
475 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. | 475 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. |
476 return buffer_.pointer_offsets(); | 476 return buffer_.pointer_offsets(); |
477 } | 477 } |
478 const GrowableObjectArray& object_pool() const { return object_pool_.data(); } | 478 |
| 479 const GrowableObjectArray& object_pool_data() const { |
| 480 return object_pool_.data(); |
| 481 } |
| 482 |
| 483 ObjectPool& object_pool() { return object_pool_; } |
479 | 484 |
480 bool use_far_branches() const { | 485 bool use_far_branches() const { |
481 return FLAG_use_far_branches || use_far_branches_; | 486 return FLAG_use_far_branches || use_far_branches_; |
482 } | 487 } |
483 | 488 |
484 void set_use_far_branches(bool b) { | 489 void set_use_far_branches(bool b) { |
485 ASSERT(buffer_.Size() == 0); | 490 ASSERT(buffer_.Size() == 0); |
486 use_far_branches_ = b; | 491 use_far_branches_ = b; |
487 } | 492 } |
488 | 493 |
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 Register value, | 1924 Register value, |
1920 Label* no_update); | 1925 Label* no_update); |
1921 | 1926 |
1922 DISALLOW_ALLOCATION(); | 1927 DISALLOW_ALLOCATION(); |
1923 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1928 DISALLOW_COPY_AND_ASSIGN(Assembler); |
1924 }; | 1929 }; |
1925 | 1930 |
1926 } // namespace dart | 1931 } // namespace dart |
1927 | 1932 |
1928 #endif // VM_ASSEMBLER_ARM64_H_ | 1933 #endif // VM_ASSEMBLER_ARM64_H_ |
OLD | NEW |