• Ingvar Stepanyan's avatar
    Add support for reporting raw Wasm scripts · c7848612
    Ingvar Stepanyan authored
    This addition will allow to experiment with parsing DWARF information from
    WebAssembly on the frontend side for improved debugging.
    
    The frontend must explicitly opt-in to this experiment by setting
    `supportsWasmDwarf: true` in `Debugger.enable` params.
    
    When this option is present, and Wasm appears to contain DWARF information
    (heuristic: `.debug_info` custom section is present), V8 will not try to
    disassemble and report each WebAssembly function as a separate fake script, but
    instead will report Wasm module as a whole.
    
    Note that V8 already does this when Wasm is associated with a source map.
    
    Additionally, this CL adds a dedicated `Debugger.getWasmBytecode` command that
    accepts scriptId and returns raw wire bytes of the chosen WebAssembly module.
    
    Change-Id: I7a6e80daf8d91ffaaba04fa15688f2ba9552870f
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1809375
    Commit-Queue: Ingvar Stepanyan <rreverser@google.com>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#63969}
    c7848612
Name
Last commit
Last update
..
console Loading commit data...
cpu-profiler Loading commit data...
debugger Loading commit data...
heap-profiler Loading commit data...
runtime Loading commit data...
sessions Loading commit data...
type-profiler Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
inspector-test.cc Loading commit data...
inspector.status Loading commit data...
isolate-data.cc Loading commit data...
isolate-data.h Loading commit data...
json-parse-expected.txt Loading commit data...
json-parse.js Loading commit data...
protocol-test.js Loading commit data...
task-runner.cc Loading commit data...
task-runner.h Loading commit data...
testcfg.py Loading commit data...