Skip to content

Commit

Permalink
[wasm] Use GetWasmCalleeTag for RUNTIME_ENTRY relocation
Browse files Browse the repository at this point in the history
R=mstarzinger@chromium.org

Change-Id: I77356a84a89ff94dc5516e3507e11d0b5c429107
Reviewed-on: https://chromium-review.googlesource.com/951927
Reviewed-by: Eric Holk <eholk@chromium.org>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#51778}
  • Loading branch information
Junliang Yan authored and Commit Bot committed Mar 6, 2018
1 parent 05b93ea commit e885f8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wasm/wasm-serialization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e885f8a

Please sign in to comment.