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
LFrame #33178
LFrame #33178
Conversation
a918cb7
to
7050674
Compare
a5a97b4
to
747b754
Compare
Restarting presubmits, since previous ones were not informative due to a set of pre-existing (non-related) failures that are now fixed. |
FYI, Ivy presubmit indicated a target that regressed in g3, related to these changes. I'm adding "blocked" label for now. |
@@ -167,7 +164,11 @@ export class ComponentFactory<T> extends viewEngine_ComponentFactory<T> { | |||
rootViewInjector); | |||
|
|||
// rootView is the parent when bootstrapping | |||
const oldLView = selectView(rootLView, null); | |||
// TODO(misko): it looks like we are entering view here but we don't really need to as |
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.
+1, we should fix it, I was toying with this once
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. Thnx for resolving all my comments @mhevery
FYI, g3 presubmits are successful. I've added "blocked" label for now to avoid merging it before @kara's review. |
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.
Like the direction of this! Minor comments
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
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 with one more typo and moving the DI work to a new PR, as Pawel suggested.
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
`LFrame` stores information specifice to the current `LView` As the code enters and leaves `LView`s we use `enterView()` and `leaveView()` respectively to build a a stack of `LFrame`s. This allows us to easily restore the previous `LView` instruction state.
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
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. |
LFrame
.LFrame
is just a collection of global state which the instructions used. (This is not a new concept just giving an explicit name to something which we had before but was unnamed)LFrame
to use proper methods such asenterView
andleaveView
rather than having hap hazard enter/leave/save state methods.NOTE: This PR does not change how the system works, it only groups things into mental concepts and gives the mental concept a proper name.
NOTE: There seems to be still variation in measurements.