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

Function wasmBrOnCastImpl

deps/v8/test/mjsunit/wasm/wasm-module-builder.js:2531–2540  ·  view source on GitHub ↗
(labelIdx, sourceType, targetType, opcode)

Source from the content-addressed store, hash-verified

2529 wasmBrOnCastImpl(labelIdx, sourceType, targetType, kExprBrOnCastDescEqFail),
2530 ];
2531 function wasmBrOnCastImpl(labelIdx, sourceType, targetType, opcode) {
2532 labelIdx = wasmUnsignedLeb(labelIdx, kMaxVarInt32Size);
2533 let srcIsNullable = sourceType.opcode == kWasmRefNull;
2534 let tgtIsNullable = targetType.opcode == kWasmRefNull;
2535 flags = (tgtIsNullable << 1) + srcIsNullable;
2536 return [
2537 kGCPrefix, opcode, flags, ...labelIdx, ...wasmEncodeHeapType(sourceType),
2538 ...wasmEncodeHeapType(targetType)
2539 ];
2540 }
2541})();
2542
2543function getOpcodeName(opcode) {

Callers 1

Calls 2

wasmUnsignedLebFunction · 0.85
wasmEncodeHeapTypeFunction · 0.85

Tested by

no test coverage detected