-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
refactor(transformer): duplicate_expression
take mutated_symbol_needs_temp_var
param
#7756
refactor(transformer): duplicate_expression
take mutated_symbol_needs_temp_var
param
#7756
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
CodSpeed Performance ReportMerging #7756 will improve performances by 3.27%Comparing Summary
Benchmarks breakdown
|
Merge activity
|
…eds_temp_var` param (#7756) `TransformCtx::duplicate_expression` method introduced in #7754 take a param `mutated_symbol_needs_temp_var`. If `true`, `duplicate_expression` will create a temp var for an `IdentifierReference` whose's symbol is assigned to elsewhere in the AST. If `false`, it won't. This is required because different transforms which use `duplicate_expression` have different requirements.
99542f4
to
78dff7d
Compare
04f6445
to
a750ebc
Compare
TransformCtx::duplicate_expression
method introduced in #7754 take a parammutated_symbol_needs_temp_var
.If
true
,duplicate_expression
will create a temp var for anIdentifierReference
whose's symbol is assigned to elsewhere in the AST. Iffalse
, it won't.This is required because different transforms which use
duplicate_expression
have different requirements.