[wasm] Simplify function name decoding in module-decoder.cc
Change-Id: I66043e0e251ad3214a0d695434c2850caac96c69 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2521145 Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Manos Koukoutos <manoskouk@chromium.org> Cr-Commit-Position: refs/heads/master@{#71049}
This commit is contained in:
parent
bd75b0ba3e
commit
9914f62c4d
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user