Commit 9914f62c authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Commit Bot

[wasm] Simplify function name decoding in module-decoder.cc

Change-Id: I66043e0e251ad3214a0d695434c2850caac96c69
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2521145Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71049}
parent bd75b0ba
......@@ -2448,14 +2448,8 @@ void DecodeFunctionNames(const byte* module_start, const byte* module_end,
// Extract from export table.
for (const WasmExport& exp : export_table) {
switch (exp.kind) {
case kExternalFunction:
if (names->count(exp.index) == 0) {
names->insert(std::make_pair(exp.index, exp.name));
}
break;
default:
break;
if (exp.kind == kExternalFunction && names->count(exp.index) == 0) {
names->insert(std::make_pair(exp.index, exp.name));
}
}
}
......
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