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(ivy): add element instruction, reducing output size #24379
Conversation
You can preview bea02e7 at https://pr24379-bea02e7.ngbuilds.io/. |
@@ -358,6 +366,7 @@ export class TemplateDefinitionBuilder implements t.Visitor<void>, LocalResolver | |||
} | |||
}); | |||
|
|||
|
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.
nit: revert
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
@@ -90,8 +90,7 @@ describe('compiler compliance', () => { | |||
const template = ` | |||
template: function MyComponent_Template(rf: IDENT, ctx: IDENT) { | |||
if (rf & 1) { | |||
$r3$.ɵE(0, 'div'); |
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.
Those compliance tests mirror tests in angular/packages/core/test/render3/compiler_canonical
- those ones should be updated as well.
You might want to update all tests in angular/packages/core/test/render3
as well
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
You can preview 54cdbef at https://pr24379-54cdbef.ngbuilds.io/. |
Caretaker: this PR has golden file changes. |
Hi @benlesh! This PR has merge conflicts due to recent upstream merges. |
- Adds an element instruction - Reduces size of compiled output slightly
54cdbef
to
c7d5b9e
Compare
rebased |
You can preview c7d5b9e at https://pr24379-c7d5b9e.ngbuilds.io/. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
Currently the compiler outputs an
elementStart
andelementEnd
command for every element, even if they self-closed (<input />
for example)What is the new behavior?
Will output a single
element
command for self-closing tagsDoes this PR introduce a breaking change?
Other information
Factored out of #23899