Lines Matching refs:module_

240   const WasmModule* const module_;  member in v8::internal::wasm::__anon3f01940e0111::InstanceBuilder
946 module_(module_object->module()), in InstanceBuilder()
951 sanitized_imports_.reserve(module_->import_table.size()); in InstanceBuilder()
959 if (!module_->import_table.empty() && ffi_.is_null()) { in Build()
974 isolate_->counters(), module_->origin, wasm_instantiate, module_time)); in Build()
981 uint32_t initial_pages = module_->initial_pages; in Build()
983 isolate_->counters(), module_->origin, wasm, min_mem_pages_count); in Build()
995 DCHECK_IMPLIES(use_trap_handler(), module_->origin == kAsmJsOrigin || in Build()
1010 if (module_->origin == kWasmOrigin && use_trap_handler()) { in Build()
1023 ModuleEnv env = CreateDefaultModuleEnv(module_, allow_trap_handler); in Build()
1030 CompileNativeModule(isolate_, &thrower, module_object_, module_, &env); in Build()
1051 uint32_t globals_buffer_size = module_->globals_buffer_size; in Build()
1078 if (module_->num_imported_mutable_globals > 0) { in Build()
1083 module_->num_imported_mutable_globals, TENURED); in Build()
1090 int table_count = static_cast<int>(module_->tables.size()); in Build()
1114 if (module_->has_memory) { in Build()
1119 module_->maximum_pages != 0 ? module_->maximum_pages : -1); in Build()
1138 for (const WasmTableInit& table_init : module_->table_inits) { in Build()
1151 for (const WasmDataSegment& seg : module_->data_segments) { in Build()
1175 if (module_->data_segments.size() > 0) { in Build()
1190 if (FLAG_wasm_interpret_all && module_->origin == kWasmOrigin) { in Build()
1195 num_wasm_functions = static_cast<int>(module_->functions.size()); in Build()
1207 if (module_->start_function_index >= 0) { in Build()
1208 int start_index = module_->start_function_index; in Build()
1209 FunctionSig* sig = module_->functions[start_index].sig; in Build()
1319 uint32_t offset = module_->globals[expr.val.global_index].offset; in EvalUint32InitExpr()
1332 for (const WasmDataSegment& segment : module_->data_segments) { in LoadDataSegments()
1409 for (size_t index = 0; index < module_->import_table.size(); ++index) { in SanitizeImports()
1410 const WasmImport& import = module_->import_table[index]; in SanitizeImports()
1434 module_->origin == kAsmJsOrigin in SanitizeImports()
1447 DCHECK_EQ(module_->import_table.size(), sanitized_imports_.size()); in FindImportedMemoryBuffer()
1448 for (size_t index = 0; index < module_->import_table.size(); index++) { in FindImportedMemoryBuffer()
1449 const WasmImport& import = module_->import_table[index]; in FindImportedMemoryBuffer()
1472 DCHECK_EQ(module_->import_table.size(), sanitized_imports_.size()); in ProcessImports()
1473 int num_imports = static_cast<int>(module_->import_table.size()); in ProcessImports()
1476 const WasmImport& import = module_->import_table[index]; in ProcessImports()
1492 FunctionSig* expected_sig = module_->functions[func_index].sig; in ProcessImports()
1519 module_->origin, use_trap_handler()) in ProcessImports()
1539 const WasmTable& table = module_->tables[table_num]; in ProcessImports()
1602 .set(module_->signature_map.Find(*sig), *imported_instance, in ProcessImports()
1624 if (imported_cur_pages < module_->initial_pages) { in ProcessImports()
1627 module_->initial_pages, imported_cur_pages); in ProcessImports()
1630 if (module_->has_maximum_pages) { in ProcessImports()
1638 module_->maximum_pages) { in ProcessImports()
1642 index, imported_maximum_pages, module_->maximum_pages); in ProcessImports()
1646 if (module_->has_shared_memory != buffer->is_shared()) { in ProcessImports()
1650 module_->has_shared_memory, buffer->is_shared()); in ProcessImports()
1663 const WasmGlobal& global = module_->globals[import.index]; in ProcessImports()
1673 if (module_->origin == kAsmJsOrigin) { in ProcessImports()
1749 DCHECK_EQ(module_->num_imported_mutable_globals, in ProcessImports()
1762 for (auto global : module_->globals) { in InitGlobals()
1788 module_->globals[global.init.val.global_index].offset; in InitGlobals()
1813 const bool is_shared_memory = module_->has_shared_memory && enabled_.threads; in AllocateMemory()
1825 if (module_->num_exported_functions > 0) return true; in NeedsWrappers()
1829 for (auto& table : module_->tables) { in NeedsWrappers()
1842 js_wrappers_.insert(js_wrappers_.begin(), module_->functions.size(), in ProcessExports()
1848 for (int index = 0, end = static_cast<int>(module_->import_table.size()); in ProcessExports()
1850 const WasmImport& import = module_->import_table[index]; in ProcessExports()
1862 switch (module_->origin) { in ProcessExports()
1890 for (const WasmExport& exp : module_->export_table) { in ProcessExports()
1905 const WasmFunction& function = module_->functions[exp.index]; in ProcessExports()
1914 WireBytesRef func_name_ref = module_->LookupFunctionName( in ProcessExports()
1933 const WasmTable& table = module_->tables[exp.index]; in ProcessExports()
1954 const WasmGlobal& global = module_->globals[exp.index]; in ProcessExports()
2030 if (module_->origin == kWasmOrigin) { in ProcessExports()
2039 size_t table_count = module_->tables.size(); in InitializeTables()
2041 const WasmTable& table = module_->tables[index]; in InitializeTables()
2055 for (auto& table_init : module_->table_inits) { in LoadTableSegments()
2063 const WasmFunction* function = &module_->functions[func_index]; in LoadTableSegments()
2067 uint32_t sig_id = module_->signature_ids[function->sig_index]; in LoadTableSegments()
2070 const bool is_import = func_index < module_->num_imported_functions; in LoadTableSegments()
2095 if (module_->origin == kAsmJsOrigin) { in LoadTableSegments()
2097 WireBytesRef func_name_ref = module_->LookupFunctionName( in LoadTableSegments()
2118 int table_count = static_cast<int>(module_->tables.size()); in LoadTableSegments()
2421 : module_(module), start_compilation_(start_compilation) {} in PrepareAndStartCompile()
2424 std::shared_ptr<const WasmModule> module_; member in v8::internal::wasm::AsyncCompileJob::PrepareAndStartCompile
2435 if (module_->has_shared_memory) { in RunInForeground()
2445 const WasmModule* module = module_.get(); in RunInForeground()
2457 job_->isolate_, job_->enabled_features_, module_, env, in RunInForeground()