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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 void label_at_put(Label* L, int at_offset); | 430 void label_at_put(Label* L, int at_offset); |
431 | 431 |
432 // Return the address in the constant pool of the code target address used by | 432 // Return the address in the constant pool of the code target address used by |
433 // the branch/call instruction at pc. | 433 // the branch/call instruction at pc. |
434 INLINE(static Address target_address_address_at(Address pc)); | 434 INLINE(static Address target_address_address_at(Address pc)); |
435 | 435 |
436 // Read/Modify the code target address in the branch/call instruction at pc. | 436 // Read/Modify the code target address in the branch/call instruction at pc. |
437 INLINE(static Address target_address_at(Address pc)); | 437 INLINE(static Address target_address_at(Address pc)); |
438 INLINE(static void set_target_address_at(Address pc, Address target)); | 438 INLINE(static void set_target_address_at(Address pc, Address target)); |
439 | 439 |
440 // Read/Modify the code target address in a constant pool entry. | |
Mads Ager (chromium)
2009/10/28 11:55:16
Delete "Read/" as there is no read accessor.
| |
441 inline static void set_target_at(Address constant_pool_entry, Address target); | |
442 | |
440 // Here we are patching the address in the constant pool, not the actual call | 443 // Here we are patching the address in the constant pool, not the actual call |
441 // instruction. The address in the constant pool is the same size as a | 444 // instruction. The address in the constant pool is the same size as a |
442 // pointer. | 445 // pointer. |
443 static const int kCallTargetSize = kPointerSize; | 446 static const int kCallTargetSize = kPointerSize; |
444 | 447 |
445 // Size of an instruction. | 448 // Size of an instruction. |
446 static const int kInstrSize = sizeof(Instr); | 449 static const int kInstrSize = sizeof(Instr); |
447 | 450 |
448 // Distance between the instruction referring to the address of the call | 451 // Distance between the instruction referring to the address of the call |
449 // target (ldr pc, [target addr in const pool]) and the return address | 452 // target (ldr pc, [target addr in const pool]) and the return address |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
814 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); | 817 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); |
815 | 818 |
816 friend class RegExpMacroAssemblerARM; | 819 friend class RegExpMacroAssemblerARM; |
817 friend class RelocInfo; | 820 friend class RelocInfo; |
818 friend class CodePatcher; | 821 friend class CodePatcher; |
819 }; | 822 }; |
820 | 823 |
821 } } // namespace v8::internal | 824 } } // namespace v8::internal |
822 | 825 |
823 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 826 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |