Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2708593002: Revert of [wasm] Identify wasm functions with index into the function tables. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/wasm-compiler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index 9524686e805187c9687bfbdbb75f813fa7ed0b59..5e6a900ee093cb05236994d19c29bb556890f777 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -4011,13 +4011,6 @@
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,
@@ -4038,7 +4031,7 @@
compilation_zone_(isolate->allocator(), ZONE_NAME),
info_(function->name_length != 0
? module_env->wire_bytes.GetNameOrNull(function)
- : CStrVector(GetTaggedFunctionName(function)),
+ : ArrayVector("wasm"),
isolate, &compilation_zone_,
Code::ComputeFlags(Code::WASM_FUNCTION)),
job_(),
« no previous file with comments | « src/compiler/wasm-compiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698