MCPcopy Create free account
hub / github.com/nodejs/node / getTrapNested

Function getTrapNested

deps/v8/test/mjsunit/wasm/wasm-gc-inlining.js:709–713  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

707
708 { // Test wasm inlined into JS inlined into JS.
709 const getTrapNested = (obj) => {
710 %PrepareFunctionForOptimization(inlined);
711 return inlined();
712 function inlined() { return wasm.getField(obj); };
713 };
714
715 let wasmStruct = wasm.createStruct(42);
716 // Warmup without exception. This seems to help inlining the JS function.

Callers 1

Calls 1

inlinedFunction · 0.70

Tested by

no test coverage detected