Conversation
…y the argument of push_return_address as hex
… function Functions are compiled last to be near their CALL instruction, so we need to compile the arguments first to have them registered by the AST lowerer, and have the correct IDs
…d a GET_FIELD_AS_CLOSURE instruction to call closure fields
Static analysis reportLizard reportListing only functions with cyclomatic complexity >= 15 or NLOC >= 100 or parameters >= 6.
Report about files you didn't modify in this PR
CppCheck report
Report files about files you didn't modify in this PR
|
…thing to compile for a function
Merging this PR will degrade performance by 5.75%
Performance Changes
Comparing |
Fuzzing report/usr/local/bin/afl-whatsup status check tool for afl-fuzz by Michal Zalewski Summary statsCycles without finds : 0 [+] Captured 43596 tuples (map size 242003, highest value 255, total values 457969782) in '/dev/null'. |
Super Instructions report
|
Pull Request Test Coverage Report for Build 23209154018Details
💛 - Coveralls |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Changes the calling convention so that in function calls, the function is evaluated first, then the arguments, in the order they appear.
This breaks a ton of things but it's worth it as everything will work the same way (operator currently evaluate from left to right, but ArkScript <= 4.4.0 evaluates function arguments from right to left, and the function to call last).
Some optimisations like
CALL_SYMBOLandCALL_BUILTINare a bit hard to add back, so we'll see if we can keep those.Checklist