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 | |
194 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { | 181 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { |
195 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); | 182 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
196 Address address = Memory::Address_at(pc_); | 183 Address address = Memory::Address_at(pc_); |
197 return Handle<JSGlobalPropertyCell>( | 184 return Handle<JSGlobalPropertyCell>( |
198 reinterpret_cast<JSGlobalPropertyCell**>(address)); | 185 reinterpret_cast<JSGlobalPropertyCell**>(address)); |
199 } | 186 } |
200 | 187 |
201 | 188 |
202 JSGlobalPropertyCell* RelocInfo::target_cell() { | 189 JSGlobalPropertyCell* RelocInfo::target_cell() { |
203 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); | 190 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 | 540 |
554 | 541 |
555 void Assembler::set_target_address_at(Address pc, Address target) { | 542 void Assembler::set_target_address_at(Address pc, Address target) { |
556 set_target_pointer_at(pc, target); | 543 set_target_pointer_at(pc, target); |
557 } | 544 } |
558 | 545 |
559 | 546 |
560 } } // namespace v8::internal | 547 } } // namespace v8::internal |
561 | 548 |
562 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 549 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
OLD | NEW |