UNPKG

walt-compiler

Version:

Alternative syntax for WebAssembly text format

186 lines (180 loc) 7.79 kB
# Snapshot report for `src/parser/__tests__/sizeof-spec.js` The actual snapshot is saved in `sizeof-spec.js.snap`. Generated by [AVA](https://ava.li). ## type sizes > Snapshot 1 `00000000: 6d736100 ; \\0asm␊ 00000004: 1 ; version 1 00000008: 1 ; Types section␊ 00000009: 5 ; size␊ 0000000a: 1 ; count␊ 0000000b: 60 ; func type (0)␊ 0000000c: 0 ; parameter count␊ 0000000d: 1 ; result count␊ 0000000e: 7f ; result type i32␊ 0000000f: 3 ; Functions section␊ 00000010: 6 ; size␊ 00000011: 5 ; count␊ 00000012: 0 ; type index␊ 00000013: 0 ; type index␊ 00000014: 0 ; type index␊ 00000015: 0 ; type index␊ 00000016: 0 ; type index␊ 00000017: 7 ; Exports section␊ 00000018: 5e ; size␊ 00000019: 5 ; count␊ 0000001a: b ; field␊ 0000001b: 5f ; _␊ 0000001c: 33 ; 3 0000001d: 32 ; 2 0000001e: 42 ; B␊ 0000001f: 69 ; i␊ 00000020: 74 ; t␊ 00000021: 53 ; S␊ 00000022: 69 ; i␊ 00000023: 7a ; z␊ 00000024: 65 ; e␊ 00000025: 73 ; s␊ 00000026: 0 ; Global␊ 00000027: 0 ; index␊ 00000028: b ; field␊ 00000029: 5f ; _␊ 0000002a: 36 ; 6 0000002b: 34 ; 4 0000002c: 42 ; B␊ 0000002d: 69 ; i␊ 0000002e: 74 ; t␊ 0000002f: 53 ; S␊ 00000030: 69 ; i␊ 00000031: 7a ; z␊ 00000032: 65 ; e␊ 00000033: 73 ; s␊ 00000034: 0 ; Global␊ 00000035: 1 ; index␊ 00000036: 11 ; field␊ 00000037: 75 ; u␊ 00000038: 73 ; s␊ 00000039: 65 ; e␊ 0000003a: 72 ; r␊ 0000003b: 44 ; D␊ 0000003c: 65 ; e␊ 0000003d: 66 ; f␊ 0000003e: 69 ; i␊ 0000003f: 6e ; n␊ 00000040: 65 ; e␊ 00000041: 64 ; d␊ 00000042: 4f ; O␊ 00000043: 62 ; b␊ 00000044: 6a ; j␊ 00000045: 65 ; e␊ 00000046: 63 ; c␊ 00000047: 74 ; t␊ 00000048: 0 ; Global␊ 00000049: 2 ; index␊ 0000004a: 13 ; field␊ 0000004b: 75 ; u␊ 0000004c: 73 ; s␊ 0000004d: 65 ; e␊ 0000004e: 72 ; r␊ 0000004f: 44 ; D␊ 00000050: 65 ; e␊ 00000051: 66 ; f␊ 00000052: 69 ; i␊ 00000053: 6e ; n␊ 00000054: 65 ; e␊ 00000055: 64 ; d␊ 00000056: 54 ; T␊ 00000057: 79 ; y␊ 00000058: 70 ; p␊ 00000059: 65 ; e␊ 0000005a: 4e ; N␊ 0000005b: 61 ; a␊ 0000005c: 6d ; m␊ 0000005d: 65 ; e␊ 0000005e: 0 ; Global␊ 0000005f: 3 ; index␊ 00000060: 14 ; field␊ 00000061: 75 ; u␊ 00000062: 73 ; s␊ 00000063: 65 ; e␊ 00000064: 72 ; r␊ 00000065: 44 ; D␊ 00000066: 65 ; e␊ 00000067: 66 ; f␊ 00000068: 69 ; i␊ 00000069: 6e ; n␊ 0000006a: 65 ; e␊ 0000006b: 64 ; d␊ 0000006c: 46 ; F␊ 0000006d: 75 ; u␊ 0000006e: 6e ; n␊ 0000006f: 63 ; c␊ 00000070: 74 ; t␊ 00000071: 69 ; i␊ 00000072: 6f ; o␊ 00000073: 6e ; n␊ 00000074: 73 ; s␊ 00000075: 0 ; Global␊ 00000076: 4 ; index␊ 00000077: a ; Code section␊ 00000078: 42 ; size␊ 00000079: 5 ; function count␊ 0000007a: c ; Function _32BitSizes␊ 0000007b: 2 ; locals count␊ 0000007c: 1 ; number of locals of following type␊ 0000007d: 7f ; i32␊ 0000007e: 1 ; number of locals of following type␊ 0000007f: 7d ; f32␊ 00000080: 41 ; i32.const 00000081: 4 ; i32.literal␊ 00000082: 41 ; i32.const 00000083: 4 ; i32.literal␊ 00000084: 6a ; i32.add 00000085: f ; return 00000086: b ; end␊ 00000087: 1b ; Function _64BitSizes␊ 00000088: 2 ; locals count␊ 00000089: 1 ; number of locals of following type␊ 0000008a: 7e ; i64␊ 0000008b: 1 ; number of locals of following type␊ 0000008c: 7c ; f64␊ 0000008d: 42 ; i64.const 0000008e: 0 ; i64.literal␊ 0000008f: 21 ; set_local x<i64>␊ 00000090: 0 ; i32.literal␊ 00000091: 44 ; f64.const 00000092: 0 ; f64.literal␊ 0000009a: 21 ; set_local y<f64>␊ 0000009b: 1 ; i32.literal␊ 0000009c: 41 ; i32.const 0000009d: 8 ; i32.literal␊ 0000009e: 41 ; i32.const 0000009f: 8 ; i32.literal␊ 000000a0: 6a ; i32.add 000000a1: f ; return 000000a2: b ; end␊ 000000a3: b ; Function userDefinedObject␊ 000000a4: 1 ; locals count␊ 000000a5: 1 ; number of locals of following type␊ 000000a6: 7f ; i32␊ 000000a7: 41 ; i32.const 000000a8: 0 ; i32.literal␊ 000000a9: 21 ; set_local x<Type>␊ 000000aa: 0 ; i32.literal␊ 000000ab: 41 ; i32.const 000000ac: 10 ; i32.literal␊ 000000ad: f ; return 000000ae: b ; end␊ 000000af: 5 ; Function userDefinedTypeName␊ 000000b0: 0 ; locals count␊ 000000b1: 41 ; i32.const 000000b2: 10 ; i32.literal␊ 000000b3: f ; return 000000b4: b ; end␊ 000000b5: 5 ; Function userDefinedFunctions␊ 000000b6: 0 ; locals count␊ 000000b7: 41 ; i32.const 000000b8: 4 ; i32.literal␊ 000000b9: f ; return 000000ba: b ; end␊ ============ fin =============`