forked from smarr/SOMpp
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement testing and bytecodes for common sequences (#21)
In addition to the bytecodes, this PR also adds tests for bytecode generation to be able to check bytecode-level optimizations. Added bytecodes: - `BC_PUSH_LOCAL_0`, `BC_PUSH_LOCAL_1`, `BC_PUSH_LOCAL_2` - `BC_PUSH_SELF`, `BC_PUSH_ARG_1`, `BC_PUSH_ARG_2` - `BC_PUSH_FIELD_0`, `BC_PUSH_FIELD_1` - `BC_PUSH_CONSTANT_0`, `BC_PUSH_CONSTANT_1`, `BC_PUSH_CONSTANT_2` - `BC_PUSH_0`, `BC_PUSH_1`, `BC_PUSH_NIL` - `BC_POP_LOCAL_0`, `BC_POP_LOCAL_1`, `BC_POP_LOCAL_2` - `BC_POP_FIELD_0`, `BC_POP_FIELD_1` The speedup for this is small, with a run-time change of median -8% (min. -16%, max. 2%). See: https://rebench.dev/SOMpp/compare/38d3768ba58ea25ed70758dbb64f1af0491613d3..2d21504c7b287112c3afb30123d972020eb63515
- Loading branch information
Showing
16 changed files
with
1,999 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.