Commit e885f8ae authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

[wasm] Use GetWasmCalleeTag for RUNTIME_ENTRY relocation

R=mstarzinger@chromium.org

Change-Id: I77356a84a89ff94dc5516e3507e11d0b5c429107
Reviewed-on: https://chromium-review.googlesource.com/951927Reviewed-by: 's avatarEric Holk <eholk@chromium.org>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#51778}
parent 05b93ea0
......@@ -588,10 +588,9 @@ bool NativeModuleDeserializer::ReadCode() {
break;
}
case RelocInfo::RUNTIME_ENTRY: {
uint32_t orig_target = static_cast<uint32_t>(
reinterpret_cast<intptr_t>(iter.rinfo()->target_address()));
uint32_t tag = GetWasmCalleeTag(iter.rinfo());
Address address =
ExternalReferenceTable::instance(isolate_)->address(orig_target);
ExternalReferenceTable::instance(isolate_)->address(tag);
iter.rinfo()->set_target_runtime_entry(address, SKIP_WRITE_BARRIER,
SKIP_ICACHE_FLUSH);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment