MCPcopy Index your code
hub / github.com/nodejs/node / addTable

Method addTable

deps/v8/test/mjsunit/wasm/wasm-module-builder.js:1615–1628  ·  view source on GitHub ↗
(
      type, initial_size, max_size = undefined, init_expr = undefined,
      is_shared = false, is_table64 = false)

Source from the content-addressed store, hash-verified

1613 }
1614
1615 addTable(
1616 type, initial_size, max_size = undefined, init_expr = undefined,
1617 is_shared = false, is_table64 = false) {
1618 if (type == kWasmI32 || type == kWasmI64 || type == kWasmF32 ||
1619 type == kWasmF64 || type == kWasmS128 || type == kWasmVoid) {
1620 throw new Error('Tables must be of a reference type');
1621 }
1622 if (init_expr != undefined) checkExpr(init_expr);
1623 let table = new WasmTableBuilder(
1624 this, type, initial_size, max_size, init_expr, is_shared, is_table64);
1625 table.index = this.tables.length + this.num_imported_tables;
1626 this.tables.push(table);
1627 return table;
1628 }
1629
1630 addTable64(
1631 type, initial_size, max_size = undefined, init_expr = undefined,

Callers 15

instantiateWasmFunction · 0.95
instantiateWasmFunction · 0.95
testFunction · 0.95
TestFunction · 0.95
addTable64Method · 0.95
appendToTableMethod · 0.95
setTableBoundsMethod · 0.95
testFunction · 0.95
jspi.jsFile · 0.45

Calls 2

checkExprFunction · 0.70
pushMethod · 0.45

Tested by 2

testFunction · 0.76
testFunction · 0.76