| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 3 // All Rights Reserved. | 3 // All Rights Reserved. |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
| 10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 icache_flush_mode); | 222 icache_flush_mode); |
| 223 if (write_barrier_mode == UPDATE_WRITE_BARRIER && | 223 if (write_barrier_mode == UPDATE_WRITE_BARRIER && |
| 224 host() != NULL && | 224 host() != NULL && |
| 225 target->IsHeapObject()) { | 225 target->IsHeapObject()) { |
| 226 host()->GetHeap()->incremental_marking()->RecordWrite( | 226 host()->GetHeap()->incremental_marking()->RecordWrite( |
| 227 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); | 227 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 | 231 |
| 232 Address RelocInfo::target_reference() { | 232 Address RelocInfo::target_external_reference() { |
| 233 DCHECK(rmode_ == EXTERNAL_REFERENCE); | 233 DCHECK(rmode_ == EXTERNAL_REFERENCE); |
| 234 return Assembler::target_address_at(pc_, host_); | 234 return Assembler::target_address_at(pc_, host_); |
| 235 } | 235 } |
| 236 | 236 |
| 237 | 237 |
| 238 Address RelocInfo::target_internal_reference() { |
| 239 DCHECK(rmode_ == INTERNAL_REFERENCE); |
| 240 return Memory::Address_at(pc_); |
| 241 } |
| 242 |
| 243 |
| 244 void RelocInfo::set_target_internal_reference(Address target) { |
| 245 DCHECK(rmode_ == INTERNAL_REFERENCE); |
| 246 Memory::Address_at(pc_) = target; |
| 247 } |
| 248 |
| 249 |
| 238 Address RelocInfo::target_runtime_entry(Assembler* origin) { | 250 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
| 239 DCHECK(IsRuntimeEntry(rmode_)); | 251 DCHECK(IsRuntimeEntry(rmode_)); |
| 240 return target_address(); | 252 return target_address(); |
| 241 } | 253 } |
| 242 | 254 |
| 243 | 255 |
| 244 void RelocInfo::set_target_runtime_entry(Address target, | 256 void RelocInfo::set_target_runtime_entry(Address target, |
| 245 WriteBarrierMode write_barrier_mode, | 257 WriteBarrierMode write_barrier_mode, |
| 246 ICacheFlushMode icache_flush_mode) { | 258 ICacheFlushMode icache_flush_mode) { |
| 247 DCHECK(IsRuntimeEntry(rmode_)); | 259 DCHECK(IsRuntimeEntry(rmode_)); |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 } | 458 } |
| 447 *reinterpret_cast<Instr*>(pc_) = x; | 459 *reinterpret_cast<Instr*>(pc_) = x; |
| 448 pc_ += kInstrSize; | 460 pc_ += kInstrSize; |
| 449 CheckTrampolinePoolQuick(); | 461 CheckTrampolinePoolQuick(); |
| 450 } | 462 } |
| 451 | 463 |
| 452 | 464 |
| 453 } } // namespace v8::internal | 465 } } // namespace v8::internal |
| 454 | 466 |
| 455 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 467 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |