Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: src/s390/assembler-s390-inl.h

Issue 2250913002: [v8] Move all the RelocInfo::set_target_address function into one place. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Forget to modify assembler-arm64-inl.h Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ppc/assembler-ppc-inl.h ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc-inl.h ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698