-
Notifications
You must be signed in to change notification settings - Fork 122
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
feat(codegen): rearrange parameters of asm methods in order described in Asm Shuffle #1702
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # src/stdlib/stdlib.ts
@@ -54,11 +54,17 @@ | |||
"burn": "16029", | |||
"discovery": "10093" | |||
}, | |||
{ | |||
"label": "1.5.3 with improved storeBool", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add the link to this PR or some other way of identifying the exact version of Tact here (the commit hash will be known only after we squash and merge)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
let functionParams = params; | ||
let needShuffle = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't use mutation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
const paramsDict = Object.fromEntries( | ||
params.map((param, i) => [ | ||
i === 0 ? "self" : f.params[i - 1]!.name.text, | ||
param, | ||
]), | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we somehow reuse the code from writeExpression
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Support only some asm functions:
Example:
Issue
Closes #1571.
Towards #1584.
Checklist