(labelIdx, sourceType, targetType, opcode)
| 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 | |
| 2543 | function getOpcodeName(opcode) { |
no test coverage detected