-
Notifications
You must be signed in to change notification settings - Fork 4
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
RD-10500 stop creating unnecessary closures #344
RD-10500 stop creating unnecessary closures #344
Conversation
alexzerntev
commented
Jan 26, 2024
•
edited
Loading
edited
- Fixed collection Build bug.
- Separated Closures from NonClosures, from lambdas from RecFunctions
snapi-truffle/src/main/java/raw/compiler/snapi/truffle/compiler/SnapiTruffleEmitter.java
Outdated
Show resolved
Hide resolved
snapi-truffle/src/main/java/raw/runtime/truffle/ast/expressions/function/LambdaNode.java
Outdated
Show resolved
Hide resolved
8cce870
to
7772f69
Compare
7772f69
to
ad2e5bd
Compare
snapi-truffle/src/main/java/raw/compiler/snapi/truffle/compiler/SnapiTruffleEmitter.java
Outdated
Show resolved
Hide resolved
snapi-truffle/src/main/java/raw/runtime/truffle/ast/expressions/function/InvokeNodes.java
Outdated
Show resolved
Hide resolved
snapi-truffle/src/main/java/raw/compiler/snapi/truffle/compiler/SnapiTruffleEmitter.java
Outdated
Show resolved
Hide resolved
snapi-truffle/src/main/java/raw/runtime/truffle/ast/expressions/function/MethodNode.java
Outdated
Show resolved
Hide resolved
/publish
|
…g-unnecessary-closures
/publish
|
/publish
|
} | ||
// Otherwise it is a lambda | ||
else { | ||
return new Lambda(this.parentFunction.getCallTarget()); |
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.
Shouldn't it set function
to that new Lambda
and get it registered?