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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 void blx(Register rm, Condition cond = AL); | 511 void blx(Register rm, Condition cond = AL); |
512 | 512 |
513 // Move to ARM core register from Coprocessor. | 513 // Move to ARM core register from Coprocessor. |
514 void mrc(Register rd, int32_t coproc, int32_t opc1, | 514 void mrc(Register rd, int32_t coproc, int32_t opc1, |
515 int32_t crn, int32_t crm, int32_t opc2, Condition cond = AL); | 515 int32_t crn, int32_t crm, int32_t opc2, Condition cond = AL); |
516 | 516 |
517 // Macros. | 517 // Macros. |
518 // Branch to an entry address. Call sequence is never patched. | 518 // Branch to an entry address. Call sequence is never patched. |
519 void Branch(const ExternalLabel* label, Condition cond = AL); | 519 void Branch(const ExternalLabel* label, Condition cond = AL); |
520 | 520 |
| 521 // Branch to an entry address. Call sequence can be patched or even replaced. |
| 522 void BranchPatchable(const ExternalLabel* label); |
| 523 |
521 // Branch and link to an entry address. Call sequence is never patched. | 524 // Branch and link to an entry address. Call sequence is never patched. |
522 void BranchLink(const ExternalLabel* label); | 525 void BranchLink(const ExternalLabel* label); |
523 | 526 |
524 // Branch and link to an entry address. Call sequence can be patched. | 527 // Branch and link to an entry address. Call sequence can be patched. |
525 void BranchLinkPatchable(const ExternalLabel* label); | 528 void BranchLinkPatchable(const ExternalLabel* label); |
526 | 529 |
527 // Branch and link to entry after storing return address at ad. | 530 // Branch and link to entry after storing return address at ad. |
528 // Call sequence is never patched. | 531 // Call sequence is never patched. |
529 void BranchLinkStore(const ExternalLabel* label, Address ad); | 532 void BranchLinkStore(const ExternalLabel* label, Address ad); |
530 | 533 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 return *reg1 - *reg2; | 772 return *reg1 - *reg2; |
770 } | 773 } |
771 | 774 |
772 DISALLOW_ALLOCATION(); | 775 DISALLOW_ALLOCATION(); |
773 DISALLOW_COPY_AND_ASSIGN(Assembler); | 776 DISALLOW_COPY_AND_ASSIGN(Assembler); |
774 }; | 777 }; |
775 | 778 |
776 } // namespace dart | 779 } // namespace dart |
777 | 780 |
778 #endif // VM_ASSEMBLER_ARM_H_ | 781 #endif // VM_ASSEMBLER_ARM_H_ |
OLD | NEW |