| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 return Assembler::target_address_at(pc_, host_); | 328 return Assembler::target_address_at(pc_, host_); |
| 329 } | 329 } |
| 330 | 330 |
| 331 | 331 |
| 332 void RelocInfo::set_debug_call_address(Address target) { | 332 void RelocInfo::set_debug_call_address(Address target) { |
| 333 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); | 333 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
| 334 // The pc_ offset of 0 assumes patched debug break slot or return | 334 // The pc_ offset of 0 assumes patched debug break slot or return |
| 335 // sequence. | 335 // sequence. |
| 336 Assembler::set_target_address_at(isolate_, pc_, host_, target); | 336 Assembler::set_target_address_at(isolate_, pc_, host_, target); |
| 337 if (host() != NULL) { | 337 if (host() != NULL) { |
| 338 Object* target_code = Code::GetCodeFromTargetAddress(target); | 338 Code* target_code = Code::GetCodeFromTargetAddress(target); |
| 339 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 339 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this, |
| 340 host(), this, HeapObject::cast(target_code)); | 340 target_code); |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 | 343 |
| 344 | 344 |
| 345 void RelocInfo::WipeOut() { | 345 void RelocInfo::WipeOut() { |
| 346 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || | 346 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || |
| 347 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || | 347 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || |
| 348 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); | 348 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); |
| 349 if (IsInternalReference(rmode_)) { | 349 if (IsInternalReference(rmode_)) { |
| 350 Memory::Address_at(pc_) = NULL; | 350 Memory::Address_at(pc_) = NULL; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 CheckBuffer(); | 480 CheckBuffer(); |
| 481 } | 481 } |
| 482 EmitHelper(x, is_compact_branch); | 482 EmitHelper(x, is_compact_branch); |
| 483 } | 483 } |
| 484 | 484 |
| 485 | 485 |
| 486 } // namespace internal | 486 } // namespace internal |
| 487 } // namespace v8 | 487 } // namespace v8 |
| 488 | 488 |
| 489 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 489 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |