| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 | 172 |
| 173 | 173 |
| 174 Address* RelocInfo::target_reference_address() { | 174 Address* RelocInfo::target_reference_address() { |
| 175 ASSERT(rmode_ == EXTERNAL_REFERENCE); | 175 ASSERT(rmode_ == EXTERNAL_REFERENCE); |
| 176 reconstructed_adr_ptr_ = Assembler::target_address_at(pc_); | 176 reconstructed_adr_ptr_ = Assembler::target_address_at(pc_); |
| 177 return &reconstructed_adr_ptr_; | 177 return &reconstructed_adr_ptr_; |
| 178 } | 178 } |
| 179 | 179 |
| 180 | 180 |
| 181 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
| 182 ASSERT(IsRuntimeEntry(rmode_)); |
| 183 return target_address(); |
| 184 } |
| 185 |
| 186 |
| 187 void RelocInfo::set_target_runtime_entry(Address target, |
| 188 WriteBarrierMode mode) { |
| 189 ASSERT(IsRuntimeEntry(rmode_)); |
| 190 if (target_address() != target) set_target_address(target, mode); |
| 191 } |
| 192 |
| 193 |
| 181 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { | 194 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { |
| 182 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); | 195 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
| 183 Address address = Memory::Address_at(pc_); | 196 Address address = Memory::Address_at(pc_); |
| 184 return Handle<JSGlobalPropertyCell>( | 197 return Handle<JSGlobalPropertyCell>( |
| 185 reinterpret_cast<JSGlobalPropertyCell**>(address)); | 198 reinterpret_cast<JSGlobalPropertyCell**>(address)); |
| 186 } | 199 } |
| 187 | 200 |
| 188 | 201 |
| 189 JSGlobalPropertyCell* RelocInfo::target_cell() { | 202 JSGlobalPropertyCell* RelocInfo::target_cell() { |
| 190 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); | 203 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 553 |
| 541 | 554 |
| 542 void Assembler::set_target_address_at(Address pc, Address target) { | 555 void Assembler::set_target_address_at(Address pc, Address target) { |
| 543 set_target_pointer_at(pc, target); | 556 set_target_pointer_at(pc, target); |
| 544 } | 557 } |
| 545 | 558 |
| 546 | 559 |
| 547 } } // namespace v8::internal | 560 } } // namespace v8::internal |
| 548 | 561 |
| 549 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 562 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |