Lines Matching defs:import
789 WasmImport* import = &module_->import_table.back();
791 import->module_name = consume_string(this, true, "module name");
792 import->field_name = consume_string(this, true, "field name");
793 import->kind =
794 static_cast<ImportExportKindCode>(consume_u8("import kind"));
795 switch (import->kind) {
798 import->index = static_cast<uint32_t>(module_->functions.size());
801 import->index, // func_index
815 import->index = static_cast<uint32_t>(module_->tables.size());
848 import->index = static_cast<uint32_t>(module_->globals.size());
861 errorf(pos, "unknown import kind 0x%02x", import->kind);
864 import->index = static_cast<uint32_t>(module_->tags.size());
872 errorf(pos, "unknown import kind 0x%02x", import->kind);
1482 // is needed because globals can also be defined in the import section.
1630 // after the import section and the global section, but before the global