Commit 0a9db745 authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Commit Bot

[wasm] Fix performance bug in module instantiation

Bug: chromium:1103161
Change-Id: I8b6155ec4f1033eb7024d798a08cd6f55f5f609d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2287502Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68737}
parent 34b0b686
......@@ -1712,7 +1712,7 @@ bool LoadElemSegmentImpl(Isolate* isolate, Handle<WasmInstanceObject> instance,
// For ExternRef tables, we have to generate the WasmExternalFunction
// eagerly. Later we cannot know if an entry is a placeholder or not.
if (table_object->type().is_reference_to(HeapType::kFunc)) {
if (table_object->type().is_reference_to(HeapType::kExtern)) {
Handle<WasmExternalFunction> wasm_external_function =
WasmInstanceObject::GetOrCreateWasmExternalFunction(isolate, instance,
func_index);
......
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