• clemensh's avatar
    [wasm] Implement AST printing into an ostream · 12aa132d
    clemensh authored
    This will be used for disassembling individual wasm function for
    showing them in devtools.
    The PrintAst function now also optionally provides an offset table
    mapping from byte offset to line and column in the generated text.
    
    R=titzer@chromium.org, ahaas@chromium.org
    BUG=chromium:613110
    
    Review-Url: https://codereview.chromium.org/2050213002
    Cr-Commit-Position: refs/heads/master@{#37026}
    12aa132d
ast-decoder.cc 53.2 KB