| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 return reinterpret_cast<Address>(pc_); | 111 return reinterpret_cast<Address>(pc_); |
| 112 } | 112 } |
| 113 | 113 |
| 114 Address RelocInfo::constant_pool_entry_address() { | 114 Address RelocInfo::constant_pool_entry_address() { |
| 115 UNREACHABLE(); | 115 UNREACHABLE(); |
| 116 return NULL; | 116 return NULL; |
| 117 } | 117 } |
| 118 | 118 |
| 119 int RelocInfo::target_address_size() { return Assembler::kSpecialTargetSize; } | 119 int RelocInfo::target_address_size() { return Assembler::kSpecialTargetSize; } |
| 120 | 120 |
| 121 void RelocInfo::set_target_address(Address target, | |
| 122 WriteBarrierMode write_barrier_mode, | |
| 123 ICacheFlushMode icache_flush_mode) { | |
| 124 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); | |
| 125 Assembler::set_target_address_at(isolate_, pc_, host_, target, | |
| 126 icache_flush_mode); | |
| 127 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && | |
| 128 IsCodeTarget(rmode_)) { | |
| 129 Object* target_code = Code::GetCodeFromTargetAddress(target); | |
| 130 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | |
| 131 host(), this, HeapObject::cast(target_code)); | |
| 132 } | |
| 133 } | |
| 134 | |
| 135 Address Assembler::target_address_from_return_address(Address pc) { | 121 Address Assembler::target_address_from_return_address(Address pc) { |
| 136 // Returns the address of the call target from the return address that will | 122 // Returns the address of the call target from the return address that will |
| 137 // be returned to after a call. | 123 // be returned to after a call. |
| 138 // Sequence is: | 124 // Sequence is: |
| 139 // BRASL r14, RI | 125 // BRASL r14, RI |
| 140 return pc - kCallTargetAddressOffset; | 126 return pc - kCallTargetAddressOffset; |
| 141 } | 127 } |
| 142 | 128 |
| 143 Address Assembler::return_address_from_call_start(Address pc) { | 129 Address Assembler::return_address_from_call_start(Address pc) { |
| 144 // Sequence is: | 130 // Sequence is: |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 } | 556 } |
| 571 #endif | 557 #endif |
| 572 } | 558 } |
| 573 if (!patched) UNREACHABLE(); | 559 if (!patched) UNREACHABLE(); |
| 574 } | 560 } |
| 575 | 561 |
| 576 } // namespace internal | 562 } // namespace internal |
| 577 } // namespace v8 | 563 } // namespace v8 |
| 578 | 564 |
| 579 #endif // V8_S390_ASSEMBLER_S390_INL_H_ | 565 #endif // V8_S390_ASSEMBLER_S390_INL_H_ |
| OLD | NEW |