• Alexander.Gilday2's avatar
    [turbolizer] Improve code comments in disassembly · 7f162dbc
    Alexander.Gilday2 authored
    This change analyzes and links the output of --code-comments in the disassembly view within turbolizer with the other views, such that selecting these comments will also select the respective blocks/lines/nodes within the other views. The block start comments (e.g. -- B4 start --) are linked with the blocks in the schedule phase view and vice versa. The source position comments (e.g. -- primes.js:3:10 --) select the respective spans, lines, and nodes in the JavaScript code view, the schedule phase view, and the other compilation phase views respectively, and vice versa. It also modifies the display of the line and column numbers in the source position comments to be offset from 1 instead of 0 and ignore the initial source position of the first line of code (from removal of the function name in the compiler).
    
    Also fixed the bug where previous selections weren't being cleared properly across multiple views, adding appropriate clear calls when using the selection broker.
    
    Review-Url: https://codereview.chromium.org/2133663002
    Cr-Commit-Position: refs/heads/master@{#37627}
    7f162dbc
Name
Last commit
Last update
..
OWNERS Loading commit data...
README Loading commit data...
code-view.js Loading commit data...
constants.js Loading commit data...
disassembly-view.js Loading commit data...
edge.js Loading commit data...
empty-view.js Loading commit data...
expand-all.jpg Loading commit data...
graph-layout.js Loading commit data...
graph-view.js Loading commit data...
hide-selected.png Loading commit data...
hide-unselected.png Loading commit data...
index.html Loading commit data...
lang-disassembly.js Loading commit data...
layout-icon.png Loading commit data...
left-arrow.png Loading commit data...
monkey.js Loading commit data...
node.js Loading commit data...
right-arrow.png Loading commit data...
schedule-view.js Loading commit data...
search.png Loading commit data...
search2.png Loading commit data...
selection-broker.js Loading commit data...
selection.js Loading commit data...
text-view.js Loading commit data...
turbo-visualizer.css Loading commit data...
turbo-visualizer.js Loading commit data...
types.png Loading commit data...
upload-icon.png Loading commit data...
util.js Loading commit data...
view.js Loading commit data...