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

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

Issue 2619113002: [wasm] remove unused WasmInstance fields (Closed)
Patch Set: Created 3 years, 11 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/wasm/wasm-module.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-module.cc
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
index 40aec7ad33d0fed98c4fac593a6140e71b97a64b..b162704cdeb27356541d91ebd55e43d998aaf490 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -848,9 +848,9 @@ MaybeHandle<WasmCompiledModule> WasmModule::CompileFunctions(
// Initialize the indirect tables with placeholders.
int function_table_count = static_cast<int>(function_tables.size());
Handle<FixedArray> function_tables =
- factory->NewFixedArray(function_table_count);
+ factory->NewFixedArray(function_table_count, TENURED);
for (int i = 0; i < function_table_count; ++i) {
- temp_instance.function_tables[i] = factory->NewFixedArray(0);
+ temp_instance.function_tables[i] = factory->NewFixedArray(0, TENURED);
function_tables->set(i, *temp_instance.function_tables[i]);
}
« no previous file with comments | « src/wasm/wasm-module.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698