Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous Explore tool improvements #8649

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Commits on May 30, 2024

  1. Configuration menu
    Copy the full SHA
    a7a5bfe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7bdb73f View commit details
    Browse the repository at this point in the history
  3. Make better use of the DOM

    In the ASM view, instead of creating one element per instruction,
    create one per WASM chunk.  This significantly reduces the amount
    of elements we have to take care of, including event listeners.
    
    For both views, get rid of all the maps to look up DOM elements by
    WASM offset and use CSS selectors to find them.  This made things
    quite a bit smoother.  To highlight items, we now add a class to
    elements with the same WASM offset, and remove it when we don't
    want to highlight them anymore.
    
    In addition to this, use a bit more tricks to get brighter colors
    from the CRC24 algorithm we're now using to pick the colors.  (Since
    the colors can now be very dark, we get the luminance by using the
    NTSC color space, or YIQ, and use contrasting colors.)
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    503f054 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    83029d2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed88016 View commit details
    Browse the repository at this point in the history
  6. Outline hovered lines

    Instead of using opacity, which slow down rendering, use a solid
    outline, which looks nicer and is more efficient!
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    e831cc4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8d6be49 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2780e84 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    be93ce6 View commit details
    Browse the repository at this point in the history
  10. Draw multiple conections from WAT to ASM views

    Sometimes the ASM block contains disjoint sets of instructions
    that relate to one WASM instruction, so link all of them at the
    same time.
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    c78fbc9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6a81603 View commit details
    Browse the repository at this point in the history
  12. Fix grouping of ASM instructions

    Some instructions with NULL wasm_offset were being group together
    with the first instruction in the stream that had an offset.
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    b938653 View commit details
    Browse the repository at this point in the history
  13. Only set the title attribute to show WASM offset on hover

    This saves quite a bit of memory!
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    3a212ec View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    401acda View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    0edd617 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    759a745 View commit details
    Browse the repository at this point in the history
  17. Ensure we have enough elements to compute the bridge polygon

    I don't know why this happens, but sometimes, a block of instructions
    in the ASM side, that have a WASM offset in the generated JSON, won't
    have an equivalent in the WAT side.  Guard against this.
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    2e4c3d9 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ea6cd9d View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    3782a9b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    1de200e View commit details
    Browse the repository at this point in the history
  21. Address review comments

    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    d0f6635 View commit details
    Browse the repository at this point in the history
  22. Make eslint happy

    Since this code runs in a browser, we need to tell eslint that
    it's going to run in a browser enviroment so things like `window`
    and `document` are defined.
    
    Signed-off-by: L. Pereira <[email protected]>
    lpereira committed May 30, 2024
    Configuration menu
    Copy the full SHA
    0c9ee7c View commit details
    Browse the repository at this point in the history