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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 Address RelocInfo::debug_call_address() { | 268 Address RelocInfo::debug_call_address() { |
269 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); | 269 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
270 return Assembler::target_address_at(pc_, host_); | 270 return Assembler::target_address_at(pc_, host_); |
271 } | 271 } |
272 | 272 |
273 void RelocInfo::set_debug_call_address(Address target) { | 273 void RelocInfo::set_debug_call_address(Address target) { |
274 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); | 274 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
275 Assembler::set_target_address_at(isolate_, pc_, host_, target); | 275 Assembler::set_target_address_at(isolate_, pc_, host_, target); |
276 if (host() != NULL) { | 276 if (host() != NULL) { |
277 Object* target_code = Code::GetCodeFromTargetAddress(target); | 277 Code* target_code = Code::GetCodeFromTargetAddress(target); |
278 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 278 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this, |
279 host(), this, HeapObject::cast(target_code)); | 279 target_code); |
280 } | 280 } |
281 } | 281 } |
282 | 282 |
283 void RelocInfo::WipeOut() { | 283 void RelocInfo::WipeOut() { |
284 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || | 284 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || |
285 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || | 285 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || |
286 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); | 286 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); |
287 if (IsInternalReference(rmode_)) { | 287 if (IsInternalReference(rmode_)) { |
288 // Jump table entry | 288 // Jump table entry |
289 Memory::Address_at(pc_) = NULL; | 289 Memory::Address_at(pc_) = NULL; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 } | 570 } |
571 #endif | 571 #endif |
572 } | 572 } |
573 if (!patched) UNREACHABLE(); | 573 if (!patched) UNREACHABLE(); |
574 } | 574 } |
575 | 575 |
576 } // namespace internal | 576 } // namespace internal |
577 } // namespace v8 | 577 } // namespace v8 |
578 | 578 |
579 #endif // V8_S390_ASSEMBLER_S390_INL_H_ | 579 #endif // V8_S390_ASSEMBLER_S390_INL_H_ |
OLD | NEW |