| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 WriteBarrierMode write_barrier_mode, | 170 WriteBarrierMode write_barrier_mode, |
| 171 ICacheFlushMode icache_flush_mode) { | 171 ICacheFlushMode icache_flush_mode) { |
| 172 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 172 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 173 Assembler::set_target_address_at(isolate_, pc_, host_, | 173 Assembler::set_target_address_at(isolate_, pc_, host_, |
| 174 reinterpret_cast<Address>(target), | 174 reinterpret_cast<Address>(target), |
| 175 icache_flush_mode); | 175 icache_flush_mode); |
| 176 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && | 176 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && |
| 177 target->IsHeapObject()) { | 177 target->IsHeapObject()) { |
| 178 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 178 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( |
| 179 host(), this, HeapObject::cast(target)); | 179 host(), this, HeapObject::cast(target)); |
| 180 host()->GetHeap()->RecordWriteIntoCode(host(), this, target); |
| 180 } | 181 } |
| 181 } | 182 } |
| 182 | 183 |
| 183 Address RelocInfo::target_external_reference() { | 184 Address RelocInfo::target_external_reference() { |
| 184 DCHECK(rmode_ == EXTERNAL_REFERENCE); | 185 DCHECK(rmode_ == EXTERNAL_REFERENCE); |
| 185 return Assembler::target_address_at(pc_, host_); | 186 return Assembler::target_address_at(pc_, host_); |
| 186 } | 187 } |
| 187 | 188 |
| 188 Address RelocInfo::target_runtime_entry(Assembler* origin) { | 189 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
| 189 DCHECK(IsRuntimeEntry(rmode_)); | 190 DCHECK(IsRuntimeEntry(rmode_)); |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 } | 568 } |
| 568 #endif | 569 #endif |
| 569 } | 570 } |
| 570 if (!patched) UNREACHABLE(); | 571 if (!patched) UNREACHABLE(); |
| 571 } | 572 } |
| 572 | 573 |
| 573 } // namespace internal | 574 } // namespace internal |
| 574 } // namespace v8 | 575 } // namespace v8 |
| 575 | 576 |
| 576 #endif // V8_S390_ASSEMBLER_S390_INL_H_ | 577 #endif // V8_S390_ASSEMBLER_S390_INL_H_ |
| OLD | NEW |