OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 // Return the code target address of the patch debug break slot | 790 // Return the code target address of the patch debug break slot |
791 INLINE(static Address break_address_from_return_address(Address pc)); | 791 INLINE(static Address break_address_from_return_address(Address pc)); |
792 | 792 |
793 // This sets the branch destination (which is in the constant pool on ARM). | 793 // This sets the branch destination (which is in the constant pool on ARM). |
794 // This is for calls and branches within generated code. | 794 // This is for calls and branches within generated code. |
795 inline static void deserialization_set_special_target_at( | 795 inline static void deserialization_set_special_target_at( |
796 Address constant_pool_entry, Code* code, Address target); | 796 Address constant_pool_entry, Code* code, Address target); |
797 | 797 |
798 // This sets the internal reference at the pc. | 798 // This sets the internal reference at the pc. |
799 inline static void deserialization_set_target_internal_reference_at( | 799 inline static void deserialization_set_target_internal_reference_at( |
800 Address pc, Address target); | 800 Address pc, Address target, |
| 801 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE); |
801 | 802 |
802 // Here we are patching the address in the constant pool, not the actual call | 803 // Here we are patching the address in the constant pool, not the actual call |
803 // instruction. The address in the constant pool is the same size as a | 804 // instruction. The address in the constant pool is the same size as a |
804 // pointer. | 805 // pointer. |
805 static const int kSpecialTargetSize = kPointerSize; | 806 static const int kSpecialTargetSize = kPointerSize; |
806 | 807 |
807 // Size of an instruction. | 808 // Size of an instruction. |
808 static const int kInstrSize = sizeof(Instr); | 809 static const int kInstrSize = sizeof(Instr); |
809 | 810 |
810 // Distance between start of patched return sequence and the emitted address | 811 // Distance between start of patched return sequence and the emitted address |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 public: | 1689 public: |
1689 explicit EnsureSpace(Assembler* assembler) { | 1690 explicit EnsureSpace(Assembler* assembler) { |
1690 assembler->CheckBuffer(); | 1691 assembler->CheckBuffer(); |
1691 } | 1692 } |
1692 }; | 1693 }; |
1693 | 1694 |
1694 | 1695 |
1695 } } // namespace v8::internal | 1696 } } // namespace v8::internal |
1696 | 1697 |
1697 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1698 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |