Commit 34d1cf28 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Fix runtime stub relocation in {AddAnonymousCode}.

R=clemensh@chromium.org

Change-Id: I82e329058d7904e638010e10b4f75aac5075e7d1
Reviewed-on: https://chromium-review.googlesource.com/1107062Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53884}
parent ed27ae1b
......@@ -501,7 +501,7 @@ WasmCode* NativeModule::AddAnonymousCode(Handle<Code> code,
!it.done(); it.next(), orig_it.next()) {
RelocInfo::Mode mode = it.rinfo()->rmode();
if (RelocInfo::IsWasmStubCall(mode)) {
uint32_t stub_call_tag = it.rinfo()->wasm_stub_call_tag();
uint32_t stub_call_tag = orig_it.rinfo()->wasm_stub_call_tag();
DCHECK_LT(stub_call_tag, WasmCode::kRuntimeStubCount);
WasmCode* code =
runtime_stub(static_cast<WasmCode::RuntimeStubId>(stub_call_tag));
......
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