Lines Matching defs:table
365 // Process a single imported table.
593 // Set up the tag table used for exception tag checks.
604 // Set up table storage space.
609 const WasmTable& table = module_->tables[i];
610 if (table.initial_size > FLAG_wasm_max_table_size) {
612 "initial table size (%u elements) is larger than implementation "
614 table.initial_size, FLAG_wasm_max_table_size);
621 const WasmTable& table = module_->tables[i];
625 isolate_, instance, table.type, table.initial_size,
626 table.has_maximum_size, table.maximum_size, nullptr,
636 const WasmTable& table = module_->tables[i];
637 if (IsSubtypeOf(table.type, kWasmFuncRef, module_)) {
639 WasmIndirectFunctionTable::New(isolate_, table.initial_size);
717 const WasmTable& table = module_->tables[table_index];
719 if (IsSubtypeOf(table.type, kWasmFuncRef, module_)) {
721 instance, table_index, table.initial_size);
738 // Initialize the tags table.
1204 // Wasm to JS wrappers are treated specially in the import table.
1222 // Allocate a new dispatch table.
1225 // Initialize the dispatch table with the (foreign) JS functions
1226 // that are already in the table.
1237 thrower_->LinkError("table import %d[%d] is not a wasm function",
1258 // so putting {-1} in the table will cause checks to always fail.
1273 ReportLinkError("table import requires a WebAssembly.Table", import_index,
1277 const WasmTable& table = module_->tables[table_index];
1283 if (imported_table_size < table.initial_size) {
1284 thrower_->LinkError("table import %d is smaller than initial %u, got %u",
1285 import_index, table.initial_size, imported_table_size);
1289 if (table.has_maximum_size) {
1291 thrower_->LinkError("table import %d has no maximum length, expected %u",
1292 import_index, table.maximum_size);
1297 thrower_->LinkError("table import %d has no maximum length, expected %u",
1298 import_index, table.maximum_size);
1301 if (imported_maximum_size > table.maximum_size) {
1302 thrower_->LinkError("table import %d has a larger maximum size %" PRIx64
1305 table.maximum_size);
1315 if (!EquivalentTypes(table.type, table_object->type(), module_,
1317 ReportLinkError("imported table does not match the expected type",
1322 if (IsSubtypeOf(table.type, kWasmFuncRef, module_) &&
1803 // Process each export in the export table.
1970 const WasmTable& table = module_->tables[table_index];
1971 if (!table.type.is_defaultable()) {
1974 bool is_function_table = IsSubtypeOf(table.type, kWasmFuncRef, module_);
1976 table.initial_value.kind() == ConstantExpression::kRefFunc) {
1977 for (uint32_t entry_index = 0; entry_index < table.initial_size;
1980 entry_index, table.initial_value.index());
1983 table.initial_value.kind() == ConstantExpression::kRefNull) {
1984 for (uint32_t entry_index = 0; entry_index < table.initial_size;
1990 EvaluateInitExpression(&init_expr_zone_, table.initial_value,
1991 table.type, isolate_, instance, thrower_);
1993 for (uint32_t entry_index = 0; entry_index < table.initial_size;
2012 // for both instantiation and in the implementation of the table.init
2070 // Set the active segments to being already dropped, since table.init on
2074 thrower_->RuntimeError("table initializer is out of bounds");