| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 Assembler::set_target_address_at(pc_, reinterpret_cast<Address>(target)); | 206 Assembler::set_target_address_at(pc_, reinterpret_cast<Address>(target)); |
| 207 if (mode == UPDATE_WRITE_BARRIER && | 207 if (mode == UPDATE_WRITE_BARRIER && |
| 208 host() != NULL && | 208 host() != NULL && |
| 209 target->IsHeapObject()) { | 209 target->IsHeapObject()) { |
| 210 host()->GetHeap()->incremental_marking()->RecordWrite( | 210 host()->GetHeap()->incremental_marking()->RecordWrite( |
| 211 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); | 211 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); |
| 212 } | 212 } |
| 213 } | 213 } |
| 214 | 214 |
| 215 | 215 |
| 216 Address* RelocInfo::target_reference_address() { | 216 Address RelocInfo::target_reference() { |
| 217 ASSERT(rmode_ == EXTERNAL_REFERENCE); | 217 ASSERT(rmode_ == EXTERNAL_REFERENCE); |
| 218 reconstructed_adr_ptr_ = Assembler::target_address_at(pc_); | 218 return Assembler::target_address_at(pc_); |
| 219 return &reconstructed_adr_ptr_; | |
| 220 } | 219 } |
| 221 | 220 |
| 222 | 221 |
| 223 Address RelocInfo::target_runtime_entry(Assembler* origin) { | 222 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
| 224 ASSERT(IsRuntimeEntry(rmode_)); | 223 ASSERT(IsRuntimeEntry(rmode_)); |
| 225 return target_address(); | 224 return target_address(); |
| 226 } | 225 } |
| 227 | 226 |
| 228 | 227 |
| 229 void RelocInfo::set_target_runtime_entry(Address target, | 228 void RelocInfo::set_target_runtime_entry(Address target, |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 } | 421 } |
| 423 *reinterpret_cast<Instr*>(pc_) = x; | 422 *reinterpret_cast<Instr*>(pc_) = x; |
| 424 pc_ += kInstrSize; | 423 pc_ += kInstrSize; |
| 425 CheckTrampolinePoolQuick(); | 424 CheckTrampolinePoolQuick(); |
| 426 } | 425 } |
| 427 | 426 |
| 428 | 427 |
| 429 } } // namespace v8::internal | 428 } } // namespace v8::internal |
| 430 | 429 |
| 431 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 430 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |