• Home
  • Raw
  • Download

Lines Matching defs:WasmModule

414 struct V8_EXPORT_PRIVATE WasmModule {  struct
415 std::unique_ptr<Zone> signature_zone;
416 uint32_t initial_pages = 0; // initial size of the memory in 64k pages
417 uint32_t maximum_pages = 0; // maximum size of the memory in 64k pages
418 bool has_shared_memory = false; // true if memory is a SharedArrayBuffer
419 bool has_maximum_pages = false; // true if there is a maximum memory size
420 bool is_memory64 = false; // true if the memory is 64 bit
421 bool has_memory = false; // true if the memory was defined or imported
422 bool mem_export = false; // true if the memory is exported
423 int start_function_index = -1; // start function, >= 0 if any
427 uint32_t untagged_globals_buffer_size = 0;
428 uint32_t tagged_globals_buffer_size = 0;
429 uint32_t num_imported_mutable_globals = 0;
430 uint32_t num_imported_functions = 0;
431 uint32_t num_imported_tables = 0;
432 uint32_t num_declared_functions = 0; // excluding imported
433 uint32_t num_exported_functions = 0;
434 uint32_t num_declared_data_segments = 0; // From the DataCount section.
437 WireBytesRef code = {0, 0};
438 WireBytesRef name = {0, 0};
440 void add_type(TypeDefinition type) { in add_type()
450 bool has_type(uint32_t index) const { return index < types.size(); } in has_type()
452 void add_signature(const FunctionSig* sig, uint32_t supertype) { in add_signature()
456 bool has_signature(uint32_t index) const { in has_signature()
460 const FunctionSig* signature(uint32_t index) const { in signature()
465 void add_struct_type(const StructType* type, uint32_t supertype) { in add_struct_type()
469 bool has_struct(uint32_t index) const { in has_struct()
472 const StructType* struct_type(uint32_t index) const { in struct_type()
477 void add_array_type(const ArrayType* type, uint32_t supertype) { in add_array_type()
481 bool has_array(uint32_t index) const { in has_array()
484 const ArrayType* array_type(uint32_t index) const { in array_type()
489 uint32_t supertype(uint32_t index) const { in supertype()
493 bool has_supertype(uint32_t index) const { in has_supertype()
497 std::vector<TypeDefinition> types; // by type index
500 std::vector<uint32_t> canonicalized_type_ids;
526 explicit WasmModule(std::unique_ptr<Zone> signature_zone = nullptr); argument
528 WasmModule& operator=(const WasmModule&) = delete; argument