| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 | 75 |
| 76 void RelocInfo::set_target_address(Address target) { | 76 void RelocInfo::set_target_address(Address target) { |
| 77 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); | 77 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); |
| 78 Assembler::set_target_address_at(pc_, target); | 78 Assembler::set_target_address_at(pc_, target); |
| 79 } | 79 } |
| 80 | 80 |
| 81 | 81 |
| 82 Object* RelocInfo::target_object() { | 82 Object* RelocInfo::target_object() { |
| 83 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 83 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 84 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); | 84 return Memory::Object_at(Assembler::target_address_address_at(pc_)); |
| 85 } |
| 86 |
| 87 |
| 88 Handle<Object> RelocInfo::target_object_handle(Assembler *origin) { |
| 89 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 90 return Memory::Object_Handle_at(Assembler::target_address_address_at(pc_)); |
| 85 } | 91 } |
| 86 | 92 |
| 87 | 93 |
| 88 Object** RelocInfo::target_object_address() { | 94 Object** RelocInfo::target_object_address() { |
| 89 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 95 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 90 return reinterpret_cast<Object**>(Assembler::target_address_address_at(pc_)); | 96 return reinterpret_cast<Object**>(Assembler::target_address_address_at(pc_)); |
| 91 } | 97 } |
| 92 | 98 |
| 93 | 99 |
| 94 void RelocInfo::set_target_object(Object* target) { | 100 void RelocInfo::set_target_object(Object* target) { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // CPU::FlushICache(pc, sizeof(target)); | 252 // CPU::FlushICache(pc, sizeof(target)); |
| 247 // However, on ARM, no instruction was actually patched by the assignment | 253 // However, on ARM, no instruction was actually patched by the assignment |
| 248 // above; the target address is not part of an instruction, it is patched in | 254 // above; the target address is not part of an instruction, it is patched in |
| 249 // the constant pool and is read via a data access; the instruction accessing | 255 // the constant pool and is read via a data access; the instruction accessing |
| 250 // this address in the constant pool remains unchanged. | 256 // this address in the constant pool remains unchanged. |
| 251 } | 257 } |
| 252 | 258 |
| 253 } } // namespace v8::internal | 259 } } // namespace v8::internal |
| 254 | 260 |
| 255 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 261 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |