Description[wasm] Implement official wasm text format
When disassembling functions for the inspector, we used an internal
text representation before. This CL implements the official text
format like it is understood by the spec interpreter.
Example output:
func $main (param i32) (result i32)
block i32
get_local 0
i32.const 2
i32.lt_u
if
i32.const -2
return
end
get_local 0
call_indirect 0
end
R=rossberg@chromium.org, titzer@chromium.org
BUG=chromium:659715
Committed: https://crrev.com/172f501233498e4dac793f415e12a213aa0b56b4
Cr-Commit-Position: refs/heads/master@{#41172}
Patch Set 1 #Patch Set 2 : Add missing includes #Patch Set 3 : Return a value even after UNREACHABLE #
Total comments: 18
Patch Set 4 : Address comments #Patch Set 5 : Address comments #
Messages
Total messages: 34 (25 generated)
|