Lines Matching defs:import

24 #include "src/wasm/wasm-import-wrapper-cache.h"
282 // A pre-evaluated value to use in import binding.
329 // Look up an import value in the {ffi_} object.
333 // Look up an import value in the {ffi_} object specifically for linking an
390 // Compile import wrappers in parallel. The result goes into the native
837 // Look up an import value in the {ffi_} object.
861 ReportLinkError("import not found", index, module_name, import_name);
952 // Look up an import value in the {ffi_} object specifically for linking an
1057 const WasmImport& import = module_->import_table[index];
1061 isolate_, wire_bytes, import.module_name, kInternalize);
1065 isolate_, wire_bytes, import.field_name, kInternalize);
1073 thrower_->LinkError("Could not find value for import %zu", index);
1084 WasmImport import = module_->import_table[index];
1086 if (import.kind == kExternalMemory) {
1104 ReportLinkError("function import requires a callable", import_index,
1134 // The import reference is the instance object itself.
1145 // just like other import wrappers.
1204 // Wasm to JS wrappers are treated specially in the import table.
1237 thrower_->LinkError("table import %d[%d] is not a wasm function",
1273 ReportLinkError("table import requires a WebAssembly.Table", import_index,
1284 thrower_->LinkError("table import %d is smaller than initial %u, got %u",
1291 thrower_->LinkError("table import %d has no maximum length, expected %u",
1297 thrower_->LinkError("table import %d has no maximum length, expected %u",
1302 thrower_->LinkError("table import %d has a larger maximum size %" PRIx64
1338 ReportLinkError("memory import must be a WebAssembly.Memory object",
1353 thrower_->LinkError("memory import %d is smaller than initial %u, got %u",
1362 "memory import %d has no maximum limit, expected at most %u",
1369 "memory import %d has a larger maximum size %u than the "
1487 ReportLinkError("global import of type v128 must be a WebAssembly.Global",
1506 ReportLinkError("global import must be a number", import_index,
1561 "global import must be a number, valid Wasm reference, or "
1643 const WasmImport& import = module_->import_table[index];
1649 switch (import.kind) {
1651 uint32_t func_index = import.index;
1661 uint32_t table_index = import.index;
1679 if (!ProcessImportedGlobal(instance, index, import.index, module_name,
1687 ReportLinkError("tag import requires a WebAssembly.Tag", index,
1692 if (!imported_tag->MatchesSignature(module_->tags[import.index].sig)) {
1698 DCHECK(instance->tags_table().get(import.index).IsUndefined());
1699 instance->tags_table().set(import.index, tag);
1700 tags_wrappers_[import.index] = imported_tag;
1761 // has to be identical to to import. Therefore we cache all imported
1766 const WasmImport& import = module_->import_table[index];
1767 if (import.kind == kExternalFunction) {
1771 isolate_, instance, import.index,
1776 } else if (import.kind == kExternalGlobal) {
1779 imported_globals[import.index] = value;
1833 // create or import it when building an WasmInstanceObject.