• clemensh's avatar
    [wasm] Translate locations to positions properly · 8ab945f2
    clemensh authored
    ... at least for the function which will remain after restructuring of
    the debug interface. For some methods that will be removed anyway, we
    just return zero / null for now.
    
    I also refactored the ScriptLocationFromLine method to make it more
    readable and reuse parts in other files (like ScriptLinePosition).
    
    BUG=5655
    R=titzer@chromium.org, jgruber@chromium.org
    
    Review-Url: https://codereview.chromium.org/2512833003
    Cr-Commit-Position: refs/heads/master@{#41115}
    8ab945f2
wasm-objects.cc 14.9 KB