Lines Matching defs:module
207 WireBytesRef source; // start offset in the module bytes.
258 WireBytesRef module_name; // module name.
323 // Destructor defined in wasm-module.cc, where the definition of
413 // Static representation of a module.
501 // Maps each type index to its global (cross-module) canonical index as per
518 ModuleOrigin origin = kWasmOrigin; // origin of the module
535 // 'module' can be nullptr
538 static bool IsValidTableType(ValueType type, const WasmModule* module) {
542 (module != nullptr && heap_type.is_index() &&
543 module->has_signature(heap_type.ref_index()));
555 inline bool is_asmjs_module(const WasmModule* module) {
556 return module->origin != kWasmOrigin;
559 size_t EstimateStoredSize(const WasmModule* module);
561 // Returns the number of possible export wrappers for a given module.
562 V8_EXPORT_PRIVATE int MaxNumExportWrappers(const WasmModule* module);
564 // Returns the wrapper index for a function in {module} with signature {sig}
567 int GetExportWrapperIndex(const WasmModule* module, const FunctionSig* sig,
569 int GetExportWrapperIndex(const WasmModule* module, uint32_t sig_index,
573 // The offset will be relative to the start of the module bytes.
575 int GetWasmFunctionOffset(const WasmModule* module, uint32_t func_index);
579 // function of this module.
580 int GetContainingWasmFunction(const WasmModule* module, uint32_t byte_offset);
585 int GetNearestWasmFunction(const WasmModule* module, uint32_t byte_offset);
591 V8_EXPORT_PRIVATE int GetSubtypingDepth(const WasmModule* module,
594 // Interface to the storage (wire bytes) of a wasm module.
606 // Get a string stored in the module bytes representing a name.
609 // Get a string stored in the module bytes representing a function name.
611 const WasmModule* module) const;
613 // Checks the given reference is contained within the module bytes.
658 Handle<JSArray> GetImports(Isolate* isolate, Handle<WasmModuleObject> module);
659 Handle<JSArray> GetExports(Isolate* isolate, Handle<WasmModuleObject> module);
661 Handle<WasmModuleObject> module,
671 inline int declared_function_index(const WasmModule* module, int func_index) {
672 DCHECK_LE(module->num_imported_functions, func_index);
673 int declared_idx = func_index - module->num_imported_functions;
674 DCHECK_GT(module->num_declared_functions, declared_idx);