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

Function test

deps/v8/test/mjsunit/wasm/inlining-multi-instance.js:80–90  ·  view source on GitHub ↗
(callType)

Source from the content-addressed store, hash-verified

78let {instance1, instance2} = setup();
79
80function test(callType) {
81 print("test " + callType);
82
83 // A function from the second instance is invoked, which then indirectly
84 // calls `callee` from the first instance, which should semantically close
85 // over (in the sense of "closure") the global with value 1000.
86 const f = instance2.exports[callType];
87 f();
88 %WasmTierUpFunction(f);
89 assertEquals(1005, f());
90}
91test("call_indirect");
92test("return_call_indirect");
93test("call_ref");

Callers 1

Calls 3

fFunction · 0.70
printFunction · 0.50
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…