refactor(ivy): Intruduce LFrame to store global instruction information (#33178)

`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.

PR Close #33178
This commit is contained in:
Miško Hevery
2019-10-14 13:59:17 -07:00
committed by Andrew Kushnir
parent 9ea3430a5b
commit 09a2bb839f
19 changed files with 327 additions and 259 deletions

View File

@ -155,6 +155,9 @@
{
"name": "addToViewTree"
},
{
"name": "allocLFrame"
},
{
"name": "allocStylingMapArray"
},
@ -185,6 +188,9 @@
{
"name": "createDirectivesInstances"
},
{
"name": "createLFrame"
},
{
"name": "createLView"
},
@ -227,6 +233,12 @@
{
"name": "elementCreate"
},
{
"name": "enterDI"
},
{
"name": "enterView"
},
{
"name": "executeCheckHooks"
},
@ -479,6 +491,15 @@
{
"name": "isStylingValueDefined"
},
{
"name": "leaveDI"
},
{
"name": "leaveView"
},
{
"name": "leaveViewProcessExit"
},
{
"name": "locateHostElement"
},
@ -488,9 +509,6 @@
{
"name": "matchTemplateAttribute"
},
{
"name": "namespaceHTMLInternal"
},
{
"name": "nativeAppendChild"
},
@ -560,9 +578,6 @@
{
"name": "renderView"
},
{
"name": "resetComponentState"
},
{
"name": "resetPreOrderHookFlags"
},
@ -581,9 +596,6 @@
{
"name": "selectIndexInternal"
},
{
"name": "selectView"
},
{
"name": "setActiveHostElement"
},
@ -599,9 +611,6 @@
{
"name": "setCurrentQueryIndex"
},
{
"name": "setCurrentStyleSanitizer"
},
{
"name": "setDirectiveStylingInput"
},
@ -635,9 +644,6 @@
{
"name": "setStyle"
},
{
"name": "setTNodeAndViewData"
},
{
"name": "setUpAttributes"
},

View File

@ -134,6 +134,9 @@
{
"name": "addToViewTree"
},
{
"name": "allocLFrame"
},
{
"name": "appendChild"
},
@ -152,6 +155,9 @@
{
"name": "callHooks"
},
{
"name": "createLFrame"
},
{
"name": "createLView"
},
@ -188,6 +194,12 @@
{
"name": "domRendererFactory3"
},
{
"name": "enterDI"
},
{
"name": "enterView"
},
{
"name": "executeCheckHooks"
},
@ -350,15 +362,21 @@
{
"name": "isRootView"
},
{
"name": "leaveDI"
},
{
"name": "leaveView"
},
{
"name": "leaveViewProcessExit"
},
{
"name": "locateHostElement"
},
{
"name": "markAsComponentHost"
},
{
"name": "namespaceHTMLInternal"
},
{
"name": "nativeAppendChild"
},
@ -410,18 +428,12 @@
{
"name": "renderView"
},
{
"name": "resetComponentState"
},
{
"name": "resetPreOrderHookFlags"
},
{
"name": "selectIndexInternal"
},
{
"name": "selectView"
},
{
"name": "setActiveHostElement"
},
@ -434,9 +446,6 @@
{
"name": "setCurrentQueryIndex"
},
{
"name": "setCurrentStyleSanitizer"
},
{
"name": "setHostBindings"
},
@ -455,9 +464,6 @@
{
"name": "setSelectedIndex"
},
{
"name": "setTNodeAndViewData"
},
{
"name": "stringifyForError"
},

View File

@ -362,6 +362,9 @@
{
"name": "addToViewTree"
},
{
"name": "allocLFrame"
},
{
"name": "allocStylingMapArray"
},
@ -461,6 +464,9 @@
{
"name": "createLContext"
},
{
"name": "createLFrame"
},
{
"name": "createLView"
},
@ -527,6 +533,12 @@
{
"name": "elementPropertyInternal"
},
{
"name": "enterDI"
},
{
"name": "enterView"
},
{
"name": "executeCheckHooks"
},
@ -977,6 +989,15 @@
{
"name": "iterateListLike"
},
{
"name": "leaveDI"
},
{
"name": "leaveView"
},
{
"name": "leaveViewProcessExit"
},
{
"name": "listenerInternal"
},
@ -1022,9 +1043,6 @@
{
"name": "matchTemplateAttribute"
},
{
"name": "namespaceHTMLInternal"
},
{
"name": "nativeAppendChild"
},
@ -1139,9 +1157,6 @@
{
"name": "renderView"
},
{
"name": "resetComponentState"
},
{
"name": "resetCurrentStyleSanitizer"
},
@ -1175,9 +1190,6 @@
{
"name": "selectIndexInternal"
},
{
"name": "selectView"
},
{
"name": "setActiveElementFlag"
},
@ -1247,9 +1259,6 @@
{
"name": "setStyle"
},
{
"name": "setTNodeAndViewData"
},
{
"name": "setUpAttributes"
},