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

Method addType

deps/v8/test/mjsunit/wasm/regress-367818758.js:123–130  ·  view source on GitHub ↗
(type, supertype_idx = kNoSuperType, is_final = true,
      is_shared = false)

Source from the content-addressed store, hash-verified

121 this.functions = [];
122 }
123 addType(type, supertype_idx = kNoSuperType, is_final = true,
124 is_shared = false) {
125 var type_copy = {params: type.params, results: type.results,
126 is_final: is_final, is_shared: is_shared,
127 supertype: supertype_idx};
128 this.types.push(type_copy);
129 return this.types.length - 1;
130 }
131 addStruct(fields = kNoSuperType = false, is_shared = false) {
132 this.types.push(new WasmStruct(fields));
133 }

Callers 15

testCallFFIFunction · 0.95
testFunction · 0.95
genUnopFunction · 0.95
genBinopFunction · 0.95
TestFunction · 0.95
makeFFIFunction · 0.95
growAndShrinkTwiceFunction · 0.95
runFunction · 0.95
TestCatchJSFunction · 0.95
caller_moduleFunction · 0.95
addFunctionMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by 2

testFunction · 0.76
testFunction · 0.76