PPC/s390: Remove unused RelocInfo::Mode::RUNTIME_ENTRY
Port 3f99852796
R=sroettger@google.com, joransiu@ca.ibm.com, junyan@redhat.com, midawson@redhat.com
BUG=
LOG=N
Change-Id: I4a92ab1ba942f9303c4f083d9f0b846e924c25f8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3907868
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Reviewed-by: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#83342}
This commit is contained in:
parent
f4ee78f8b8
commit
e855b48b64
@ -80,7 +80,7 @@ Address RelocInfo::target_internal_reference_address() {
|
||||
}
|
||||
|
||||
Address RelocInfo::target_address() {
|
||||
DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) || IsWasmCall(rmode_));
|
||||
DCHECK(IsCodeTarget(rmode_) || IsWasmCall(rmode_));
|
||||
return Assembler::target_address_at(pc_, constant_pool_);
|
||||
}
|
||||
|
||||
@ -216,19 +216,6 @@ void RelocInfo::set_target_external_reference(
|
||||
|
||||
Builtin RelocInfo::target_builtin_at(Assembler* origin) { UNREACHABLE(); }
|
||||
|
||||
Address RelocInfo::target_runtime_entry(Assembler* origin) {
|
||||
DCHECK(IsRuntimeEntry(rmode_));
|
||||
return target_address();
|
||||
}
|
||||
|
||||
void RelocInfo::set_target_runtime_entry(Address target,
|
||||
WriteBarrierMode write_barrier_mode,
|
||||
ICacheFlushMode icache_flush_mode) {
|
||||
DCHECK(IsRuntimeEntry(rmode_));
|
||||
if (target_address() != target)
|
||||
set_target_address(target, write_barrier_mode, icache_flush_mode);
|
||||
}
|
||||
|
||||
Address RelocInfo::target_off_heap_target() {
|
||||
DCHECK(IsOffHeapTarget(rmode_));
|
||||
return Assembler::target_address_at(pc_, constant_pool_);
|
||||
@ -236,9 +223,8 @@ Address RelocInfo::target_off_heap_target() {
|
||||
|
||||
void RelocInfo::WipeOut() {
|
||||
DCHECK(IsEmbeddedObjectMode(rmode_) || IsCodeTarget(rmode_) ||
|
||||
IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) ||
|
||||
IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_) ||
|
||||
IsOffHeapTarget(rmode_));
|
||||
IsExternalReference(rmode_) || IsInternalReference(rmode_) ||
|
||||
IsInternalReferenceEncoded(rmode_) || IsOffHeapTarget(rmode_));
|
||||
if (IsInternalReference(rmode_)) {
|
||||
// Jump table entry
|
||||
Memory<Address>(pc_) = kNullAddress;
|
||||
|
@ -91,7 +91,7 @@ Address RelocInfo::target_internal_reference_address() {
|
||||
|
||||
Address RelocInfo::target_address() {
|
||||
DCHECK(IsRelativeCodeTarget(rmode_) || IsCodeTarget(rmode_) ||
|
||||
IsRuntimeEntry(rmode_) || IsWasmCall(rmode_));
|
||||
IsWasmCall(rmode_));
|
||||
return Assembler::target_address_at(pc_, constant_pool_);
|
||||
}
|
||||
|
||||
@ -210,29 +210,15 @@ void RelocInfo::set_target_external_reference(
|
||||
|
||||
Builtin RelocInfo::target_builtin_at(Assembler* origin) { UNREACHABLE(); }
|
||||
|
||||
Address RelocInfo::target_runtime_entry(Assembler* origin) {
|
||||
DCHECK(IsRuntimeEntry(rmode_));
|
||||
return target_address();
|
||||
}
|
||||
|
||||
Address RelocInfo::target_off_heap_target() {
|
||||
DCHECK(IsOffHeapTarget(rmode_));
|
||||
return Assembler::target_address_at(pc_, constant_pool_);
|
||||
}
|
||||
|
||||
void RelocInfo::set_target_runtime_entry(Address target,
|
||||
WriteBarrierMode write_barrier_mode,
|
||||
ICacheFlushMode icache_flush_mode) {
|
||||
DCHECK(IsRuntimeEntry(rmode_));
|
||||
if (target_address() != target)
|
||||
set_target_address(target, write_barrier_mode, icache_flush_mode);
|
||||
}
|
||||
|
||||
void RelocInfo::WipeOut() {
|
||||
DCHECK(IsEmbeddedObjectMode(rmode_) || IsCodeTarget(rmode_) ||
|
||||
IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) ||
|
||||
IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_) ||
|
||||
IsOffHeapTarget(rmode_));
|
||||
IsExternalReference(rmode_) || IsInternalReference(rmode_) ||
|
||||
IsInternalReferenceEncoded(rmode_) || IsOffHeapTarget(rmode_));
|
||||
if (IsInternalReference(rmode_)) {
|
||||
// Jump table entry
|
||||
Memory<Address>(pc_) = kNullAddress;
|
||||
|
Loading…
Reference in New Issue
Block a user