| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 5e6a900ee093cb05236994d19c29bb556890f777..9524686e805187c9687bfbdbb75f813fa7ed0b59 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -4011,6 +4011,13 @@ SourcePositionTable* WasmCompilationUnit::BuildGraphForWasmFunction(
|
| return source_position_table;
|
| }
|
|
|
| +char* WasmCompilationUnit::GetTaggedFunctionName(
|
| + const wasm::WasmFunction* function) {
|
| + snprintf(function_name_, sizeof(function_name_), "wasm#%d",
|
| + function->func_index);
|
| + return function_name_;
|
| +}
|
| +
|
| WasmCompilationUnit::WasmCompilationUnit(wasm::ErrorThrower* thrower,
|
| Isolate* isolate,
|
| wasm::ModuleBytesEnv* module_env,
|
| @@ -4031,7 +4038,7 @@ WasmCompilationUnit::WasmCompilationUnit(wasm::ErrorThrower* thrower,
|
| compilation_zone_(isolate->allocator(), ZONE_NAME),
|
| info_(function->name_length != 0
|
| ? module_env->wire_bytes.GetNameOrNull(function)
|
| - : ArrayVector("wasm"),
|
| + : CStrVector(GetTaggedFunctionName(function)),
|
| isolate, &compilation_zone_,
|
| Code::ComputeFlags(Code::WASM_FUNCTION)),
|
| job_(),
|
|
|