Lines Matching defs:module

25 #include "src/wasm/module-compiler.h"
26 #include "src/wasm/module-decoder.h"
27 #include "src/wasm/module-instantiate.h"
152 // We cannot check this because of one exception. When the native module is
195 // currently compiling a module with the same prefix. {OnFinishedStream}
197 // finish would create a deadlock. Instead, compile the module twice and
244 if (native_module->module()->origin != kWasmOrigin) return native_module;
263 // The key now points to the new native module's owned copy of the bytes,
264 // so that it stays valid until the native module is freed and erased from
276 if (native_module->module()->origin != kWasmOrigin) return;
297 decoder.consume_bytes(8, "module header");
335 // The number of GCs triggered in the native module that triggered this GC.
344 // module which triggered the next GC.
373 // Scripts created for each native module in this isolate.
439 // Number of code GCs triggered because code in this native module became
460 // Native module cache does not leak.
470 if (error_message) *error_message = "empty module wire bytes";
577 // Create the compiled module object and populate with compiled functions
658 Handle<WasmModuleObject> module = module_object.ToHandleChecked();
659 resolver->OnCompilationSucceeded(module);
707 &native_module->module()->functions[function_index], tier);
731 // deadlocks because of lock inversion. The bool tells whether the module
748 if (!shared_ptr) continue; // The module is not used any more.
750 // Only start tier-up if no other isolate needs this module in tiered
787 // - wasm://wasm/<module name>-<hash> if a module name has been set, or
789 const WasmModule* module = native_module->module();
801 if (module->name.is_empty()) {
810 // Build the URL in the form "wasm://wasm/<module name>-<hash>".
817 isolate, wire_bytes, module->name, kNoInternalize);
833 const WasmDebugSymbols& debug_symbols = module->debug_symbols;
848 wasm::WasmCodeManager::EstimateNativeModuleMetaDataSize(module);
868 CompileJsToWasmWrappers(isolate, native_module->module(), &export_wrappers);
1027 // TODO(v8:7424): For now we sample module sizes in a GC callback. This will
1065 auto* module = native_modules_[native_module].get();
1066 module->isolates.erase(isolate);
1068 for (WasmCode* code : module->potentially_dead_code) {
1158 std::shared_ptr<const WasmModule> module, size_t code_size_estimate) {
1168 isolate, enabled, code_size_estimate, std::move(module));
1218 // Potentially recompile the module for tier down, after releasing the mutex.
1246 // Potentially recompile the module for tier down, after releasing the mutex.
1257 // later "wasm.GetNativeModuleFromCache" event for trying to get the module
1269 auto module = native_modules_.find(native_module);
1270 DCHECK_NE(native_modules_.end(), module);
1271 for (Isolate* isolate : module->second->isolates) {
1311 TRACE_CODE_GC("Native module %p died, reducing dead code objects to %zu.\n",
1315 native_modules_.erase(module);
1469 TRACE_CODE_GC("Freeing %zu code object%s of module %p.\n", code_vec.size(),