| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 Address RelocInfo::debug_call_address() { | 290 Address RelocInfo::debug_call_address() { |
| 291 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); | 291 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
| 292 return Assembler::target_address_at(pc_, host_); | 292 return Assembler::target_address_at(pc_, host_); |
| 293 } | 293 } |
| 294 | 294 |
| 295 | 295 |
| 296 void RelocInfo::set_debug_call_address(Address target) { | 296 void RelocInfo::set_debug_call_address(Address target) { |
| 297 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); | 297 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
| 298 Assembler::set_target_address_at(isolate_, pc_, host_, target); | 298 Assembler::set_target_address_at(isolate_, pc_, host_, target); |
| 299 if (host() != NULL) { | 299 if (host() != NULL) { |
| 300 Object* target_code = Code::GetCodeFromTargetAddress(target); | 300 Code* target_code = Code::GetCodeFromTargetAddress(target); |
| 301 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 301 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this, |
| 302 host(), this, HeapObject::cast(target_code)); | 302 target_code); |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 | 305 |
| 306 | 306 |
| 307 void RelocInfo::WipeOut() { | 307 void RelocInfo::WipeOut() { |
| 308 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || | 308 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || |
| 309 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || | 309 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || |
| 310 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); | 310 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); |
| 311 if (IsInternalReference(rmode_)) { | 311 if (IsInternalReference(rmode_)) { |
| 312 // Jump table entry | 312 // Jump table entry |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 } | 680 } |
| 681 #endif | 681 #endif |
| 682 return; | 682 return; |
| 683 } | 683 } |
| 684 UNREACHABLE(); | 684 UNREACHABLE(); |
| 685 } | 685 } |
| 686 } // namespace internal | 686 } // namespace internal |
| 687 } // namespace v8 | 687 } // namespace v8 |
| 688 | 688 |
| 689 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ | 689 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ |
| OLD | NEW |