-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lpereira
wants to merge
22
commits into
bytecodealliance:main
Choose a base branch
from
lpereira:explore-enhancements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on May 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a7a5bfe - Browse repository at this point
Copy the full SHA a7a5bfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bdb73f - Browse repository at this point
Copy the full SHA 7bdb73fView commit details -
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.)
Configuration menu - View commit details
-
Copy full SHA for 503f054 - Browse repository at this point
Copy the full SHA 503f054View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83029d2 - Browse repository at this point
Copy the full SHA 83029d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed88016 - Browse repository at this point
Copy the full SHA ed88016View commit details -
Instead of using opacity, which slow down rendering, use a solid outline, which looks nicer and is more efficient!
Configuration menu - View commit details
-
Copy full SHA for e831cc4 - Browse repository at this point
Copy the full SHA e831cc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d6be49 - Browse repository at this point
Copy the full SHA 8d6be49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2780e84 - Browse repository at this point
Copy the full SHA 2780e84View commit details -
Configuration menu - View commit details
-
Copy full SHA for be93ce6 - Browse repository at this point
Copy the full SHA be93ce6View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for c78fbc9 - Browse repository at this point
Copy the full SHA c78fbc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a81603 - Browse repository at this point
Copy the full SHA 6a81603View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b938653 - Browse repository at this point
Copy the full SHA b938653View commit details -
Only set the title attribute to show WASM offset on hover
This saves quite a bit of memory!
Configuration menu - View commit details
-
Copy full SHA for 3a212ec - Browse repository at this point
Copy the full SHA 3a212ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 401acda - Browse repository at this point
Copy the full SHA 401acdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0edd617 - Browse repository at this point
Copy the full SHA 0edd617View commit details -
Configuration menu - View commit details
-
Copy full SHA for 759a745 - Browse repository at this point
Copy the full SHA 759a745View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2e4c3d9 - Browse repository at this point
Copy the full SHA 2e4c3d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea6cd9d - Browse repository at this point
Copy the full SHA ea6cd9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3782a9b - Browse repository at this point
Copy the full SHA 3782a9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1de200e - Browse repository at this point
Copy the full SHA 1de200eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0f6635 - Browse repository at this point
Copy the full SHA d0f6635View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 0c9ee7c - Browse repository at this point
Copy the full SHA 0c9ee7cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.