2022-07-19 15:38:12 +00:00
|
|
|
Tests disassembling wasm scripts
|
|
|
|
Session #1: Script parsed. URL: wasm://wasm/moduleName-70e7540a.
|
|
|
|
Session #1: Source for wasm://wasm/moduleName-70e7540a:
|
|
|
|
bytecode:
|
|
|
|
0x00 0x61 0x73 0x6d 0x01 0x00 0x00 0x00 ;; offset 0..7
|
|
|
|
0x01 0x09 0x02 0x60 0x01 0x6f 0x01 0x7f ;; offset 8..15
|
|
|
|
0x60 0x00 0x00 0x03 0x03 0x02 0x00 0x01 ;; offset 16..23
|
|
|
|
0x0a 0x12 0x02 0x0b 0x02 0x01 0x7f 0x01 ;; offset 24..31
|
|
|
|
0x7c 0x20 0x01 0x1a 0x41 0x2a 0x0b 0x04 ;; offset 32..39
|
|
|
|
0x00 0x01 0x01 0x0b 0x00 0x27 0x04 0x6e ;; offset 40..47
|
|
|
|
0x61 0x6d 0x65 0x00 0x0b 0x0a 0x6d 0x6f ;; offset 48..55
|
|
|
|
0x64 0x75 0x6c 0x65 0x4e 0x61 0x6d 0x65 ;; offset 56..63
|
|
|
|
0x01 0x09 0x02 0x00 0x02 0x66 0x31 0x01 ;; offset 64..71
|
|
|
|
0x02 0x66 0x32 0x02 0x08 0x01 0x00 0x01 ;; offset 72..79
|
|
|
|
0x01 0x03 0x78 0x79 0x7a
|
|
|
|
streamid: undefined
|
2022-07-21 19:11:45 +00:00
|
|
|
functionBodyOffsets: 33,39,41,44
|
2022-07-19 15:38:12 +00:00
|
|
|
totalNumberOfLines: 13
|
|
|
|
lines:
|
|
|
|
(module $moduleName
|
|
|
|
(func $f1 (;0;) (param $var0 externref) (result i32)
|
|
|
|
(local $xyz i32)
|
|
|
|
(local $var2 f64)
|
|
|
|
local.get $xyz
|
|
|
|
drop
|
|
|
|
i32.const 42
|
|
|
|
)
|
|
|
|
(func $f2 (;1;)
|
|
|
|
nop
|
|
|
|
nop
|
|
|
|
)
|
|
|
|
)
|
|
|
|
bytecodeOffsets: 0,28,28,28,33,35,36,38,40,41,42,43,85
|