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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 Assembler::set_target_address_at( | 147 Assembler::set_target_address_at( |
148 pc_, host_, reinterpret_cast<Address>(target), icache_flush_mode); | 148 pc_, host_, reinterpret_cast<Address>(target), icache_flush_mode); |
149 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && | 149 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && |
150 target->IsHeapObject()) { | 150 target->IsHeapObject()) { |
151 host()->GetHeap()->incremental_marking()->RecordWrite( | 151 host()->GetHeap()->incremental_marking()->RecordWrite( |
152 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); | 152 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); |
153 } | 153 } |
154 } | 154 } |
155 | 155 |
156 | 156 |
157 Address RelocInfo::target_reference() { | 157 Address RelocInfo::target_external_reference() { |
158 DCHECK(rmode_ == EXTERNAL_REFERENCE); | 158 DCHECK(rmode_ == EXTERNAL_REFERENCE); |
159 return Assembler::target_address_at(pc_, host_); | 159 return Assembler::target_address_at(pc_, host_); |
160 } | 160 } |
161 | 161 |
162 | 162 |
| 163 Address RelocInfo::target_internal_reference() { |
| 164 DCHECK(rmode_ == INTERNAL_REFERENCE); |
| 165 return Memory::Address_at(pc_); |
| 166 } |
| 167 |
| 168 |
| 169 void RelocInfo::set_target_internal_reference(Address target) { |
| 170 DCHECK(rmode_ == INTERNAL_REFERENCE); |
| 171 Memory::Address_at(pc_) = target; |
| 172 } |
| 173 |
| 174 |
163 Address RelocInfo::target_runtime_entry(Assembler* origin) { | 175 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
164 DCHECK(IsRuntimeEntry(rmode_)); | 176 DCHECK(IsRuntimeEntry(rmode_)); |
165 return target_address(); | 177 return target_address(); |
166 } | 178 } |
167 | 179 |
168 | 180 |
169 void RelocInfo::set_target_runtime_entry(Address target, | 181 void RelocInfo::set_target_runtime_entry(Address target, |
170 WriteBarrierMode write_barrier_mode, | 182 WriteBarrierMode write_barrier_mode, |
171 ICacheFlushMode icache_flush_mode) { | 183 ICacheFlushMode icache_flush_mode) { |
172 DCHECK(IsRuntimeEntry(rmode_)); | 184 DCHECK(IsRuntimeEntry(rmode_)); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 } | 511 } |
500 #endif | 512 #endif |
501 return; | 513 return; |
502 } | 514 } |
503 UNREACHABLE(); | 515 UNREACHABLE(); |
504 } | 516 } |
505 } | 517 } |
506 } // namespace v8::internal | 518 } // namespace v8::internal |
507 | 519 |
508 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ | 520 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ |
OLD | NEW |