core.compile-unbox-bool
- description
- Instructions that leave the i32 boolean of the value that code leaves: code followed by call 17, except that when code ends with call 3 (it has just boxed the i32 boolean), that call is dropped instead of boxing and unboxing at once. The last instruction of the code from core.compile-expr-instructions is never a part of another instruction ending with these two bytes
- type
Fn(code: List<Number>) -> List<Number>
- expression
fn(code$0) => let length$1 = @core.list-length(value: $0); let boxed$2 = match @core.list-get(list: $0, index: @core.minus(left: $1, right: 2)) { #some(opcode$3) => match @core.list-get(list: $0, index: @core.minus(left: $1, right: 1)) { #some(function$4) => @core.and(left: @core.equal(left: $3, right: @wasm.call), right: @core.equal(left: $4, right: 3)), #none(_) => false }, #none(_) => false }; match $2 { true => @core.list-slice(T: Number, list: $0, start: 0, end: @core.minus(left: $1, right: 2)), false => @core.list-concat(left: $0, right: [@wasm.call, 17]) }
- visibility
- public
core.compile-unbox-bool (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: adhtFRa6qb_DBff-jB4wDxj26blTAf8041LK5w9v464 content hash: DWsHjJyZVHldGgw1jfTyZDW15KEUCsheUBF8yJMMTRc