core.compile-unbox-number
- description
- Instructions that leave the i64 number of the value that code leaves: code followed by call 15, except that when code ends with call 2 (it has just boxed the i64 number), 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: 2)), #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, 15]) }
- visibility
- public
core.compile-unbox-number (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: tWZxuZ0hwVVWTdt5irKSuCH9In5BMR68_QyAOxceDU0 content hash: WUc0v9HyR2KcgIL_g0buWRCil-SxIAmf2bIRvRITqG0