@@ -1964,19 +1964,17 @@ final class EndForLoop: JsOperation {
19641964 }
19651965}
19661966
1967- final class BeginForInLoop : JsOperation {
1968- override var opcode : Opcode { . beginForInLoop( self ) }
1969-
1970- let usesPredeclaredIterator : Bool
1967+ final class BeginPlainForInLoop : JsOperation {
1968+ override var opcode : Opcode { . beginPlainForInLoop( self ) }
1969+ init ( ) {
1970+ super. init ( numInputs: 1 , numInnerOutputs: 1 , attributes: [ . isBlockStart, . propagatesSurroundingContext] , contextOpened: [ . javascript, . loop] )
1971+ }
1972+ }
19711973
1972- init ( usesPredeclaredIterator: Bool = false ) {
1973- self . usesPredeclaredIterator = usesPredeclaredIterator
1974- super. init (
1975- numInputs: usesPredeclaredIterator ? 2 : 1 ,
1976- numInnerOutputs: usesPredeclaredIterator ? 0 : 1 ,
1977- attributes: [ . isBlockStart, . propagatesSurroundingContext] ,
1978- contextOpened: [ . javascript, . loop]
1979- )
1974+ final class BeginForInLoopWithReassignment : JsOperation {
1975+ override var opcode : Opcode { . beginForInLoopWithReassignment( self ) }
1976+ init ( ) {
1977+ super. init ( numInputs: 2 , numInnerOutputs: 0 , attributes: [ . isBlockStart, . propagatesSurroundingContext] , contextOpened: [ . javascript, . loop] )
19801978 }
19811979}
19821980
@@ -1988,20 +1986,17 @@ final class EndForInLoop: JsOperation {
19881986 }
19891987}
19901988
1991- final class BeginForOfLoop : JsOperation {
1992- override var opcode : Opcode { . beginForOfLoop( self ) }
1993-
1994-
1995- let usesPredeclaredIterator : Bool
1989+ final class BeginPlainForOfLoop : JsOperation {
1990+ override var opcode : Opcode { . beginPlainForOfLoop( self ) }
1991+ init ( ) {
1992+ super. init ( numInputs: 1 , numInnerOutputs: 1 , attributes: [ . isBlockStart, . propagatesSurroundingContext] , contextOpened: [ . javascript, . loop] )
1993+ }
1994+ }
19961995
1997- init ( usesPredeclaredIterator: Bool = false ) {
1998- self . usesPredeclaredIterator = usesPredeclaredIterator
1999- super. init (
2000- numInputs: usesPredeclaredIterator ? 2 : 1 ,
2001- numInnerOutputs: usesPredeclaredIterator ? 0 : 1 ,
2002- attributes: [ . isBlockStart, . propagatesSurroundingContext] ,
2003- contextOpened: [ . javascript, . loop]
2004- )
1996+ final class BeginForOfLoopWithReassignment : JsOperation {
1997+ override var opcode : Opcode { . beginForOfLoopWithReassignment( self ) }
1998+ init ( ) {
1999+ super. init ( numInputs: 2 , numInnerOutputs: 0 , attributes: [ . isBlockStart, . propagatesSurroundingContext] , contextOpened: [ . javascript, . loop] )
20052000 }
20062001}
20072002
0 commit comments