Lines Matching defs:table
151 const i::wasm::WasmTable& table = module->tables[index];
152 own<ValType> elem = ValType::make(V8ValueTypeToWasm(table.type));
153 Limits limits(table.initial_size,
154 table.has_maximum_size ? table.maximum_size : -1);
466 i::EphemeronHashTable::cast(host_info_map_->table()).Lookup(key);
608 return table()->copy();
756 auto ExternType::table() -> TableType* {
762 auto ExternType::table() const -> const TableType* {
1290 return table()->type();
1304 auto Extern::table() -> Table* {
1320 auto Extern::table() const -> const Table* {
1955 // This doesn't call WasmTableObject::Set because the table has
1966 i::Handle<i::WasmTableObject> table = impl(this)->v8_object();
1967 uint32_t min = table->current_length();
1969 if (!table->maximum_length().ToUint32(&max)) max = 0xFFFFFFFFu;
1971 switch (table->type().heap_representation()) {
1985 i::Handle<i::WasmTableObject> table = impl(this)->v8_object();
1986 if (index >= static_cast<size_t>(table->current_length())) return own<Ref>();
1987 i::Isolate* isolate = table->GetIsolate();
1990 i::WasmTableObject::Get(isolate, table, static_cast<uint32_t>(index));
2002 i::Handle<i::WasmTableObject> table = impl(this)->v8_object();
2003 if (index >= static_cast<size_t>(table->current_length())) return false;
2004 i::Isolate* isolate = table->GetIsolate();
2007 // TODO(7748): Generalize the condition if other table types are allowed.
2008 if ((table->type() == i::wasm::kWasmFuncRef || table->type().has_index()) &&
2012 i::WasmTableObject::Set(isolate, table, static_cast<uint32_t>(index), obj);
2022 i::Handle<i::WasmTableObject> table = impl(this)->v8_object();
2023 i::Isolate* isolate = table->GetIsolate();
2026 // TODO(7748): Generalize the condition if other table types are allowed.
2027 if ((table->type() == i::wasm::kWasmFuncRef || table->type().has_index()) &&
2031 int result = i::WasmTableObject::Grow(isolate, table,
3109 WASM_DEFINE_REF(table, wasm::Table)
3116 wasm_tabletype_t* wasm_table_type(const wasm_table_t* table) {
3117 return release_tabletype(table->type());
3120 wasm_ref_t* wasm_table_get(const wasm_table_t* table, wasm_table_size_t index) {
3121 return release_ref(table->get(index));
3124 bool wasm_table_set(wasm_table_t* table, wasm_table_size_t index,
3126 return table->set(index, ref);
3129 wasm_table_size_t wasm_table_size(const wasm_table_t* table) {
3130 return table->size();
3133 bool wasm_table_grow(wasm_table_t* table, wasm_table_size_t delta,
3135 return table->grow(delta, ref);
3183 wasm_extern_t* wasm_table_as_extern(wasm_table_t* table) {
3184 return hide_extern(static_cast<wasm::Extern*>(reveal_table(table)));
3196 const wasm_extern_t* wasm_table_as_extern_const(const wasm_table_t* table) {
3197 return hide_extern(static_cast<const wasm::Extern*>(reveal_table(table)));
3210 return hide_table(external->table());
3224 return hide_table(external->table());