diff --git a/scripts/build/deps/webkit.ts b/scripts/build/deps/webkit.ts index ba47f83cfe41..63d2a366b74a 100644 --- a/scripts/build/deps/webkit.ts +++ b/scripts/build/deps/webkit.ts @@ -3,7 +3,7 @@ * for local mode. Override via `--webkit-version=` to test a branch. * From https://github.com/oven-sh/WebKit releases. */ -export const WEBKIT_VERSION = "8c6c963e3c49fe39942d9625d1fc924128fad26e"; +export const WEBKIT_VERSION = "a7b59e61de2e2c4fae7c533e240ea85ca36fdddc"; /** * WebKit (JavaScriptCore) — the JS engine, with WTF and bmalloc. diff --git a/test/aot/engine-tests/analysis/arrays/local-boolean-arrays.ir b/test/aot/engine-tests/analysis/arrays/local-boolean-arrays.ir index fd89f96c6123..8ea85e096b3a 100644 --- a/test/aot/engine-tests/analysis/arrays/local-boolean-arrays.ir +++ b/test/aot/engine-tests/analysis/arrays/local-boolean-arrays.ir @@ -563,8 +563,8 @@ function f55 module=m0 role=Signature thisType={type=anything} results=[{type=an function f56 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f48] function f57 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f58 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f59 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f60 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f59 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f60 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f61 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w227}, {type=number site=w228}] results=[{type=number site=w229}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f62 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w230 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w231}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f63 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w232 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w233}, {type=anything}] results=[{type=number site=w234}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -588,8 +588,8 @@ function f68 name="filledArray" module=m4 position=2241 kind=Method role=Library v13 = Convert v8 declared={type=undefined|null|Array site=w302 flags=[OmitsNull, OmitsUndefined]} Return v13 } -runtimefunction id=33 function=f60 -runtimefunction id=69 function=f59 +runtimefunction id=32 function=f60 +runtimefunction id=68 function=f59 runtimefunction id=131091 function=f67 visibility=Private runtimefunction id=131113 function=f68 visibility=Private # -- generated: twoAtOnce diff --git a/test/aot/engine-tests/analysis/arrays/predicted-length.ir b/test/aot/engine-tests/analysis/arrays/predicted-length.ir index d3a28051a8f4..707207c0b671 100644 --- a/test/aot/engine-tests/analysis/arrays/predicted-length.ir +++ b/test/aot/engine-tests/analysis/arrays/predicted-length.ir @@ -264,7 +264,7 @@ function f6 module=m0 position=994 thisType={type=anything} results=[{type=undef function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -287,7 +287,7 @@ function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f10 +runtimefunction id=68 function=f10 # -- generated: holes made f5 next attempt # CHECK-LABEL: function {{*}}name="holes" # CHECK: module=m0 position=195 flags=[HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|Array}, {type=undefined|null|true|number|string|bigint|L0}] results=[{type=number}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -359,7 +359,7 @@ runtimefunction id=69 function=f10 # CHECK-NEXT: Jump -> next b2(v14) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f18 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f18 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f18 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -370,7 +370,7 @@ runtimefunction id=69 function=f10 # CHECK-LABEL: function {{*}}name="made" # CHECK: module=m0 position=282 role=ResultWorker flags=[HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|true|number|string|L1|Array<2, proven, pristine[Storage, Names, Dense]>}] results=[{type=int[0, 4294967295]}, {type=boolean}, {type=true}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f10}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f10} creator=Entrypoint{target=f10 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f10}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f10} creator=Entrypoint{target=f10 arguments=Registers} { # CHECK-NEXT: b0(v0: f10, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f10 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -735,7 +735,7 @@ runtimefunction id=69 function=f10 # CHECK-NEXT: Return v255 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f10 parameterMap=[{original=0}]} creator=ResultWorker{origin=f10} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f10 parameterMap=[{original=0}]} creator=ResultWorker{origin=f10} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/analysis/async/generator-delegates-undefined-null-loops.ir b/test/aot/engine-tests/analysis/async/generator-delegates-undefined-null-loops.ir index c44e94f9ff5d..f15ec435fe99 100644 --- a/test/aot/engine-tests/analysis/async/generator-delegates-undefined-null-loops.ir +++ b/test/aot/engine-tests/analysis/async/generator-delegates-undefined-null-loops.ir @@ -1097,7 +1097,7 @@ function f13 name="loopThatLeavesEarlyBehind" module=m0 position=1991 flags=[IsG b17(v41): Return v41 } -function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1120,7 +1120,7 @@ function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f15 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1144,7 +1144,7 @@ function f15 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f16 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1168,9 +1168,9 @@ function f16 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -runtimefunction id=69 function=f14 -runtimefunction id=70 function=f15 visibility=Private -runtimefunction id=86 function=f16 visibility=Private +runtimefunction id=68 function=f14 +runtimefunction id=69 function=f15 visibility=Private +runtimefunction id=85 function=f16 visibility=Private # -- generated: show nothing drain loopBehind loopInFrontAndDelegationBehind loopsOnBothSides answerOfACall insideALoop loopThatLeavesEarlyBehind # CHECK-LABEL: function {{*}}name="show" # CHECK: module=m0 position=138 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/analysis/builtin-subclasses/objects-subclass-containers-flow-unions.ir b/test/aot/engine-tests/analysis/builtin-subclasses/objects-subclass-containers-flow-unions.ir index b047381deba5..db6baab11255 100644 --- a/test/aot/engine-tests/analysis/builtin-subclasses/objects-subclass-containers-flow-unions.ir +++ b/test/aot/engine-tests/analysis/builtin-subclasses/objects-subclass-containers-flow-unions.ir @@ -560,20 +560,20 @@ function f29 module=m1 role=Signature thisType={type=anything} results=[{type=an function f30 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f31 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f32 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f33 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f34 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f35 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f36 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f38 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f33 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f34 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f35 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f38 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="iteratorGenericClose" module=m5 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f40 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f40 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f42 name="Promise" module=m8 position=1836 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName, IsNakedConstructor] length=1 enclosingRuntimeFunction=0 thisType={type=anything} parameters=[{type=anything}] results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f43 module=m8 position=2114 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 module=m8 position=2263 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 module=m10 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d4 @@ -687,15 +687,15 @@ function f87 module=m14 kind=Module role=Library flags=[IsChecked] thisType={typ } function f88 name="matchesGlob" module=m14 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w175}, {type=undefined|null|string site=w176 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w177 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w178}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f42 -runtimefunction id=47 function=f33 -runtimefunction id=69 function=f35 -runtimefunction id=70 function=f36 visibility=Private -runtimefunction id=71 function=f40 visibility=Private -runtimefunction id=72 function=f45 -runtimefunction id=86 function=f37 visibility=Private -runtimefunction id=87 function=f41 -runtimefunction id=88 function=f46 -runtimefunction id=92 function=f38 visibility=Private +runtimefunction id=46 function=f33 +runtimefunction id=68 function=f35 +runtimefunction id=69 function=f36 visibility=Private +runtimefunction id=70 function=f40 visibility=Private +runtimefunction id=71 function=f45 +runtimefunction id=85 function=f37 visibility=Private +runtimefunction id=86 function=f41 +runtimefunction id=87 function=f46 +runtimefunction id=91 function=f38 visibility=Private runtimefunction id=65574 function=f15 runtimefunction id=65580 function=f14 runtimefunction id=131072 function=f39 visibility=Private diff --git a/test/aot/engine-tests/analysis/calls/apply-of-own-arguments-in-tail-position.ir b/test/aot/engine-tests/analysis/calls/apply-of-own-arguments-in-tail-position.ir index 4211d4f8272b..d7b4c1cfdbc4 100644 --- a/test/aot/engine-tests/analysis/calls/apply-of-own-arguments-in-tail-position.ir +++ b/test/aot/engine-tests/analysis/calls/apply-of-own-arguments-in-tail-position.ir @@ -367,8 +367,8 @@ function f32 module=m0 role=Signature thisType={type=anything} results=[{type=an function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -984,8 +984,8 @@ function f46 name="traverseArray" module=m4 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f39 runtimefunction id=12 function=f38 -runtimefunction id=65 function=f37 -runtimefunction id=69 function=f36 +runtimefunction id=64 function=f37 +runtimefunction id=68 function=f36 runtimefunction id=131091 function=f46 visibility=Private # -- generated: countDown noParameter # CHECK-LABEL: function {{*}}name="countDown" diff --git a/test/aot/engine-tests/analysis/closure-factories/members-defined-in-loop-written-names.ir b/test/aot/engine-tests/analysis/closure-factories/members-defined-in-loop-written-names.ir index 202e85c1eade..8a460d9f0c81 100644 --- a/test/aot/engine-tests/analysis/closure-factories/members-defined-in-loop-written-names.ir +++ b/test/aot/engine-tests/analysis/closure-factories/members-defined-in-loop-written-names.ir @@ -531,10 +531,10 @@ function f37 module=m0 role=Signature thisType={type=anything} results=[{type=an function f38 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f41 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f44 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w7}, {type=number site=w8}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w11}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=anything}] results=[{type=number site=w14}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -542,10 +542,10 @@ function f48 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f49 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w16 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=number site=w19}] results=[{type=undefined|null|string site=w20 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w21}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f51 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w22 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w23}, {type=undefined|number site=w24}, {type=number site=w25}, {type=undefined|null|Array site=w26 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=44 function=f43 -runtimefunction id=65 function=f44 -runtimefunction id=69 function=f41 -runtimefunction id=82 function=f42 +runtimefunction id=43 function=f43 +runtimefunction id=64 function=f44 +runtimefunction id=68 function=f41 +runtimefunction id=81 function=f42 runtimefunction id=131091 function=f51 visibility=Private # -- generated: f6 f7 kept f12 f19 f20 # CHECK-LABEL: function f6 module= diff --git a/test/aot/engine-tests/analysis/objects/field-kept-several-forms-objects.ir b/test/aot/engine-tests/analysis/objects/field-kept-several-forms-objects.ir index 8114d7b7352c..b47fd8a34cdd 100644 --- a/test/aot/engine-tests/analysis/objects/field-kept-several-forms-objects.ir +++ b/test/aot/engine-tests/analysis/objects/field-kept-several-forms-objects.ir @@ -788,7 +788,7 @@ function f16 module=m0 role=Signature thisType={type=anything} results=[{type=an function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f18] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -811,7 +811,7 @@ function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f20 +runtimefunction id=68 function=f20 # -- generated: f0 arrived chosen Count Text Flag Fraction f12 # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { diff --git a/test/aot/engine-tests/analysis/runtime-caches/fields-created-by-name-without-storage.ir b/test/aot/engine-tests/analysis/runtime-caches/fields-created-by-name-without-storage.ir index 7b907f75946b..b8ef0fdd2cbf 100644 --- a/test/aot/engine-tests/analysis/runtime-caches/fields-created-by-name-without-storage.ir +++ b/test/aot/engine-tests/analysis/runtime-caches/fields-created-by-name-without-storage.ir @@ -620,7 +620,7 @@ function f22 module=m1 role=Signature thisType={type=anything} results=[{type=an function f23 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ObjectFreeze, ObjectPreventExtensions, ObjectSeal] function f24 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f26 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -636,7 +636,7 @@ function f26 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh b2(v10): Unreachable } -runtimefunction id=69 function=f26 +runtimefunction id=68 function=f26 # -- generated: f2 # CHECK-LABEL: function f2 role= # CHECK: Source diff --git a/test/aot/engine-tests/analysis/side-effects/method-iteration-and-handlers.ir b/test/aot/engine-tests/analysis/side-effects/method-iteration-and-handlers.ir index 037a45ed225b..5b17e911b99b 100644 --- a/test/aot/engine-tests/analysis/side-effects/method-iteration-and-handlers.ir +++ b/test/aot/engine-tests/analysis/side-effects/method-iteration-and-handlers.ir @@ -641,8 +641,8 @@ function f40 module=m0 role=Signature thisType={type=anything} results=[{type=an function f41 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f42 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f43 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f44 name="next" module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f46] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="return" module=m2 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f47] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="next" module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f46] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="return" module=m2 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f47] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] # -- generated: entriesInside noHandler withFinally diff --git a/test/aot/engine-tests/analysis/type-rules/failing-cast-in-initializer-at-load.ir b/test/aot/engine-tests/analysis/type-rules/failing-cast-in-initializer-at-load.ir index 3930afe4d1e7..abcf54723d4c 100644 --- a/test/aot/engine-tests/analysis/type-rules/failing-cast-in-initializer-at-load.ir +++ b/test/aot/engine-tests/analysis/type-rules/failing-cast-in-initializer-at-load.ir @@ -592,7 +592,7 @@ function f52 module=m9 role=Signature thisType={type=anything} results=[{type=an function f53 module=m9 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m9 role=Signature thisType={type=anything} results=[{type=anything}] function f55 module=m9 role=Signature thisType={type=anything} results=[{type=anything}] -function f56 name="next" module=m10 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f56 name="next" module=m10 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f57 module=m11 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d6 @@ -705,7 +705,7 @@ function f97 module=m15 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f98 name="matchesGlob" module=m15 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w172}, {type=undefined|null|string site=w173 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w174 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w175}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f56 +runtimefunction id=68 function=f56 runtimefunction id=65574 function=f38 runtimefunction id=65580 function=f37 # -- generated: f0 f2 f4 asPoint f7 f9 f10 f14 f16 f18 load f20 f21 f22 f23 f24 f25 f26 f27 f38 writeOut f60 diff --git a/test/aot/engine-tests/analysis/typed-objects/literals-with-extra-keys.ir b/test/aot/engine-tests/analysis/typed-objects/literals-with-extra-keys.ir index 430e41693638..7c52ccbb6461 100644 --- a/test/aot/engine-tests/analysis/typed-objects/literals-with-extra-keys.ir +++ b/test/aot/engine-tests/analysis/typed-objects/literals-with-extra-keys.ir @@ -805,7 +805,7 @@ function f28 module=m1 kind=Method role=Library flags=[HasThis, IsChecked] enclo v10 = Convert v9 declared={type=undefined|null|L7 site=w100 flags=[OmitsNull, OmitsUndefined]} Return v10 } -function f29 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): v4 = Undefined v5 = Convert v2 declared={type=undefined|null|function flags=[IsExpected]} @@ -1031,11 +1031,11 @@ function f29 name="from" module=m2 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f30 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Return v0 } -function f31 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -1052,7 +1052,7 @@ function f31 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f32 name="reduce" module=m4 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="reduce" module=m4 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): v4 = ToObject v0 message="Array.prototype.reduce requires that |this| not be null or undefined" v5 = PropGet v4 key="length" @@ -1155,7 +1155,7 @@ function f32 name="reduce" module=m4 position=1398 kind=Method role=Library flag b24(v90): Unreachable } -function f33 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f33 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -1173,7 +1173,7 @@ function f33 name="next" module=m5 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f34 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f34 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Return check=IsGenerator v3 = ResultAt v2 @@ -1191,9 +1191,9 @@ function f34 name="return" module=m5 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f35 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f35 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f36 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=6 last=6 v2 = ToBoolean v1 @@ -1207,7 +1207,7 @@ function f37 name="next" module=m8 position=25 kind=Method role=Library flags=[H b2(v8): Unreachable } -function f38 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f38 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = Undefined v2 = HasJSType v0 first=6 last=6 @@ -1246,7 +1246,7 @@ function f38 name="return" module=m8 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f39 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f39 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=10 last=10 v2 = ToBoolean v1 @@ -1261,7 +1261,7 @@ function f39 name="next" module=m9 position=1421 kind=Method role=Library flags= b2(v9): Unreachable } -function f40 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f40 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = Undefined v2 = HasJSType v0 first=10 last=10 @@ -1286,16 +1286,16 @@ function f40 name="return" module=m9 position=2171 kind=Method role=Library flag b4(v17): Unreachable } -runtimefunction id=47 function=f29 -runtimefunction id=69 function=f31 -runtimefunction id=70 function=f33 visibility=Private -runtimefunction id=71 function=f37 visibility=Private -runtimefunction id=72 function=f39 -runtimefunction id=82 function=f32 -runtimefunction id=86 function=f34 visibility=Private -runtimefunction id=87 function=f38 -runtimefunction id=88 function=f40 -runtimefunction id=92 function=f35 visibility=Private +runtimefunction id=46 function=f29 +runtimefunction id=68 function=f31 +runtimefunction id=69 function=f33 visibility=Private +runtimefunction id=70 function=f37 visibility=Private +runtimefunction id=71 function=f39 +runtimefunction id=81 function=f32 +runtimefunction id=85 function=f34 visibility=Private +runtimefunction id=86 function=f38 +runtimefunction id=87 function=f40 +runtimefunction id=91 function=f35 visibility=Private runtimefunction id=65569 function=f28 runtimefunction id=131072 function=f36 visibility=Private # -- generated: f13 diff --git a/test/aot/engine-tests/analysis/typed-objects/number-field-takes-room-neighbor-leaves.ir b/test/aot/engine-tests/analysis/typed-objects/number-field-takes-room-neighbor-leaves.ir index d16e941a509f..4de27624f89e 100644 --- a/test/aot/engine-tests/analysis/typed-objects/number-field-takes-room-neighbor-leaves.ir +++ b/test/aot/engine-tests/analysis/typed-objects/number-field-takes-room-neighbor-leaves.ir @@ -402,8 +402,8 @@ function f6 module=m0 position=2335 kind=Arrow flags=[IsChecked] length=2 captur } function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f10 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f10 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -442,8 +442,8 @@ function f10 name="forEach" module=m2 position=3958 kind=Method role=Library fla v33 = Undefined Return v33 } -runtimefunction id=44 function=f10 -runtimefunction id=69 function=f9 +runtimefunction id=43 function=f10 +runtimefunction id=68 function=f9 # -- generated: f0 putIntoFull putIntoRoomy putIntoWritten textOf look f6 # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/analysis/untyped-code/named-literal-in-unknown-slots-changed.ir b/test/aot/engine-tests/analysis/untyped-code/named-literal-in-unknown-slots-changed.ir index aa3d309dcfd7..cdd7dbc7ed2d 100644 --- a/test/aot/engine-tests/analysis/untyped-code/named-literal-in-unknown-slots-changed.ir +++ b/test/aot/engine-tests/analysis/untyped-code/named-literal-in-unknown-slots-changed.ir @@ -213,7 +213,7 @@ function f3 module=m0 position=260 kind=Initializer flags=[HasThis, IsChecked, I Return v4 } function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -236,7 +236,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f9 callPosition=4294967295}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f12 callPosition=4294967295 isConstruction=true module=m0}, {callee=f3 callPosition=4294967295 parent=3 module=m0}] { @@ -399,7 +399,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v118 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -408,13 +408,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/analysis/untyped-code/named-stores-reach-setter.ir b/test/aot/engine-tests/analysis/untyped-code/named-stores-reach-setter.ir index 37ce3a49ca59..3b7151a49ec9 100644 --- a/test/aot/engine-tests/analysis/untyped-code/named-stores-reach-setter.ir +++ b/test/aot/engine-tests/analysis/untyped-code/named-stores-reach-setter.ir @@ -1087,8 +1087,8 @@ function f75 module=m2 role=Signature thisType={type=anything} results=[{type=an function f76 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f77 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f76] function f78 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f77] -function f79 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f80 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f79 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f80 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f81 name="clampToLength" module=m5 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w5}, {type=number site=w6}] results=[{type=number site=w7}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f82 name="storeInNewArray" module=m5 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w8 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w9}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f83 name="appendParts" module=m5 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w11}, {type=anything}] results=[{type=number site=w12}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -1096,8 +1096,8 @@ function f84 name="joinedText" module=m5 position=1819 role=Library flags=[IsChe function f85 name="finishJoin" module=m5 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w16}, {type=number site=w17}] results=[{type=undefined|null|string site=w18 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f86 name="finishReduce" module=m5 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w19}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f87 name="traverseArray" module=m5 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w20 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w21}, {type=undefined|number site=w22}, {type=number site=w23}, {type=undefined|null|Array site=w24 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f80 -runtimefunction id=82 function=f79 +runtimefunction id=64 function=f80 +runtimefunction id=81 function=f79 runtimefunction id=131091 function=f87 visibility=Private # -- generated: f0 f1 storeSloppily f3 show K Sub f20 f21 f23 set f26 f33 attempt # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/builtins/builtin-use-callee.ir b/test/aot/engine-tests/builtins/builtin-use-callee.ir index f6a63e9dca0e..25698e8b3c50 100644 --- a/test/aot/engine-tests/builtins/builtin-use-callee.ir +++ b/test/aot/engine-tests/builtins/builtin-use-callee.ir @@ -5,14 +5,14 @@ # CHECK: outcome: Changed module m0 path="main.js" displayPath="main.js" -runtimefunction id=31 function=f0 -runtimefunction id=89 function=f1 -function f0 name="every" role=Library flags=[HasThis] enclosingRuntimeFunction=31 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean}] { +runtimefunction id=30 function=f0 +runtimefunction id=88 function=f1 +function f0 name="every" role=Library flags=[HasThis] enclosingRuntimeFunction=30 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean}] { b0(v0: anything, v1: anything, v2: anything): v3 = Boolean boolean=true Return v3 } -function f1 name="some" role=Library flags=[HasThis] enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { +function f1 name="some" role=Library flags=[HasThis] enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything, v2: anything): Return v2 } diff --git a/test/aot/engine-tests/builtins/escape-analysis/variable-around-loop-null-array-methods.ir b/test/aot/engine-tests/builtins/escape-analysis/variable-around-loop-null-array-methods.ir index d4989d7cc737..64c96e086f74 100644 --- a/test/aot/engine-tests/builtins/escape-analysis/variable-around-loop-null-array-methods.ir +++ b/test/aot/engine-tests/builtins/escape-analysis/variable-around-loop-null-array-methods.ir @@ -282,21 +282,21 @@ function f37 module=m0 role=Signature thisType={type=anything} results=[{type=an function f38 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f41 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="call" module=m4 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="apply" module=m4 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="next" module=m5 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f48] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f47 name="return" module=m5 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f49] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="next" module=m5 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f48] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="return" module=m5 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f49] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f48 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f49 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f50 module=m6 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f51 name="Tick" module=m6 position=1114 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName] thisType={type=anything} results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] constructedClass=L9 runtimefunction id=4 function=f45 runtimefunction id=12 function=f44 -runtimefunction id=47 function=f41 -runtimefunction id=69 function=f43 +runtimefunction id=46 function=f41 +runtimefunction id=68 function=f43 # -- generated: showList # CHECK-LABEL: function {{*}}name="showList" # CHECK: role=Source diff --git a/test/aot/engine-tests/builtins/language/math-trunc-before-int32-conversion.ir b/test/aot/engine-tests/builtins/language/math-trunc-before-int32-conversion.ir index 8497ccccd7cd..c8900d9a9c42 100644 --- a/test/aot/engine-tests/builtins/language/math-trunc-before-int32-conversion.ir +++ b/test/aot/engine-tests/builtins/language/math-trunc-before-int32-conversion.ir @@ -359,7 +359,7 @@ function f6 name="notConverted" module=m0 position=1562 flags=[IsChecked, HasExp function f7 module=m0 position=1678 kind=Arrow flags=[IsChecked] length=1 thisType={type=anything} parameters=[{type=number site=w60}] results=[{type=undefined|null|string site=w61 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f8] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f9] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[Number] -function f10 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f10 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f11 name="clampToLength" module=m2 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w67}, {type=number site=w68}] results=[{type=number site=w69}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f12 name="storeInNewArray" module=m2 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w70 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w71}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f13 name="appendParts" module=m2 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w72 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w73}, {type=anything}] results=[{type=number site=w74}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -367,7 +367,7 @@ function f14 name="joinedText" module=m2 position=1819 role=Library flags=[IsChe function f15 name="finishJoin" module=m2 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w76 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w77 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w78}, {type=number site=w79}] results=[{type=undefined|null|string site=w80 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f16 name="finishReduce" module=m2 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w81}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f17 name="traverseArray" module=m2 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w82 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w83}, {type=undefined|number site=w84}, {type=number site=w85}, {type=undefined|null|Array site=w86 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f10 +runtimefunction id=64 function=f10 runtimefunction id=131091 function=f17 visibility=Private # -- generated: f0 roundedOtherwise # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/builtins/layout-mismatches/response-and-a-url-under-interfaces.ir b/test/aot/engine-tests/builtins/layout-mismatches/response-and-a-url-under-interfaces.ir index 2a1a5acdf414..c6f4026a5873 100644 --- a/test/aot/engine-tests/builtins/layout-mismatches/response-and-a-url-under-interfaces.ir +++ b/test/aot/engine-tests/builtins/layout-mismatches/response-and-a-url-under-interfaces.ir @@ -231,7 +231,7 @@ function f2 name="href" module=m0 position=303 flags=[IsChecked, HasExplicitName v19 = Convert v18 declared={type=undefined|null|string site=w5 flags=[OmitsNull, OmitsUndefined]} Return v19 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -388,7 +388,7 @@ function f22 module=m3 role=Signature thisType={type=anything} results=[{type=an function f23 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f17] runtimefunction id=4 function=f5 runtimefunction id=12 function=f4 -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 next call apply # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}] { @@ -537,7 +537,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v116 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f29 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f29 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f29 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -670,7 +670,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -695,7 +695,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/builtins/layout-mismatches/views-and-buffers-under-an-interface.ir b/test/aot/engine-tests/builtins/layout-mismatches/views-and-buffers-under-an-interface.ir index db36d9d73915..c110731a6f5c 100644 --- a/test/aot/engine-tests/builtins/layout-mismatches/views-and-buffers-under-an-interface.ir +++ b/test/aot/engine-tests/builtins/layout-mismatches/views-and-buffers-under-an-interface.ir @@ -224,8 +224,8 @@ function f2 module=m1 position=145 role=Library flags=[IsChecked] length=3 enclo v94 = Call v89, -, v90, v91, v92, v93 Throw v94 } -function f3 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f3 +function f3 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=68 function=f3 runtimefunction id=65565 function=f2 # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/builtins/objects/template-strings-array.ir b/test/aot/engine-tests/builtins/objects/template-strings-array.ir index c6bae4ec2ef0..467c7f97fbac 100644 --- a/test/aot/engine-tests/builtins/objects/template-strings-array.ir +++ b/test/aot/engine-tests/builtins/objects/template-strings-array.ir @@ -131,11 +131,11 @@ function f5 module=m0 position=220 kind=Arrow flags=[IsChecked] length=1 thisTyp function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f10 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f11 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f9 -runtimefunction id=69 function=f11 +function f9 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f10 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=46 function=f9 +runtimefunction id=68 function=f11 # -- generated: f0 t # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}] { diff --git a/test/aot/engine-tests/builtins/symbol-fields/symbol-is-a-value-too.ir b/test/aot/engine-tests/builtins/symbol-fields/symbol-is-a-value-too.ir index c89ecbde1d6a..137505c852f7 100644 --- a/test/aot/engine-tests/builtins/symbol-fields/symbol-is-a-value-too.ir +++ b/test/aot/engine-tests/builtins/symbol-fields/symbol-is-a-value-too.ir @@ -61,14 +61,14 @@ function f2 module=m0 position=183 kind=Initializer flags=[HasThis, IsChecked, I # CHECK-NEXT: Int64 b@20 = Const64(0, v1:NewClosure) # CHECK-NEXT: Int64 b@21 = Patchpoint($0(b@20):Register(%r10), resultConstraints = Register(%rax), ControlDependent|Writes:{collectorState, AOTSlimClosure_word, JSCell_header, JSObject_butterfly, weakTableStorage, CollectionEntries, AllocatorState}|Reads:{argumentBuffer, frameSlots, AllocatorState}, v1:NewClosure) # CHECK-NEXT: Int64 b@10 = ArgumentReg(%r13) -# CHECK-NEXT: Int64 b@22 = Load(b@10, offset = 8264, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) +# CHECK-NEXT: Int64 b@22 = Load(b@10, offset = 8256, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) # CHECK-NEXT: Void b@23 = Store(b@22, b@21, ControlDependent|Writes:JSCell_header, v1:NewClosure) # CHECK-NEXT: Void b@24 = Store($0(b@20), b@21, offset = 8, ControlDependent|Writes:JSObject_butterfly, v1:NewClosure) # CHECK-NEXT: Int64 b@25 = Load(b@10, offset = 112, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) # CHECK-NEXT: Void b@26 = Store(b@25, b@21, offset = 16, ControlDependent|Writes:JSCallee_scope, v1:NewClosure) -# CHECK-NEXT: Int64 b@27 = Load(b@10, offset = 8216, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) +# CHECK-NEXT: Int64 b@27 = Load(b@10, offset = 8208, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) # CHECK-NEXT: Void b@28 = Store(b@27, b@21, offset = 24, ControlDependent|Writes:JSFunction_executableOrRareData, v1:NewClosure) -# CHECK-NEXT: Int64 b@29 = Load(b@10, offset = 8192, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) +# CHECK-NEXT: Int64 b@29 = Load(b@10, offset = 8184, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v1:NewClosure) # CHECK-NEXT: Int64 b@30 = Load(b@29, offset = 40, ControlDependent|ReadsImmutable|Reads:AOTImage_tables, v1:NewClosure) # CHECK-NEXT: Void b@31 = Store(b@30, b@21, offset = 32, ControlDependent|Writes:AOTClosure_entry, v1:NewClosure) # CHECK-NEXT: Void b@32 = Fence(Fence|Reads:jscRoot, v1:NewClosure) diff --git a/test/aot/engine-tests/builtins/unexpected-values/servers-and-scripts/bun-server-with-a-table-of-routes.ir b/test/aot/engine-tests/builtins/unexpected-values/servers-and-scripts/bun-server-with-a-table-of-routes.ir index b371669f701d..f1df21ca06c2 100644 --- a/test/aot/engine-tests/builtins/unexpected-values/servers-and-scripts/bun-server-with-a-table-of-routes.ir +++ b/test/aot/engine-tests/builtins/unexpected-values/servers-and-scripts/bun-server-with-a-table-of-routes.ir @@ -420,23 +420,23 @@ function f39 module=m2 role=Signature thisType={type=anything} results=[{type=an function f40 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f41 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f42 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f43 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f44 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f47 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f43 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Return check=IsGenerator v3 = ResultAt v2 index=1 v4 = ResumeGenerator v0, v1 resumeMode=Return Return v4 } -function f48 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f48 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f49 name="iteratorGenericClose" module=m7 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f50 name="next" module=m9 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f51 name="return" module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f52 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f53 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f50 name="next" module=m9 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f51 name="return" module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f52 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f53 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f54 module=m11 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d7 @@ -549,15 +549,15 @@ function f94 module=m15 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f95 name="matchesGlob" module=m15 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w130}, {type=undefined|null|string site=w131 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w132 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w133}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f43 -runtimefunction id=69 function=f45 -runtimefunction id=70 function=f46 visibility=Private -runtimefunction id=71 function=f50 visibility=Private -runtimefunction id=72 function=f52 -runtimefunction id=86 function=f47 visibility=Private -runtimefunction id=87 function=f51 -runtimefunction id=88 function=f53 -runtimefunction id=92 function=f48 visibility=Private +runtimefunction id=46 function=f43 +runtimefunction id=68 function=f45 +runtimefunction id=69 function=f46 visibility=Private +runtimefunction id=70 function=f50 visibility=Private +runtimefunction id=71 function=f52 +runtimefunction id=85 function=f47 visibility=Private +runtimefunction id=86 function=f51 +runtimefunction id=87 function=f53 +runtimefunction id=91 function=f48 visibility=Private runtimefunction id=65569 function=f23 runtimefunction id=65574 function=f25 runtimefunction id=65580 function=f24 @@ -678,7 +678,7 @@ runtimefunction id=131072 function=f49 visibility=Private # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: int[0, 2] = ResultAt v2 index=1 @@ -687,9 +687,9 @@ runtimefunction id=131072 function=f49 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function f57 module= # CHECK: m12 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(): diff --git a/test/aot/engine-tests/codegen/arrays/atomics-on-integer-typed-arrays.ir b/test/aot/engine-tests/codegen/arrays/atomics-on-integer-typed-arrays.ir index 3ffa78ba5360..472662a25828 100644 --- a/test/aot/engine-tests/codegen/arrays/atomics-on-integer-typed-arrays.ir +++ b/test/aot/engine-tests/codegen/arrays/atomics-on-integer-typed-arrays.ir @@ -1192,7 +1192,7 @@ function f41 module=m0 role=Signature thisType={type=anything} results=[{type=an function f42 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] function f43 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] -function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -1203,7 +1203,7 @@ function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -runtimefunction id=69 function=f45 +runtimefunction id=68 function=f45 # -- generated: counts swaps loads floats clamped big f21 f22 f23 f24 f27 f28 # CHECK-LABEL: function {{*}}name="counts" # CHECK: module=m0 position=225 flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=Int32Array site=w3 flags=[OmitsNull, OmitsUndefined]}, {type=int[10, 1000] site=w4}] results=[{type=number site=w5}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/codegen/arrays/callback-map-spreads-not-iterable.ir b/test/aot/engine-tests/codegen/arrays/callback-map-spreads-not-iterable.ir index 4a7b0d7c058f..4e0e9f221508 100644 --- a/test/aot/engine-tests/codegen/arrays/callback-map-spreads-not-iterable.ir +++ b/test/aot/engine-tests/codegen/arrays/callback-map-spreads-not-iterable.ir @@ -282,7 +282,7 @@ function f39 module=m0 role=Signature thisType={type=anything} results=[{type=an function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f41] function f41 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f42 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f43 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f43 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -293,7 +293,7 @@ function f43 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -function f44 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f44 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -472,8 +472,8 @@ function f51 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v94 = Convert v63 declared={type=number site=w66} Return v94 } -runtimefunction id=65 function=f44 -runtimefunction id=69 function=f43 +runtimefunction id=64 function=f44 +runtimefunction id=68 function=f43 runtimefunction id=131091 function=f51 visibility=Private # -- generated: f13 # CHECK-LABEL: function f13 role= diff --git a/test/aot/engine-tests/codegen/arrays/computed-nans-written-index-float-views.ir b/test/aot/engine-tests/codegen/arrays/computed-nans-written-index-float-views.ir index cfa6124c21f6..befaff7519d8 100644 --- a/test/aot/engine-tests/codegen/arrays/computed-nans-written-index-float-views.ir +++ b/test/aot/engine-tests/codegen/arrays/computed-nans-written-index-float-views.ir @@ -847,7 +847,7 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f21 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1153,13 +1153,13 @@ function f21 name="from" module=m1 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f22 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1182,8 +1182,8 @@ function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=47 function=f21 -runtimefunction id=69 function=f23 +runtimefunction id=46 function=f21 +runtimefunction id=68 function=f23 # -- generated: f0 subtract hex f4 f5 f6 f7 f8 f9 f10 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}] { @@ -1445,7 +1445,7 @@ runtimefunction id=69 function=f23 # CHECK-NEXT: ReturnCall v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f43 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f43 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f43 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1491,7 +1491,7 @@ runtimefunction id=69 function=f23 # CHECK-NEXT: Jump -> next b1(v10) @0 tail # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { # CHECK-NEXT: b0(v0: f23, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f23 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1499,7 +1499,7 @@ runtimefunction id=69 function=f23 # CHECK-LABEL: function {{*}}name="hex" # CHECK: module=m0 position=152 kind=Arrow role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 captures=[{type=f3}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/codegen/arrays/constant-spread-over-lanes-whole-runs.ir b/test/aot/engine-tests/codegen/arrays/constant-spread-over-lanes-whole-runs.ir index 7af5170c181b..2173f7b92f91 100644 --- a/test/aot/engine-tests/codegen/arrays/constant-spread-over-lanes-whole-runs.ir +++ b/test/aot/engine-tests/codegen/arrays/constant-spread-over-lanes-whole-runs.ir @@ -422,7 +422,7 @@ function f10 name="take" module=m0 position=1912 flags=[IsChecked, HasExplicitNa v33 = Undefined Return v33 } -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f12 name="filledArray" module=m2 position=2241 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 enclosingRuntimeFunction=131113 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|Array site=w82 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = Convert v0 declared={type=number} illTypedCause=Assertion @@ -442,7 +442,7 @@ function f12 name="filledArray" module=m2 position=2241 kind=Method role=Library v15 = Convert v14 declared={type=number site=w85} Jump -> next b1(v15) } -runtimefunction id=69 function=f11 +runtimefunction id=68 function=f11 runtimefunction id=131113 function=f12 visibility=Private # -- generated: f0 added take # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/codegen/arrays/elements-swapped-list-list-read-position.ir b/test/aot/engine-tests/codegen/arrays/elements-swapped-list-list-read-position.ir index 3b623a756693..2cd33f502b61 100644 --- a/test/aot/engine-tests/codegen/arrays/elements-swapped-list-list-read-position.ir +++ b/test/aot/engine-tests/codegen/arrays/elements-swapped-list-list-read-position.ir @@ -1027,7 +1027,7 @@ function f13 name="second" module=m0 position=2181 kind=Setter flags=[IsChecked, v8 = Undefined Return v8 } -function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1050,7 +1050,7 @@ function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f14 +runtimefunction id=68 function=f14 # -- generated: siftUp reverse rotate first second next fewerThanAreAskedFor # CHECK-LABEL: function {{*}}name="siftUp" # CHECK: module=m0 position=244 flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=Array site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w11}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -1317,7 +1317,7 @@ runtimefunction id=69 function=f14 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -1436,7 +1436,7 @@ runtimefunction id=69 function=f14 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f14}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f14}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { # CHECK-NEXT: b0(v0: f14, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f14 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/codegen/arrays/integers-of-size-stored-clamped-array.ir b/test/aot/engine-tests/codegen/arrays/integers-of-size-stored-clamped-array.ir index 05ac7d3e6faa..b2b5e9851e82 100644 --- a/test/aot/engine-tests/codegen/arrays/integers-of-size-stored-clamped-array.ir +++ b/test/aot/engine-tests/codegen/arrays/integers-of-size-stored-clamped-array.ir @@ -315,7 +315,7 @@ function f3 name="storeList" module=m0 position=919 flags=[IsChecked, HasExplici v29 = Call v27, v26, v28 calleeKey="join" calleeName="pixels.join" ReturnCall v29 casts=[{declared={type=undefined|null|string site=w28 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|string site=w9 flags=[OmitsNull, OmitsUndefined]}}] } -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -338,7 +338,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 storeList next storeWords storeSums # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}] { @@ -498,7 +498,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v25 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f12 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -591,13 +591,13 @@ runtimefunction id=69 function=f4 # CHECK-LABEL: function {{*}}name="storeSums" # CHECK: module=m0 position=779 role=GenericVersion flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w6 flags=[IsExpected]}] results=[{type=string site=w7 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=Version{provenVersion=f7} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/codegen/arrays/nans-read-bytes-negated-handed-values.ir b/test/aot/engine-tests/codegen/arrays/nans-read-bytes-negated-handed-values.ir index 3d9acac1a1e0..a7be59f66fb1 100644 --- a/test/aot/engine-tests/codegen/arrays/nans-read-bytes-negated-handed-values.ir +++ b/test/aot/engine-tests/codegen/arrays/nans-read-bytes-negated-handed-values.ir @@ -412,7 +412,7 @@ function f11 module=m0 role=Signature thisType={type=anything} results=[{type=an function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f15 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): v4 = Undefined v5 = Convert v2 declared={type=undefined|null|function flags=[IsExpected]} @@ -442,9 +442,9 @@ function f15 name="from" module=m1 position=1338 kind=Method role=Library flags= b2(v27): Unreachable } -function f16 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f18 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -491,9 +491,9 @@ function f26 name="joinedText" module=m6 position=1819 role=Library flags=[IsChe function f27 name="finishJoin" module=m6 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w34 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w35 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w36}, {type=number site=w37}] results=[{type=undefined|null|string site=w38 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="finishReduce" module=m6 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w39}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="traverseArray" module=m6 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w40 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w41}, {type=undefined|number site=w42}, {type=number site=w43}, {type=undefined|null|Array site=w44 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f15 -runtimefunction id=65 function=f18 -runtimefunction id=69 function=f17 +runtimefunction id=46 function=f15 +runtimefunction id=64 function=f18 +runtimefunction id=68 function=f17 runtimefunction id=131087 function=f22 runtimefunction id=131091 function=f29 visibility=Private # -- generated: hex f3 diff --git a/test/aot/engine-tests/codegen/arrays/nans-read-bytes-written-index-float16.ir b/test/aot/engine-tests/codegen/arrays/nans-read-bytes-written-index-float16.ir index 37e11efd3fb8..963ac1895c36 100644 --- a/test/aot/engine-tests/codegen/arrays/nans-read-bytes-written-index-float16.ir +++ b/test/aot/engine-tests/codegen/arrays/nans-read-bytes-written-index-float16.ir @@ -546,10 +546,10 @@ function f9 module=m0 role=Signature thisType={type=anything} results=[{type=any function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f13 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f14 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f15 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f16 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f13 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f14 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f15 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f16 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f17 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w4}, {type=number site=w5}] results=[{type=number site=w6}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f18 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f19 name="appendParts" module=m4 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w9 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w10}, {type=anything}] results=[{type=number site=w11}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -557,9 +557,9 @@ function f20 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f21 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w13 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w15}, {type=number site=w16}] results=[{type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w18}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w19 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w20}, {type=undefined|number site=w21}, {type=number site=w22}, {type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f13 -runtimefunction id=65 function=f16 -runtimefunction id=69 function=f15 +runtimefunction id=46 function=f13 +runtimefunction id=64 function=f16 +runtimefunction id=68 function=f15 runtimefunction id=131091 function=f23 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/codegen/arrays/neighbor-index-reads-in-loops.ir b/test/aot/engine-tests/codegen/arrays/neighbor-index-reads-in-loops.ir index 0db3c54df299..612e278d0667 100644 --- a/test/aot/engine-tests/codegen/arrays/neighbor-index-reads-in-loops.ir +++ b/test/aot/engine-tests/codegen/arrays/neighbor-index-reads-in-loops.ir @@ -476,10 +476,10 @@ function f19 module=m0 position=2664 kind=Arrow flags=[IsChecked] length=2 thisT function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f22] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w170}, {type=number site=w171}] results=[{type=number site=w172}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w173 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w174}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="appendParts" module=m4 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w175 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w176}, {type=anything}] results=[{type=number site=w177}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -506,9 +506,9 @@ function f34 name="from" module=m5 position=651 kind=Method role=Library flags=[ v16 = Convert v14 declared={type=undefined|null|Array site=w245 flags=[OmitsNull, OmitsUndefined]} Return v16 } -runtimefunction id=47 function=f23 -runtimefunction id=65 function=f26 -runtimefunction id=69 function=f25 +runtimefunction id=46 function=f23 +runtimefunction id=64 function=f26 +runtimefunction id=68 function=f25 runtimefunction id=131091 function=f33 visibility=Private runtimefunction id=131110 function=f34 # -- generated: differencesFromTwo downBehindToZero shiftUp diff --git a/test/aot/engine-tests/codegen/arrays/several-constants-are-stored-in-one-turn.ir b/test/aot/engine-tests/codegen/arrays/several-constants-are-stored-in-one-turn.ir index d3b58d8c607a..db4c7d153934 100644 --- a/test/aot/engine-tests/codegen/arrays/several-constants-are-stored-in-one-turn.ir +++ b/test/aot/engine-tests/codegen/arrays/several-constants-are-stored-in-one-turn.ir @@ -343,7 +343,7 @@ function f6 name="masked" module=m0 position=1296 flags=[IsChecked, HasExplicitN function f7 module=m0 position=1378 kind=Arrow flags=[IsChecked] length=2 thisType={type=anything} parameters=[{type=anything}, {type=number site=w52}] results=[{type=number site=w53}] functionTypes=[f8] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f9] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -354,7 +354,7 @@ function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -function f11 name="from" module=m2 position=1395 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=49 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="from" module=m2 position=1395 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=48 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): v4 = Undefined v5 = IsConstructor v0 @@ -486,9 +486,9 @@ function f11 name="from" module=m2 position=1395 kind=Method role=Library flags= v114 = CatchException Rethrow v114 } -function f12 module=m2 position=2867 role=Library flags=[IsChecked] enclosingRuntimeFunction=49 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=49 function=f11 -runtimefunction id=69 function=f10 +function f12 module=m2 position=2867 role=Library flags=[IsChecked] enclosingRuntimeFunction=48 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=48 function=f11 +runtimefunction id=68 function=f10 # -- generated: f0 two three bytes singles masked # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/codegen/arrays/sums-integers-typedarray-round-every.ir b/test/aot/engine-tests/codegen/arrays/sums-integers-typedarray-round-every.ir index fda7b028f9b8..33d6b719b7e1 100644 --- a/test/aot/engine-tests/codegen/arrays/sums-integers-typedarray-round-every.ir +++ b/test/aot/engine-tests/codegen/arrays/sums-integers-typedarray-round-every.ir @@ -362,11 +362,11 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f17 name="from" module=m2 position=1395 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=49 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f18 module=m2 position=2867 role=Library flags=[IsChecked] enclosingRuntimeFunction=49 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=49 function=f17 -runtimefunction id=69 function=f16 +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="from" module=m2 position=1395 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=48 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 module=m2 position=2867 role=Library flags=[IsChecked] enclosingRuntimeFunction=48 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=48 function=f17 +runtimefunction id=68 function=f16 # -- generated: f0 addedFromBothEnds # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/codegen/async/async-many-parameters.ir b/test/aot/engine-tests/codegen/async/async-many-parameters.ir index 340f2a0fbbe8..2dc55fea08a3 100644 --- a/test/aot/engine-tests/codegen/async/async-many-parameters.ir +++ b/test/aot/engine-tests/codegen/async/async-many-parameters.ir @@ -804,8 +804,8 @@ function f42 module=m1 role=Signature thisType={type=anything} results=[{type=an function f43 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f44 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f45 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f46 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f47 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f46 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): v4 = ToObject v0 message="Array.prototype.reduce requires that |this| not be null or undefined" v5 = PropGet v4 key="length" @@ -952,8 +952,8 @@ function f91 module=m9 kind=Module role=Library flags=[IsChecked] thisType={type } function f92 name="matchesGlob" module=m9 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w252}, {type=undefined|null|string site=w253 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w254 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w255}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f48 -runtimefunction id=69 function=f46 -runtimefunction id=82 function=f47 +runtimefunction id=68 function=f46 +runtimefunction id=81 function=f47 runtimefunction id=65574 function=f28 runtimefunction id=65580 function=f27 # -- generated: f0 nine mixed closes f15 diff --git a/test/aot/engine-tests/codegen/calls/args-object-spread-walked-taken-apart.ir b/test/aot/engine-tests/codegen/calls/args-object-spread-walked-taken-apart.ir index 6e49f1bbef31..fe2a61662087 100644 --- a/test/aot/engine-tests/codegen/calls/args-object-spread-walked-taken-apart.ir +++ b/test/aot/engine-tests/codegen/calls/args-object-spread-walked-taken-apart.ir @@ -2601,7 +2601,7 @@ function f78 module=m2 role=Signature thisType={type=anything} results=[{type=an function f79 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f80 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f81 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f82 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f82 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -2907,13 +2907,13 @@ function f82 name="from" module=m3 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f83 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f83 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f84 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f84 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3050,7 +3050,7 @@ function f86 name="apply" module=m6 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f87 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f87 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3074,7 +3074,7 @@ function f87 name="next" module=m7 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f88 name="return" module=m7 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f88 name="return" module=m7 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3098,7 +3098,7 @@ function f88 name="return" module=m7 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f89 name="throw" module=m7 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f89 name="throw" module=m7 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3898,11 +3898,11 @@ function f149 module=m15 kind=Module role=Library flags=[IsChecked] thisType={ty function f150 name="matchesGlob" module=m15 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w139}, {type=undefined|null|string site=w140 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w141 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w142}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f86 runtimefunction id=12 function=f85 -runtimefunction id=47 function=f82 -runtimefunction id=69 function=f84 -runtimefunction id=70 function=f87 visibility=Private -runtimefunction id=86 function=f88 visibility=Private -runtimefunction id=92 function=f89 visibility=Private +runtimefunction id=46 function=f82 +runtimefunction id=68 function=f84 +runtimefunction id=69 function=f87 visibility=Private +runtimefunction id=85 function=f88 visibility=Private +runtimefunction id=91 function=f89 visibility=Private runtimefunction id=65574 function=f64 runtimefunction id=65580 function=f63 # -- generated: f0 target changeIterator changeKept spread spreadAndRead takeTwo passOnBetween lengthIsNoNumber iteratorReplaced getterDefined changedWhileWalked grownWhileWalked inAnArrow show f38 f40 get list f45 f64 return throw @@ -4419,7 +4419,7 @@ runtimefunction id=65580 function=f63 # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m7 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f154 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f154 callPosition=548 module=m7}] { +# CHECK: module=m7 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f154 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f154 callPosition=548 module=m7}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -4442,7 +4442,7 @@ runtimefunction id=65580 function=f63 # CHECK-NEXT: Return v15 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m7 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f155 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f155 callPosition=1077 module=m7}] { +# CHECK: module=m7 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f155 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f155 callPosition=1077 module=m7}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -4471,7 +4471,7 @@ runtimefunction id=65580 function=f63 # CHECK-LABEL: function {{*}}name="get" # CHECK: module=m14 position=21693 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] captures=[{type=undefined|null|string site=w136 flags=[OmitsNull, OmitsUndefined]}] thisType={type=undefined|null|object flags=[IsExpected]} results=[{type=anything}] functionTypes=[f145] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m7 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f88 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f88} { +# CHECK: module=m7 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f88 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f88} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -4496,7 +4496,7 @@ runtimefunction id=65580 function=f63 # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m7 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f89 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f89} { +# CHECK: module=m7 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f89 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f89} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -4521,7 +4521,7 @@ runtimefunction id=65580 function=f63 # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m7 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f88}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f88} creator=Entrypoint{target=f88 arguments=Registers} inlineFrames=[{}, {callee=f88 callPosition=548 isTailCall=true module=m7}] { +# CHECK: module=m7 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f88}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f88} creator=Entrypoint{target=f88 arguments=Registers} inlineFrames=[{}, {callee=f88 callPosition=548 isTailCall=true module=m7}] { # CHECK-NEXT: b0(v0: f88, v1: anything, v2: anything): # CHECK-NEXT: v3: undefined = CallDirect v1, v2 function=f154 # CHECK-NEXT: v4: i32 = ResultAt v3 @@ -4543,7 +4543,7 @@ runtimefunction id=65580 function=f63 # CHECK-NEXT: Return v14 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m7 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f89}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f89} creator=Entrypoint{target=f89 arguments=Registers} inlineFrames=[{}, {callee=f89 callPosition=1077 isTailCall=true module=m7}] { +# CHECK: module=m7 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f89}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f89} creator=Entrypoint{target=f89 arguments=Registers} inlineFrames=[{}, {callee=f89 callPosition=1077 isTailCall=true module=m7}] { # CHECK-NEXT: b0(v0: f89, v1: anything, v2: anything): # CHECK-NEXT: v3: undefined = CallDirect v1, v2 function=f155 # CHECK-NEXT: v4: i32 = ResultAt v3 diff --git a/test/aot/engine-tests/codegen/calls/casts-behind-calls-in-tail-position.ir b/test/aot/engine-tests/codegen/calls/casts-behind-calls-in-tail-position.ir index cf070e0816eb..1eee006b26c9 100644 --- a/test/aot/engine-tests/codegen/calls/casts-behind-calls-in-tail-position.ir +++ b/test/aot/engine-tests/codegen/calls/casts-behind-calls-in-tail-position.ir @@ -313,8 +313,8 @@ function f38 module=m0 role=Signature thisType={type=anything} results=[{type=an function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f28, f40] function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f28] function f41 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f42 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="find" module=m2 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f42 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="find" module=m2 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=34 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.find requires that |this| not be null or undefined" @@ -334,8 +334,8 @@ function f43 name="find" module=m2 position=6413 kind=Method role=Library flags= v18 = Call v16, v2, v15, v17, v4 Return v15 } -runtimefunction id=35 function=f43 -runtimefunction id=69 function=f42 +runtimefunction id=34 function=f43 +runtimefunction id=68 function=f42 # -- generated: f17 # CHECK-LABEL: function f17 role= # CHECK: Source diff --git a/test/aot/engine-tests/codegen/calls/new-object-field-stores-in-try.ir b/test/aot/engine-tests/codegen/calls/new-object-field-stores-in-try.ir index 3acc5faf7f2e..97d73ece2449 100644 --- a/test/aot/engine-tests/codegen/calls/new-object-field-stores-in-try.ir +++ b/test/aot/engine-tests/codegen/calls/new-object-field-stores-in-try.ir @@ -329,7 +329,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an # CHECK-NEXT: Successors: Then:#10, Else:Rare:#11 # CHECK-NEXT: BB#10: ; frequency = 0.940314 # CHECK-NEXT: Predecessors: #9 -# CHECK-NEXT: Int64 b@130 = Load(b@10, offset = 8040, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v22:String) +# CHECK-NEXT: Int64 b@130 = Load(b@10, offset = 8032, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v22:String) # CHECK-NEXT: Int64 b@131 = Load(b@130, ControlDependent|Reads:AOTInstance_stringCells, v22:String) # CHECK-NEXT: Void b@133 = Branch(b@131, Terminal, v22:String) # CHECK-NEXT: Successors: Then:#37, Else:Rare:#38 @@ -430,7 +430,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an # CHECK-NEXT: BB#25: ; frequency = 0.058709 # CHECK-NEXT: Predecessors: #2, #27, #26 # CHECK-NEXT: Void b@81 = Store(b@65, b@34, offset = 40, ControlDependent|Writes:ObjectFields.11, v34:PutSlotOrAdd) -# CHECK-NEXT: Int64 b@87 = Load(b@10, offset = 8040, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v38:String) +# CHECK-NEXT: Int64 b@87 = Load(b@10, offset = 8032, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v38:String) # CHECK-NEXT: Int64 b@88 = Load(b@87, ControlDependent|Reads:AOTInstance_stringCells, v38:String) # CHECK-NEXT: Void b@90 = Branch(b@88, Terminal, v38:String) # CHECK-NEXT: Successors: Then:#28, Else:Rare:#29 diff --git a/test/aot/engine-tests/codegen/calls/tail-calls-mixed-result-types.ir b/test/aot/engine-tests/codegen/calls/tail-calls-mixed-result-types.ir index a91ae3471264..97c50b5eafd3 100644 --- a/test/aot/engine-tests/codegen/calls/tail-calls-mixed-result-types.ir +++ b/test/aot/engine-tests/codegen/calls/tail-calls-mixed-result-types.ir @@ -462,7 +462,7 @@ function f51 module=m0 role=Signature thisType={type=anything} results=[{type=an function f52 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f47, f49, f51] function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f54] function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f55 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f55 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f56 name="clampToLength" module=m2 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w125}, {type=number site=w126}] results=[{type=number site=w127}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f57 name="storeInNewArray" module=m2 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w128 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w129}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f58 name="appendParts" module=m2 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w130 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w131}, {type=anything}] results=[{type=number site=w132}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -470,7 +470,7 @@ function f59 name="joinedText" module=m2 position=1819 role=Library flags=[IsChe function f60 name="finishJoin" module=m2 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w134 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w135 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w136}, {type=number site=w137}] results=[{type=undefined|null|string site=w138 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f61 name="finishReduce" module=m2 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w139}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f62 name="traverseArray" module=m2 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w140 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w141}, {type=undefined|number site=w142}, {type=number site=w143}, {type=undefined|null|Array site=w144 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f55 +runtimefunction id=64 function=f55 runtimefunction id=131091 function=f62 visibility=Private # -- generated: typedAboveWithCast f17 # CHECK-LABEL: function {{*}}name="typedAboveWithCast" diff --git a/test/aot/engine-tests/codegen/classes-and-closures/closure-changes-variable-loops-try.ir b/test/aot/engine-tests/codegen/classes-and-closures/closure-changes-variable-loops-try.ir index 382f54379f1d..a5f063d62e9f 100644 --- a/test/aot/engine-tests/codegen/classes-and-closures/closure-changes-variable-loops-try.ir +++ b/test/aot/engine-tests/codegen/classes-and-closures/closure-changes-variable-loops-try.ir @@ -3786,7 +3786,7 @@ function f14 module=m0 position=289 kind=Initializer flags=[HasThis, IsChecked, Return v6 } function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3809,7 +3809,7 @@ function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f16 +runtimefunction id=68 function=f16 # -- generated: f0 tick opaqueInt fold Blown closure0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -6130,7 +6130,7 @@ runtimefunction id=69 function=f16 # CHECK-LABEL: function {{*}}name="closure0" # CHECK: module=m0 position=6817 kind=Arrow flags=[IsChecked] length=1 captures=[{type=env L2 flags=[IsFromCompiler]}, {type=int[0, 8191] site=w95}] thisType={type=anything} parameters=[{type=i32 site=w163}] results=[{type=i32 site=w164}] functionTypes=[f15] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f23 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -6139,7 +6139,7 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f16}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f16}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { # CHECK-NEXT: b0(v0: f16, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f16 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -6156,7 +6156,7 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}]} creator=ResultWorker{origin=f16} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}]} creator=ResultWorker{origin=f16} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/codegen/collections-and-built-ins/array-filter-with-an-arrow.ir b/test/aot/engine-tests/codegen/collections-and-built-ins/array-filter-with-an-arrow.ir index 4b0474ce8b60..75449e8887d4 100644 --- a/test/aot/engine-tests/codegen/collections-and-built-ins/array-filter-with-an-arrow.ir +++ b/test/aot/engine-tests/codegen/collections-and-built-ins/array-filter-with-an-arrow.ir @@ -116,7 +116,7 @@ variable g2 name="joinedText" module=m2 declared={type=f9 flags=[IsFromCompiler] variable g3 name="appendParts" module=m2 declared={type=f8 flags=[IsFromCompiler]} initialization=Function function=f8 flags=[IsImmutable] variable g4 name="finishReduce" module=m2 declared={type=f11 flags=[IsFromCompiler]} initialization=Function function=f11 flags=[IsImmutable] variable g5 name="finishJoin" module=m2 declared={type=f10 flags=[IsFromCompiler]} initialization=Function function=f10 flags=[IsImmutable] -runtimefunction id=33 function=f5 +runtimefunction id=32 function=f5 runtimefunction id=131091 function=f12 visibility=Private function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { b0(): @@ -184,7 +184,7 @@ function f2 module=m0 position=67 kind=Arrow flags=[IsChecked] length=1 thisType } function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f4] function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f5 name="filter" module=m1 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="filter" module=m1 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/codegen/collections-and-built-ins/array-map-with-an-arrow.ir b/test/aot/engine-tests/codegen/collections-and-built-ins/array-map-with-an-arrow.ir index db1d479b6117..21bda080c725 100644 --- a/test/aot/engine-tests/codegen/collections-and-built-ins/array-map-with-an-arrow.ir +++ b/test/aot/engine-tests/codegen/collections-and-built-ins/array-map-with-an-arrow.ir @@ -115,7 +115,7 @@ variable g2 name="joinedText" module=m2 declared={type=f9 flags=[IsFromCompiler] variable g3 name="appendParts" module=m2 declared={type=f8 flags=[IsFromCompiler]} initialization=Function function=f8 flags=[IsImmutable] variable g4 name="finishReduce" module=m2 declared={type=f11 flags=[IsFromCompiler]} initialization=Function function=f11 flags=[IsImmutable] variable g5 name="finishJoin" module=m2 declared={type=f10 flags=[IsFromCompiler]} initialization=Function function=f10 flags=[IsImmutable] -runtimefunction id=65 function=f5 +runtimefunction id=64 function=f5 runtimefunction id=131091 function=f12 visibility=Private function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { b0(): @@ -183,7 +183,7 @@ function f2 module=m0 position=63 kind=Arrow flags=[IsChecked] length=1 thisType } function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f4] function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f5 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/codegen/escape-analysis/removed-allocations.ir b/test/aot/engine-tests/codegen/escape-analysis/removed-allocations.ir index b33e03e6b7da..2f79cd29b885 100644 --- a/test/aot/engine-tests/codegen/escape-analysis/removed-allocations.ir +++ b/test/aot/engine-tests/codegen/escape-analysis/removed-allocations.ir @@ -232,8 +232,8 @@ function f7 name="add" module=m0 position=457 kind=Arrow flags=[IsChecked] lengt } function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f9] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f11 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -271,8 +271,8 @@ function f11 name="forEach" module=m2 position=3958 kind=Method role=Library fla v32 = Undefined Return v32 } -runtimefunction id=44 function=f11 -runtimefunction id=69 function=f10 +runtimefunction id=43 function=f11 +runtimefunction id=68 function=f10 # -- generated: f0 # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/codegen/escape-analysis/stack-closures-moved-to-heap.ir b/test/aot/engine-tests/codegen/escape-analysis/stack-closures-moved-to-heap.ir index fe224be4f3c7..66df680050e2 100644 --- a/test/aot/engine-tests/codegen/escape-analysis/stack-closures-moved-to-heap.ir +++ b/test/aot/engine-tests/codegen/escape-analysis/stack-closures-moved-to-heap.ir @@ -325,7 +325,7 @@ function f30 module=m0 role=Signature thisType={type=anything} results=[{type=an function f31 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f20] function f32 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33] function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f34 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f34 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -360,7 +360,7 @@ function f35 name="firstSearchedIndex" module=m2 position=399 role=Library flags function f36 name="holdsBoxedValues" module=m2 position=750 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w82}] results=[{type=boolean site=w83}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f37 name="indexOfUndefined" module=m2 position=878 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w84 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w85}, {type=number site=w86}] results=[{type=number site=w87}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f38 name="indexOf" module=m2 position=1166 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=131088 thisType={type=undefined|null|Array site=w89 flags=[OmitsNull, OmitsUndefined]} parameters=[{type=anything}, {type=undefined|number site=w88}] results=[{type=number site=w90}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=44 function=f34 +runtimefunction id=43 function=f34 runtimefunction id=131088 function=f38 # -- generated: roundALoop # CHECK-LABEL: function {{*}}name="roundALoop" diff --git a/test/aot/engine-tests/codegen/gc/lists-nobody-else-searched-boolean.ir b/test/aot/engine-tests/codegen/gc/lists-nobody-else-searched-boolean.ir index c00d2ae25edf..827546c4c61b 100644 --- a/test/aot/engine-tests/codegen/gc/lists-nobody-else-searched-boolean.ir +++ b/test/aot/engine-tests/codegen/gc/lists-nobody-else-searched-boolean.ir @@ -368,10 +368,10 @@ function f11 module=m0 role=Signature thisType={type=anything} results=[{type=an function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f15 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f16 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f18 name="every" module=m3 position=3388 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=31 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w2}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f16 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 name="every" module=m3 position=3388 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=30 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w2}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.every requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -410,7 +410,7 @@ function f18 name="every" module=m3 position=3388 kind=Method role=Library flags v33 = Convert v32 declared={type=boolean site=w2} Return v33 } -function f19 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.filter requires that |this| not be null or undefined" @@ -449,7 +449,7 @@ function f19 name="filter" module=m3 position=4475 kind=Method role=Library flag b3(v37, v38): Return v11 } -function f20 name="some" module=m3 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w3}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="some" module=m3 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w3}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.some requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -495,9 +495,9 @@ function f20 name="some" module=m3 position=5857 kind=Method role=Library flags= v38 = Convert v37 declared={type=boolean site=w3} Return v38 } -function f21 name="find" module=m3 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f22 name="findLast" module=m3 position=6956 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=38 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="findIndex" module=m3 position=7515 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=37 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="find" module=m3 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=34 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f22 name="findLast" module=m3 position=6956 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=37 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="findIndex" module=m3 position=7515 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=36 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.findIndex requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -513,7 +513,7 @@ function f23 name="findIndex" module=m3 position=7515 kind=Method role=Library f v14 = Convert v13 declared={type=number site=w4} Return v14 } -function f24 name="findLastIndex" module=m3 position=8031 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=number site=w5}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="findLastIndex" module=m3 position=8031 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=38 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=number site=w5}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.findLastIndex requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -556,15 +556,15 @@ function f28 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f29 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w30 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w31 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w32}, {type=number site=w33}] results=[{type=undefined|null|string site=w34 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w35}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f31 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w36 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w37}, {type=undefined|number site=w38}, {type=number site=w39}, {type=undefined|null|Array site=w40 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=31 function=f18 -runtimefunction id=33 function=f19 -runtimefunction id=35 function=f21 -runtimefunction id=37 function=f23 -runtimefunction id=38 function=f22 -runtimefunction id=39 function=f24 -runtimefunction id=47 function=f15 -runtimefunction id=69 function=f17 -runtimefunction id=89 function=f20 +runtimefunction id=30 function=f18 +runtimefunction id=32 function=f19 +runtimefunction id=34 function=f21 +runtimefunction id=36 function=f23 +runtimefunction id=37 function=f22 +runtimefunction id=38 function=f24 +runtimefunction id=46 function=f15 +runtimefunction id=68 function=f17 +runtimefunction id=88 function=f20 runtimefunction id=131091 function=f31 visibility=Private # -- generated: integers fractions fractionsAtTheEnd texts # CHECK-LABEL: function {{*}}name="integers" diff --git a/test/aot/engine-tests/codegen/host-classes/keys-data-view-prototype-loops-read-hot.ir b/test/aot/engine-tests/codegen/host-classes/keys-data-view-prototype-loops-read-hot.ir index 3e7a04290e80..0e230d111dfa 100644 --- a/test/aot/engine-tests/codegen/host-classes/keys-data-view-prototype-loops-read-hot.ir +++ b/test/aot/engine-tests/codegen/host-classes/keys-data-view-prototype-loops-read-hot.ir @@ -401,7 +401,7 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f26 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -641,7 +641,7 @@ function f33 name="traverseArray" module=m2 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w65} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f26 +runtimefunction id=64 function=f26 runtimefunction id=131091 function=f33 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/codegen/language/bit-operations-whose-result-is-tested.ir b/test/aot/engine-tests/codegen/language/bit-operations-whose-result-is-tested.ir index 255ccc3c0ee1..a7b50da84e09 100644 --- a/test/aot/engine-tests/codegen/language/bit-operations-whose-result-is-tested.ir +++ b/test/aot/engine-tests/codegen/language/bit-operations-whose-result-is-tested.ir @@ -312,8 +312,8 @@ function f31 module=m0 role=Signature thisType={type=anything} results=[{type=an function f32 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f35 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f36 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f35 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f37 name="firstSearchedIndex" module=m3 position=399 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|number site=w60}, {type=number site=w61}] results=[{type=number site=w62}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f38 name="holdsBoxedValues" module=m3 position=750 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w63}] results=[{type=boolean site=w64}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="indexOfUndefined" module=m3 position=878 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w65 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w66}, {type=number site=w67}] results=[{type=number site=w68}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -325,8 +325,8 @@ function f44 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f45 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w90 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w91 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w92}, {type=number site=w93}] results=[{type=undefined|null|string site=w94 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w95}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w96 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w97}, {type=undefined|number site=w98}, {type=number site=w99}, {type=undefined|null|Array site=w100 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f36 -runtimefunction id=69 function=f35 +runtimefunction id=64 function=f36 +runtimefunction id=68 function=f35 runtimefunction id=131088 function=f40 runtimefunction id=131091 function=f47 visibility=Private # -- generated: found allOnes diff --git a/test/aot/engine-tests/codegen/language/closure-of-an-expected-function.ir b/test/aot/engine-tests/codegen/language/closure-of-an-expected-function.ir index 023cfc077bdd..05959923d0c2 100644 --- a/test/aot/engine-tests/codegen/language/closure-of-an-expected-function.ir +++ b/test/aot/engine-tests/codegen/language/closure-of-an-expected-function.ir @@ -516,17 +516,17 @@ function f51 module=m1 role=Signature thisType={type=anything} results=[{type=an function f52 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f55 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f55 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f56 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f57 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f59 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f60 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f59 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f60 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f61 name="iteratorGenericClose" module=m5 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f62 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f63 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f64 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f65 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f62 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f63 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f64 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f65 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f66 module=m9 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d6 @@ -641,14 +641,14 @@ function f106 module=m13 kind=Module role=Library flags=[IsChecked] thisType={ty function f107 name="matchesGlob" module=m13 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w129}, {type=undefined|null|string site=w130 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w131 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w132}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f57 runtimefunction id=12 function=f56 -runtimefunction id=69 function=f55 -runtimefunction id=70 function=f58 visibility=Private -runtimefunction id=71 function=f62 visibility=Private -runtimefunction id=72 function=f64 -runtimefunction id=86 function=f59 visibility=Private -runtimefunction id=87 function=f63 -runtimefunction id=88 function=f65 -runtimefunction id=92 function=f60 visibility=Private +runtimefunction id=68 function=f55 +runtimefunction id=69 function=f58 visibility=Private +runtimefunction id=70 function=f62 visibility=Private +runtimefunction id=71 function=f64 +runtimefunction id=85 function=f59 visibility=Private +runtimefunction id=86 function=f63 +runtimefunction id=87 function=f65 +runtimefunction id=91 function=f60 visibility=Private runtimefunction id=65574 function=f37 runtimefunction id=65580 function=f36 runtimefunction id=131072 function=f61 visibility=Private diff --git a/test/aot/engine-tests/codegen/language/counter-masked-lowered-loop-inside-loop.ir b/test/aot/engine-tests/codegen/language/counter-masked-lowered-loop-inside-loop.ir index 9981b3574c3c..17550065a6d5 100644 --- a/test/aot/engine-tests/codegen/language/counter-masked-lowered-loop-inside-loop.ir +++ b/test/aot/engine-tests/codegen/language/counter-masked-lowered-loop-inside-loop.ir @@ -3736,7 +3736,7 @@ function f9 module=m0 position=10513 kind=Arrow flags=[IsChecked] captures=[{typ function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] -function f13 name="next" module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3760,7 +3760,7 @@ function f13 name="next" module=m1 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f14 name="return" module=m1 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="return" module=m1 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3784,8 +3784,8 @@ function f14 name="return" module=m1 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -runtimefunction id=70 function=f13 visibility=Private -runtimefunction id=86 function=f14 visibility=Private +runtimefunction id=69 function=f13 visibility=Private +runtimefunction id=85 function=f14 visibility=Private # -- generated: f0 log f3 f4 f5 next return # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -5432,7 +5432,7 @@ runtimefunction id=86 function=f14 visibility=Private # CHECK-NEXT: Throw v39 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f22 layout=L(IteratorResult)} { +# CHECK: module=m1 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f22 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f22 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -5454,7 +5454,7 @@ runtimefunction id=86 function=f14 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m1 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { +# CHECK: module=m1 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f23 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -5476,19 +5476,19 @@ runtimefunction id=86 function=f14 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f13}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { +# CHECK: module=m1 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f13}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { # CHECK-NEXT: b0(v0: f13, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f13 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m1 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f14}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { +# CHECK: module=m1 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f14}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { # CHECK-NEXT: b0(v0: f14, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f14 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f13 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f13} { +# CHECK: module=m1 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f13 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f13} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -5513,7 +5513,7 @@ runtimefunction id=86 function=f14 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m1 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f14 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f14} { +# CHECK: module=m1 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f14 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f14} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/codegen/language/in-place-integer-updates-at-int32-limits.ir b/test/aot/engine-tests/codegen/language/in-place-integer-updates-at-int32-limits.ir index 2b2c76bc76d0..44ee8c5fa042 100644 --- a/test/aot/engine-tests/codegen/language/in-place-integer-updates-at-int32-limits.ir +++ b/test/aot/engine-tests/codegen/language/in-place-integer-updates-at-int32-limits.ir @@ -794,7 +794,7 @@ function f17 module=m1 position=72 kind=Initializer flags=[HasThis, IsChecked, I function f18 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f19] -function f21 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -805,7 +805,7 @@ function f21 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -runtimefunction id=69 function=f21 +runtimefunction id=68 function=f21 # -- generated: anonymous increment subtractAnySign addToVariables makeCounter show f16 f17 # CHECK-LABEL: function {{*}}name="anonymous" # CHECK: module=m0 position=1 flags=[IsSloppy, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=L1|f16}] results=[{type=L1|f16}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/codegen/language/integers-every-size-boxed.ir b/test/aot/engine-tests/codegen/language/integers-every-size-boxed.ir index 32b0eb11ff51..7bc82dbc8f0b 100644 --- a/test/aot/engine-tests/codegen/language/integers-every-size-boxed.ir +++ b/test/aot/engine-tests/codegen/language/integers-every-size-boxed.ir @@ -429,7 +429,7 @@ function f17 module=m0 position=886 kind=Initializer flags=[HasThis, IsChecked, } function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f19] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -446,7 +446,7 @@ function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -710,8 +710,8 @@ function f28 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b64(v184): Return v184 } -runtimefunction id=65 function=f21 -runtimefunction id=69 function=f20 +runtimefunction id=64 function=f21 +runtimefunction id=68 function=f20 runtimefunction id=131091 function=f28 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/codegen/language/remainders-by-constants.ir b/test/aot/engine-tests/codegen/language/remainders-by-constants.ir index 1f0d80972b04..52c0b669c737 100644 --- a/test/aot/engine-tests/codegen/language/remainders-by-constants.ir +++ b/test/aot/engine-tests/codegen/language/remainders-by-constants.ir @@ -299,8 +299,8 @@ function f59 module=m0 role=Signature thisType={type=anything} results=[{type=an function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33, f34] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f62] function f62 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f64 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f64 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f65 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w91}, {type=number site=w92}] results=[{type=number site=w93}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f66 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w94 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w95}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f67 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w96 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w97}, {type=anything}] results=[{type=number site=w98}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -308,8 +308,8 @@ function f68 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f69 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w100 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w101 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w102}, {type=number site=w103}] results=[{type=undefined|null|string site=w104 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f70 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w105}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f71 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w106 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w107}, {type=undefined|number site=w108}, {type=number site=w109}, {type=undefined|null|Array site=w110 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f64 -runtimefunction id=69 function=f63 +runtimefunction id=64 function=f64 +runtimefunction id=68 function=f63 runtimefunction id=131091 function=f71 visibility=Private # -- generated: f31 # CHECK-LABEL: function f31 role= diff --git a/test/aot/engine-tests/codegen/language/remainders-negations-integers-wherever.ir b/test/aot/engine-tests/codegen/language/remainders-negations-integers-wherever.ir index 68eceaa9870a..811949e725c0 100644 --- a/test/aot/engine-tests/codegen/language/remainders-negations-integers-wherever.ir +++ b/test/aot/engine-tests/codegen/language/remainders-negations-integers-wherever.ir @@ -1764,7 +1764,7 @@ function f8 module=m0 position=830 kind=Initializer flags=[HasThis, IsChecked, I } function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1787,7 +1787,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f12 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2938,8 +2938,8 @@ function f20 name="traverseArray" module=m3 position=2337 kind=Method role=Libra Return v555 } runtimefunction id=8 function=f13 -runtimefunction id=65 function=f12 -runtimefunction id=69 function=f11 +runtimefunction id=64 function=f12 +runtimefunction id=68 function=f11 runtimefunction id=131091 function=f20 visibility=Private # -- generated: f0 show note greatestCommonDivisor Holder next # CHECK-LABEL: function f0 module= @@ -3312,7 +3312,7 @@ runtimefunction id=131091 function=f20 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f38 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f38 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f38 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -3375,7 +3375,7 @@ runtimefunction id=131091 function=f20 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -3389,7 +3389,7 @@ runtimefunction id=131091 function=f20 visibility=Private # CHECK-LABEL: function {{*}}name="Holder" # CHECK: module=m0 position=830 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, IsChecked, HasExplicitName] thisType={type=L0} results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{}, {original=0}]} creator=Version{provenVersion=f7} constructedClass=L0 # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/codegen/language/remainders-of-numbers-by-constants.ir b/test/aot/engine-tests/codegen/language/remainders-of-numbers-by-constants.ir index ad9aa4dca67d..226a0f315cbe 100644 --- a/test/aot/engine-tests/codegen/language/remainders-of-numbers-by-constants.ir +++ b/test/aot/engine-tests/codegen/language/remainders-of-numbers-by-constants.ir @@ -514,9 +514,9 @@ function f13 module=m1 role=Signature thisType={type=anything} results=[{type=an function f14 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f15 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f18 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f19 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f19 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f20 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w56}, {type=number site=w57}] results=[{type=number site=w58}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f21 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w59 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w60}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="appendParts" module=m4 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w61 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w62}, {type=anything}] results=[{type=number site=w63}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -822,9 +822,9 @@ function f26 name="traverseArray" module=m4 position=2337 kind=Method role=Libra v249 = Call v243, -, v127, v244, v124, v248 calleeName="finishJoin" ReturnCall v249 casts=[{declared={type=undefined|null|string site=w130 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=33 function=f18 -runtimefunction id=65 function=f19 -runtimefunction id=69 function=f17 +runtimefunction id=32 function=f18 +runtimefunction id=64 function=f19 +runtimefunction id=68 function=f17 runtimefunction id=131091 function=f26 visibility=Private # -- generated: tested asNumbers # CHECK-LABEL: function {{*}}name="tested" diff --git a/test/aot/engine-tests/codegen/language/switches-and-shifts-on-int32.ir b/test/aot/engine-tests/codegen/language/switches-and-shifts-on-int32.ir index add20778ff62..f818bca57564 100644 --- a/test/aot/engine-tests/codegen/language/switches-and-shifts-on-int32.ir +++ b/test/aot/engine-tests/codegen/language/switches-and-shifts-on-int32.ir @@ -228,7 +228,7 @@ function f10 module=m0 role=Signature thisType={type=anything} results=[{type=an function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f14 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f14 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f15 name="clampToLength" module=m2 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w37}, {type=number site=w38}] results=[{type=number site=w39}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f16 name="storeInNewArray" module=m2 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w40 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w41}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f17 name="appendParts" module=m2 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w42 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w43}, {type=anything}] results=[{type=number site=w44}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -236,7 +236,7 @@ function f18 name="joinedText" module=m2 position=1819 role=Library flags=[IsChe function f19 name="finishJoin" module=m2 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w46 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w47 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w48}, {type=number site=w49}] results=[{type=undefined|null|string site=w50 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f20 name="finishReduce" module=m2 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w51}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f21 name="traverseArray" module=m2 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w52 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w53}, {type=undefined|number site=w54}, {type=number site=w55}, {type=undefined|null|Array site=w56 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f14 +runtimefunction id=64 function=f14 runtimefunction id=131091 function=f21 visibility=Private # -- generated: byShifted byUnsigned # CHECK-LABEL: function {{*}}name="byShifted" diff --git a/test/aot/engine-tests/codegen/language/two-optional-numbers-swapped-loop-among.ir b/test/aot/engine-tests/codegen/language/two-optional-numbers-swapped-loop-among.ir index 3ff9e81e6e0c..c48aedf206a2 100644 --- a/test/aot/engine-tests/codegen/language/two-optional-numbers-swapped-loop-among.ir +++ b/test/aot/engine-tests/codegen/language/two-optional-numbers-swapped-loop-among.ir @@ -1367,7 +1367,7 @@ function f9 module=m0 position=246 kind=Initializer flags=[HasThis, IsChecked, I Return v20 } function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1390,7 +1390,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f11 +runtimefunction id=68 function=f11 # -- generated: f0 tick fold opaqueInt mix3 f5 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f7 callPosition=4294967295 module=m0}] { @@ -1511,7 +1511,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: ReturnCall v6 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f20 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f20 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f20 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1520,7 +1520,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2643,7 +2643,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Return v796 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/codegen/lazy-initializers/loops-that-fill-what-a-binding-holds.ir b/test/aot/engine-tests/codegen/lazy-initializers/loops-that-fill-what-a-binding-holds.ir index fb85a6b32b1a..faaf8385bd28 100644 --- a/test/aot/engine-tests/codegen/lazy-initializers/loops-that-fill-what-a-binding-holds.ir +++ b/test/aot/engine-tests/codegen/lazy-initializers/loops-that-fill-what-a-binding-holds.ir @@ -478,7 +478,7 @@ function f1 name="read" module=m0 position=896 flags=[IsChecked, HasExplicitName v51 = Convert v50 declared={type=undefined|null|Array site=w12 flags=[OmitsNull, OmitsUndefined]} Return v51 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -501,10 +501,10 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: next # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f7 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f7 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f7 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -513,13 +513,13 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/codegen/narrowing/unions-that-do-not-change-in-a-loop.ir b/test/aot/engine-tests/codegen/narrowing/unions-that-do-not-change-in-a-loop.ir index 4f228f0aa1e5..705791ccd21e 100644 --- a/test/aot/engine-tests/codegen/narrowing/unions-that-do-not-change-in-a-loop.ir +++ b/test/aot/engine-tests/codegen/narrowing/unions-that-do-not-change-in-a-loop.ir @@ -483,12 +483,12 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f22 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="flatIntoArray" module=m2 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 name="flatIntoArrayWithCallback" module=m2 position=9316 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=41 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="flatMap" module=m2 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=42 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f22 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="flatIntoArray" module=m2 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="flatIntoArrayWithCallback" module=m2 position=9316 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="flatMap" module=m2 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=41 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w106}, {type=number site=w107}] results=[{type=number site=w108}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w109 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w110}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w111 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w112}, {type=anything}] results=[{type=number site=w113}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -686,12 +686,12 @@ function f33 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w169} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=33 function=f22 -runtimefunction id=40 function=f24 visibility=Private -runtimefunction id=41 function=f25 visibility=Private -runtimefunction id=42 function=f26 -runtimefunction id=65 function=f23 -runtimefunction id=69 function=f21 +runtimefunction id=32 function=f22 +runtimefunction id=39 function=f24 visibility=Private +runtimefunction id=40 function=f25 visibility=Private +runtimefunction id=41 function=f26 +runtimefunction id=64 function=f23 +runtimefunction id=68 function=f21 runtimefunction id=131091 function=f33 visibility=Private # -- generated: lengths leavesTheLoop # CHECK-LABEL: function {{*}}name="lengths" diff --git a/test/aot/engine-tests/codegen/native-callbacks/closures-made-callback-call-builtin.ir b/test/aot/engine-tests/codegen/native-callbacks/closures-made-callback-call-builtin.ir index cdda859a9360..844a9f583439 100644 --- a/test/aot/engine-tests/codegen/native-callbacks/closures-made-callback-call-builtin.ir +++ b/test/aot/engine-tests/codegen/native-callbacks/closures-made-callback-call-builtin.ir @@ -188,11 +188,11 @@ function f26 module=m0 role=Signature thisType={type=anything} results=[{type=an function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f32 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f33 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f34 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f32 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f33 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f34 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f35 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f36 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f37 name="apply" module=m4 position=1385 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=3 enclosingRuntimeFunction=5 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -206,11 +206,11 @@ function f44 name="traverseArray" module=m5 position=2337 kind=Method role=Libra runtimefunction id=4 function=f36 runtimefunction id=5 function=f37 runtimefunction id=12 function=f35 -runtimefunction id=33 function=f32 -runtimefunction id=44 function=f31 -runtimefunction id=65 function=f33 -runtimefunction id=69 function=f30 -runtimefunction id=89 function=f34 +runtimefunction id=32 function=f32 +runtimefunction id=43 function=f31 +runtimefunction id=64 function=f33 +runtimefunction id=68 function=f30 +runtimefunction id=88 function=f34 runtimefunction id=131091 function=f44 visibility=Private # -- generated: f4 # CHECK-LABEL: function f4 role= diff --git a/test/aot/engine-tests/codegen/objects/for-in-after-the-prototype-chain-changed.ir b/test/aot/engine-tests/codegen/objects/for-in-after-the-prototype-chain-changed.ir index ac9c8b86037d..36cc3262bedc 100644 --- a/test/aot/engine-tests/codegen/objects/for-in-after-the-prototype-chain-changed.ir +++ b/test/aot/engine-tests/codegen/objects/for-in-after-the-prototype-chain-changed.ir @@ -328,7 +328,7 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f21 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f21 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="clampToLength" module=m2 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="storeInNewArray" module=m2 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f24 name="appendParts" module=m2 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -336,7 +336,7 @@ function f25 name="joinedText" module=m2 position=1819 role=Library flags=[IsChe function f26 name="finishJoin" module=m2 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="finishReduce" module=m2 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="traverseArray" module=m2 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f21 +runtimefunction id=64 function=f21 runtimefunction id=131091 function=f28 visibility=Private # -- generated: repeated # CHECK-LABEL: function {{*}}name="repeated" diff --git a/test/aot/engine-tests/codegen/objects/live-object-census.ir b/test/aot/engine-tests/codegen/objects/live-object-census.ir index 87d5fa1f633b..026e5b5d32e4 100644 --- a/test/aot/engine-tests/codegen/objects/live-object-census.ir +++ b/test/aot/engine-tests/codegen/objects/live-object-census.ir @@ -32,14 +32,14 @@ function f1 name="Point" module=m0 position=335 kind=BaseConstructor flags=[HasN # CHECK-NEXT: Int64 b@20 = Const64(0, v0:NewClosure) # CHECK-NEXT: Int64 b@21 = Patchpoint($0(b@20):Register(%r10), resultConstraints = Register(%rax), ControlDependent|Writes:{collectorState, AOTSlimClosure_word, JSCell_header, JSObject_butterfly, weakTableStorage, CollectionEntries, AllocatorState}|Reads:{argumentBuffer, frameSlots, AllocatorState}, v0:NewClosure) # CHECK-NEXT: Int64 b@10 = ArgumentReg(%r13) -# CHECK-NEXT: Int64 b@22 = Load(b@10, offset = 8264, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) +# CHECK-NEXT: Int64 b@22 = Load(b@10, offset = 8256, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Void b@23 = Store(b@22, b@21, ControlDependent|Writes:JSCell_header, v0:NewClosure) # CHECK-NEXT: Void b@24 = Store($0(b@20), b@21, offset = 8, ControlDependent|Writes:JSObject_butterfly, v0:NewClosure) # CHECK-NEXT: Int64 b@25 = Load(b@10, offset = 112, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Void b@26 = Store(b@25, b@21, offset = 16, ControlDependent|Writes:JSCallee_scope, v0:NewClosure) -# CHECK-NEXT: Int64 b@27 = Load(b@10, offset = 8216, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) +# CHECK-NEXT: Int64 b@27 = Load(b@10, offset = 8208, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Void b@28 = Store(b@27, b@21, offset = 24, ControlDependent|Writes:JSFunction_executableOrRareData, v0:NewClosure) -# CHECK-NEXT: Int64 b@29 = Load(b@10, offset = 8192, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) +# CHECK-NEXT: Int64 b@29 = Load(b@10, offset = 8184, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Int64 b@30 = Load(b@29, offset = 32, ControlDependent|ReadsImmutable|Reads:AOTImage_tables, v0:NewClosure) # CHECK-NEXT: Void b@31 = Store(b@30, b@21, offset = 32, ControlDependent|Writes:AOTClosure_entry, v0:NewClosure) # CHECK-NEXT: Void b@32 = Fence(Fence|Reads:jscRoot, v0:NewClosure) diff --git a/test/aot/engine-tests/codegen/objects/references-stored-late-read-world.ir b/test/aot/engine-tests/codegen/objects/references-stored-late-read-world.ir index 729d9ccac49f..86f65b993681 100644 --- a/test/aot/engine-tests/codegen/objects/references-stored-late-read-world.ir +++ b/test/aot/engine-tests/codegen/objects/references-stored-late-read-world.ir @@ -2430,7 +2430,7 @@ function f50 module=m0 role=Signature thisType={type=anything} results=[{type=an function f51 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f52 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f54 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f54 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2453,7 +2453,7 @@ function f54 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f55 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f55 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2530,7 +2530,7 @@ function f55 name="filter" module=m2 position=4475 kind=Method role=Library flag v54 = ThrowNewError errorKind=TypeError message="Array.prototype.filter callback must be a function" Unreachable } -function f56 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3633,9 +3633,9 @@ function f63 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=33 function=f55 -runtimefunction id=65 function=f56 -runtimefunction id=69 function=f54 +runtimefunction id=32 function=f55 +runtimefunction id=64 function=f56 +runtimefunction id=68 function=f54 runtimefunction id=131091 function=f63 visibility=Private # -- generated: nameAt typeOf targetOf mapped nameOf firstOf say redefine remove put f17 f18 get f21 lateOf laterOf hasLate hasLater f29 f30 f31 f32 f33 Kind # CHECK-LABEL: function {{*}}name="nameAt" diff --git a/test/aot/engine-tests/codegen/objects/stores-symbols-made-anew-call-validated.ir b/test/aot/engine-tests/codegen/objects/stores-symbols-made-anew-call-validated.ir index 4aca1c186ed6..06ff765c8b4c 100644 --- a/test/aot/engine-tests/codegen/objects/stores-symbols-made-anew-call-validated.ir +++ b/test/aot/engine-tests/codegen/objects/stores-symbols-made-anew-call-validated.ir @@ -293,7 +293,7 @@ function f44 module=m0 role=Signature thisType={type=anything} results=[{type=an function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[String] function f47 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f48 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f48 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -329,7 +329,7 @@ function f48 name="map" module=m1 position=5210 kind=Method role=Library flags=[ b3(v33, v34): Return v11 } -function f49 name="some" module=m1 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f49 name="some" module=m1 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="firstSearchedIndex" module=m2 position=399 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|number site=w5}, {type=number site=w6}] results=[{type=number site=w7}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f51 name="holdsBoxedValues" module=m2 position=750 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w8}] results=[{type=boolean site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f52 name="includesNaN" module=m2 position=1987 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w11}, {type=number site=w12}] results=[{type=boolean site=w13}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -715,8 +715,8 @@ function f60 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v261 = Call v255, -, v131, v256, v128, v260 calleeName="finishJoin" ReturnCall v261 casts=[{declared={type=undefined|null|string site=w100 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=65 function=f48 -runtimefunction id=89 function=f49 +runtimefunction id=64 function=f48 +runtimefunction id=88 function=f49 runtimefunction id=131087 function=f53 runtimefunction id=131091 function=f60 visibility=Private # -- generated: f0 f16 f18 diff --git a/test/aot/engine-tests/codegen/runtime-caches/flattened-dictionary.ir b/test/aot/engine-tests/codegen/runtime-caches/flattened-dictionary.ir index f28bfd14efec..9dc9b195dfa3 100644 --- a/test/aot/engine-tests/codegen/runtime-caches/flattened-dictionary.ir +++ b/test/aot/engine-tests/codegen/runtime-caches/flattened-dictionary.ir @@ -359,7 +359,7 @@ function f8 name="drop" module=m0 position=1671 flags=[HasExplicitName] length=3 } function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -370,7 +370,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -function f12 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -381,7 +381,7 @@ function f12 name="next" module=m2 position=25 kind=Method role=Library flags=[H v8 = CreateIteratorResult v3, v7 Return v8 } -function f13 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Return check=IsGenerator v3 = ResultAt v2 @@ -399,7 +399,7 @@ function f13 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f14 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator v3 = ResultAt v2 @@ -420,8 +420,8 @@ function f15 name="iteratorGenericClose" module=m3 position=314 kind=Method role v6 = Undefined Return v6 } -function f16 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f17 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=6 last=6 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -444,8 +444,8 @@ function f17 name="return" module=m5 position=326 kind=Method role=Library flags v15 = CreateIteratorResult v12, v14 Return v15 } -function f18 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f19 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f19 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=10 last=10 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -464,14 +464,14 @@ function f19 name="return" module=m6 position=2171 kind=Method role=Library flag v13 = Call v12, v3 ReturnCall v13 } -runtimefunction id=69 function=f11 -runtimefunction id=70 function=f12 visibility=Private -runtimefunction id=71 function=f16 visibility=Private -runtimefunction id=72 function=f18 -runtimefunction id=86 function=f13 visibility=Private -runtimefunction id=87 function=f17 -runtimefunction id=88 function=f19 -runtimefunction id=92 function=f14 visibility=Private +runtimefunction id=68 function=f11 +runtimefunction id=69 function=f12 visibility=Private +runtimefunction id=70 function=f16 visibility=Private +runtimefunction id=71 function=f18 +runtimefunction id=85 function=f13 visibility=Private +runtimefunction id=86 function=f17 +runtimefunction id=87 function=f19 +runtimefunction id=91 function=f14 visibility=Private runtimefunction id=131072 function=f15 visibility=Private # -- generated: entries use say # CHECK-LABEL: function {{*}}name="entries" diff --git a/test/aot/engine-tests/codegen/soundness/unread-fields-shadow-stands-stores-heirs.ir b/test/aot/engine-tests/codegen/soundness/unread-fields-shadow-stands-stores-heirs.ir index de9f97af166b..8df4f0f4a9d4 100644 --- a/test/aot/engine-tests/codegen/soundness/unread-fields-shadow-stands-stores-heirs.ir +++ b/test/aot/engine-tests/codegen/soundness/unread-fields-shadow-stands-stores-heirs.ir @@ -385,7 +385,7 @@ function f73 module=m0 role=Signature thisType={type=anything} results=[{type=an function f74 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f75 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f74] function f76 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f75] -function f77 name="has" module=m1 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=61 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f77 name="has" module=m1 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = Convert v0 declared={type=undefined|null|object flags=[IsExpected]} v3 = Convert v2 declared={type=undefined|null|object} illTypedCause=Assertion @@ -393,7 +393,7 @@ function f77 name="has" module=m1 position=2204 kind=Method role=Library flags=[ v5 = Convert v4 declared={type=boolean site=w0} Return v5 } -runtimefunction id=61 function=f77 +runtimefunction id=60 function=f77 # -- generated: f31 # CHECK-LABEL: function f31 role= # CHECK: Source @@ -464,7 +464,7 @@ runtimefunction id=61 function=f77 # CHECK-NEXT: Int32 b@85 = ZShr(b@84, $6(b@45), v9:SetLiteralPrototype) # CHECK-NEXT: Int32 b@86 = BitAnd(b@85, $1023(b@47), v9:SetLiteralPrototype) # CHECK-NEXT: Int64 b@87 = ZExt32(b@86, v9:SetLiteralPrototype) -# CHECK-NEXT: Int64 b@88 = Load(b@10, offset = 8168, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v9:SetLiteralPrototype) +# CHECK-NEXT: Int64 b@88 = Load(b@10, offset = 8160, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v9:SetLiteralPrototype) # CHECK-NEXT: Int64 b@89 = Shl(b@87, $4(b@51), v9:SetLiteralPrototype) # CHECK-NEXT: Int64 b@90 = Add(b@88, b@89, v9:SetLiteralPrototype) # CHECK-NEXT: Int64 b@91 = Load(b@90, ControlDependent|Reads:collectorState, v9:SetLiteralPrototype) @@ -500,7 +500,7 @@ runtimefunction id=61 function=f77 # CHECK-NEXT: Int32 b@46 = ZShr(b@44, $6(b@45), v6:SetLiteralPrototype) # CHECK-NEXT: Int32 b@48 = BitAnd(b@46, $1023(b@47), v6:SetLiteralPrototype) # CHECK-NEXT: Int64 b@49 = ZExt32(b@48, v6:SetLiteralPrototype) -# CHECK-NEXT: Int64 b@50 = Load(b@10, offset = 8168, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v6:SetLiteralPrototype) +# CHECK-NEXT: Int64 b@50 = Load(b@10, offset = 8160, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v6:SetLiteralPrototype) # CHECK-NEXT: Int64 b@52 = Shl(b@49, $4(b@51), v6:SetLiteralPrototype) # CHECK-NEXT: Int64 b@53 = Add(b@50, b@52, v6:SetLiteralPrototype) # CHECK-NEXT: Int64 b@54 = Load(b@53, ControlDependent|Reads:collectorState, v6:SetLiteralPrototype) diff --git a/test/aot/engine-tests/codegen/stress/changes-behind-a-call-optional-members/read-in-every-way.ir b/test/aot/engine-tests/codegen/stress/changes-behind-a-call-optional-members/read-in-every-way.ir index 9502225424d1..047c4bdfbe6e 100644 --- a/test/aot/engine-tests/codegen/stress/changes-behind-a-call-optional-members/read-in-every-way.ir +++ b/test/aot/engine-tests/codegen/stress/changes-behind-a-call-optional-members/read-in-every-way.ir @@ -275,8 +275,8 @@ function f6 module=m0 role=Signature thisType={type=anything} results=[{type=any function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f5] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f9] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[Number] -function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f11 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -538,8 +538,8 @@ function f18 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v199 = TruncateNewArray v197, v198 Return v199 } -runtimefunction id=65 function=f11 -runtimefunction id=69 function=f10 +runtimefunction id=64 function=f11 +runtimefunction id=68 function=f10 runtimefunction id=131091 function=f18 visibility=Private # -- generated: read # CHECK-LABEL: function {{*}}name="read" diff --git a/test/aot/engine-tests/codegen/stress/objects-with-fixed-fields/cases-forms-references-outside-cell-read.ir b/test/aot/engine-tests/codegen/stress/objects-with-fixed-fields/cases-forms-references-outside-cell-read.ir index 45878385da14..23294f65a0ce 100644 --- a/test/aot/engine-tests/codegen/stress/objects-with-fixed-fields/cases-forms-references-outside-cell-read.ir +++ b/test/aot/engine-tests/codegen/stress/objects-with-fixed-fields/cases-forms-references-outside-cell-read.ir @@ -999,8 +999,8 @@ function f21 module=m0 role=Signature thisType={type=anything} results=[{type=an function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1053,8 +1053,8 @@ function f30 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f31 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w153 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w154 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w155}, {type=number site=w156}] results=[{type=undefined|null|string site=w157 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w158}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w159 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w160}, {type=undefined|number site=w161}, {type=number site=w162}, {type=undefined|null|Array site=w163 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f26 -runtimefunction id=69 function=f25 +runtimefunction id=64 function=f26 +runtimefunction id=68 function=f25 runtimefunction id=131091 function=f33 visibility=Private # -- generated: f0 crowded # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/codegen/structural-types/enum-typed-fields-elements-variables.ir b/test/aot/engine-tests/codegen/structural-types/enum-typed-fields-elements-variables.ir index 9f83d634f611..9f2c369c2096 100644 --- a/test/aot/engine-tests/codegen/structural-types/enum-typed-fields-elements-variables.ir +++ b/test/aot/engine-tests/codegen/structural-types/enum-typed-fields-elements-variables.ir @@ -1212,7 +1212,7 @@ function f30 module=m0 role=Signature thisType={type=anything} results=[{type=an function f31 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f21] function f32 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f21] function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f34 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f34 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1235,7 +1235,7 @@ function f34 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f35 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f35 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2887,8 +2887,8 @@ function f48 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f35 -runtimefunction id=69 function=f34 +runtimefunction id=64 function=f35 +runtimefunction id=68 function=f34 runtimefunction id=131087 function=f41 runtimefunction id=131088 function=f39 runtimefunction id=131091 function=f48 visibility=Private diff --git a/test/aot/engine-tests/codegen/structural-types/map-get-without-an-assertion.ir b/test/aot/engine-tests/codegen/structural-types/map-get-without-an-assertion.ir index 8c78ad2a500f..2f075229c11f 100644 --- a/test/aot/engine-tests/codegen/structural-types/map-get-without-an-assertion.ir +++ b/test/aot/engine-tests/codegen/structural-types/map-get-without-an-assertion.ir @@ -443,8 +443,8 @@ function f33 module=m0 role=Signature thisType={type=anything} results=[{type=an function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f23] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f23] function f36 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f37 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f38 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f38 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -496,8 +496,8 @@ function f42 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f43 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w153 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w154 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w155}, {type=number site=w156}] results=[{type=undefined|null|string site=w157 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w158}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w159 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w160}, {type=undefined|number site=w161}, {type=number site=w162}, {type=undefined|null|Array site=w163 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f38 -runtimefunction id=69 function=f37 +runtimefunction id=64 function=f38 +runtimefunction id=68 function=f37 runtimefunction id=131091 function=f45 visibility=Private # -- generated: f13 # CHECK-LABEL: function f13 role= diff --git a/test/aot/engine-tests/codegen/structural-types/method-is-replaced-by-generator-function.ir b/test/aot/engine-tests/codegen/structural-types/method-is-replaced-by-generator-function.ir index ead2d439213c..1f7a197fa31f 100644 --- a/test/aot/engine-tests/codegen/structural-types/method-is-replaced-by-generator-function.ir +++ b/test/aot/engine-tests/codegen/structural-types/method-is-replaced-by-generator-function.ir @@ -385,17 +385,17 @@ function f13 module=m0 role=Signature thisType={type=anything} results=[{type=an function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f12] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f12] function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f12] -function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f18 name="call" module=m2 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f19 name="apply" module=m2 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f20 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 index=1 v4 = ResumeGenerator v0, v1 Return v4 } -function f21 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Return check=IsGenerator v3 = ResultAt v2 @@ -408,9 +408,9 @@ function f21 name="return" module=m3 position=548 kind=Method role=Library flags } runtimefunction id=4 function=f19 runtimefunction id=12 function=f18 -runtimefunction id=69 function=f17 -runtimefunction id=70 function=f20 visibility=Private -runtimefunction id=86 function=f21 visibility=Private +runtimefunction id=68 function=f17 +runtimefunction id=69 function=f20 visibility=Private +runtimefunction id=85 function=f21 visibility=Private # -- generated: f0 sum firstTwo kind round Range values f7 f8 f9 f10 return # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/codegen/structural-types/nan-bit-patterns-typedarray-kept-number.ir b/test/aot/engine-tests/codegen/structural-types/nan-bit-patterns-typedarray-kept-number.ir index 48459fc9d4e2..73e19675e919 100644 --- a/test/aot/engine-tests/codegen/structural-types/nan-bit-patterns-typedarray-kept-number.ir +++ b/test/aot/engine-tests/codegen/structural-types/nan-bit-patterns-typedarray-kept-number.ir @@ -307,7 +307,7 @@ function f38 module=m0 role=Signature thisType={type=anything} results=[{type=an function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f24] function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f24] function f41 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f24] -function f42 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f42 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -372,13 +372,13 @@ function f42 name="from" module=m1 position=1338 kind=Method role=Library flags= v45 = Convert v44 declared={type=undefined|number site=w84} Jump -> next b12(v45, v38) } -function f43 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f43 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Return v0 } -function f44 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f42 -runtimefunction id=69 function=f44 +function f44 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=46 function=f42 +runtimefunction id=68 function=f44 # -- generated: show # CHECK-LABEL: function {{*}}name="show" # CHECK: role=Source diff --git a/test/aot/engine-tests/codegen/structural-types/reflect-delete-props-removes-members.ir b/test/aot/engine-tests/codegen/structural-types/reflect-delete-props-removes-members.ir index 9e36490d39c1..07fb7b758f31 100644 --- a/test/aot/engine-tests/codegen/structural-types/reflect-delete-props-removes-members.ir +++ b/test/aot/engine-tests/codegen/structural-types/reflect-delete-props-removes-members.ir @@ -358,7 +358,7 @@ function f105 module=m0 role=Signature thisType={type=anything} results=[{type=a # CHECK-NEXT: Int32 b@186 = Phi(ReadsLocalState, v3:Parameter) # CHECK-NEXT: Int64 b@187 = Patchpoint(runsWithoutFrame, resultConstraints = SomeRegister, v10:PropGet) # CHECK-NEXT: Int64 b@37 = Patchpoint(b@24:Register(%rax), b@187:Register(%rsi), resultConstraints = Register(%rax), ExitsSideways|ControlDependent|Writes:jscRoot|Reads:Top, v10:PropGet) -# CHECK-NEXT: Int64 b@38 = Load(b@10, offset = 8040, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v12:String) +# CHECK-NEXT: Int64 b@38 = Load(b@10, offset = 8032, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v12:String) # CHECK-NEXT: Int64 b@39 = Load(b@38, offset = 32, ControlDependent|Reads:AOTInstance_stringCells, v12:String) # CHECK-NEXT: Void b@41 = Branch(b@39, Terminal, v12:String) # CHECK-NEXT: Successors: Then:#20, Else:Rare:#21 diff --git a/test/aot/engine-tests/codegen/structural-types/return-value-generator-dropped-yield.ir b/test/aot/engine-tests/codegen/structural-types/return-value-generator-dropped-yield.ir index 267374882ac7..3699c732583b 100644 --- a/test/aot/engine-tests/codegen/structural-types/return-value-generator-dropped-yield.ir +++ b/test/aot/engine-tests/codegen/structural-types/return-value-generator-dropped-yield.ir @@ -347,12 +347,12 @@ function f14 module=m0 position=497 kind=Initializer flags=[HasThis, IsChecked, } function f15 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f17 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f18 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f19 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f20 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f21 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f22 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f19 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f20 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f21 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f22 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 module=m7 kind=Module role=Library thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f24 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f25 name="stylizeWithColor" module=m8 position=32390 role=Library flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|null|string site=w72 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w73 flags=[OmitsNull, OmitsUndefined]}] results=[{type=undefined|null|string site=w74 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f40] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -372,11 +372,11 @@ function f38 module=m8 role=Signature thisType={type=anything} results=[{type=an function f39 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f40 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33] function f41 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33] -runtimefunction id=47 function=f17 -runtimefunction id=69 function=f19 -runtimefunction id=70 function=f20 visibility=Private -runtimefunction id=86 function=f21 visibility=Private -runtimefunction id=92 function=f22 visibility=Private +runtimefunction id=46 function=f17 +runtimefunction id=68 function=f19 +runtimefunction id=69 function=f20 visibility=Private +runtimefunction id=85 function=f21 visibility=Private +runtimefunction id=91 function=f22 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/codegen/symbol-fields/symbol-is-imported.ir b/test/aot/engine-tests/codegen/symbol-fields/symbol-is-imported.ir index 96cb2f0753fa..c7a02b5f8add 100644 --- a/test/aot/engine-tests/codegen/symbol-fields/symbol-is-imported.ir +++ b/test/aot/engine-tests/codegen/symbol-fields/symbol-is-imported.ir @@ -264,8 +264,8 @@ function f4 module=m1 position=201 kind=Initializer flags=[HasThis, IsChecked, I } function f5 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f6] function f6 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[String] -function f7 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f8 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f7 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f8 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f9 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w22}, {type=number site=w23}] results=[{type=number site=w24}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f10 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w25 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w26}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|Array, v1: number, v2: anything): @@ -282,8 +282,8 @@ function f12 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f13 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w31 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w32 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w33}, {type=number site=w34}] results=[{type=undefined|null|string site=w35 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f14 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w36}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f15 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w37 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w38}, {type=undefined|number site=w39}, {type=number site=w40}, {type=undefined|null|Array site=w41 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f8 -runtimefunction id=69 function=f7 +runtimefunction id=64 function=f8 +runtimefunction id=68 function=f7 runtimefunction id=131091 function=f15 visibility=Private # -- generated: f2 Body # CHECK-LABEL: function f2 role= diff --git a/test/aot/engine-tests/codegen/typed-objects/boxes-of-nothing-box-function-read-site.ir b/test/aot/engine-tests/codegen/typed-objects/boxes-of-nothing-box-function-read-site.ir index 32b12d1e2120..9a5a6880a994 100644 --- a/test/aot/engine-tests/codegen/typed-objects/boxes-of-nothing-box-function-read-site.ir +++ b/test/aot/engine-tests/codegen/typed-objects/boxes-of-nothing-box-function-read-site.ir @@ -378,7 +378,7 @@ function f43 module=m0 role=Signature thisType={type=anything} results=[{type=an function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f46] function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f46] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f48 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w106}, {type=number site=w107}] results=[{type=number site=w108}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f49 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w109 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w110}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w111 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w112}, {type=anything}] results=[{type=number site=w113}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -386,7 +386,7 @@ function f51 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f52 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w115 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w116 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w117}, {type=number site=w118}] results=[{type=undefined|null|string site=w119 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f53 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w120}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f54 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w121 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w122}, {type=undefined|number site=w123}, {type=number site=w124}, {type=undefined|null|Array site=w125 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f47 +runtimefunction id=64 function=f47 runtimefunction id=131091 function=f54 visibility=Private # -- generated: f9 # CHECK-LABEL: function f9 role= diff --git a/test/aot/engine-tests/codegen/typed-objects/frozen-after-object-create.ir b/test/aot/engine-tests/codegen/typed-objects/frozen-after-object-create.ir index e8c81eac8310..2a85e605626e 100644 --- a/test/aot/engine-tests/codegen/typed-objects/frozen-after-object-create.ir +++ b/test/aot/engine-tests/codegen/typed-objects/frozen-after-object-create.ir @@ -83,14 +83,14 @@ function f3 module=m0 position=1037 kind=Initializer flags=[HasThis, IsChecked, # CHECK-NEXT: Int64 b@2 = Const64(0) # CHECK-NEXT: Int64 b@28 = Patchpoint($0(b@2):Register(%r10), resultConstraints = Register(%rax), ControlDependent|Writes:{collectorState, AOTSlimClosure_word, JSCell_header, JSObject_butterfly, weakTableStorage, CollectionEntries, AllocatorState}|Reads:{argumentBuffer, frameSlots, AllocatorState}, v0:NewClosure) # CHECK-NEXT: Int64 b@10 = ArgumentReg(%r13) -# CHECK-NEXT: Int64 b@29 = Load(b@10, offset = 8264, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) +# CHECK-NEXT: Int64 b@29 = Load(b@10, offset = 8256, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Void b@30 = Store(b@29, b@28, ControlDependent|Writes:JSCell_header, v0:NewClosure) # CHECK-NEXT: Void b@31 = Store($0(b@2), b@28, offset = 8, ControlDependent|Writes:JSObject_butterfly, v0:NewClosure) # CHECK-NEXT: Int64 b@32 = Load(b@10, offset = 112, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Void b@33 = Store(b@32, b@28, offset = 16, ControlDependent|Writes:JSCallee_scope, v0:NewClosure) -# CHECK-NEXT: Int64 b@34 = Load(b@10, offset = 8216, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) +# CHECK-NEXT: Int64 b@34 = Load(b@10, offset = 8208, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Void b@35 = Store(b@34, b@28, offset = 24, ControlDependent|Writes:JSFunction_executableOrRareData, v0:NewClosure) -# CHECK-NEXT: Int64 b@36 = Load(b@10, offset = 8192, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) +# CHECK-NEXT: Int64 b@36 = Load(b@10, offset = 8184, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v0:NewClosure) # CHECK-NEXT: Int64 b@37 = Load(b@36, offset = 48, ControlDependent|ReadsImmutable|Reads:AOTImage_tables, v0:NewClosure) # CHECK-NEXT: Void b@38 = Store(b@37, b@28, offset = 32, ControlDependent|Writes:AOTClosure_entry, v0:NewClosure) # CHECK-NEXT: Void b@39 = Fence(Fence|Reads:jscRoot, v0:NewClosure) diff --git a/test/aot/engine-tests/codegen/typed-objects/missing-property-reads.ir b/test/aot/engine-tests/codegen/typed-objects/missing-property-reads.ir index e609244caad3..b8d8aceb21a0 100644 --- a/test/aot/engine-tests/codegen/typed-objects/missing-property-reads.ir +++ b/test/aot/engine-tests/codegen/typed-objects/missing-property-reads.ir @@ -586,12 +586,12 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="find" module=m2 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f29 name="findLast" module=m2 position=6956 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=38 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="find" module=m2 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=34 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f29 name="findLast" module=m2 position=6956 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=37 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="at" module=m2 position=10565 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=8 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -612,11 +612,11 @@ function f38 name="finishReduce" module=m6 position=2116 role=Library flags=[IsC function f39 name="traverseArray" module=m6 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w167 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w168}, {type=undefined|number site=w169}, {type=number site=w170}, {type=undefined|null|Array site=w171 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=8 function=f30 runtimefunction id=9 function=f32 -runtimefunction id=35 function=f28 -runtimefunction id=38 function=f29 -runtimefunction id=65 function=f27 -runtimefunction id=69 function=f26 -runtimefunction id=70 function=f31 visibility=Private +runtimefunction id=34 function=f28 +runtimefunction id=37 function=f29 +runtimefunction id=64 function=f27 +runtimefunction id=68 function=f26 +runtimefunction id=69 function=f31 visibility=Private runtimefunction id=131091 function=f39 visibility=Private # -- generated: spell sumTyped # CHECK-LABEL: function {{*}}name="spell" diff --git a/test/aot/engine-tests/codegen/typed-objects/tools-distinguished-by-tag.ir b/test/aot/engine-tests/codegen/typed-objects/tools-distinguished-by-tag.ir index 71e9ed8d8497..5cacad1f6121 100644 --- a/test/aot/engine-tests/codegen/typed-objects/tools-distinguished-by-tag.ir +++ b/test/aot/engine-tests/codegen/typed-objects/tools-distinguished-by-tag.ir @@ -1010,8 +1010,8 @@ function f128 module=m0 role=Signature thisType={type=anything} results=[{type=a function f129 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f131] function f130 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f131] function f131 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f132 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f133 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f132 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f133 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1045,8 +1045,8 @@ function f137 name="joinedText" module=m3 position=1819 role=Library flags=[IsCh function f138 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w168 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w169 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w170}, {type=number site=w171}] results=[{type=undefined|null|string site=w172 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f139 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w173}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f140 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w174 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w175}, {type=undefined|number site=w176}, {type=number site=w177}, {type=undefined|null|Array site=w178 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f133 -runtimefunction id=69 function=f132 +runtimefunction id=64 function=f133 +runtimefunction id=68 function=f132 runtimefunction id=131091 function=f140 visibility=Private # -- generated: runOne run # CHECK-LABEL: function {{*}}name="runOne" diff --git a/test/aot/engine-tests/codegen/unexpected-values/int32-slots/fields-hold-references-get-numbers-other.ir b/test/aot/engine-tests/codegen/unexpected-values/int32-slots/fields-hold-references-get-numbers-other.ir index 3774bd733316..26266fb3f0ed 100644 --- a/test/aot/engine-tests/codegen/unexpected-values/int32-slots/fields-hold-references-get-numbers-other.ir +++ b/test/aot/engine-tests/codegen/unexpected-values/int32-slots/fields-hold-references-get-numbers-other.ir @@ -695,8 +695,8 @@ function f15 module=m0 role=Signature thisType={type=anything} results=[{type=an function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f18] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f20 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f20 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.filter requires that |this| not be null or undefined" @@ -756,7 +756,7 @@ function f20 name="filter" module=m2 position=4475 kind=Method role=Library flag b11(v53): Unreachable } -function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w90}, {type=number site=w91}] results=[{type=number site=w92}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w93 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w94}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f24 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w95 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w96}, {type=anything}] results=[{type=number site=w97}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -764,9 +764,9 @@ function f25 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f26 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w99 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w100 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w101}, {type=number site=w102}] results=[{type=undefined|null|string site=w103 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w104}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w105 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w106}, {type=undefined|number site=w107}, {type=number site=w108}, {type=undefined|null|Array site=w109 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=33 function=f20 -runtimefunction id=65 function=f21 -runtimefunction id=69 function=f19 +runtimefunction id=32 function=f20 +runtimefunction id=64 function=f21 +runtimefunction id=68 function=f19 runtimefunction id=131091 function=f28 visibility=Private # -- generated: f0 typedView # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/codegen/untyped-code/functions-made-helper-called-constants.ir b/test/aot/engine-tests/codegen/untyped-code/functions-made-helper-called-constants.ir index 3a392458f8b5..7d93bfc0aa29 100644 --- a/test/aot/engine-tests/codegen/untyped-code/functions-made-helper-called-constants.ir +++ b/test/aot/engine-tests/codegen/untyped-code/functions-made-helper-called-constants.ir @@ -702,7 +702,7 @@ function f59 module=m0 role=Signature thisType={type=anything} results=[{type=an function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f58] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f62 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -721,7 +721,7 @@ function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh } function f64 name="apply" module=m2 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f64 -runtimefunction id=69 function=f63 +runtimefunction id=68 function=f63 # -- generated: f9 f10 f11 f13 f15 f20 f21 f25 choose changed guarded # CHECK-LABEL: function {{*}}name="choose" # CHECK: module=m0 position=2053 role=ResultWrapper flags=[HasExplicitName] length=2 thisType={type=anything} parameters=[{type=string}, {type=boolean}] results=[{type=f16|f17|f18|f19|f20}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces, ClosuresAreReadWithoutCode] creator=ResultWrapper{worker=f120} diff --git a/test/aot/engine-tests/codegen/untyped-code/length-only-compared-or-computed.ir b/test/aot/engine-tests/codegen/untyped-code/length-only-compared-or-computed.ir index de3944ce845c..d73633e05f93 100644 --- a/test/aot/engine-tests/codegen/untyped-code/length-only-compared-or-computed.ir +++ b/test/aot/engine-tests/codegen/untyped-code/length-only-compared-or-computed.ir @@ -352,17 +352,17 @@ function f80 module=m0 role=Signature thisType={type=anything} results=[{type=an function f81 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f82 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f83 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f84 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f85 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f86 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f87 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f88 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f89 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f84 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f85 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f86 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f87 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f88 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f89 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f90 name="iteratorGenericClose" module=m4 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f91 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f92 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f93 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f94 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f91 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f92 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f93 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f94 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f95 name="clampToLength" module=m7 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w5}, {type=number site=w6}] results=[{type=number site=w7}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f96 name="storeInNewArray" module=m7 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w8 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w9}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f97 name="appendParts" module=m7 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w11}, {type=anything}] results=[{type=number site=w12}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -370,16 +370,16 @@ function f98 name="joinedText" module=m7 position=1819 role=Library flags=[IsChe function f99 name="finishJoin" module=m7 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w16}, {type=number site=w17}] results=[{type=undefined|null|string site=w18 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f100 name="finishReduce" module=m7 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w19}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f101 name="traverseArray" module=m7 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w20 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w21}, {type=undefined|number site=w22}, {type=number site=w23}, {type=undefined|null|Array site=w24 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=33 function=f85 -runtimefunction id=65 function=f86 -runtimefunction id=69 function=f84 -runtimefunction id=70 function=f87 visibility=Private -runtimefunction id=71 function=f91 visibility=Private -runtimefunction id=72 function=f93 -runtimefunction id=86 function=f88 visibility=Private -runtimefunction id=87 function=f92 -runtimefunction id=88 function=f94 -runtimefunction id=92 function=f89 visibility=Private +runtimefunction id=32 function=f85 +runtimefunction id=64 function=f86 +runtimefunction id=68 function=f84 +runtimefunction id=69 function=f87 visibility=Private +runtimefunction id=70 function=f91 visibility=Private +runtimefunction id=71 function=f93 +runtimefunction id=85 function=f88 visibility=Private +runtimefunction id=86 function=f92 +runtimefunction id=87 function=f94 +runtimefunction id=91 function=f89 visibility=Private runtimefunction id=131072 function=f90 visibility=Private runtimefunction id=131091 function=f101 visibility=Private # -- generated: small diff --git a/test/aot/engine-tests/codegen/untyped-code/string-order-at-every-position.ir b/test/aot/engine-tests/codegen/untyped-code/string-order-at-every-position.ir index 27383309a74f..b7fc5c82f67a 100644 --- a/test/aot/engine-tests/codegen/untyped-code/string-order-at-every-position.ir +++ b/test/aot/engine-tests/codegen/untyped-code/string-order-at-every-position.ir @@ -241,8 +241,8 @@ function f29 module=m0 role=Signature thisType={type=anything} results=[{type=an function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f31 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f32 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f33 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f34 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f33 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f34 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -280,15 +280,15 @@ function f34 name="forEach" module=m2 position=3958 kind=Method role=Library fla v32 = Undefined Return v32 } -function f35 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f36 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f38 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f35 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f38 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="iteratorGenericClose" module=m4 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f40 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f40 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="clampToLength" module=m7 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w4}, {type=number site=w5}] results=[{type=number site=w6}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="storeInNewArray" module=m7 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 name="appendParts" module=m7 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w9 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w10}, {type=anything}] results=[{type=number site=w11}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -296,16 +296,16 @@ function f47 name="joinedText" module=m7 position=1819 role=Library flags=[IsChe function f48 name="finishJoin" module=m7 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w13 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w15}, {type=number site=w16}] results=[{type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f49 name="finishReduce" module=m7 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w18}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="traverseArray" module=m7 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w19 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w20}, {type=undefined|number site=w21}, {type=number site=w22}, {type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=44 function=f34 -runtimefunction id=65 function=f35 -runtimefunction id=69 function=f33 -runtimefunction id=70 function=f36 visibility=Private -runtimefunction id=71 function=f40 visibility=Private -runtimefunction id=72 function=f42 -runtimefunction id=86 function=f37 visibility=Private -runtimefunction id=87 function=f41 -runtimefunction id=88 function=f43 -runtimefunction id=92 function=f38 visibility=Private +runtimefunction id=43 function=f34 +runtimefunction id=64 function=f35 +runtimefunction id=68 function=f33 +runtimefunction id=69 function=f36 visibility=Private +runtimefunction id=70 function=f40 visibility=Private +runtimefunction id=71 function=f42 +runtimefunction id=85 function=f37 visibility=Private +runtimefunction id=86 function=f41 +runtimefunction id=87 function=f43 +runtimefunction id=91 function=f38 visibility=Private runtimefunction id=131072 function=f39 visibility=Private runtimefunction id=131091 function=f50 visibility=Private # -- generated: order diff --git a/test/aot/engine-tests/codegen/untyped-speed/async-pipelines.ir b/test/aot/engine-tests/codegen/untyped-speed/async-pipelines.ir index 5458063dc863..e08ea37a1b56 100644 --- a/test/aot/engine-tests/codegen/untyped-speed/async-pipelines.ir +++ b/test/aot/engine-tests/codegen/untyped-speed/async-pipelines.ir @@ -573,8 +573,8 @@ function f46 module=m1 role=Signature thisType={type=anything} results=[{type=an function f47 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f48 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f49 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f50 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f51 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f50 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f51 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): v4 = ToObject v0 message="Array.prototype.reduce requires that |this| not be null or undefined" v5 = PropGet v4 key="length" @@ -612,12 +612,12 @@ function f51 name="reduce" module=m3 position=1398 kind=Method role=Library flag } function f52 name="call" module=m4 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f53 name="apply" module=m4 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f54 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f55 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f56 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f54 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f55 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f56 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f57 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f59 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f59 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f60 name="Promise" module=m9 position=1836 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName, IsNakedConstructor] length=1 enclosingRuntimeFunction=0 thisType={type=anything} parameters=[{type=anything}] results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = Convert v1 declared={type=undefined|null|function flags=[IsExpected]} @@ -644,8 +644,8 @@ function f61 module=m9 position=2114 kind=Arrow role=Library flags=[IsChecked] l Return v4 } function f62 module=m9 position=2263 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f63 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f64 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f63 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f64 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f65 module=m11 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d4 @@ -768,15 +768,15 @@ function f113 name="traverseArray" module=m16 position=2337 kind=Method role=Lib runtimefunction id=0 function=f60 runtimefunction id=4 function=f53 runtimefunction id=12 function=f52 -runtimefunction id=69 function=f50 -runtimefunction id=70 function=f54 visibility=Private -runtimefunction id=71 function=f58 visibility=Private -runtimefunction id=72 function=f63 -runtimefunction id=82 function=f51 -runtimefunction id=86 function=f55 visibility=Private -runtimefunction id=87 function=f59 -runtimefunction id=88 function=f64 -runtimefunction id=92 function=f56 visibility=Private +runtimefunction id=68 function=f50 +runtimefunction id=69 function=f54 visibility=Private +runtimefunction id=70 function=f58 visibility=Private +runtimefunction id=71 function=f63 +runtimefunction id=81 function=f51 +runtimefunction id=85 function=f55 visibility=Private +runtimefunction id=86 function=f59 +runtimefunction id=87 function=f64 +runtimefunction id=91 function=f56 visibility=Private runtimefunction id=65574 function=f32 runtimefunction id=65580 function=f31 runtimefunction id=131072 function=f57 visibility=Private diff --git a/test/aot/engine-tests/ir/arrays/number-keys-that-are-not-indexes.ir b/test/aot/engine-tests/ir/arrays/number-keys-that-are-not-indexes.ir index ac2b021032f6..dd0ddf7e583d 100644 --- a/test/aot/engine-tests/ir/arrays/number-keys-that-are-not-indexes.ir +++ b/test/aot/engine-tests/ir/arrays/number-keys-that-are-not-indexes.ir @@ -902,7 +902,7 @@ function f27 name="anonymous" module=m1 position=1 flags=[IsSloppy, HasExplicitN b1(): Return v0 } -function f28 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f28 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -925,7 +925,7 @@ function f28 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f29 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2028,8 +2028,8 @@ function f36 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f29 -runtimefunction id=69 function=f28 +runtimefunction id=64 function=f29 +runtimefunction id=68 function=f28 runtimefunction id=131091 function=f36 visibility=Private # -- generated: anonymous read readTwice readNext has store storeAndRead readText storeText readAny readBytes makeDoubles makeIntegers makeWithHole makeWithNaN makeWithNamedNaN f19 # CHECK-LABEL: function {{*}}name="read" diff --git a/test/aot/engine-tests/ir/arrays/spread-of-boxed-numbers-and-holes.ir b/test/aot/engine-tests/ir/arrays/spread-of-boxed-numbers-and-holes.ir index d7be64556d81..c75708892772 100644 --- a/test/aot/engine-tests/ir/arrays/spread-of-boxed-numbers-and-holes.ir +++ b/test/aot/engine-tests/ir/arrays/spread-of-boxed-numbers-and-holes.ir @@ -552,7 +552,7 @@ function f21 module=m0 role=Signature thisType={type=anything} results=[{type=an function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f23] function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): v4 = Undefined v5 = Convert v2 declared={type=undefined|null|function flags=[IsExpected]} @@ -562,9 +562,9 @@ function f25 name="from" module=m1 position=1338 kind=Method role=Library flags= v9 = Call v8, -, v0, v6 Return v9 } -function f26 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f26 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -623,9 +623,9 @@ function f36 name="from" module=m5 position=651 kind=Method role=Library flags=[ v22 = Call v8, -, v20, v21 calleeName="mapper" Jump -> next b1(v21, v22) } -runtimefunction id=47 function=f25 -runtimefunction id=65 function=f28 -runtimefunction id=69 function=f27 +runtimefunction id=46 function=f25 +runtimefunction id=64 function=f28 +runtimefunction id=68 function=f27 runtimefunction id=131091 function=f35 visibility=Private runtimefunction id=131110 function=f36 # -- generated: f0 diff --git a/test/aot/engine-tests/ir/async/async-generator-stepped-read-builtin.ir b/test/aot/engine-tests/ir/async/async-generator-stepped-read-builtin.ir index 22429709e417..c78c9d2bbc47 100644 --- a/test/aot/engine-tests/ir/async/async-generator-stepped-read-builtin.ir +++ b/test/aot/engine-tests/ir/async/async-generator-stepped-read-builtin.ir @@ -418,15 +418,15 @@ function f42 module=m2 role=Signature thisType={type=anything} results=[{type=an function f43 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f44 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f45 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f46 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f47 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f48 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f49 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f48 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f49 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f51 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f52 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f53 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f54 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f51 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f52 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f53 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f54 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f55 module=m10 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d4 @@ -558,14 +558,14 @@ function f114 module=m16 kind=Module role=Library flags=[IsChecked] thisType={ty Return v35 } function f115 name="matchesGlob" module=m16 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w133}, {type=undefined|null|string site=w134 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w135 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w136}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f46 -runtimefunction id=70 function=f47 visibility=Private -runtimefunction id=71 function=f51 visibility=Private -runtimefunction id=72 function=f53 -runtimefunction id=86 function=f48 visibility=Private -runtimefunction id=87 function=f52 -runtimefunction id=88 function=f54 -runtimefunction id=92 function=f49 visibility=Private +runtimefunction id=68 function=f46 +runtimefunction id=69 function=f47 visibility=Private +runtimefunction id=70 function=f51 visibility=Private +runtimefunction id=71 function=f53 +runtimefunction id=85 function=f48 visibility=Private +runtimefunction id=86 function=f52 +runtimefunction id=87 function=f54 +runtimefunction id=91 function=f49 visibility=Private runtimefunction id=65574 function=f28 runtimefunction id=65580 function=f27 runtimefunction id=131072 function=f50 visibility=Private diff --git a/test/aot/engine-tests/ir/async/generators-stepped-hand-twice-turn-turns.ir b/test/aot/engine-tests/ir/async/generators-stepped-hand-twice-turn-turns.ir index dcb12f64a36d..044a431ff07f 100644 --- a/test/aot/engine-tests/ir/async/generators-stepped-hand-twice-turn-turns.ir +++ b/test/aot/engine-tests/ir/async/generators-stepped-hand-twice-turn-turns.ir @@ -341,8 +341,8 @@ function f26 module=m0 role=Signature thisType={type=anything} results=[{type=an function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[String] function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f30 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -360,7 +360,7 @@ function f31 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f32 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f32 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f35 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -368,9 +368,9 @@ function f36 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f37 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f38 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f30 -runtimefunction id=70 function=f31 visibility=Private -runtimefunction id=86 function=f32 visibility=Private +runtimefunction id=64 function=f30 +runtimefunction id=69 function=f31 visibility=Private +runtimefunction id=85 function=f32 visibility=Private runtimefunction id=131091 function=f39 visibility=Private # -- generated: f0 count all next # CHECK-LABEL: function f0 module= @@ -444,7 +444,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Return v47 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f41 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f41 callPosition=25 module=m2}] { +# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f41 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f41 callPosition=25 module=m2}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -467,7 +467,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Return v15 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f31} +# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f31} # CHECK-LABEL: function {{*}}name="count" # CHECK: module=m0 position=155 role=CoroutineBody flags=[IsGenerator, HasThis, TakesCallee, HasExplicitName] length=1 thisType={type=undefined} parameters=[{type=int[2, 4]}, {type=Generator}] results=[{type=anything}] derivation={source=f1 parameterMap=[{original=0}, {original=1}, {original=2}, {}]} creator=Coroutine{ramp=f1 body=f42 promiseParameter=3} { # CHECK-NEXT: b0(v0: undefined, v1: function, v2: int[2, 4], v3: Generator): @@ -507,7 +507,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f31}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} inlineFrames=[{}, {callee=f31 callPosition=25 isTailCall=true module=m2}, {callee=f41 callPosition=25 parent=1 module=m2}] { +# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f31}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} inlineFrames=[{}, {callee=f31 callPosition=25 isTailCall=true module=m2}, {callee=f41 callPosition=25 parent=1 module=m2}] { # CHECK-NEXT: b0(v0: f31, v1: anything, v2: anything): # CHECK-NEXT: v3: anything ~ Generator = Upcast v1 castType=anything # CHECK-NEXT: v4: undefined = StepGenerator v3, v2 check=IsGenerator diff --git a/test/aot/engine-tests/ir/language/descriptor-changed-defines-builtin.ir b/test/aot/engine-tests/ir/language/descriptor-changed-defines-builtin.ir index 5885465cdcb7..54554b92fffe 100644 --- a/test/aot/engine-tests/ir/language/descriptor-changed-defines-builtin.ir +++ b/test/aot/engine-tests/ir/language/descriptor-changed-defines-builtin.ir @@ -220,7 +220,7 @@ function f5 module=m0 role=Signature thisType={type=anything} results=[{type=any function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -243,7 +243,7 @@ function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f9 +runtimefunction id=68 function=f9 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}] { @@ -341,7 +341,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v85 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -350,13 +350,13 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { # CHECK-NEXT: b0(v0: f9, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/ir/soundness/reachable-constructor-made-handed.ir b/test/aot/engine-tests/ir/soundness/reachable-constructor-made-handed.ir index 1fe7d6415ace..404d21b6b428 100644 --- a/test/aot/engine-tests/ir/soundness/reachable-constructor-made-handed.ir +++ b/test/aot/engine-tests/ir/soundness/reachable-constructor-made-handed.ir @@ -546,8 +546,8 @@ function f69 module=m1 role=Signature thisType={type=anything} results=[{type=an function f70 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f71 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f72 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f73 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f74 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f73 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f74 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f75 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d15 @@ -660,8 +660,8 @@ function f115 module=m8 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f116 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f73 -runtimefunction id=70 function=f74 visibility=Private +runtimefunction id=68 function=f73 +runtimefunction id=69 function=f74 visibility=Private runtimefunction id=65574 function=f55 runtimefunction id=65580 function=f54 # -- generated: f0 F L R f24 f55 writeOut f78 f115 diff --git a/test/aot/engine-tests/ir/structural-types/iterating-an-untyped-value.ir b/test/aot/engine-tests/ir/structural-types/iterating-an-untyped-value.ir index aa652ab53021..77315cd6511a 100644 --- a/test/aot/engine-tests/ir/structural-types/iterating-an-untyped-value.ir +++ b/test/aot/engine-tests/ir/structural-types/iterating-an-untyped-value.ir @@ -766,7 +766,7 @@ function f44 module=m0 role=Signature thisType={type=anything} results=[{type=an function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f48 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f48 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -777,7 +777,7 @@ function f48 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -function f49 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f49 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -794,29 +794,29 @@ function f49 name="map" module=m4 position=5210 kind=Method role=Library flags=[ v15 = Convert v13 declared={type=number} illTypedCause=Assertion Return v11 } -function f50 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f50 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 index=1 v4 = ResumeGenerator v0, v1 Return v4 } -function f51 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f51 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Return check=IsGenerator v3 = ResultAt v2 index=1 v4 = ResumeGenerator v0, v1 resumeMode=Return Return v4 } -function f52 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f52 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator v3 = ResultAt v2 index=1 v4 = ResumeGenerator v0, v1 resumeMode=Throw Return v4 } -function f53 name="next" module=m8 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f55] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f54 name="return" module=m8 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f56] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f53 name="next" module=m8 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f55] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f54 name="return" module=m8 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f56] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f55 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] function f56 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] function f57 module=m9 kind=Module role=Library thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -963,11 +963,11 @@ function f84 name="traverseArray" module=m12 position=2337 kind=Method role=Libr v77 = Call v73, -, v66, v74, v58, v76 calleeName="finishJoin" ReturnCall v77 casts=[{declared={type=undefined|null|string site=w187 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=65 function=f49 -runtimefunction id=69 function=f48 -runtimefunction id=70 function=f50 visibility=Private -runtimefunction id=86 function=f51 visibility=Private -runtimefunction id=92 function=f52 visibility=Private +runtimefunction id=64 function=f49 +runtimefunction id=68 function=f48 +runtimefunction id=69 function=f50 visibility=Private +runtimefunction id=85 function=f51 visibility=Private +runtimefunction id=91 function=f52 visibility=Private runtimefunction id=131091 function=f84 visibility=Private # -- generated: attempt numbersThenAText f6 f7 f8 f10 f11 f13 f14 f15 f17 f18 f19 f20 # CHECK-LABEL: function {{*}}name="attempt" diff --git a/test/aot/engine-tests/ir/structural-types/range-proofs-int32-param-meet-other.ir b/test/aot/engine-tests/ir/structural-types/range-proofs-int32-param-meet-other.ir index 9035e4c93e51..93d9aeff5f20 100644 --- a/test/aot/engine-tests/ir/structural-types/range-proofs-int32-param-meet-other.ir +++ b/test/aot/engine-tests/ir/structural-types/range-proofs-int32-param-meet-other.ir @@ -930,7 +930,7 @@ function f59 module=m0 role=Signature thisType={type=anything} results=[{type=an function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f62 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -941,7 +941,7 @@ function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -function f64 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f64 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.filter requires that |this| not be null or undefined" @@ -961,7 +961,7 @@ function f64 name="filter" module=m2 position=4475 kind=Method role=Library flag v18 = Convert v7 declared={type=number} illTypedCause=Assertion Return v11 } -function f65 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f65 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1347,9 +1347,9 @@ function f72 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b85(v240): Return v240 } -runtimefunction id=33 function=f64 -runtimefunction id=65 function=f65 -runtimefunction id=69 function=f63 +runtimefunction id=32 function=f64 +runtimefunction id=64 function=f65 +runtimefunction id=68 function=f63 runtimefunction id=131091 function=f72 visibility=Private # -- generated: f0 show # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/ir/structural-types/record-that-cannot-grow.ir b/test/aot/engine-tests/ir/structural-types/record-that-cannot-grow.ir index 07d0227759a0..7d5576b99c9b 100644 --- a/test/aot/engine-tests/ir/structural-types/record-that-cannot-grow.ir +++ b/test/aot/engine-tests/ir/structural-types/record-that-cannot-grow.ir @@ -544,8 +544,8 @@ function f57 module=m0 role=Signature thisType={type=anything} results=[{type=an function f58 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f60] function f59 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33] function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f61 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f62 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f61 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f62 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f63 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w119}, {type=number site=w120}] results=[{type=number site=w121}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f64 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w122 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w123}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f65 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w124 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w125}, {type=anything}] results=[{type=number site=w126}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -743,8 +743,8 @@ function f69 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w182} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f62 -runtimefunction id=69 function=f61 +runtimefunction id=64 function=f62 +runtimefunction id=68 function=f61 runtimefunction id=131091 function=f69 visibility=Private # -- generated: put Board goal f15 f23 f29 f30 f31 f32 # CHECK-LABEL: function {{*}}name="put" diff --git a/test/aot/engine-tests/ir/structural-types/three-mixins-deep.ir b/test/aot/engine-tests/ir/structural-types/three-mixins-deep.ir index 2041e227e8da..60d3ba8b2cbf 100644 --- a/test/aot/engine-tests/ir/structural-types/three-mixins-deep.ir +++ b/test/aot/engine-tests/ir/structural-types/three-mixins-deep.ir @@ -184,7 +184,7 @@ function f20 module=m0 role=Signature thisType={type=anything} results=[{type=an # CHECK: Source # CHECK-NEXT: BB#0: ; frequency = 1.000000 # CHECK-NEXT: Int64 b@10 = ArgumentReg(%r13) -# CHECK-NEXT: Int64 b@21 = Load(b@10, offset = 8040, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v2:String) +# CHECK-NEXT: Int64 b@21 = Load(b@10, offset = 8032, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v2:String) # CHECK-NEXT: Int64 b@22 = Load(b@21, offset = 8, ControlDependent|Reads:AOTInstance_stringCells, v2:String) # CHECK-NEXT: Void b@24 = Branch(b@22, Terminal, v2:String) # CHECK-NEXT: Successors: Then:#3, Else:Rare:#4 diff --git a/test/aot/engine-tests/ir/typed-objects/member-long-union-replaced-copy-joined.ir b/test/aot/engine-tests/ir/typed-objects/member-long-union-replaced-copy-joined.ir index 07138bdc6c2b..62664cb140aa 100644 --- a/test/aot/engine-tests/ir/typed-objects/member-long-union-replaced-copy-joined.ir +++ b/test/aot/engine-tests/ir/typed-objects/member-long-union-replaced-copy-joined.ir @@ -193,7 +193,7 @@ function f3 module=m0 role=Signature thisType={type=anything} results=[{type=any function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f4] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f3] -function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -216,7 +216,7 @@ function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f7 +runtimefunction id=68 function=f7 # -- generated: f0 f2 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f12 callPosition=4294967295 module=m0}] { @@ -309,7 +309,7 @@ runtimefunction id=69 function=f7 # CHECK-NEXT: Jump -> next b3() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -384,7 +384,7 @@ runtimefunction id=69 function=f7 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f7 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/ir/untyped-stress/slice-of-unknown-receiver.ir b/test/aot/engine-tests/ir/untyped-stress/slice-of-unknown-receiver.ir index 36de8f4cbbe9..30ec24a92068 100644 --- a/test/aot/engine-tests/ir/untyped-stress/slice-of-unknown-receiver.ir +++ b/test/aot/engine-tests/ir/untyped-stress/slice-of-unknown-receiver.ir @@ -738,7 +738,7 @@ function f35 module=m1 kind=Module flags=[IsChecked] thisType={type=anything} re v0 = Undefined Return v0 } -function f36 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -1437,7 +1437,7 @@ function f43 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b147(v544): Return v544 } -runtimefunction id=69 function=f36 +runtimefunction id=68 function=f36 runtimefunction id=131091 function=f43 visibility=Private # -- generated: f1 # CHECK-LABEL: function f1 role= diff --git a/test/aot/engine-tests/passes/access-sites/literals-with-proto.ir b/test/aot/engine-tests/passes/access-sites/literals-with-proto.ir index a80a5c3e7ab4..165009d1bf2f 100644 --- a/test/aot/engine-tests/passes/access-sites/literals-with-proto.ir +++ b/test/aot/engine-tests/passes/access-sites/literals-with-proto.ir @@ -298,8 +298,8 @@ function f36 module=m0 role=Signature thisType={type=anything} results=[{type=an function f37 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f38 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f40 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f40 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f42 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f43 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -610,8 +610,8 @@ function f48 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v249 = Call v243, -, v127, v244, v124, v248 calleeName="finishJoin" ReturnCall v249 casts=[{declared={type=undefined|null|string site=w76 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=65 function=f41 -runtimefunction id=69 function=f40 +runtimefunction id=64 function=f41 +runtimefunction id=68 function=f40 runtimefunction id=131091 function=f48 visibility=Private # -- generated: f0 show finishJoin # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/access-sites/special-props-arrays-functions-host.ir b/test/aot/engine-tests/passes/access-sites/special-props-arrays-functions-host.ir index 5e1a695d1135..cf40c6471251 100644 --- a/test/aot/engine-tests/passes/access-sites/special-props-arrays-functions-host.ir +++ b/test/aot/engine-tests/passes/access-sites/special-props-arrays-functions-host.ir @@ -337,8 +337,8 @@ function f58 module=m0 role=Signature thisType={type=anything} results=[{type=an function f59 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f37] function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f37] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f37] -function f62 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f62 +function f62 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=68 function=f62 # -- generated: f0 setLength setPrototypeField f22 f32 f36 look # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f21 callPosition=4294967295 module=m0}] { diff --git a/test/aot/engine-tests/passes/arrays/element-pushed-list-fractions-tested.ir b/test/aot/engine-tests/passes/arrays/element-pushed-list-fractions-tested.ir index c908bbc6c06b..458fa0faed30 100644 --- a/test/aot/engine-tests/passes/arrays/element-pushed-list-fractions-tested.ir +++ b/test/aot/engine-tests/passes/arrays/element-pushed-list-fractions-tested.ir @@ -189,7 +189,7 @@ function f2 module=m0 position=417 kind=Arrow flags=[IsChecked] thisType={type=a IteratorClose v3 completion=Throw Rethrow v13 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -212,7 +212,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 lessEach f2 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -466,7 +466,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -544,7 +544,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/passes/arrays/element-read-variable-list-record-bound.ir b/test/aot/engine-tests/passes/arrays/element-read-variable-list-record-bound.ir index c1dbb5fc17bc..78e91020fed6 100644 --- a/test/aot/engine-tests/passes/arrays/element-read-variable-list-record-bound.ir +++ b/test/aot/engine-tests/passes/arrays/element-read-variable-list-record-bound.ir @@ -198,7 +198,7 @@ function f7 module=m0 role=Signature thisType={type=anything} results=[{type=any function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -221,7 +221,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f12 name="groupBy" module=m2 position=1940 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="groupBy" module=m2 position=1940 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=59 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -340,7 +340,7 @@ function f12 name="groupBy" module=m2 position=1940 kind=Method role=Library fla v65 = ThrowNewError errorKind=TypeError message="Object.groupBy requires that the second argument must be a function" Unreachable } -function f13 name="[Symbol.iterator]" module=m2 position=2910 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=60 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="[Symbol.iterator]" module=m2 position=2910 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=59 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -533,8 +533,8 @@ function f16 name="filledArray" module=m4 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w13 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=60 function=f12 -runtimefunction id=69 function=f11 +runtimefunction id=59 function=f12 +runtimefunction id=68 function=f11 runtimefunction id=131084 function=f14 runtimefunction id=131112 function=f15 visibility=Private runtimefunction id=131113 function=f16 visibility=Private @@ -648,7 +648,7 @@ runtimefunction id=131113 function=f16 visibility=Private # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f24 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f24 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f24 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -657,7 +657,7 @@ runtimefunction id=131113 function=f16 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="groupBy" -# CHECK: module=m2 position=1940 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=function flags=[IsExpected]}] results=[{type=Object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] inlineFrames=[{}, {callee=f13 callPosition=4294967295 calleeIsPredicted=true module=m2}] { +# CHECK: module=m2 position=1940 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=59 thisType={type=anything} parameters=[{type=anything}, {type=function flags=[IsExpected]}] results=[{type=Object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] inlineFrames=[{}, {callee=f13 callPosition=4294967295 calleeIsPredicted=true module=m2}] { # CHECK-NEXT: b0(v0: anything, v1: anything ~ function): # CHECK-NEXT: v2: boolean = TypeTest v0 testedType=undefined|null # CHECK-NEXT: Branch v2 -> taken b1(), notTaken b2(| 0) @@ -799,19 +799,19 @@ runtimefunction id=131113 function=f16 visibility=Private # CHECK-NEXT: Return v17 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="groupBy" -# CHECK: module=m2 position=1940 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 enclosingRuntimeFunction=60 captures=[{type=f12}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { +# CHECK: module=m2 position=1940 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 enclosingRuntimeFunction=59 captures=[{type=f12}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { # CHECK-NEXT: b0(v0: f12, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: Object = CallDirect v2, v3 function=f12 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="groupBy" -# CHECK: module=m2 position=1940 kind=Method role=CalleeVersion flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=function}] results=[{type=Object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameter=1073741825 parameterMap=[{original=0}, {original=1}]} creator=Version{provenVersion=f12} inlineFrames=[{}, {callee=f13 callPosition=4294967295 calleeIsPredicted=true module=m2}] { +# CHECK: module=m2 position=1940 kind=Method role=CalleeVersion flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=59 thisType={type=anything} parameters=[{type=anything}, {type=function}] results=[{type=Object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameter=1073741825 parameterMap=[{original=0}, {original=1}]} creator=Version{provenVersion=f12} inlineFrames=[{}, {callee=f13 callPosition=4294967295 calleeIsPredicted=true module=m2}] { # CHECK-NEXT: b0(v0: anything, v1: function): # CHECK-NEXT: v2: boolean = TypeTest v0 testedType=undefined|null # CHECK-NEXT: Branch v2 -> taken b1(), notTaken b2(| 0) @@ -915,7 +915,7 @@ runtimefunction id=131113 function=f16 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/arrays/elements-outside-hot-code.ir b/test/aot/engine-tests/passes/arrays/elements-outside-hot-code.ir index c5c76202fcfb..507abadd3c51 100644 --- a/test/aot/engine-tests/passes/arrays/elements-outside-hot-code.ir +++ b/test/aot/engine-tests/passes/arrays/elements-outside-hot-code.ir @@ -597,12 +597,12 @@ function f115 module=m2 kind=Module thisType={type=anything} results=[{type=anyt v3 = Undefined Return v3 } -function f116 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f117 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f118 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f119 name="forEach" module=m5 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f120 name="filter" module=m5 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f121 name="map" module=m5 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f116 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f117 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f118 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f119 name="forEach" module=m5 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f120 name="filter" module=m5 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f121 name="map" module=m5 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -655,11 +655,11 @@ function f130 name="filledArray" module=m7 position=2241 kind=Method role=Librar v11 = Call v10, v9, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v11 casts=[{declared={type=undefined|null|Array site=w103 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w85 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=33 function=f120 -runtimefunction id=44 function=f119 -runtimefunction id=47 function=f116 -runtimefunction id=65 function=f121 -runtimefunction id=69 function=f118 +runtimefunction id=32 function=f120 +runtimefunction id=43 function=f119 +runtimefunction id=46 function=f116 +runtimefunction id=64 function=f121 +runtimefunction id=68 function=f118 runtimefunction id=131091 function=f128 visibility=Private runtimefunction id=131110 function=f129 runtimefunction id=131113 function=f130 visibility=Private diff --git a/test/aot/engine-tests/passes/arrays/generic-loop-finds-own-element.ir b/test/aot/engine-tests/passes/arrays/generic-loop-finds-own-element.ir index e529ed6a7ee8..cd94789427ad 100644 --- a/test/aot/engine-tests/passes/arrays/generic-loop-finds-own-element.ir +++ b/test/aot/engine-tests/passes/arrays/generic-loop-finds-own-element.ir @@ -231,10 +231,10 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ArrayPrototypeSome] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ArrayPrototypeForEach] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ArrayPrototypeReduce] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="every" module=m2 position=3388 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=31 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w45}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="every" module=m2 position=3388 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=30 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w45}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -249,12 +249,12 @@ function f25 name="forEach" module=m2 position=3958 kind=Method role=Library fla v13 = Undefined Return v13 } -function f26 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w46}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=31 function=f24 -runtimefunction id=44 function=f25 -runtimefunction id=69 function=f22 -runtimefunction id=82 function=f23 -runtimefunction id=89 function=f26 +function f26 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w46}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=30 function=f24 +runtimefunction id=43 function=f25 +runtimefunction id=68 function=f22 +runtimefunction id=81 function=f23 +runtimefunction id=88 function=f26 # -- generated: f0 filled walk f8 f11 forEach tell # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -400,7 +400,7 @@ runtimefunction id=89 function=f26 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -414,7 +414,7 @@ runtimefunction id=89 function=f26 # CHECK-NEXT: Jump -> next b1() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m2 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=44 captures=[{type=f25}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} inlineFrames=[{}, {callee=f25 callPosition=3958 isTailCall=true module=m2}] { +# CHECK: module=m2 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=43 captures=[{type=f25}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} inlineFrames=[{}, {callee=f25 callPosition=3958 isTailCall=true module=m2}] { # CHECK-NEXT: b0(v0: f25, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: anything ~ Array = Upcast v1 castType=anything @3958 tail # CHECK-NEXT: v5: object ~ Array = ToObject v4 message="Array.prototype.forEach requires that |this| not be null or undefined" diff --git a/test/aot/engine-tests/passes/arrays/new-list-made-list-length-compared.ir b/test/aot/engine-tests/passes/arrays/new-list-made-list-length-compared.ir index 57264f8fa460..4958068ca2c2 100644 --- a/test/aot/engine-tests/passes/arrays/new-list-made-list-length-compared.ir +++ b/test/aot/engine-tests/passes/arrays/new-list-made-list-length-compared.ir @@ -197,7 +197,7 @@ function f2 name="double" module=m0 position=457 flags=[IsChecked, HasExplicitNa v3 = Convert v2 declared={type=number site=w3} Return v3 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -220,7 +220,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 double next pairOf # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}] { @@ -384,7 +384,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f9 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f9 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f9 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -454,7 +454,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v45 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -466,7 +466,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/arrays/test-array-used-again-getter-namespace.ir b/test/aot/engine-tests/passes/arrays/test-array-used-again-getter-namespace.ir index 34a97a308f55..de4518bf965d 100644 --- a/test/aot/engine-tests/passes/arrays/test-array-used-again-getter-namespace.ir +++ b/test/aot/engine-tests/passes/arrays/test-array-used-again-getter-namespace.ir @@ -600,8 +600,8 @@ function f67 module=m1 role=Signature thisType={type=anything} results=[{type=an function f68 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f69 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f70 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f71 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f72 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f71 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f72 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f73 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d11 @@ -724,8 +724,8 @@ function f121 name="joinedText" module=m10 position=1819 role=Library flags=[IsC function f122 name="finishJoin" module=m10 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w151 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w152 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w153}, {type=number site=w154}] results=[{type=undefined|null|string site=w155 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f123 name="finishReduce" module=m10 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w156}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f124 name="traverseArray" module=m10 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w157 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w158}, {type=undefined|number site=w159}, {type=number site=w160}, {type=undefined|null|Array site=w161 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f72 -runtimefunction id=69 function=f71 +runtimefunction id=64 function=f72 +runtimefunction id=68 function=f71 runtimefunction id=65574 function=f53 runtimefunction id=65580 function=f52 runtimefunction id=131091 function=f124 visibility=Private diff --git a/test/aot/engine-tests/passes/arrays/undefined-list-filled-values-by-each.ir b/test/aot/engine-tests/passes/arrays/undefined-list-filled-values-by-each.ir index 86fb5b347c25..8b2bfbafed59 100644 --- a/test/aot/engine-tests/passes/arrays/undefined-list-filled-values-by-each.ir +++ b/test/aot/engine-tests/passes/arrays/undefined-list-filled-values-by-each.ir @@ -147,8 +147,8 @@ function f9 module=m0 role=Signature thisType={type=anything} results=[{type=any function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f12] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f14 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f14 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): v4 = ToObject v0 message="Array.prototype.reduce requires that |this| not be null or undefined" v5 = PropGet v4 key="length" @@ -184,7 +184,7 @@ function f14 name="reduce" module=m2 position=1398 kind=Method role=Library flag b3(v34, v35): Return v15 } -function f15 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -213,9 +213,9 @@ function f15 name="forEach" module=m2 position=3958 kind=Method role=Library fla v26 = Undefined Return v26 } -runtimefunction id=44 function=f15 -runtimefunction id=69 function=f13 -runtimefunction id=82 function=f14 +runtimefunction id=43 function=f15 +runtimefunction id=68 function=f13 +runtimefunction id=81 function=f14 # -- generated: count collect f8 # CHECK-LABEL: function {{*}}name="count" # CHECK: module=m0 position=251 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|Array site=w0 flags=[OmitsNull, OmitsUndefined]}] results=[{type=0 site=w1}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] inlineFrames=[{}, {callee=f22 callPosition=4294967295 module=m2}] { diff --git a/test/aot/engine-tests/passes/arrays/undefined-list-took-store-counted-list.ir b/test/aot/engine-tests/passes/arrays/undefined-list-took-store-counted-list.ir index 8008fcc65a42..5ffe387c47c9 100644 --- a/test/aot/engine-tests/passes/arrays/undefined-list-took-store-counted-list.ir +++ b/test/aot/engine-tests/passes/arrays/undefined-list-took-store-counted-list.ir @@ -126,8 +126,8 @@ function f7 module=m0 position=236 kind=Arrow length=1 captures=[{type=env L0 fl function f8 module=m0 position=690 kind=Arrow length=2 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f12 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f12 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): v4 = ToObject v0 message="Array.prototype.reduce requires that |this| not be null or undefined" v5 = PropGet v4 key="length" @@ -145,7 +145,7 @@ function f12 name="reduce" module=m2 position=1398 kind=Method role=Library flag v17 = Convert v10 declared={type=number} illTypedCause=Assertion Return v3 } -function f13 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -183,9 +183,9 @@ function f13 name="forEach" module=m2 position=3958 kind=Method role=Library fla v32 = Undefined Return v32 } -runtimefunction id=44 function=f13 -runtimefunction id=69 function=f11 -runtimefunction id=82 function=f12 +runtimefunction id=43 function=f13 +runtimefunction id=68 function=f11 +runtimefunction id=81 function=f12 # -- generated: f0 # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/passes/async/generator-spread-maker-rounds-number.ir b/test/aot/engine-tests/passes/async/generator-spread-maker-rounds-number.ir index b295c02da173..09a6365be69d 100644 --- a/test/aot/engine-tests/passes/async/generator-spread-maker-rounds-number.ir +++ b/test/aot/engine-tests/passes/async/generator-spread-maker-rounds-number.ir @@ -233,7 +233,7 @@ function f5 module=m0 position=505 kind=Arrow flags=[IsChecked] captures=[{type= v13 = Convert v12 declared={type=undefined|null|string site=w16 flags=[OmitsNull]} illTypedCause=FromLooseType Return v13 } -function f6 name="next" module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="next" module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -257,7 +257,7 @@ function f6 name="next" module=m1 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -runtimefunction id=70 function=f6 visibility=Private +runtimefunction id=69 function=f6 visibility=Private # -- generated: f0 use4 steps next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -307,7 +307,7 @@ runtimefunction id=70 function=f6 visibility=Private # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -461,7 +461,7 @@ runtimefunction id=70 function=f6 visibility=Private # CHECK-NEXT: Return v43 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f6}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f6} creator=Entrypoint{target=f6 arguments=Registers} { +# CHECK: module=m1 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f6}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f6} creator=Entrypoint{target=f6 arguments=Registers} { # CHECK-NEXT: b0(v0: f6, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f6 # CHECK-NEXT: ReturnCall v3 requirement=Allowed diff --git a/test/aot/engine-tests/passes/async/nested-and-parallel-streams.ir b/test/aot/engine-tests/passes/async/nested-and-parallel-streams.ir index 6b296ab27244..e1118707a71a 100644 --- a/test/aot/engine-tests/passes/async/nested-and-parallel-streams.ir +++ b/test/aot/engine-tests/passes/async/nested-and-parallel-streams.ir @@ -588,7 +588,7 @@ function f63 module=m2 role=Signature thisType={type=anything} results=[{type=an function f64 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f65 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f66 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f67 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f67 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -599,7 +599,7 @@ function f67 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -function f68 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f68 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f69 name="Promise" module=m7 position=1836 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName, IsNakedConstructor] length=1 enclosingRuntimeFunction=0 thisType={type=anything} parameters=[{type=anything}] results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f70 module=m7 position=2114 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f71 module=m7 position=2263 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -742,8 +742,8 @@ function f137 name="finishJoin" module=m15 position=1934 role=Library flags=[IsC function f138 name="finishReduce" module=m15 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w244}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f139 name="traverseArray" module=m15 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w245 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w246}, {type=undefined|number site=w247}, {type=number site=w248}, {type=undefined|null|Array site=w249 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f69 -runtimefunction id=65 function=f68 -runtimefunction id=69 function=f67 +runtimefunction id=64 function=f68 +runtimefunction id=68 function=f67 runtimefunction id=65574 function=f49 runtimefunction id=65580 function=f48 runtimefunction id=131091 function=f139 visibility=Private @@ -789,7 +789,7 @@ runtimefunction id=131091 function=f139 visibility=Private # CHECK-NEXT: ReturnCall v21 casts=[{declared={type=undefined|null|Promise flags=[IsExpected, OmitsNull, OmitsUndefined]} resolution=Nothing}, {declared={type=undefined|null|Promise flags=[IsExpected, OmitsNull, OmitsUndefined]} resolution=Nothing}, {declared={type=Promise} resolution=Assume}] # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: object ~ ArrayIterator = AssumeType v0 provenType=object [isWordOfFrontEnd] # CHECK-NEXT: v2: anything = GetInternalField v1 @@ -1006,7 +1006,7 @@ runtimefunction id=131091 function=f139 visibility=Private # CHECK-NEXT: Jump -> next b3() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f67}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f67} creator=Entrypoint{target=f67 arguments=Registers} { +# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f67}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f67} creator=Entrypoint{target=f67 arguments=Registers} { # CHECK-NEXT: b0(v0: f67, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f67 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/passes/async/result-awaited-step-async-variable.ir b/test/aot/engine-tests/passes/async/result-awaited-step-async-variable.ir index 9276466366f5..d36e7950904a 100644 --- a/test/aot/engine-tests/passes/async/result-awaited-step-async-variable.ir +++ b/test/aot/engine-tests/passes/async/result-awaited-step-async-variable.ir @@ -1095,7 +1095,7 @@ function f21 module=m2 role=Signature thisType={type=anything} results=[{type=an function f22 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1892,7 +1892,7 @@ function f85 module=m12 kind=Module role=Library flags=[IsChecked] thisType={typ Return v39 } function f86 name="matchesGlob" module=m12 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w149}, {type=undefined|null|string site=w150 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w151 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w152}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f25 +runtimefunction id=68 function=f25 runtimefunction id=65574 function=f7 runtimefunction id=65580 function=f6 # -- generated: f0 count fails f7 next nextTick @@ -1934,7 +1934,7 @@ runtimefunction id=65580 function=f6 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m2 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L3 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w27 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w28 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f137 layout=L(IteratorResult)} { +# CHECK: module=m3 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f137 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f137 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2051,7 +2051,7 @@ runtimefunction id=65580 function=f6 # CHECK-NEXT: Throw v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f25}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { +# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f25}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { # CHECK-NEXT: b0(v0: f25, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f25 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2232,7 +2232,7 @@ runtimefunction id=65580 function=f6 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f25 parameterMap=[{original=0}]} creator=ResultWorker{origin=f25} { +# CHECK: module=m3 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f25 parameterMap=[{original=0}]} creator=ResultWorker{origin=f25} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/builtins/index-of-slice-and-char-at-args-could.ir b/test/aot/engine-tests/passes/builtins/index-of-slice-and-char-at-args-could.ir index 4449467e2e30..8850d41b8075 100644 --- a/test/aot/engine-tests/passes/builtins/index-of-slice-and-char-at-args-could.ir +++ b/test/aot/engine-tests/passes/builtins/index-of-slice-and-char-at-args-could.ir @@ -638,10 +638,10 @@ function f66 module=m0 role=Signature thisType={type=anything} results=[{type=an function f67 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f68 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f69 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f70 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f71 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f72 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f73 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f70 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f71 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f72 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f73 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -923,9 +923,9 @@ function f82 name="traverseArray" module=m5 position=2337 kind=Method role=Libra function f83 name="from" module=m6 position=651 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=131110 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|Array site=w83 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f75 runtimefunction id=12 function=f74 -runtimefunction id=47 function=f70 -runtimefunction id=65 function=f73 -runtimefunction id=69 function=f72 +runtimefunction id=46 function=f70 +runtimefunction id=64 function=f73 +runtimefunction id=68 function=f72 runtimefunction id=131091 function=f82 visibility=Private runtimefunction id=131110 function=f83 # -- generated: at f14 f15 f16 f21 f25 f28 f29 diff --git a/test/aot/engine-tests/passes/builtins/same-map-set-written-twice.ir b/test/aot/engine-tests/passes/builtins/same-map-set-written-twice.ir index e549c887fb20..20af35324668 100644 --- a/test/aot/engine-tests/passes/builtins/same-map-set-written-twice.ir +++ b/test/aot/engine-tests/passes/builtins/same-map-set-written-twice.ir @@ -431,8 +431,8 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f21] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f25] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w127}, {type=number site=w128}] results=[{type=number site=w129}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w130 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w131}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w132 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w133}, {type=anything}] results=[{type=number site=w134}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -440,8 +440,8 @@ function f31 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f32 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w136 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w137 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w138}, {type=number site=w139}] results=[{type=undefined|null|string site=w140 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w141}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w142 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w143}, {type=undefined|number site=w144}, {type=number site=w145}, {type=undefined|null|Array site=w146 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f27 -runtimefunction id=69 function=f26 +runtimefunction id=64 function=f27 +runtimefunction id=68 function=f26 runtimefunction id=131091 function=f34 visibility=Private # -- generated: f0 twice chained keyReadTwice # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/calls-fast-paths/push-read-ahead-of-its-argument.ir b/test/aot/engine-tests/passes/calls-fast-paths/push-read-ahead-of-its-argument.ir index 9a98583dac12..4598ee2c9301 100644 --- a/test/aot/engine-tests/passes/calls-fast-paths/push-read-ahead-of-its-argument.ir +++ b/test/aot/engine-tests/passes/calls-fast-paths/push-read-ahead-of-its-argument.ir @@ -453,22 +453,22 @@ function f124 module=m0 role=Signature thisType={type=anything} results=[{type=a function f125 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ArrayPrototypePush] function f126 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f127 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f128 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f129 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f130 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f131 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f128 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f129 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f130 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f131 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f132 name="call" module=m4 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f133 name="apply" module=m4 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f134 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f135 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f136 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f134 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f135 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f136 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f137 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f138 name="getIteratorFlattenable" module=m7 position=1482 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 enclosingRuntimeFunction=56 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|object site=w8 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f139 name="from" module=m7 position=3303 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=48 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f140 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f141 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f142 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f143 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f138 name="getIteratorFlattenable" module=m7 position=1482 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 enclosingRuntimeFunction=55 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|object site=w8 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f139 name="from" module=m7 position=3303 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f140 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f141 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f142 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f143 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f144 name="toLocaleString" module=m10 position=1291 kind=Method role=Model flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=131086 thisType={type=anything} results=[{type=anything}] function f145 name="clampToLength" module=m11 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w9}, {type=number site=w10}] results=[{type=number site=w11}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f146 name="storeInNewArray" module=m11 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -480,18 +480,18 @@ function f151 name="traverseArray" module=m11 position=2337 kind=Method role=Lib function f152 name="from" module=m12 position=651 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=131110 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|Array site=w84 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f133 runtimefunction id=12 function=f132 -runtimefunction id=47 function=f128 -runtimefunction id=48 function=f139 -runtimefunction id=56 function=f138 visibility=Private -runtimefunction id=65 function=f131 -runtimefunction id=69 function=f130 -runtimefunction id=70 function=f134 visibility=Private -runtimefunction id=71 function=f140 visibility=Private -runtimefunction id=72 function=f142 -runtimefunction id=86 function=f135 visibility=Private -runtimefunction id=87 function=f141 -runtimefunction id=88 function=f143 -runtimefunction id=92 function=f136 visibility=Private +runtimefunction id=46 function=f128 +runtimefunction id=47 function=f139 +runtimefunction id=55 function=f138 visibility=Private +runtimefunction id=64 function=f131 +runtimefunction id=68 function=f130 +runtimefunction id=69 function=f134 visibility=Private +runtimefunction id=70 function=f140 visibility=Private +runtimefunction id=71 function=f142 +runtimefunction id=85 function=f135 visibility=Private +runtimefunction id=86 function=f141 +runtimefunction id=87 function=f143 +runtimefunction id=91 function=f136 visibility=Private runtimefunction id=131072 function=f137 visibility=Private runtimefunction id=131086 function=f144 runtimefunction id=131091 function=f151 visibility=Private diff --git a/test/aot/engine-tests/passes/calls-fast-paths/search-sameness-builtins-called-value.ir b/test/aot/engine-tests/passes/calls-fast-paths/search-sameness-builtins-called-value.ir index 3e9c0a705182..8d5cfe0bf5ac 100644 --- a/test/aot/engine-tests/passes/calls-fast-paths/search-sameness-builtins-called-value.ir +++ b/test/aot/engine-tests/passes/calls-fast-paths/search-sameness-builtins-called-value.ir @@ -446,11 +446,11 @@ function f33 module=m0 role=Signature thisType={type=anything} results=[{type=an function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ObjectIs] function f36 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f37 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f38 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f39 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f40 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f38 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f39 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f40 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -486,16 +486,16 @@ function f41 name="map" module=m3 position=5210 kind=Method role=Library flags=[ } function f42 name="call" module=m4 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f43 name="apply" module=m4 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f44 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f48 name="getIteratorFlattenable" module=m7 position=1482 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 enclosingRuntimeFunction=56 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|object site=w11 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f49 name="from" module=m7 position=3303 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=48 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f50 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f51 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f52 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f53 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f48 name="getIteratorFlattenable" module=m7 position=1482 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 enclosingRuntimeFunction=55 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|object site=w11 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f49 name="from" module=m7 position=3303 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f50 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f51 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f52 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f53 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f54 name="toLocaleString" module=m10 position=1291 kind=Method role=Model flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=131086 thisType={type=anything} results=[{type=anything}] function f55 name="firstSearchedIndex" module=m11 position=399 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|number site=w12}, {type=number site=w13}] results=[{type=number site=w14}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f56 name="holdsBoxedValues" module=m11 position=750 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w15}] results=[{type=boolean site=w16}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -512,19 +512,19 @@ function f66 name="finishReduce" module=m12 position=2116 role=Library flags=[Is function f67 name="traverseArray" module=m12 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w63 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w64}, {type=undefined|number site=w65}, {type=number site=w66}, {type=undefined|null|Array site=w67 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f43 runtimefunction id=12 function=f42 -runtimefunction id=33 function=f40 -runtimefunction id=47 function=f37 -runtimefunction id=48 function=f49 -runtimefunction id=56 function=f48 visibility=Private -runtimefunction id=65 function=f41 -runtimefunction id=69 function=f39 -runtimefunction id=70 function=f44 visibility=Private -runtimefunction id=71 function=f50 visibility=Private -runtimefunction id=72 function=f52 -runtimefunction id=86 function=f45 visibility=Private -runtimefunction id=87 function=f51 -runtimefunction id=88 function=f53 -runtimefunction id=92 function=f46 visibility=Private +runtimefunction id=32 function=f40 +runtimefunction id=46 function=f37 +runtimefunction id=47 function=f49 +runtimefunction id=55 function=f48 visibility=Private +runtimefunction id=64 function=f41 +runtimefunction id=68 function=f39 +runtimefunction id=69 function=f44 visibility=Private +runtimefunction id=70 function=f50 visibility=Private +runtimefunction id=71 function=f52 +runtimefunction id=85 function=f45 visibility=Private +runtimefunction id=86 function=f51 +runtimefunction id=87 function=f53 +runtimefunction id=91 function=f46 visibility=Private runtimefunction id=131072 function=f47 visibility=Private runtimefunction id=131086 function=f54 runtimefunction id=131087 function=f60 diff --git a/test/aot/engine-tests/passes/calls/functions-bound-in-code-that-runs-once.ir b/test/aot/engine-tests/passes/calls/functions-bound-in-code-that-runs-once.ir index ed4f583a070a..35cbe7ba55c8 100644 --- a/test/aot/engine-tests/passes/calls/functions-bound-in-code-that-runs-once.ir +++ b/test/aot/engine-tests/passes/calls/functions-bound-in-code-that-runs-once.ir @@ -880,8 +880,8 @@ function f104 module=m2 role=Signature thisType={type=anything} results=[{type=a function f105 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f106 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f107 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f108 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f109 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f108 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f109 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f110 name="toLocaleString" module=m7 position=1291 kind=Method role=Model flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=131086 thisType={type=anything} results=[{type=anything}] function f111 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): @@ -1024,8 +1024,8 @@ function f170 module=m14 kind=Module role=Library flags=[IsChecked] thisType={ty Return v37 } function f171 name="matchesGlob" module=m14 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w226}, {type=undefined|null|string site=w227 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w228 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w229}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f108 -runtimefunction id=70 function=f109 visibility=Private +runtimefunction id=68 function=f108 +runtimefunction id=69 function=f109 visibility=Private runtimefunction id=65574 function=f90 runtimefunction id=65580 function=f89 runtimefunction id=131086 function=f110 diff --git a/test/aot/engine-tests/passes/calls/functions-checked-param-reached-call.ir b/test/aot/engine-tests/passes/calls/functions-checked-param-reached-call.ir index c78912efbd08..e3e0f2ff9e02 100644 --- a/test/aot/engine-tests/passes/calls/functions-checked-param-reached-call.ir +++ b/test/aot/engine-tests/passes/calls/functions-checked-param-reached-call.ir @@ -348,7 +348,7 @@ function f5 name="second" module=m0 position=488 kind=Method flags=[HasRestParam function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f6] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -489,7 +489,7 @@ function f12 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type function f13 name="Tick" module=m4 position=1114 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName] thisType={type=anything} results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] constructedClass=L3 runtimefunction id=4 function=f11 runtimefunction id=12 function=f10 -runtimefunction id=69 function=f9 +runtimefunction id=68 function=f9 # -- generated: f0 scale total first second next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f16 callPosition=334 parent=1 isTailCall=true module=m0}, {callee=f19 callPosition=334 parent=3 module=m0}, {callee=f25 callPosition=4294967295 calleeIsPredicted=true module=m0}] { @@ -789,7 +789,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: ReturnCall v110 casts=[{declared={type=undefined|null|string site=w35 flags=[IsExpected, OmitsNull, OmitsUndefined]} resolution=Nothing}, {declared={type=undefined|null|string site=w15 flags=[IsExpected, OmitsNull, OmitsUndefined]} resolution=Nothing}, {declared={type=string} resolution=Assume}] # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f28 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -998,7 +998,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { # CHECK-NEXT: b0(v0: f9, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1021,7 +1021,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Throw v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/calls/number-elements-passed-function-values.ir b/test/aot/engine-tests/passes/calls/number-elements-passed-function-values.ir index 89383dea575b..6e5f237b9f94 100644 --- a/test/aot/engine-tests/passes/calls/number-elements-passed-function-values.ir +++ b/test/aot/engine-tests/passes/calls/number-elements-passed-function-values.ir @@ -840,8 +840,8 @@ function f59 module=m0 role=Signature thisType={type=anything} results=[{type=an function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f39] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f51] builtinMembers=[MathHypot, MathMax] function f62 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f64 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f63 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f64 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1104,8 +1104,8 @@ function f71 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b74(v194): Return v194 } -runtimefunction id=65 function=f64 -runtimefunction id=69 function=f63 +runtimefunction id=64 function=f64 +runtimefunction id=68 function=f63 runtimefunction id=131091 function=f71 visibility=Private # -- generated: byTernary say adder scaler orElse both above count tests f26 f27 f29 f33 twoElements # CHECK-LABEL: function {{*}}name="byTernary" diff --git a/test/aot/engine-tests/passes/calls/odd-factory-returns.ir b/test/aot/engine-tests/passes/calls/odd-factory-returns.ir index e055826e2ff8..d110b01ce862 100644 --- a/test/aot/engine-tests/passes/calls/odd-factory-returns.ir +++ b/test/aot/engine-tests/passes/calls/odd-factory-returns.ir @@ -566,7 +566,7 @@ function f133 module=m1 role=Signature thisType={type=anything} results=[{type=a function f134 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f135 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f136 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f137 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f137 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f138 module=m3 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d1 @@ -679,7 +679,7 @@ function f178 module=m7 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f179 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f137 +runtimefunction id=68 function=f137 runtimefunction id=65574 function=f119 runtimefunction id=65580 function=f118 # -- generated: f0 asyncArrow f119 writeOut onWarning f141 f178 diff --git a/test/aot/engine-tests/passes/calls/tail-calls-known-callee-spread.ir b/test/aot/engine-tests/passes/calls/tail-calls-known-callee-spread.ir index f62aa9486f8e..a13316253747 100644 --- a/test/aot/engine-tests/passes/calls/tail-calls-known-callee-spread.ir +++ b/test/aot/engine-tests/passes/calls/tail-calls-known-callee-spread.ir @@ -599,8 +599,8 @@ function f52 module=m0 role=Signature thisType={type=anything} results=[{type=an function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f52] function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f52] function f55 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[Number] -function f56 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f57 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -633,7 +633,7 @@ function f58 name="apply" module=m3 position=1161 kind=Method role=Library flags v4 = Call v3, v0, v1, v2 Return v4 } -function f59 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f59 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f60 name="clampToLength" module=m5 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w144}, {type=number site=w145}] results=[{type=number site=w146}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f61 name="storeInNewArray" module=m5 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w147 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w148}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f62 name="appendParts" module=m5 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w149 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w150}, {type=anything}] results=[{type=number site=w151}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -642,9 +642,9 @@ function f64 name="finishJoin" module=m5 position=1934 role=Library flags=[IsChe function f65 name="finishReduce" module=m5 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w158}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f66 name="traverseArray" module=m5 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w159 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w160}, {type=undefined|number site=w161}, {type=number site=w162}, {type=undefined|null|Array site=w163 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f58 -runtimefunction id=65 function=f57 -runtimefunction id=69 function=f56 -runtimefunction id=70 function=f59 visibility=Private +runtimefunction id=64 function=f57 +runtimefunction id=68 function=f56 +runtimefunction id=69 function=f59 visibility=Private runtimefunction id=131091 function=f66 visibility=Private # -- generated: join3 spreadIntoSum downBySpread upBySpread selfBySpread downByApply upByApply viaForwarder spreadIntoThrower spreadIntoJoin spreadIntoPair throughTwo viaClosure f23 f25 f26 # CHECK-LABEL: function {{*}}name="join3" diff --git a/test/aot/engine-tests/passes/classes-and-closures/arrow-functions-derived-constructor-see.ir b/test/aot/engine-tests/passes/classes-and-closures/arrow-functions-derived-constructor-see.ir index 8be9a2f0edd7..59fd1429dd0e 100644 --- a/test/aot/engine-tests/passes/classes-and-closures/arrow-functions-derived-constructor-see.ir +++ b/test/aot/engine-tests/passes/classes-and-closures/arrow-functions-derived-constructor-see.ir @@ -634,7 +634,7 @@ function f135 module=m1 role=Signature thisType={type=anything} results=[{type=a function f136 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f137 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f138 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f139 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f139 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f140 module=m3 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d3 @@ -747,7 +747,7 @@ function f180 module=m7 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f181 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f139 +runtimefunction id=68 function=f139 runtimefunction id=65574 function=f121 runtimefunction id=65580 function=f120 # -- generated: f0 Base say Twice f25 Below f34 Throws f36 f49 f121 writeOut f143 diff --git a/test/aot/engine-tests/passes/classes-and-closures/closure-made-anew-callback-array-method.ir b/test/aot/engine-tests/passes/classes-and-closures/closure-made-anew-callback-array-method.ir index 5e7506273e8f..9acf54464e22 100644 --- a/test/aot/engine-tests/passes/classes-and-closures/closure-made-anew-callback-array-method.ir +++ b/test/aot/engine-tests/passes/classes-and-closures/closure-made-anew-callback-array-method.ir @@ -499,10 +499,10 @@ function f90 module=m0 role=Signature thisType={type=anything} results=[{type=an function f91 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f92 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f93 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f94 name="reduce" module=m1 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f95 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f96 name="filter" module=m1 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f97 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f94 name="reduce" module=m1 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f95 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f96 name="filter" module=m1 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f97 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -735,10 +735,10 @@ function f104 name="traverseArray" module=m2 position=2337 kind=Method role=Libr v173 = Convert v172 declared={type=number site=w206} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=33 function=f96 -runtimefunction id=44 function=f95 -runtimefunction id=65 function=f97 -runtimefunction id=82 function=f94 +runtimefunction id=32 function=f96 +runtimefunction id=43 function=f95 +runtimefunction id=64 function=f97 +runtimefunction id=81 function=f94 runtimefunction id=131091 function=f104 visibility=Private # -- generated: f0 mapForEach once f15 f16 f17 f32 f38 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-deleted-redefined.ir b/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-deleted-redefined.ir index 21566ba5f8b5..fe526510b26e 100644 --- a/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-deleted-redefined.ir +++ b/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-deleted-redefined.ir @@ -735,8 +735,8 @@ function f124 module=m1 role=Signature thisType={type=anything} results=[{type=a function f125 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f126 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f127 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f128 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f129 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f128 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f129 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1050,8 +1050,8 @@ function f136 name="traverseArray" module=m5 position=2337 kind=Method role=Libr v245 = TruncateNewArray v243, v244 Return v245 } -runtimefunction id=65 function=f129 -runtimefunction id=69 function=f128 +runtimefunction id=64 function=f129 +runtimefunction id=68 function=f128 runtimefunction id=131091 function=f136 visibility=Private # -- generated: say Plain again DeletesInBetween f16 ClosedInBetween f20 f29 f31 f38 run # CHECK-LABEL: function {{*}}name="say" diff --git a/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-receivers.ir b/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-receivers.ir index 0a0ffb9d5272..293c098e1376 100644 --- a/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-receivers.ir +++ b/test/aot/engine-tests/passes/classes-and-closures/closures-stored-fields-receivers.ir @@ -596,8 +596,8 @@ function f86 module=m0 role=Signature thisType={type=anything} results=[{type=an function f87 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f86] function f88 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f85] function f89 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f85] -function f90 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f91 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f90 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f91 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f92 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w122}, {type=number site=w123}] results=[{type=number site=w124}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f93 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w125 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w126}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f94 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w127 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w128}, {type=anything}] results=[{type=number site=w129}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -704,8 +704,8 @@ function f98 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v101 = TruncateNewArray v99, v100 Return v101 } -runtimefunction id=65 function=f91 -runtimefunction id=69 function=f90 +runtimefunction id=64 function=f91 +runtimefunction id=68 function=f90 runtimefunction id=131091 function=f98 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/passes/classes-and-closures/fields-initialized-with-constants.ir b/test/aot/engine-tests/passes/classes-and-closures/fields-initialized-with-constants.ir index a7dd5e794fd8..cba8e871a12f 100644 --- a/test/aot/engine-tests/passes/classes-and-closures/fields-initialized-with-constants.ir +++ b/test/aot/engine-tests/passes/classes-and-closures/fields-initialized-with-constants.ir @@ -1083,8 +1083,8 @@ function f53 module=m1 role=Signature thisType={type=anything} results=[{type=an function f54 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f55 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f56 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f57 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f59 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d6 @@ -1204,8 +1204,8 @@ function f104 name="joinedText" module=m9 position=1819 role=Library flags=[IsCh function f105 name="finishJoin" module=m9 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w269 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w270 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w271}, {type=number site=w272}] results=[{type=undefined|null|string site=w273 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f106 name="finishReduce" module=m9 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w274}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f107 name="traverseArray" module=m9 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w275 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w276}, {type=undefined|number site=w277}, {type=number site=w278}, {type=undefined|null|Array site=w279 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f57 -runtimefunction id=70 function=f58 visibility=Private +runtimefunction id=68 function=f57 +runtimefunction id=69 function=f58 visibility=Private runtimefunction id=65574 function=f39 runtimefunction id=65580 function=f38 runtimefunction id=131091 function=f107 visibility=Private diff --git a/test/aot/engine-tests/passes/closure-factories/sloppy-code-defines-members-written.ir b/test/aot/engine-tests/passes/closure-factories/sloppy-code-defines-members-written.ir index 5c5088c2ac67..266c23d711a9 100644 --- a/test/aot/engine-tests/passes/closure-factories/sloppy-code-defines-members-written.ir +++ b/test/aot/engine-tests/passes/closure-factories/sloppy-code-defines-members-written.ir @@ -127,8 +127,8 @@ function f21 module=m0 role=Signature thisType={type=anything} results=[{type=an function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=44 function=f25 +function f25 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=43 function=f25 # -- generated: f0 f5 f6 set # CHECK-LABEL: function f0 module= # CHECK: m0 kind=CommonJsModule flags=[IsSloppy] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { diff --git a/test/aot/engine-tests/passes/constant-containers/string-keyed-tables-changed-iterated.ir b/test/aot/engine-tests/passes/constant-containers/string-keyed-tables-changed-iterated.ir index 6738967817e0..1d146e7c89c0 100644 --- a/test/aot/engine-tests/passes/constant-containers/string-keyed-tables-changed-iterated.ir +++ b/test/aot/engine-tests/passes/constant-containers/string-keyed-tables-changed-iterated.ir @@ -351,8 +351,8 @@ function f40 module=m0 role=Signature thisType={type=anything} results=[{type=an function f41 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f26] function f42 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f26] function f43 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f27] -function f44 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w144}, {type=number site=w145}] results=[{type=number site=w146}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w147 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w148}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f48 name="appendParts" module=m4 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w149 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w150}, {type=anything}] results=[{type=number site=w151}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -550,8 +550,8 @@ function f52 name="traverseArray" module=m4 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w207} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f45 -runtimefunction id=69 function=f44 +runtimefunction id=64 function=f45 +runtimefunction id=68 function=f44 runtimefunction id=131091 function=f52 visibility=Private # -- generated: f0 summary # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/errors/error-joined-message-thrown-catch-reads.ir b/test/aot/engine-tests/passes/errors/error-joined-message-thrown-catch-reads.ir index baea0d849b55..0ade951c511a 100644 --- a/test/aot/engine-tests/passes/errors/error-joined-message-thrown-catch-reads.ir +++ b/test/aot/engine-tests/passes/errors/error-joined-message-thrown-catch-reads.ir @@ -492,7 +492,7 @@ function f50 module=m1 role=Signature thisType={type=anything} results=[{type=an function f51 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f52 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f54 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f54 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f55 module=m3 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d2 @@ -631,7 +631,7 @@ function f95 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v35 } function f96 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w193}, {type=undefined|null|string site=w194 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w195 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w196}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f54 +runtimefunction id=68 function=f54 runtimefunction id=65574 function=f36 runtimefunction id=65580 function=f35 # -- generated: f0 f35 startRing f59 setUp nextTick install diff --git a/test/aot/engine-tests/passes/external-data/json-parse-small-large-declared-types.ir b/test/aot/engine-tests/passes/external-data/json-parse-small-large-declared-types.ir index 0c9655989ce1..2c29dfa61dde 100644 --- a/test/aot/engine-tests/passes/external-data/json-parse-small-large-declared-types.ir +++ b/test/aot/engine-tests/passes/external-data/json-parse-small-large-declared-types.ir @@ -311,8 +311,8 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f17 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -328,15 +328,15 @@ function f17 name="map" module=m2 position=5210 kind=Method role=Library flags=[ v14 = Convert v13 declared={type=number} illTypedCause=Assertion Return v11 } -function f18 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f19 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f20 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f19 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f20 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f21 name="iteratorGenericClose" module=m4 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f22 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="fromEntries" module=m6 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=51 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w44 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f22 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="fromEntries" module=m6 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=50 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w44 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="fromEntries" module=m8 position=248 kind=Method role=Model flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=131082 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] function f28 name="clampToLength" module=m9 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w46}, {type=number site=w47}] results=[{type=number site=w48}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="storeInNewArray" module=m9 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w49 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w50}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -449,16 +449,16 @@ function f34 name="traverseArray" module=m9 position=2337 kind=Method role=Libra v116 = TruncateNewArray v114, v115 Return v116 } -runtimefunction id=51 function=f24 -runtimefunction id=65 function=f17 -runtimefunction id=69 function=f16 -runtimefunction id=70 function=f18 visibility=Private -runtimefunction id=71 function=f22 visibility=Private -runtimefunction id=72 function=f25 -runtimefunction id=86 function=f19 visibility=Private -runtimefunction id=87 function=f23 -runtimefunction id=88 function=f26 -runtimefunction id=92 function=f20 visibility=Private +runtimefunction id=50 function=f24 +runtimefunction id=64 function=f17 +runtimefunction id=68 function=f16 +runtimefunction id=69 function=f18 visibility=Private +runtimefunction id=70 function=f22 visibility=Private +runtimefunction id=71 function=f25 +runtimefunction id=85 function=f19 visibility=Private +runtimefunction id=86 function=f23 +runtimefunction id=87 function=f26 +runtimefunction id=91 function=f20 visibility=Private runtimefunction id=131072 function=f21 visibility=Private runtimefunction id=131082 function=f27 runtimefunction id=131091 function=f34 visibility=Private diff --git a/test/aot/engine-tests/passes/language/copies-at-end-block-outnumber-registers.ir b/test/aot/engine-tests/passes/language/copies-at-end-block-outnumber-registers.ir index 7f3088d3d032..60605e794fed 100644 --- a/test/aot/engine-tests/passes/language/copies-at-end-block-outnumber-registers.ir +++ b/test/aot/engine-tests/passes/language/copies-at-end-block-outnumber-registers.ir @@ -1886,7 +1886,7 @@ function f23 module=m1 role=Signature thisType={type=anything} results=[{type=an function f24 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f26 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f27 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2664,7 +2664,7 @@ function f68 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f69 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w220}, {type=undefined|null|string site=w221 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w222 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w223}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f27 +runtimefunction id=68 function=f27 runtimefunction id=65574 function=f9 runtimefunction id=65580 function=f8 # -- generated: f0 opaqueLater fold f8 f9 startRing next f28 f31 f32 listOf setUp nextTick f53 newTickObject pushTickObject takeTickObject pushWithList start @@ -2788,7 +2788,7 @@ runtimefunction id=65580 function=f8 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L3 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w106 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w107 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f119 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f119 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f119 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -3000,7 +3000,7 @@ runtimefunction id=65580 function=f8 # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f27}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f27}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} { # CHECK-NEXT: b0(v0: f27, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f27 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -3261,7 +3261,7 @@ runtimefunction id=65580 function=f8 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f27 parameterMap=[{original=0}]} creator=ResultWorker{origin=f27} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f27 parameterMap=[{original=0}]} creator=ResultWorker{origin=f27} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/language/generator-switches-string-road-failed.ir b/test/aot/engine-tests/passes/language/generator-switches-string-road-failed.ir index a8bc19a287f7..3a5774304b86 100644 --- a/test/aot/engine-tests/passes/language/generator-switches-string-road-failed.ir +++ b/test/aot/engine-tests/passes/language/generator-switches-string-road-failed.ir @@ -784,7 +784,7 @@ function f7 module=m0 position=286 kind=Initializer flags=[HasThis, IsChecked, I v26 = Undefined Return v26 } -function f8 name="next" module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -808,7 +808,7 @@ function f8 name="next" module=m1 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -runtimefunction id=70 function=f8 visibility=Private +runtimefunction id=69 function=f8 visibility=Private # -- generated: f0 fold foldBox Box f7 next drained # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 parent=1 isTailCall=true module=m0}] { @@ -1098,7 +1098,7 @@ runtimefunction id=70 function=f8 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f10 callPosition=25 module=m1}] { +# CHECK: module=m1 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f10 callPosition=25 module=m1}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -1121,7 +1121,7 @@ runtimefunction id=70 function=f8 visibility=Private # CHECK-NEXT: Return v15 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f8} { +# CHECK: module=m1 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f8} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -1154,7 +1154,7 @@ runtimefunction id=70 function=f8 visibility=Private # CHECK-NEXT: ReturnCall v7 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} inlineFrames=[{}, {callee=f8 callPosition=25 isTailCall=true module=m1}] { +# CHECK: module=m1 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} inlineFrames=[{}, {callee=f8 callPosition=25 isTailCall=true module=m1}] { # CHECK-NEXT: b0(v0: f8, v1: anything, v2: anything): # CHECK-NEXT: v3: undefined = CallDirect v1, v2 function=f10 # CHECK-NEXT: v4: i32 = ResultAt v3 diff --git a/test/aot/engine-tests/passes/language/int32-read-once-used-variously.ir b/test/aot/engine-tests/passes/language/int32-read-once-used-variously.ir index dc3406271d9e..f60ebef04bd5 100644 --- a/test/aot/engine-tests/passes/language/int32-read-once-used-variously.ir +++ b/test/aot/engine-tests/passes/language/int32-read-once-used-variously.ir @@ -767,8 +767,8 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f17] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f17] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -816,8 +816,8 @@ function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[ b8(v42): Unreachable } -function f24 name="from" module=m3 position=1395 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=49 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 module=m3 position=2867 role=Library flags=[IsChecked] enclosingRuntimeFunction=49 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="from" module=m3 position=1395 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=48 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 module=m3 position=2867 role=Library flags=[IsChecked] enclosingRuntimeFunction=48 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f26 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w142}, {type=number site=w143}] results=[{type=number site=w144}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: number, v1: number): v2 = Integer @@ -1431,9 +1431,9 @@ function f32 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b147(v543): Return v543 } -runtimefunction id=49 function=f24 -runtimefunction id=65 function=f23 -runtimefunction id=69 function=f22 +runtimefunction id=48 function=f24 +runtimefunction id=64 function=f23 +runtimefunction id=68 function=f22 runtimefunction id=131091 function=f32 visibility=Private # -- generated: f0 overWords # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/passes/language/module-and-captured-variables-in-loops.ir b/test/aot/engine-tests/passes/language/module-and-captured-variables-in-loops.ir index 013170f66d75..53c2ca9d1955 100644 --- a/test/aot/engine-tests/passes/language/module-and-captured-variables-in-loops.ir +++ b/test/aot/engine-tests/passes/language/module-and-captured-variables-in-loops.ir @@ -100,8 +100,8 @@ function f9 module=m1 role=Signature thisType={type=anything} results=[{type=any function f10 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] function f11 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f12 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f13 name="next" module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f15] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f14 name="return" module=m2 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f16] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f13 name="next" module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f15] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f14 name="return" module=m2 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f16] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f15 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f17 module=m3 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { @@ -236,7 +236,7 @@ function f40 name="Tick" module=m5 position=1114 kind=BaseConstructor role=Libra # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f15] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] +# CHECK: module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f15] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" # CHECK: module=m0 position=1422 kind=Getter role=GenericEntrypoint flags=[HasThis, IsChecked] captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): diff --git a/test/aot/engine-tests/passes/language/short-counted-loops-inside-loops-run.ir b/test/aot/engine-tests/passes/language/short-counted-loops-inside-loops-run.ir index 714961b079a3..4cc99ba8ebf6 100644 --- a/test/aot/engine-tests/passes/language/short-counted-loops-inside-loops-run.ir +++ b/test/aot/engine-tests/passes/language/short-counted-loops-inside-loops-run.ir @@ -408,8 +408,8 @@ function f21 module=m0 role=Signature thisType={type=anything} results=[{type=an function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -417,8 +417,8 @@ function f30 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f31 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f26 -runtimefunction id=69 function=f25 +runtimefunction id=64 function=f26 +runtimefunction id=68 function=f25 runtimefunction id=131091 function=f33 visibility=Private # -- generated: down captures joined keeps upBy leaves writesItsCounter throwsInside returnsInside ofRest ofArguments raw storesTo # CHECK-LABEL: function {{*}}name="upBy" diff --git a/test/aot/engine-tests/passes/language/switch-on-untyped-numbers.ir b/test/aot/engine-tests/passes/language/switch-on-untyped-numbers.ir index 150335f07b75..d41022a75077 100644 --- a/test/aot/engine-tests/passes/language/switch-on-untyped-numbers.ir +++ b/test/aot/engine-tests/passes/language/switch-on-untyped-numbers.ir @@ -418,8 +418,8 @@ function f41 module=m0 role=Signature thisType={type=anything} results=[{type=an function f42 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f44] function f43 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f44] function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -453,8 +453,8 @@ function f50 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f51 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w111 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w112 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w113}, {type=number site=w114}] results=[{type=undefined|null|string site=w115 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f52 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w116}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f53 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w117 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w118}, {type=undefined|number site=w119}, {type=number site=w120}, {type=undefined|null|Array site=w121 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f46 -runtimefunction id=69 function=f45 +runtimefunction id=64 function=f46 +runtimefunction id=68 function=f45 runtimefunction id=131091 function=f53 visibility=Private # -- generated: f0 withSharedTargets f30 map # CHECK-LABEL: function f0 module= @@ -550,7 +550,7 @@ runtimefunction id=131091 function=f53 visibility=Private # CHECK-NEXT: Jump -> next b4(v1) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -604,13 +604,13 @@ runtimefunction id=131091 function=f53 visibility=Private # CHECK-NEXT: Jump -> next b3(v18) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m2 position=5210 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=65 captures=[{type=f46}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f46} creator=Entrypoint{target=f46 arguments=Registers} { +# CHECK: module=m2 position=5210 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=64 captures=[{type=f46}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f46} creator=Entrypoint{target=f46 arguments=Registers} { # CHECK-NEXT: b0(v0: f46, v1: anything, v2: anything, v3: anything) frequency=Rare: # CHECK-NEXT: v4: anything = CallDirect v1, v2, v3 function=f46 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m2 position=5210 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f46 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f46} { +# CHECK: module=m2 position=5210 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f46 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f46} { # CHECK-NEXT: b0(v0: anything ~ Array, v1: function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array diff --git a/test/aot/engine-tests/passes/lazy-initializers/objects-filled-under-another-name.ir b/test/aot/engine-tests/passes/lazy-initializers/objects-filled-under-another-name.ir index 2e7b23603174..6a97e5698380 100644 --- a/test/aot/engine-tests/passes/lazy-initializers/objects-filled-under-another-name.ir +++ b/test/aot/engine-tests/passes/lazy-initializers/objects-filled-under-another-name.ir @@ -638,7 +638,7 @@ function f38 module=m1 role=Signature thisType={type=anything} results=[{type=an function f39 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f40 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f38] function f41 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f42 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f43 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w86}, {type=number site=w87}] results=[{type=number site=w88}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w89 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w90}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w91 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w92}, {type=anything}] results=[{type=number site=w93}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -646,7 +646,7 @@ function f46 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f47 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w95 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w96 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w97}, {type=number site=w98}] results=[{type=undefined|null|string site=w99 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f48 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w100}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f49 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w101 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w102}, {type=undefined|number site=w103}, {type=number site=w104}, {type=undefined|null|Array site=w105 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f42 +runtimefunction id=64 function=f42 runtimefunction id=131091 function=f49 visibility=Private # -- generated: callTable walk # CHECK-LABEL: function {{*}}name="callTable" diff --git a/test/aot/engine-tests/passes/local-containers/container-changed-gets-inside-function.ir b/test/aot/engine-tests/passes/local-containers/container-changed-gets-inside-function.ir index bbd7fef03a80..8f0ac96874fb 100644 --- a/test/aot/engine-tests/passes/local-containers/container-changed-gets-inside-function.ir +++ b/test/aot/engine-tests/passes/local-containers/container-changed-gets-inside-function.ir @@ -808,9 +808,9 @@ function f69 module=m0 role=Signature thisType={type=anything} results=[{type=an function f70 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f71 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f72 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f73 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f74 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f75 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f73 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f74 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f75 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -841,8 +841,8 @@ function f75 name="map" module=m2 position=5210 kind=Method role=Library flags=[ } function f76 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f77 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f78 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f79 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f78 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f79 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f80 name="clampToLength" module=m5 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w243}, {type=number site=w244}] results=[{type=number site=w245}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f81 name="storeInNewArray" module=m5 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w246 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w247}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f82 name="appendParts" module=m5 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w248 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w249}, {type=anything}] results=[{type=number site=w250}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -852,11 +852,11 @@ function f85 name="finishReduce" module=m5 position=2116 role=Library flags=[IsC function f86 name="traverseArray" module=m5 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w258 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w259}, {type=undefined|number site=w260}, {type=number site=w261}, {type=undefined|null|Array site=w262 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f77 runtimefunction id=12 function=f76 -runtimefunction id=44 function=f74 -runtimefunction id=65 function=f75 -runtimefunction id=69 function=f73 -runtimefunction id=70 function=f78 visibility=Private -runtimefunction id=86 function=f79 visibility=Private +runtimefunction id=43 function=f74 +runtimefunction id=64 function=f75 +runtimefunction id=68 function=f73 +runtimefunction id=69 function=f78 visibility=Private +runtimefunction id=85 function=f79 visibility=Private runtimefunction id=131091 function=f86 visibility=Private # -- generated: f0 theResultOfABuiltIn f41 map storedIntoAnObject # CHECK-LABEL: function f0 module= @@ -901,7 +901,7 @@ runtimefunction id=131091 function=f86 visibility=Private # CHECK-LABEL: function {{*}}name="map" # CHECK: module=m0 position=5232 kind=Arrow flags=[IsChecked] thisType={type=anything} results=[{type=undefined|null|string site=w223 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f58] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -963,13 +963,13 @@ runtimefunction id=131091 function=f86 visibility=Private # CHECK-NEXT: Jump -> next b5(v23) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m2 position=5210 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=65 captures=[{type=f75}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f75} creator=Entrypoint{target=f75 arguments=Registers} { +# CHECK: module=m2 position=5210 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=64 captures=[{type=f75}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f75} creator=Entrypoint{target=f75 arguments=Registers} { # CHECK-NEXT: b0(v0: f75, v1: anything, v2: anything, v3: anything) frequency=Rare: # CHECK-NEXT: v4: anything = CallDirect v1, v2, v3 function=f75 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m2 position=5210 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f75 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f75} { +# CHECK: module=m2 position=5210 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f75 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f75} { # CHECK-NEXT: b0(v0: anything ~ Array, v1: function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array diff --git a/test/aot/engine-tests/passes/mistyped-values/number-declared-string-spread-loop.ir b/test/aot/engine-tests/passes/mistyped-values/number-declared-string-spread-loop.ir index 8040d192bbc5..cbee5e77c65e 100644 --- a/test/aot/engine-tests/passes/mistyped-values/number-declared-string-spread-loop.ir +++ b/test/aot/engine-tests/passes/mistyped-values/number-declared-string-spread-loop.ir @@ -535,7 +535,7 @@ function f6 name="spreadsIntoACall" module=m0 position=1643 flags=[IsChecked, Ha v50 = Undefined Return v50 } -function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -558,7 +558,7 @@ function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f7 +runtimefunction id=68 function=f7 # -- generated: f0 spreadsBehindALoop spreadsWhatIsStored next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -826,7 +826,7 @@ runtimefunction id=69 function=f7 # CHECK-NEXT: Return v139 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -835,13 +835,13 @@ runtimefunction id=69 function=f7 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f7 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}]} creator=ResultWorker{origin=f7} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}]} creator=ResultWorker{origin=f7} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/modules/file-cycle-calls-neighbor-function-file.ir b/test/aot/engine-tests/passes/modules/file-cycle-calls-neighbor-function-file.ir index a8091a3fe957..539d25f21add 100644 --- a/test/aot/engine-tests/passes/modules/file-cycle-calls-neighbor-function-file.ir +++ b/test/aot/engine-tests/passes/modules/file-cycle-calls-neighbor-function-file.ir @@ -409,7 +409,7 @@ function f32 module=m5 role=Signature thisType={type=anything} results=[{type=an function f33 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f37 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d0 @@ -522,7 +522,7 @@ function f77 module=m11 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f78 name="matchesGlob" module=m11 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f36 +runtimefunction id=68 function=f36 runtimefunction id=65574 function=f18 runtimefunction id=65580 function=f17 # -- generated: f0 f3 f4 readFourthFromThird f6 readFourth f9 f10 f18 writeOut f40 f77 diff --git a/test/aot/engine-tests/passes/narrowing/loop-awaits-reads-captured-variable.ir b/test/aot/engine-tests/passes/narrowing/loop-awaits-reads-captured-variable.ir index 2671d7c6e567..16f0819e1332 100644 --- a/test/aot/engine-tests/passes/narrowing/loop-awaits-reads-captured-variable.ir +++ b/test/aot/engine-tests/passes/narrowing/loop-awaits-reads-captured-variable.ir @@ -1679,7 +1679,7 @@ function f39 module=m1 role=Signature thisType={type=anything} results=[{type=an function f40 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f41 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f42 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f43 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f43 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2457,7 +2457,7 @@ function f84 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f85 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w193}, {type=undefined|null|string site=w194 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w195 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w196}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f43 +runtimefunction id=68 function=f43 runtimefunction id=65574 function=f25 runtimefunction id=65580 function=f24 # -- generated: f0 f25 next nextTick functionOrRegExp regExpOrFunction constructorOrRegExp namespaceOrRegExp functionOrArray functionOrMap functionOrDate @@ -2497,7 +2497,7 @@ runtimefunction id=65580 function=f24 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L8 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w79 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w80 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f145 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f145 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f145 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2706,7 +2706,7 @@ runtimefunction id=65580 function=f24 # CHECK-NEXT: Jump -> next b2(v13) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f43}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f43} creator=Entrypoint{target=f43 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f43}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f43} creator=Entrypoint{target=f43 arguments=Registers} { # CHECK-NEXT: b0(v0: f43, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f43 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2875,7 +2875,7 @@ runtimefunction id=65580 function=f24 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f43 parameterMap=[{original=0}]} creator=ResultWorker{origin=f43} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f43 parameterMap=[{original=0}]} creator=ResultWorker{origin=f43} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/narrowing/narrowed-union-stored-captured-variable.ir b/test/aot/engine-tests/passes/narrowing/narrowed-union-stored-captured-variable.ir index ee55c17646a6..62bb6a005fb3 100644 --- a/test/aot/engine-tests/passes/narrowing/narrowed-union-stored-captured-variable.ir +++ b/test/aot/engine-tests/passes/narrowing/narrowed-union-stored-captured-variable.ir @@ -336,7 +336,7 @@ function f6 module=m0 position=559 kind=Initializer flags=[HasThis, IsChecked, I Return v5 } function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -359,7 +359,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f8 +runtimefunction id=68 function=f8 # -- generated: f0 take pick run Holder later f6 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f19 callPosition=4294967295 isConstruction=true module=m0}, {callee=f19 callPosition=4294967295 isConstruction=true module=m0}, {callee=f6 callPosition=4294967295 parent=3 module=m0}, {callee=f6 callPosition=4294967295 parent=2 module=m0}] { @@ -501,7 +501,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Jump -> next b2() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f20 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f20 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f20 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -750,7 +750,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v34 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f8 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -764,7 +764,7 @@ runtimefunction id=69 function=f8 # CHECK-LABEL: function {{*}}name="Holder" # CHECK: module=m0 position=559 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, IsChecked, HasExplicitName] thisType={type=L0} results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{}, {original=0}]} creator=Version{provenVersion=f4} constructedClass=L0 # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/objects/accessors-and-key-order.ir b/test/aot/engine-tests/passes/objects/accessors-and-key-order.ir index 19d59bd4b372..21293c38cb0a 100644 --- a/test/aot/engine-tests/passes/objects/accessors-and-key-order.ir +++ b/test/aot/engine-tests/passes/objects/accessors-and-key-order.ir @@ -3295,7 +3295,7 @@ function f170 module=m0 role=Signature thisType={type=anything} results=[{type=a function f171 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f133] function f172 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f173 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f174 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f174 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3318,7 +3318,7 @@ function f174 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsC v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f175 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f175 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -4421,8 +4421,8 @@ function f182 name="traverseArray" module=m3 position=2337 kind=Method role=Libr b252(v555): Return v555 } -runtimefunction id=65 function=f175 -runtimefunction id=69 function=f174 +runtimefunction id=64 function=f175 +runtimefunction id=68 function=f174 runtimefunction id=131091 function=f182 visibility=Private # -- generated: say keyText flagsOf describe pair five computed namesOfAccessor methodUnder getterUnder arrowUnder classUnder get Shape area f46 unit name f88 Members f96 getter f107 f108 b one two three four f116 f122 # CHECK-LABEL: function {{*}}name="say" diff --git a/test/aot/engine-tests/passes/objects/literal-sizes.ir b/test/aot/engine-tests/passes/objects/literal-sizes.ir index 6361492f3f94..b9009bb8ebee 100644 --- a/test/aot/engine-tests/passes/objects/literal-sizes.ir +++ b/test/aot/engine-tests/passes/objects/literal-sizes.ir @@ -566,9 +566,9 @@ function f51 module=m0 role=Signature thisType={type=anything} results=[{type=an function f52 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f55 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f56 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f57 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f55 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f56 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f58 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w4}, {type=number site=w5}] results=[{type=number site=w6}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f59 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f60 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w9 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w10}, {type=anything}] results=[{type=number site=w11}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -576,9 +576,9 @@ function f61 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f62 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w13 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w15}, {type=number site=w16}] results=[{type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f63 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w18}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f64 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w19 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w20}, {type=undefined|number site=w21}, {type=number site=w22}, {type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=44 function=f56 -runtimefunction id=65 function=f57 -runtimefunction id=69 function=f55 +runtimefunction id=43 function=f56 +runtimefunction id=64 function=f57 +runtimefunction id=68 function=f55 runtimefunction id=131091 function=f64 visibility=Private # -- generated: numbersFor make1 make2 make3 make4 make5 make9 make10 make11 make12 f22 f23 f24 f25 # CHECK-LABEL: function {{*}}name="numbersFor" diff --git a/test/aot/engine-tests/passes/objects/multi-spread-literals.ir b/test/aot/engine-tests/passes/objects/multi-spread-literals.ir index 3cfbab8ec3ef..4676d4266ecb 100644 --- a/test/aot/engine-tests/passes/objects/multi-spread-literals.ir +++ b/test/aot/engine-tests/passes/objects/multi-spread-literals.ir @@ -549,8 +549,8 @@ function f16 module=m0 role=Signature thisType={type=anything} results=[{type=an function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f24 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -1135,8 +1135,8 @@ function f28 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b147(v547): Return v547 } -runtimefunction id=65 function=f21 -runtimefunction id=69 function=f20 +runtimefunction id=64 function=f21 +runtimefunction id=68 function=f20 runtimefunction id=131091 function=f28 visibility=Private # -- generated: logged # CHECK-LABEL: function {{*}}name="logged" diff --git a/test/aot/engine-tests/passes/objects/spread-of-symbol-keys.ir b/test/aot/engine-tests/passes/objects/spread-of-symbol-keys.ir index fab7857bbc35..9c516b29894d 100644 --- a/test/aot/engine-tests/passes/objects/spread-of-symbol-keys.ir +++ b/test/aot/engine-tests/passes/objects/spread-of-symbol-keys.ir @@ -342,7 +342,7 @@ function f26 module=m0 role=Signature thisType={type=anything} results=[{type=an function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -358,7 +358,7 @@ function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh b2(v10): Unreachable } -function f31 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -368,8 +368,8 @@ function f37 name="finishReduce" module=m3 position=2116 role=Library flags=[IsC function f38 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="addInitializer" module=m4 position=3267 kind=Arrow role=Library flags=[IsChecked, IsHiddenInStackTraces] length=1 captures=[{type=anything}, {type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] functionTypes=[f40] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f40 module=m4 role=Signature thisType={type=anything} results=[{type=anything}] -runtimefunction id=65 function=f31 -runtimefunction id=69 function=f30 +runtimefunction id=64 function=f31 +runtimefunction id=68 function=f30 runtimefunction id=131091 function=f38 visibility=Private # -- generated: f0 f3 Hidden # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/private-members/name-per-class-evaluation.ir b/test/aot/engine-tests/passes/private-members/name-per-class-evaluation.ir index d68239524251..fe8994cf5937 100644 --- a/test/aot/engine-tests/passes/private-members/name-per-class-evaluation.ir +++ b/test/aot/engine-tests/passes/private-members/name-per-class-evaluation.ir @@ -752,7 +752,7 @@ function f45 module=m0 role=Signature thisType={type=anything} results=[{type=an function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f48 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f49 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f49 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -864,7 +864,7 @@ function f51 name="apply" module=m2 position=1161 kind=Method role=Library flags } runtimefunction id=4 function=f51 runtimefunction id=12 function=f50 -runtimefunction id=69 function=f49 +runtimefunction id=68 function=f49 # -- generated: makeBox # CHECK-LABEL: function {{*}}name="makeBox" # CHECK: role=Source @@ -880,18 +880,18 @@ runtimefunction id=69 function=f49 # CHECK-NEXT: Int64 b@28 = Const64(1, v4:NewClosure) # CHECK-NEXT: Int64 b@29 = Patchpoint($1(b@28):Register(%r10), resultConstraints = Register(%rax), ControlDependent|Writes:{collectorState, AOTSlimClosure_word, JSCell_header, JSObject_butterfly, weakTableStorage, CollectionEntries, AllocatorState}|Reads:{argumentBuffer, frameSlots, AllocatorState}, v4:NewClosure) # CHECK-NEXT: Int64 b@10 = ArgumentReg(%r13) -# CHECK-NEXT: Int64 b@30 = Load(b@10, offset = 8264, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) +# CHECK-NEXT: Int64 b@30 = Load(b@10, offset = 8256, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) # CHECK-NEXT: Void b@31 = Store(b@30, b@29, ControlDependent|Writes:JSCell_header, v4:NewClosure) # CHECK-NEXT: Int64 b@32 = Const64(0, v4:NewClosure) # CHECK-NEXT: Void b@33 = Store($0(b@32), b@29, offset = 8, ControlDependent|Writes:JSObject_butterfly, v4:NewClosure) # CHECK-NEXT: Int64 b@34 = Load(b@10, offset = 112, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) # CHECK-NEXT: Void b@35 = Store(b@34, b@29, offset = 16, ControlDependent|Writes:JSCallee_scope, v4:NewClosure) -# CHECK-NEXT: Int64 b@36 = Load(b@10, offset = 8216, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) +# CHECK-NEXT: Int64 b@36 = Load(b@10, offset = 8208, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) # CHECK-NEXT: Void b@37 = Store(b@36, b@29, offset = 24, ControlDependent|Writes:JSFunction_executableOrRareData, v4:NewClosure) # CHECK-NEXT: Int64 b@18 = ArgumentReg(%rdi) # CHECK-NEXT: Void b@38 = Store(b@18, b@29, offset = 40, ControlDependent|Writes:AOTClosure_captures_0, v4:NewClosure) # CHECK-NEXT: Void b@39 = Store(b@27, b@29, offset = 48, ControlDependent|Writes:AOTClosure_captures_1, v4:NewClosure) -# CHECK-NEXT: Int64 b@40 = Load(b@10, offset = 8192, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) +# CHECK-NEXT: Int64 b@40 = Load(b@10, offset = 8184, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v4:NewClosure) # CHECK-NEXT: Int64 b@41 = Load(b@40, offset = 640, ControlDependent|ReadsImmutable|Reads:AOTImage_tables, v4:NewClosure) # CHECK-NEXT: Void b@42 = Store(b@41, b@29, offset = 32, ControlDependent|Writes:AOTClosure_entry, v4:NewClosure) # CHECK-NEXT: Void b@43 = Fence(Fence|Reads:jscRoot, v4:NewClosure) diff --git a/test/aot/engine-tests/passes/property-copies/literals-spread-under-a-condition.ir b/test/aot/engine-tests/passes/property-copies/literals-spread-under-a-condition.ir index 6a3c394b74c1..7bb174527dec 100644 --- a/test/aot/engine-tests/passes/property-copies/literals-spread-under-a-condition.ir +++ b/test/aot/engine-tests/passes/property-copies/literals-spread-under-a-condition.ir @@ -1701,7 +1701,7 @@ function f9 module=m0 position=4238 kind=Arrow flags=[IsChecked] thisType={type= function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f13 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1724,7 +1724,7 @@ function f13 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f14 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2827,8 +2827,8 @@ function f21 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f14 -runtimefunction id=69 function=f13 +runtimefunction id=64 function=f14 +runtimefunction id=68 function=f13 runtimefunction id=131091 function=f21 visibility=Private # -- generated: attributes wire show tick b f9 next three throws # CHECK-LABEL: function {{*}}name="attributes" @@ -3228,7 +3228,7 @@ runtimefunction id=131091 function=f21 visibility=Private # CHECK-NEXT: Throw v1 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f49 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f49 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f49 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -3316,7 +3316,7 @@ runtimefunction id=131091 function=f21 visibility=Private # CHECK-NEXT: Return v32 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f13}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f13}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { # CHECK-NEXT: b0(v0: f13, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f13 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -3333,7 +3333,7 @@ runtimefunction id=131091 function=f21 visibility=Private # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f13 parameterMap=[{original=0}]} creator=ResultWorker{origin=f13} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f13 parameterMap=[{original=0}]} creator=ResultWorker{origin=f13} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/property-copies/merged-objects-are-read-spread-on-way.ir b/test/aot/engine-tests/passes/property-copies/merged-objects-are-read-spread-on-way.ir index d8fdf0a0dcea..6953b259bfc2 100644 --- a/test/aot/engine-tests/passes/property-copies/merged-objects-are-read-spread-on-way.ir +++ b/test/aot/engine-tests/passes/property-copies/merged-objects-are-read-spread-on-way.ir @@ -280,7 +280,7 @@ function f7 name="assign" module=m0 position=870 flags=[HasExplicitName] length= v12 = Call v3, v2, v4, v6, v11 calleeName="Object.assign" ReturnCall v12 } -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -303,7 +303,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f8 +runtimefunction id=68 function=f8 # -- generated: f0 productsOf sumsOf show next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f7 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f10 callPosition=773 parent=2 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f10 callPosition=773 parent=2 isTailCall=true module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}] { @@ -481,7 +481,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v53 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -490,13 +490,13 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f8 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/reentrancy/through-generator.ir b/test/aot/engine-tests/passes/reentrancy/through-generator.ir index 7997a027382b..dbc212b116f0 100644 --- a/test/aot/engine-tests/passes/reentrancy/through-generator.ir +++ b/test/aot/engine-tests/passes/reentrancy/through-generator.ir @@ -133,8 +133,8 @@ function f6 module=m0 role=Signature thisType={type=anything} results=[{type=any function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f11 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -152,8 +152,8 @@ function f15 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f16 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f17 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f18 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f10 -runtimefunction id=70 function=f11 visibility=Private +runtimefunction id=64 function=f10 +runtimefunction id=69 function=f11 visibility=Private runtimefunction id=131091 function=f18 visibility=Private # -- generated: f0 next once # CHECK-LABEL: function f0 module= @@ -169,7 +169,7 @@ runtimefunction id=131091 function=f18 visibility=Private # CHECK-LABEL: function {{*}}name="once" # CHECK: module=m0 position=171 role=CoroutineRamp flags=[IsGenerator, HasThis, TakesCallee, HasExplicitName] thisType={type=undefined} results=[{type=Generator}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] creator=Coroutine{ramp=f1 body=f21 promiseParameter=2} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f20 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f20 callPosition=25 module=m2}] { +# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f20 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f20 callPosition=25 module=m2}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: anything ~ Generator = Upcast v0 castType=anything # CHECK-NEXT: v3: undefined = StepGenerator v2, v1 check=IsGenerator @@ -181,7 +181,7 @@ runtimefunction id=131091 function=f18 visibility=Private # CHECK-NEXT: Return v8 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f11} +# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f11} # CHECK-LABEL: function {{*}}name="once" # CHECK: module=m0 position=171 role=CoroutineBody flags=[IsGenerator, HasThis, TakesCallee, HasExplicitName] thisType={type=undefined} parameters=[{type=Generator}] results=[{type=anything}] derivation={source=f1 parameterMap=[{original=0}, {original=1}, {}]} creator=Coroutine{ramp=f1 body=f21 promiseParameter=2} inlineFrames=[{}, {callee=f11 callPosition=4294967295 module=m2}, {callee=f20 callPosition=25 parent=1 module=m2}, {callee=f1 callPosition=4294967295 module=m0}] { # CHECK-NEXT: b0(v0: undefined, v1: function, v2: Generator): @@ -209,7 +209,7 @@ runtimefunction id=131091 function=f18 visibility=Private # CHECK-NEXT: Return v14 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f11}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} inlineFrames=[{}, {callee=f11 callPosition=25 isTailCall=true module=m2}, {callee=f20 callPosition=25 parent=1 module=m2}] { +# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f11}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} inlineFrames=[{}, {callee=f11 callPosition=25 isTailCall=true module=m2}, {callee=f20 callPosition=25 parent=1 module=m2}] { # CHECK-NEXT: b0(v0: f11, v1: anything, v2: anything): # CHECK-NEXT: v3: anything ~ Generator = Upcast v1 castType=anything # CHECK-NEXT: v4: undefined = StepGenerator v3, v2 check=IsGenerator diff --git a/test/aot/engine-tests/passes/relational-summaries/callees-in-other-modules.ir b/test/aot/engine-tests/passes/relational-summaries/callees-in-other-modules.ir index 7eb2db2f428c..34401050a850 100644 --- a/test/aot/engine-tests/passes/relational-summaries/callees-in-other-modules.ir +++ b/test/aot/engine-tests/passes/relational-summaries/callees-in-other-modules.ir @@ -870,16 +870,16 @@ function f91 module=m7 role=Signature thisType={type=anything} results=[{type=an function f92 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] function f93 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] function f94 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] -function f95 name="next" module=m8 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f96 name="map" module=m9 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f97 name="next" module=m10 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f98 name="return" module=m10 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f99 name="throw" module=m10 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f95 name="next" module=m8 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f96 name="map" module=m9 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f97 name="next" module=m10 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f98 name="return" module=m10 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f99 name="throw" module=m10 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f100 name="iteratorGenericClose" module=m11 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f101 name="next" module=m13 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f102 name="return" module=m13 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f103 name="next" module=m14 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f104 name="return" module=m14 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f101 name="next" module=m13 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f102 name="return" module=m13 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f103 name="next" module=m14 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f104 name="return" module=m14 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f105 module=m15 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d8 @@ -1018,15 +1018,15 @@ function f169 name="joinedText" module=m22 position=1819 role=Library flags=[IsC function f170 name="finishJoin" module=m22 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w312 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w313 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w314}, {type=number site=w315}] results=[{type=undefined|null|string site=w316 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f171 name="finishReduce" module=m22 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w317}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f172 name="traverseArray" module=m22 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w318 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w319}, {type=undefined|number site=w320}, {type=number site=w321}, {type=undefined|null|Array site=w322 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f96 -runtimefunction id=69 function=f95 -runtimefunction id=70 function=f97 visibility=Private -runtimefunction id=71 function=f101 visibility=Private -runtimefunction id=72 function=f103 -runtimefunction id=86 function=f98 visibility=Private -runtimefunction id=87 function=f102 -runtimefunction id=88 function=f104 -runtimefunction id=92 function=f99 visibility=Private +runtimefunction id=64 function=f96 +runtimefunction id=68 function=f95 +runtimefunction id=69 function=f97 visibility=Private +runtimefunction id=70 function=f101 visibility=Private +runtimefunction id=71 function=f103 +runtimefunction id=85 function=f98 visibility=Private +runtimefunction id=86 function=f102 +runtimefunction id=87 function=f104 +runtimefunction id=91 function=f99 visibility=Private runtimefunction id=65543 function=f38 runtimefunction id=65551 function=f37 runtimefunction id=65574 function=f77 diff --git a/test/aot/engine-tests/passes/relational-summaries/store-lands-in-one-of-two.ir b/test/aot/engine-tests/passes/relational-summaries/store-lands-in-one-of-two.ir index 9e7c50b1f95b..149c98a438b2 100644 --- a/test/aot/engine-tests/passes/relational-summaries/store-lands-in-one-of-two.ir +++ b/test/aot/engine-tests/passes/relational-summaries/store-lands-in-one-of-two.ir @@ -842,8 +842,8 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f25] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w173}, {type=number site=w174}] results=[{type=number site=w175}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w176 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w177}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w178 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w179}, {type=anything}] results=[{type=number site=w180}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -851,8 +851,8 @@ function f31 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f32 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w182 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w183 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w184}, {type=number site=w185}] results=[{type=undefined|null|string site=w186 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w187}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w188 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w189}, {type=undefined|number site=w190}, {type=number site=w191}, {type=undefined|null|Array site=w192 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f27 -runtimefunction id=69 function=f26 +runtimefunction id=64 function=f27 +runtimefunction id=68 function=f26 runtimefunction id=131091 function=f34 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/passes/relational-summaries/store-that-returned-object-never-got.ir b/test/aot/engine-tests/passes/relational-summaries/store-that-returned-object-never-got.ir index 31764f48a672..5bfda18b9f23 100644 --- a/test/aot/engine-tests/passes/relational-summaries/store-that-returned-object-never-got.ir +++ b/test/aot/engine-tests/passes/relational-summaries/store-that-returned-object-never-got.ir @@ -677,8 +677,8 @@ function f19 module=m0 position=486 kind=Initializer flags=[HasThis, IsChecked, function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f22] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f25 name="firstSearchedIndex" module=m3 position=399 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|number site=w138}, {type=number site=w139}] results=[{type=number site=w140}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f26 name="holdsBoxedValues" module=m3 position=750 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w141}] results=[{type=boolean site=w142}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="includesNaN" module=m3 position=1987 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w143 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w144}, {type=number site=w145}] results=[{type=boolean site=w146}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -690,8 +690,8 @@ function f32 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f33 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w168 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w169 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w170}, {type=number site=w171}] results=[{type=undefined|null|string site=w172 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w173}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f35 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w174 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w175}, {type=undefined|number site=w176}, {type=number site=w177}, {type=undefined|null|Array site=w178 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f24 -runtimefunction id=69 function=f23 +runtimefunction id=64 function=f24 +runtimefunction id=68 function=f23 runtimefunction id=131087 function=f28 runtimefunction id=131091 function=f35 visibility=Private # -- generated: factory oneSiteOnly returnsThePrevious chainOfOneSite C instanceInALoop factoryInALoop twoOfOnePlace diff --git a/test/aot/engine-tests/passes/side-effects/method-iteration-call-position.ir b/test/aot/engine-tests/passes/side-effects/method-iteration-call-position.ir index 66286152635b..8f5c3dac43f6 100644 --- a/test/aot/engine-tests/passes/side-effects/method-iteration-call-position.ir +++ b/test/aot/engine-tests/passes/side-effects/method-iteration-call-position.ir @@ -427,7 +427,7 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -450,7 +450,7 @@ function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f22 name="find" module=m2 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="find" module=m2 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=34 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -507,7 +507,7 @@ function f22 name="find" module=m2 position=6413 kind=Method role=Library flags= v35 = ThrowNewError errorKind=TypeError message="Array.prototype.find callback must be a function" Unreachable } -function f23 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -531,7 +531,7 @@ function f23 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f24 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -555,7 +555,7 @@ function f24 name="return" module=m3 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f25 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -612,7 +612,7 @@ function f26 name="iteratorGenericClose" module=m4 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f27 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -633,7 +633,7 @@ function f27 name="next" module=m6 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f28 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f28 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -684,7 +684,7 @@ function f28 name="return" module=m6 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f29 name="find" module=m7 position=9543 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=36 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="find" module=m7 position=9543 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -772,13 +772,13 @@ function f29 name="find" module=m7 position=9543 kind=Method role=Library flags= v46 = ThrowNewError errorKind=TypeError message="Iterator.prototype.find requires that |this| be an Object." Unreachable } -function f30 name="[Symbol.iterator]" module=m7 position=10014 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=36 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="[Symbol.iterator]" module=m7 position=10014 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=35 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f31 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -800,7 +800,7 @@ function f31 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f32 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1177,16 +1177,16 @@ function f36 name="includes" module=m9 position=2203 kind=Method role=Library fl v119 = Convert v118 declared={type=boolean site=w14} Return v119 } -runtimefunction id=35 function=f22 -runtimefunction id=36 function=f29 -runtimefunction id=69 function=f21 -runtimefunction id=70 function=f23 visibility=Private -runtimefunction id=71 function=f27 visibility=Private -runtimefunction id=72 function=f31 -runtimefunction id=86 function=f24 visibility=Private -runtimefunction id=87 function=f28 -runtimefunction id=88 function=f32 -runtimefunction id=92 function=f25 visibility=Private +runtimefunction id=34 function=f22 +runtimefunction id=35 function=f29 +runtimefunction id=68 function=f21 +runtimefunction id=69 function=f23 visibility=Private +runtimefunction id=70 function=f27 visibility=Private +runtimefunction id=71 function=f31 +runtimefunction id=85 function=f24 visibility=Private +runtimefunction id=86 function=f28 +runtimefunction id=87 function=f32 +runtimefunction id=91 function=f25 visibility=Private runtimefunction id=131072 function=f26 visibility=Private runtimefunction id=131087 function=f36 # -- generated: f0 iterateEntries iterateValues withGetter f7 f8 f9 f10 throw attempt @@ -1582,7 +1582,7 @@ runtimefunction id=131087 function=f36 # CHECK-NEXT: ReturnCall v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f63 layout=L(IteratorResult)} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f63 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f63 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1604,7 +1604,7 @@ runtimefunction id=131087 function=f36 # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f25}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { +# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f25}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { # CHECK-NEXT: b0(v0: f25, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f25 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -1666,7 +1666,7 @@ runtimefunction id=131087 function=f36 # CHECK-NEXT: Return v32 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f25 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f25} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f25 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f25} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/passes/side-effects/sync-iteration-steps-write-variables.ir b/test/aot/engine-tests/passes/side-effects/sync-iteration-steps-write-variables.ir index 30f38115207c..118becbb3972 100644 --- a/test/aot/engine-tests/passes/side-effects/sync-iteration-steps-write-variables.ir +++ b/test/aot/engine-tests/passes/side-effects/sync-iteration-steps-write-variables.ir @@ -656,12 +656,12 @@ function f35 module=m0 role=Signature thisType={type=anything} results=[{type=an function f36 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f37 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f38 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f39 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f40 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="next" module=m7 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f45] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f44 name="return" module=m7 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f46] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f39 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f40 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="next" module=m7 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f45] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="return" module=m7 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f46] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m8 kind=Module role=Library thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -685,10 +685,10 @@ function f64 module=m10 role=Signature thisType={type=anything} results=[{type=a function f65 module=m10 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f38] function f66 module=m10 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f59] function f67 module=m10 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f59] -runtimefunction id=69 function=f39 -runtimefunction id=70 function=f40 visibility=Private -runtimefunction id=86 function=f41 visibility=Private -runtimefunction id=92 function=f42 visibility=Private +runtimefunction id=68 function=f39 +runtimefunction id=69 function=f40 visibility=Private +runtimefunction id=85 function=f41 visibility=Private +runtimefunction id=91 function=f42 visibility=Private # -- generated: f18 f23 f24 next makeScope walk catching # CHECK-LABEL: function {{*}}name="catching" # CHECK: module=m0 position=1137 role=CoroutineRamp flags=[IsGenerator, HasThis, TakesCallee, IsChecked, HasExplicitName] thisType={type=undefined} results=[{type=Generator flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] creator=Coroutine{ramp=f2 body=f76 promiseParameter=2} @@ -783,11 +783,11 @@ runtimefunction id=92 function=f42 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m7 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f45] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] +# CHECK: module=m7 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f45] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="makeScope" # CHECK: module=m0 position=4028 role=ResultWorker flags=[IsChecked, HasExplicitName] thisType={type=anything} results=[{type=f21}, {type=f22}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16} creator=ResultWorker{origin=f16} { # CHECK-NEXT: b0(): diff --git a/test/aot/engine-tests/passes/side-effects/syntax-and-builtins-close-the-iterator.ir b/test/aot/engine-tests/passes/side-effects/syntax-and-builtins-close-the-iterator.ir index 4b927899875a..8b7e98463bcd 100644 --- a/test/aot/engine-tests/passes/side-effects/syntax-and-builtins-close-the-iterator.ir +++ b/test/aot/engine-tests/passes/side-effects/syntax-and-builtins-close-the-iterator.ir @@ -154,8 +154,8 @@ function f6 name="next" module=m0 position=326 kind=Method flags=[HasExplicitNam function f7 name="return" module=m0 position=426 kind=Method flags=[HasExplicitName] thisType={type=anything} results=[{type=anything}] functionTypes=[f9] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="next" module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f12] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f11 name="return" module=m2 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f13] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f10 name="next" module=m2 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f12] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="return" module=m2 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f13] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f12 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f13 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] # -- generated: f0 collections closeDelegate f5 delegate diff --git a/test/aot/engine-tests/passes/stress/assorted/scopes-handed-back.ir b/test/aot/engine-tests/passes/stress/assorted/scopes-handed-back.ir index 2bbc4deb1a92..7d36e8fbe188 100644 --- a/test/aot/engine-tests/passes/stress/assorted/scopes-handed-back.ir +++ b/test/aot/engine-tests/passes/stress/assorted/scopes-handed-back.ir @@ -697,16 +697,16 @@ function f76 module=m1 role=Signature thisType={type=anything} results=[{type=an function f77 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f78 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f79 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f80 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f81 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f82 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f83 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f84 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f80 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f81 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f82 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f83 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f84 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f85 name="iteratorGenericClose" module=m5 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f86 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f87 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f88 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f89 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f86 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f87 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f88 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f89 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f90 module=m9 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d2 @@ -826,15 +826,15 @@ function f135 name="joinedText" module=m14 position=1819 role=Library flags=[IsC function f136 name="finishJoin" module=m14 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w301 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w302 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w303}, {type=number site=w304}] results=[{type=undefined|null|string site=w305 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f137 name="finishReduce" module=m14 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w306}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f138 name="traverseArray" module=m14 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w307 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w308}, {type=undefined|number site=w309}, {type=number site=w310}, {type=undefined|null|Array site=w311 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f81 -runtimefunction id=69 function=f80 -runtimefunction id=70 function=f82 visibility=Private -runtimefunction id=71 function=f86 visibility=Private -runtimefunction id=72 function=f88 -runtimefunction id=86 function=f83 visibility=Private -runtimefunction id=87 function=f87 -runtimefunction id=88 function=f89 -runtimefunction id=92 function=f84 visibility=Private +runtimefunction id=64 function=f81 +runtimefunction id=68 function=f80 +runtimefunction id=69 function=f82 visibility=Private +runtimefunction id=70 function=f86 visibility=Private +runtimefunction id=71 function=f88 +runtimefunction id=85 function=f83 visibility=Private +runtimefunction id=86 function=f87 +runtimefunction id=87 function=f89 +runtimefunction id=91 function=f84 visibility=Private runtimefunction id=65574 function=f62 runtimefunction id=65580 function=f61 runtimefunction id=131072 function=f85 visibility=Private diff --git a/test/aot/engine-tests/passes/stress/fields-that-stay/stable-fields-define-props-leaves-plain.ir b/test/aot/engine-tests/passes/stress/fields-that-stay/stable-fields-define-props-leaves-plain.ir index 925dcf63b01a..d80f4bd0927b 100644 --- a/test/aot/engine-tests/passes/stress/fields-that-stay/stable-fields-define-props-leaves-plain.ir +++ b/test/aot/engine-tests/passes/stress/fields-that-stay/stable-fields-define-props-leaves-plain.ir @@ -334,7 +334,7 @@ function f8 module=m0 role=Signature thisType={type=anything} results=[{type=any function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -357,7 +357,7 @@ function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f12 +runtimefunction id=68 function=f12 # -- generated: Pair f2 f3 f5 next # CHECK-LABEL: function {{*}}name="Pair" # CHECK: module=m0 position=195 kind=BaseConstructor flags=[HasNewTarget, IsChecked, HasExplicitName] thisType={type=anything} results=[{type=L0 flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] constructedClass=L0 inlineFrames=[{}, {callee=f5 callPosition=4294967295 module=m0}] { @@ -417,7 +417,7 @@ runtimefunction id=69 function=f12 # CHECK-NEXT: Jump -> next b2() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f25 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f25 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f25 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -426,7 +426,7 @@ runtimefunction id=69 function=f12 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { # CHECK-NEXT: b0(v0: f12, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f12 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -440,7 +440,7 @@ runtimefunction id=69 function=f12 # CHECK-LABEL: function {{*}}name="Pair" # CHECK: module=m0 position=195 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, IsChecked, HasExplicitName] thisType={type=L0} results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f1 parameterMap=[{}, {original=0}]} creator=Version{provenVersion=f1} constructedClass=L0 # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/string-literals/concat-map-values-and-elements.ir b/test/aot/engine-tests/passes/string-literals/concat-map-values-and-elements.ir index f0a1f15fdd15..81e2e36ade3a 100644 --- a/test/aot/engine-tests/passes/string-literals/concat-map-values-and-elements.ir +++ b/test/aot/engine-tests/passes/string-literals/concat-map-values-and-elements.ir @@ -707,8 +707,8 @@ function f41 module=m1 role=Signature thisType={type=anything} results=[{type=an function f42 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f43 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f44 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f45 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d3 @@ -837,8 +837,8 @@ function f92 name="joinedText" module=m9 position=1819 role=Library flags=[IsChe function f93 name="finishJoin" module=m9 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w283 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w284 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w285}, {type=number site=w286}] results=[{type=undefined|null|string site=w287 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f94 name="finishReduce" module=m9 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w288}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f95 name="traverseArray" module=m9 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w289 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w290}, {type=undefined|number site=w291}, {type=number site=w292}, {type=undefined|null|Array site=w293 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f46 -runtimefunction id=69 function=f45 +runtimefunction id=64 function=f46 +runtimefunction id=68 function=f45 runtimefunction id=65574 function=f27 runtimefunction id=65580 function=f26 runtimefunction id=131091 function=f95 visibility=Private diff --git a/test/aot/engine-tests/passes/string-literals/listed-text-compared-handed-narrower.ir b/test/aot/engine-tests/passes/string-literals/listed-text-compared-handed-narrower.ir index 4b75e2e77ac6..5da36b3e18bc 100644 --- a/test/aot/engine-tests/passes/string-literals/listed-text-compared-handed-narrower.ir +++ b/test/aot/engine-tests/passes/string-literals/listed-text-compared-handed-narrower.ir @@ -300,8 +300,8 @@ function f8 module=m0 position=1393 kind=Arrow flags=[IsChecked] length=1 thisTy } function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f12 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f12 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f13 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w53}, {type=number site=w54}] results=[{type=number site=w55}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f14 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w56 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w57}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f15 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w58 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w59}, {type=anything}] results=[{type=number site=w60}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -499,8 +499,8 @@ function f19 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w116} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f12 -runtimefunction id=69 function=f11 +runtimefunction id=64 function=f12 +runtimefunction id=68 function=f11 runtimefunction id=131091 function=f19 visibility=Private # -- generated: narrowedAndReturned switchedAndReturned fromString isExt f8 # CHECK-LABEL: function {{*}}name="narrowedAndReturned" diff --git a/test/aot/engine-tests/passes/strings/groups-two-characters-matched-wide-texts.ir b/test/aot/engine-tests/passes/strings/groups-two-characters-matched-wide-texts.ir index 8c0b79ae7af8..e95de71ca6c9 100644 --- a/test/aot/engine-tests/passes/strings/groups-two-characters-matched-wide-texts.ir +++ b/test/aot/engine-tests/passes/strings/groups-two-characters-matched-wide-texts.ir @@ -345,18 +345,18 @@ function f32 module=m1 kind=Method role=Library flags=[HasThis, IsChecked] enclo v10 = Convert v9 declared={type=undefined|null|L2 site=w0 flags=[OmitsNull, OmitsUndefined]} Return v10 } -function f33 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f34 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f35 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f36 name="reduce" module=m4 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f38 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f39 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f33 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f34 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f35 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="reduce" module=m4 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f38 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f39 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f40 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f44 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="clampToLength" module=m10 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w8}, {type=number site=w9}] results=[{type=number site=w10}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 name="storeInNewArray" module=m10 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w12}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 name="appendParts" module=m10 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w13 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w14}, {type=anything}] results=[{type=number site=w15}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -364,16 +364,16 @@ function f48 name="joinedText" module=m10 position=1819 role=Library flags=[IsCh function f49 name="finishJoin" module=m10 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w18 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w19}, {type=number site=w20}] results=[{type=undefined|null|string site=w21 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="finishReduce" module=m10 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w22}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f51 name="traverseArray" module=m10 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w24}, {type=undefined|number site=w25}, {type=number site=w26}, {type=undefined|null|Array site=w27 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f33 -runtimefunction id=69 function=f35 -runtimefunction id=70 function=f37 visibility=Private -runtimefunction id=71 function=f41 visibility=Private -runtimefunction id=72 function=f43 -runtimefunction id=82 function=f36 -runtimefunction id=86 function=f38 visibility=Private -runtimefunction id=87 function=f42 -runtimefunction id=88 function=f44 -runtimefunction id=92 function=f39 visibility=Private +runtimefunction id=46 function=f33 +runtimefunction id=68 function=f35 +runtimefunction id=69 function=f37 visibility=Private +runtimefunction id=70 function=f41 visibility=Private +runtimefunction id=71 function=f43 +runtimefunction id=81 function=f36 +runtimefunction id=85 function=f38 visibility=Private +runtimefunction id=86 function=f42 +runtimefunction id=87 function=f44 +runtimefunction id=91 function=f39 visibility=Private runtimefunction id=65569 function=f32 runtimefunction id=131072 function=f40 visibility=Private runtimefunction id=131091 function=f51 visibility=Private diff --git a/test/aot/engine-tests/passes/strings/text-made-either-arm-grows-try-catch.ir b/test/aot/engine-tests/passes/strings/text-made-either-arm-grows-try-catch.ir index 1b9051826122..def3c9ea2f26 100644 --- a/test/aot/engine-tests/passes/strings/text-made-either-arm-grows-try-catch.ir +++ b/test/aot/engine-tests/passes/strings/text-made-either-arm-grows-try-catch.ir @@ -1779,7 +1779,7 @@ function f27 module=m1 role=Signature thisType={type=anything} results=[{type=an function f28 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1802,7 +1802,7 @@ function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f32 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2581,8 +2581,8 @@ function f73 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f74 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w189}, {type=undefined|null|string site=w190 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w191 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w192}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f31 -runtimefunction id=70 function=f32 visibility=Private +runtimefunction id=68 function=f31 +runtimefunction id=69 function=f32 visibility=Private runtimefunction id=65574 function=f13 runtimefunction id=65580 function=f12 # -- generated: f0 refuse pairs leftByFinally oneTryInAnother f13 next steps later @@ -2780,7 +2780,7 @@ runtimefunction id=65580 function=f12 # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f125 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f125 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f125 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2789,7 +2789,7 @@ runtimefunction id=65580 function=f12 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f126 layout=L(IteratorResult)} { +# CHECK: module=m3 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f126 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f126 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2919,19 +2919,19 @@ runtimefunction id=65580 function=f12 # CHECK-NEXT: Return v25 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { # CHECK-NEXT: b0(v0: f31, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f31 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f32}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f32} creator=Entrypoint{target=f32 arguments=Registers} { +# CHECK: module=m3 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f32}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f32} creator=Entrypoint{target=f32 arguments=Registers} { # CHECK-NEXT: b0(v0: f32, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f32 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() @@ -3035,7 +3035,7 @@ runtimefunction id=65580 function=f12 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f32 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f32} { +# CHECK: module=m3 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f32 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f32} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/passes/structural-types/async-method-generator-method-take-dog.ir b/test/aot/engine-tests/passes/structural-types/async-method-generator-method-take-dog.ir index 47d3b4eae0ed..42bcbf3459c2 100644 --- a/test/aot/engine-tests/passes/structural-types/async-method-generator-method-take-dog.ir +++ b/test/aot/engine-tests/passes/structural-types/async-method-generator-method-take-dog.ir @@ -720,10 +720,10 @@ function f71 module=m1 role=Signature thisType={type=anything} results=[{type=an function f72 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f73 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f74 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f75 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f76 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f77 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f78 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f75 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f76 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f77 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f78 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f79 module=m5 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d4 @@ -843,10 +843,10 @@ function f124 name="joinedText" module=m10 position=1819 role=Library flags=[IsC function f125 name="finishJoin" module=m10 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w234 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w235 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w236}, {type=number site=w237}] results=[{type=undefined|null|string site=w238 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f126 name="finishReduce" module=m10 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w239}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f127 name="traverseArray" module=m10 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w240 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w241}, {type=undefined|number site=w242}, {type=number site=w243}, {type=undefined|null|Array site=w244 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f76 -runtimefunction id=69 function=f75 -runtimefunction id=70 function=f77 visibility=Private -runtimefunction id=86 function=f78 visibility=Private +runtimefunction id=64 function=f76 +runtimefunction id=68 function=f75 +runtimefunction id=69 function=f77 visibility=Private +runtimefunction id=85 function=f78 visibility=Private runtimefunction id=65574 function=f57 runtimefunction id=65580 function=f56 runtimefunction id=131091 function=f127 visibility=Private diff --git a/test/aot/engine-tests/passes/structural-types/enum-members-named-like-members-every.ir b/test/aot/engine-tests/passes/structural-types/enum-members-named-like-members-every.ir index e6a20f6b25d7..e2aede1d1400 100644 --- a/test/aot/engine-tests/passes/structural-types/enum-members-named-like-members-every.ir +++ b/test/aot/engine-tests/passes/structural-types/enum-members-named-like-members-every.ir @@ -566,8 +566,8 @@ function f43 module=m0 role=Signature thisType={type=anything} results=[{type=an function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f46] function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f26] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f48 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f48 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -615,8 +615,8 @@ function f52 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f53 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w85 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w86 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w87}, {type=number site=w88}] results=[{type=undefined|null|string site=w89 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f54 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w90}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f55 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w91 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w92}, {type=undefined|number site=w93}, {type=number site=w94}, {type=undefined|null|Array site=w95 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f48 -runtimefunction id=69 function=f47 +runtimefunction id=64 function=f48 +runtimefunction id=68 function=f47 runtimefunction id=131091 function=f55 visibility=Private # -- generated: f0 f7 f9 f17 f18 f20 f21 attempt # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/structural-types/generator-that-expects-dog-is-sent-cat.ir b/test/aot/engine-tests/passes/structural-types/generator-that-expects-dog-is-sent-cat.ir index d527f7f9955c..e05d970e94d9 100644 --- a/test/aot/engine-tests/passes/structural-types/generator-that-expects-dog-is-sent-cat.ir +++ b/test/aot/engine-tests/passes/structural-types/generator-that-expects-dog-is-sent-cat.ir @@ -533,8 +533,8 @@ function f61 module=m0 role=Signature thisType={type=anything} results=[{type=an function f62 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f37] function f63 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f64 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f65 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f66 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f65 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f66 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -565,7 +565,7 @@ function f66 name="map" module=m3 position=5210 kind=Method role=Library flags=[ v29 = Convert v28 declared={type=undefined|number site=w71} Jump -> next b1(v29, v24) } -function f67 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f67 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -583,7 +583,7 @@ function f67 name="next" module=m5 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f68 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f68 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f69 module=m7 kind=Module role=Library thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f70 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f71 name="stylizeWithColor" module=m8 position=32390 role=Library flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|null|string site=w72 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w73 flags=[OmitsNull, OmitsUndefined]}] results=[{type=undefined|null|string site=w74 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f86] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -610,10 +610,10 @@ function f91 name="joinedText" module=m9 position=1819 role=Library flags=[IsChe function f92 name="finishJoin" module=m9 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w89 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w90 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w91}, {type=number site=w92}] results=[{type=undefined|null|string site=w93 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f93 name="finishReduce" module=m9 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w94}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f94 name="traverseArray" module=m9 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w95 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w96}, {type=undefined|number site=w97}, {type=number site=w98}, {type=undefined|null|Array site=w99 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f66 -runtimefunction id=69 function=f65 -runtimefunction id=70 function=f67 visibility=Private -runtimefunction id=86 function=f68 visibility=Private +runtimefunction id=64 function=f66 +runtimefunction id=68 function=f65 +runtimefunction id=69 function=f67 visibility=Private +runtimefunction id=85 function=f68 visibility=Private runtimefunction id=131091 function=f94 visibility=Private # -- generated: f0 Animal bark f13 f15 next show # CHECK-LABEL: function f0 module= @@ -722,9 +722,9 @@ runtimefunction id=131091 function=f94 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f101 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f101 callPosition=25 module=m5}] { +# CHECK: module=m5 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f101 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f101 callPosition=25 module=m5}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -779,7 +779,7 @@ runtimefunction id=131091 function=f94 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f67 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f67} { +# CHECK: module=m5 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f67 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f67} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -804,7 +804,7 @@ runtimefunction id=131091 function=f94 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f67}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f67} creator=Entrypoint{target=f67 arguments=Registers} inlineFrames=[{}, {callee=f67 callPosition=25 isTailCall=true module=m5}] { +# CHECK: module=m5 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f67}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f67} creator=Entrypoint{target=f67 arguments=Registers} inlineFrames=[{}, {callee=f67 callPosition=25 isTailCall=true module=m5}] { # CHECK-NEXT: b0(v0: f67, v1: anything, v2: anything): # CHECK-NEXT: v3: undefined = CallDirect v1, v2 function=f101 # CHECK-NEXT: v4: i32 = ResultAt v3 diff --git a/test/aot/engine-tests/passes/structural-types/literal-gets-values-all-kinds-every.ir b/test/aot/engine-tests/passes/structural-types/literal-gets-values-all-kinds-every.ir index 57f22b5fe4d4..2b5dac288a4f 100644 --- a/test/aot/engine-tests/passes/structural-types/literal-gets-values-all-kinds-every.ir +++ b/test/aot/engine-tests/passes/structural-types/literal-gets-values-all-kinds-every.ir @@ -254,8 +254,8 @@ function f7 module=m0 role=Signature thisType={type=anything} results=[{type=any function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f12 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f12 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f13 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w20}, {type=number site=w21}] results=[{type=number site=w22}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f14 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w24}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f15 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w25 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w26}, {type=anything}] results=[{type=number site=w27}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -263,8 +263,8 @@ function f16 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f17 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w29 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w30 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w31}, {type=number site=w32}] results=[{type=undefined|null|string site=w33 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f18 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w34}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f19 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w35 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w36}, {type=undefined|number site=w37}, {type=number site=w38}, {type=undefined|null|Array site=w39 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f12 -runtimefunction id=69 function=f11 +runtimefunction id=64 function=f12 +runtimefunction id=68 function=f11 runtimefunction id=131091 function=f19 visibility=Private # -- generated: f0 make # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/structural-types/undefined-optional-name-overwrites.ir b/test/aot/engine-tests/passes/structural-types/undefined-optional-name-overwrites.ir index af6595032906..2ccb4b420995 100644 --- a/test/aot/engine-tests/passes/structural-types/undefined-optional-name-overwrites.ir +++ b/test/aot/engine-tests/passes/structural-types/undefined-optional-name-overwrites.ir @@ -657,9 +657,9 @@ function f31 module=m0 role=Signature thisType={type=anything} results=[{type=an function f32 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f35 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f36 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f35 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f38 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w76}, {type=number site=w77}] results=[{type=number site=w78}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w79 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w80}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f40 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w81 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w82}, {type=anything}] results=[{type=number site=w83}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -667,9 +667,9 @@ function f41 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f42 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w85 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w86 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w87}, {type=number site=w88}] results=[{type=undefined|null|string site=w89 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f43 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w90}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w91 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w92}, {type=undefined|number site=w93}, {type=number site=w94}, {type=undefined|null|Array site=w95 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f37 -runtimefunction id=69 function=f35 -runtimefunction id=82 function=f36 +runtimefunction id=64 function=f37 +runtimefunction id=68 function=f35 +runtimefunction id=81 function=f36 runtimefunction id=131091 function=f44 visibility=Private # -- generated: f0 f16 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/passes/symbol-fields/subclass-and-its-base-share-a-symbol.ir b/test/aot/engine-tests/passes/symbol-fields/subclass-and-its-base-share-a-symbol.ir index 4c2bbd73f99a..a9968302e9a2 100644 --- a/test/aot/engine-tests/passes/symbol-fields/subclass-and-its-base-share-a-symbol.ir +++ b/test/aot/engine-tests/passes/symbol-fields/subclass-and-its-base-share-a-symbol.ir @@ -331,8 +331,8 @@ function f19 module=m0 role=Signature thisType={type=anything} results=[{type=an function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f25 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f26 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w42}, {type=number site=w43}] results=[{type=number site=w44}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -344,8 +344,8 @@ function f32 name="finishReduce" module=m4 position=2116 role=Library flags=[IsC function f33 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w57 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w58}, {type=undefined|number site=w59}, {type=number site=w60}, {type=undefined|null|Array site=w61 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f26 runtimefunction id=12 function=f25 -runtimefunction id=65 function=f24 -runtimefunction id=69 function=f23 +runtimefunction id=64 function=f24 +runtimefunction id=68 function=f23 runtimefunction id=131091 function=f33 visibility=Private # -- generated: f10 # CHECK-LABEL: function f10 role= diff --git a/test/aot/engine-tests/passes/tdz/type-of-a-binding-does-not-hold.ir b/test/aot/engine-tests/passes/tdz/type-of-a-binding-does-not-hold.ir index c3df3dfa2482..3157de7ee732 100644 --- a/test/aot/engine-tests/passes/tdz/type-of-a-binding-does-not-hold.ir +++ b/test/aot/engine-tests/passes/tdz/type-of-a-binding-does-not-hold.ir @@ -331,7 +331,7 @@ function f8 module=m0 role=Signature thisType={type=anything} results=[{type=any function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f7] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f7] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f7] -function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -354,7 +354,7 @@ function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f12 +runtimefunction id=68 function=f12 # -- generated: f0 captured readSettings readCount f5 read next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 module=m0}] { @@ -600,7 +600,7 @@ runtimefunction id=69 function=f12 # CHECK-LABEL: function {{*}}name="read" # CHECK: module=m0 position=1101 kind=Arrow flags=[IsChecked] captures=[{type=env L0 flags=[IsFromCompiler]}] thisType={type=anything} results=[{type=undefined|null|L1 site=w17 flags=[IsExpected, OmitsNull, OmitsUndefined]}] functionTypes=[f10] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f25 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f25 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f25 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -609,7 +609,7 @@ runtimefunction id=69 function=f12 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { # CHECK-NEXT: b0(v0: f12, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f12 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -633,7 +633,7 @@ runtimefunction id=69 function=f12 # CHECK-NEXT: Throw v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/tree-shaking/declared-type-checked-value-arrives.ir b/test/aot/engine-tests/passes/tree-shaking/declared-type-checked-value-arrives.ir index 834ae6cfaf2d..43c3bf825749 100644 --- a/test/aot/engine-tests/passes/tree-shaking/declared-type-checked-value-arrives.ir +++ b/test/aot/engine-tests/passes/tree-shaking/declared-type-checked-value-arrives.ir @@ -159,7 +159,7 @@ function f4 module=m0 position=677 kind=Initializer flags=[HasThis, IsChecked, I v8 = Undefined Return v8 } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -182,7 +182,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 f2 f4 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -252,7 +252,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f11 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f11 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f11 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -261,13 +261,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b16() diff --git a/test/aot/engine-tests/passes/type-rules/parsed-json-through-interfaces.ir b/test/aot/engine-tests/passes/type-rules/parsed-json-through-interfaces.ir index 369cb391a818..692d7ed03595 100644 --- a/test/aot/engine-tests/passes/type-rules/parsed-json-through-interfaces.ir +++ b/test/aot/engine-tests/passes/type-rules/parsed-json-through-interfaces.ir @@ -216,7 +216,7 @@ function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} res v158 = Undefined Return v158 } -function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -239,7 +239,7 @@ function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f1 +runtimefunction id=68 function=f1 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -412,7 +412,7 @@ runtimefunction id=69 function=f1 # CHECK-NEXT: Return v131 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f10 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -421,13 +421,13 @@ runtimefunction id=69 function=f1 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f1}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f1} creator=Entrypoint{target=f1 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f1}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f1} creator=Entrypoint{target=f1 arguments=Registers} { # CHECK-NEXT: b0(v0: f1, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f1 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f1 parameterMap=[{original=0}]} creator=ResultWorker{origin=f1} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f1 parameterMap=[{original=0}]} creator=ResultWorker{origin=f1} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/typed-objects/absent-fields-and-prototypes.ir b/test/aot/engine-tests/passes/typed-objects/absent-fields-and-prototypes.ir index f9d182d2d1d9..9a24abea85f0 100644 --- a/test/aot/engine-tests/passes/typed-objects/absent-fields-and-prototypes.ir +++ b/test/aot/engine-tests/passes/typed-objects/absent-fields-and-prototypes.ir @@ -320,7 +320,7 @@ function f5 name="get" module=m0 position=945 kind=Method flags=[IsChecked, HasE function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f7] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -343,7 +343,7 @@ function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f9 +runtimefunction id=68 function=f9 # -- generated: f0 make readSize readLabel report get next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}] { @@ -618,7 +618,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f14 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f14 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f14 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -627,7 +627,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { # CHECK-NEXT: b0(v0: f9, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -639,7 +639,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/passes/typed-objects/builtins-through-interfaces.ir b/test/aot/engine-tests/passes/typed-objects/builtins-through-interfaces.ir index 78ef7b42b7d6..7adf57eed497 100644 --- a/test/aot/engine-tests/passes/typed-objects/builtins-through-interfaces.ir +++ b/test/aot/engine-tests/passes/typed-objects/builtins-through-interfaces.ir @@ -581,8 +581,8 @@ function f53 module=m0 role=Signature thisType={type=anything} results=[{type=an function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33] function f55 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f56] function f56 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f57 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f59 module=m3 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f60 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w169}, {type=number site=w170}] results=[{type=number site=w171}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f61 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w172 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w173}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -591,8 +591,8 @@ function f63 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f64 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w178 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w179 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w180}, {type=number site=w181}] results=[{type=undefined|null|string site=w182 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f65 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w183}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f66 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w184 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w185}, {type=undefined|number site=w186}, {type=number site=w187}, {type=undefined|null|Array site=w188 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f58 -runtimefunction id=69 function=f57 +runtimefunction id=64 function=f58 +runtimefunction id=68 function=f57 runtimefunction id=131091 function=f66 visibility=Private # -- generated: f10 # CHECK-LABEL: function f10 role= diff --git a/test/aot/engine-tests/passes/typed-objects/lowest-32-bit-integers-fields-always.ir b/test/aot/engine-tests/passes/typed-objects/lowest-32-bit-integers-fields-always.ir index bfb6d558d7ba..6cb3a5cf47b3 100644 --- a/test/aot/engine-tests/passes/typed-objects/lowest-32-bit-integers-fields-always.ir +++ b/test/aot/engine-tests/passes/typed-objects/lowest-32-bit-integers-fields-always.ir @@ -330,7 +330,7 @@ function f2 name="readFrom" module=m0 position=754 flags=[IsChecked, HasExplicit v3 = ElemGet v2, v1 Return v3 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1393,7 +1393,7 @@ function f10 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 runtimefunction id=131091 function=f10 visibility=Private # -- generated: f0 readUnder readFrom finishReduce # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/typed-objects/numeric-discriminant-unions.ir b/test/aot/engine-tests/passes/typed-objects/numeric-discriminant-unions.ir index b4e2d0de168f..877015dbb8fc 100644 --- a/test/aot/engine-tests/passes/typed-objects/numeric-discriminant-unions.ir +++ b/test/aot/engine-tests/passes/typed-objects/numeric-discriminant-unions.ir @@ -581,8 +581,8 @@ function f27 module=m0 role=Signature thisType={type=anything} results=[{type=an function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f30] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f30] function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f32 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f32 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w123}, {type=number site=w124}] results=[{type=number site=w125}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w127}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f35 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w128 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w129}, {type=anything}] results=[{type=number site=w130}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -590,8 +590,8 @@ function f36 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f37 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w132 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w133 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w134}, {type=number site=w135}] results=[{type=undefined|null|string site=w136 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f38 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w137}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w138 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w139}, {type=undefined|number site=w140}, {type=number site=w141}, {type=undefined|null|Array site=w142 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f32 -runtimefunction id=69 function=f31 +runtimefunction id=64 function=f32 +runtimefunction id=68 function=f31 runtimefunction id=131091 function=f39 visibility=Private # -- generated: make show upgrade # CHECK-LABEL: function {{*}}name="make" diff --git a/test/aot/engine-tests/passes/typed-objects/proxy-escapes-generic-closure.ir b/test/aot/engine-tests/passes/typed-objects/proxy-escapes-generic-closure.ir index 2c7e2fa8e02c..81e7908eca0d 100644 --- a/test/aot/engine-tests/passes/typed-objects/proxy-escapes-generic-closure.ir +++ b/test/aot/engine-tests/passes/typed-objects/proxy-escapes-generic-closure.ir @@ -317,7 +317,7 @@ function f54 module=m1 role=Signature thisType={type=anything} results=[{type=an function f55 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f56 name="call" module=m2 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f57 name="apply" module=m2 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="get" module=m3 position=1801 kind=Method role=Library flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=53 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f58 name="get" module=m3 position=1801 kind=Method role=Library flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=52 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: int[0, 4294967295], v1: anything, v2: anything, v3: anything): v4 = Convert v1 declared={type=undefined|null|object flags=[IsExpected]} v5 = Convert v4 declared={type=undefined|null|object} illTypedCause=Assertion @@ -352,7 +352,7 @@ function f83 name="finishReduce" module=m6 position=2116 role=Library flags=[IsC function f84 name="traverseArray" module=m6 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w84 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w85}, {type=undefined|number site=w86}, {type=number site=w87}, {type=undefined|null|Array site=w88 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f57 runtimefunction id=12 function=f56 -runtimefunction id=53 function=f58 +runtimefunction id=52 function=f58 runtimefunction id=131091 function=f84 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/passes/typed-objects/truthiness-of-field-via-cast.ir b/test/aot/engine-tests/passes/typed-objects/truthiness-of-field-via-cast.ir index b191d6e996ff..52dc5b485124 100644 --- a/test/aot/engine-tests/passes/typed-objects/truthiness-of-field-via-cast.ir +++ b/test/aot/engine-tests/passes/typed-objects/truthiness-of-field-via-cast.ir @@ -348,8 +348,8 @@ function f26 module=m0 role=Signature thisType={type=anything} results=[{type=an function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w78}, {type=number site=w79}] results=[{type=number site=w80}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w81 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w82}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w83 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w84}, {type=anything}] results=[{type=number site=w85}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -547,8 +547,8 @@ function f38 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w141} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f31 -runtimefunction id=69 function=f30 +runtimefunction id=64 function=f31 +runtimefunction id=68 function=f30 runtimefunction id=131091 function=f38 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/unexpected-values/generator-collected-rest-pattern-inside.ir b/test/aot/engine-tests/passes/unexpected-values/generator-collected-rest-pattern-inside.ir index 84a882ffa180..524fcad63b3c 100644 --- a/test/aot/engine-tests/passes/unexpected-values/generator-collected-rest-pattern-inside.ir +++ b/test/aot/engine-tests/passes/unexpected-values/generator-collected-rest-pattern-inside.ir @@ -120,7 +120,7 @@ function f1 name="numbers" module=m0 position=84 flags=[IsGenerator, HasThis, Ta v13 = Undefined Return v13 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -143,7 +143,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f3 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -167,7 +167,7 @@ function f3 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f4 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -191,9 +191,9 @@ function f4 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -runtimefunction id=69 function=f2 -runtimefunction id=70 function=f3 visibility=Private -runtimefunction id=86 function=f4 visibility=Private +runtimefunction id=68 function=f2 +runtimefunction id=69 function=f3 visibility=Private +runtimefunction id=85 function=f4 visibility=Private # -- generated: f0 next return numbers # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 module=m0}] { @@ -378,7 +378,7 @@ runtimefunction id=86 function=f4 visibility=Private # CHECK-LABEL: function {{*}}name="numbers" # CHECK: module=m0 position=84 role=CoroutineRamp flags=[IsGenerator, HasThis, TakesCallee, HasExplicitName] thisType={type=undefined} results=[{type=Generator}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] creator=Coroutine{ramp=f1 body=f6 promiseParameter=2} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f11 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f11 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f11 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -387,7 +387,7 @@ runtimefunction id=86 function=f4 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { +# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f12 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -409,7 +409,7 @@ runtimefunction id=86 function=f4 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m2 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f13 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -470,25 +470,25 @@ runtimefunction id=86 function=f4 visibility=Private # CHECK-NEXT: Return v16 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f3}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f3 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f4}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m2 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f4}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f4 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b16() @@ -562,7 +562,7 @@ runtimefunction id=86 function=f4 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -587,7 +587,7 @@ runtimefunction id=86 function=f4 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f4} { +# CHECK: module=m2 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f4} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/passes/unexpected-values/objects-never-leave-function-obey.ir b/test/aot/engine-tests/passes/unexpected-values/objects-never-leave-function-obey.ir index 422dd0a101c7..36a2845f3499 100644 --- a/test/aot/engine-tests/passes/unexpected-values/objects-never-leave-function-obey.ir +++ b/test/aot/engine-tests/passes/unexpected-values/objects-never-leave-function-obey.ir @@ -531,8 +531,8 @@ function f86 module=m0 role=Signature thisType={type=anything} results=[{type=an function f87 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f88 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f89 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f90 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f91 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f90 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f91 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f92 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f93 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f94 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -540,8 +540,8 @@ function f95 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f96 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f97 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f98 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f91 -runtimefunction id=69 function=f90 +runtimefunction id=64 function=f91 +runtimefunction id=68 function=f90 runtimefunction id=131091 function=f98 visibility=Private # -- generated: show look f25 f26 f34 # CHECK-LABEL: function {{*}}name="show" diff --git a/test/aot/engine-tests/passes/unexpected-values/prototype-names/value-another-type-stored-deletes.ir b/test/aot/engine-tests/passes/unexpected-values/prototype-names/value-another-type-stored-deletes.ir index bb0b620cf3f6..1068ad17e2a4 100644 --- a/test/aot/engine-tests/passes/unexpected-values/prototype-names/value-another-type-stored-deletes.ir +++ b/test/aot/engine-tests/passes/unexpected-values/prototype-names/value-another-type-stored-deletes.ir @@ -371,8 +371,8 @@ function f11 module=m0 position=747 kind=Initializer flags=[HasThis, IsChecked, function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f16 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f16 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f17 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w73}, {type=number site=w74}] results=[{type=number site=w75}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f18 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w76 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w77}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|Array, v1: number, v2: anything): @@ -389,8 +389,8 @@ function f20 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f21 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w82 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w83 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w84}, {type=number site=w85}] results=[{type=undefined|null|string site=w86 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w87}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w88 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w89}, {type=undefined|number site=w90}, {type=number site=w91}, {type=undefined|null|Array site=w92 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f16 -runtimefunction id=69 function=f15 +runtimefunction id=64 function=f16 +runtimefunction id=68 function=f15 runtimefunction id=131091 function=f23 visibility=Private # -- generated: f0 handOver countOf untyped f11 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/untyped-code/char-codes.ir b/test/aot/engine-tests/passes/untyped-code/char-codes.ir index 92d280e814fe..0b33801d84ab 100644 --- a/test/aot/engine-tests/passes/untyped-code/char-codes.ir +++ b/test/aot/engine-tests/passes/untyped-code/char-codes.ir @@ -670,8 +670,8 @@ function f34 module=m0 role=Signature thisType={type=anything} results=[{type=an function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f36 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f37 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f38 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f39 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f38 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f39 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.filter requires that |this| not be null or undefined" @@ -726,8 +726,8 @@ function f43 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f44 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w13 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w14}, {type=number site=w15}] results=[{type=undefined|null|string site=w16 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w17}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f46 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w18 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w19}, {type=undefined|number site=w20}, {type=number site=w21}, {type=undefined|null|Array site=w22 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=33 function=f39 -runtimefunction id=69 function=f38 +runtimefunction id=32 function=f39 +runtimefunction id=68 function=f38 runtimefunction id=131091 function=f46 visibility=Private # -- generated: f0 stored f13 f17 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/passes/untyped-code/iteration-unexpected-receivers.ir b/test/aot/engine-tests/passes/untyped-code/iteration-unexpected-receivers.ir index 8af4a2517b37..b254e5202fba 100644 --- a/test/aot/engine-tests/passes/untyped-code/iteration-unexpected-receivers.ir +++ b/test/aot/engine-tests/passes/untyped-code/iteration-unexpected-receivers.ir @@ -407,8 +407,8 @@ function f25 module=m1 kind=Module flags=[IsChecked] thisType={type=anything} re v0 = Undefined Return v0 } -function f26 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="storeInNewArray" module=m4 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="appendParts" module=m4 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -416,8 +416,8 @@ function f31 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f32 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f27 -runtimefunction id=69 function=f26 +runtimefunction id=64 function=f27 +runtimefunction id=68 function=f26 runtimefunction id=131091 function=f34 visibility=Private # -- generated: f0 at put f6 f25 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/untyped-code/stores-of-stack-arguments.ir b/test/aot/engine-tests/passes/untyped-code/stores-of-stack-arguments.ir index 7bf13a619ffc..103fbbe350c0 100644 --- a/test/aot/engine-tests/passes/untyped-code/stores-of-stack-arguments.ir +++ b/test/aot/engine-tests/passes/untyped-code/stores-of-stack-arguments.ir @@ -333,19 +333,19 @@ function f32 module=m0 role=Signature thisType={type=anything} results=[{type=an function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f38 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f36 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f38 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f39 name="call" module=m4 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f40 name="apply" module=m4 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f47 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f48 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="next" module=m9 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f48 name="return" module=m9 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f49 module=m10 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f50 name="stylizeWithColor" module=m10 position=32390 role=Library flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|null|string site=w9 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w10 flags=[OmitsNull, OmitsUndefined]}] results=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f65] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f51 name="stylizeNoColor" module=m10 position=32895 role=Library flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}] results=[{type=undefined|null|string site=w13 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f66] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -373,16 +373,16 @@ function f72 name="finishReduce" module=m11 position=2116 role=Library flags=[Is function f73 name="traverseArray" module=m11 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w32 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w33}, {type=undefined|number site=w34}, {type=number site=w35}, {type=undefined|null|Array site=w36 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f40 runtimefunction id=12 function=f39 -runtimefunction id=65 function=f38 -runtimefunction id=69 function=f36 -runtimefunction id=70 function=f41 visibility=Private -runtimefunction id=71 function=f45 visibility=Private -runtimefunction id=72 function=f47 -runtimefunction id=82 function=f37 -runtimefunction id=86 function=f42 visibility=Private -runtimefunction id=87 function=f46 -runtimefunction id=88 function=f48 -runtimefunction id=92 function=f43 visibility=Private +runtimefunction id=64 function=f38 +runtimefunction id=68 function=f36 +runtimefunction id=69 function=f41 visibility=Private +runtimefunction id=70 function=f45 visibility=Private +runtimefunction id=71 function=f47 +runtimefunction id=81 function=f37 +runtimefunction id=85 function=f42 visibility=Private +runtimefunction id=86 function=f46 +runtimefunction id=87 function=f48 +runtimefunction id=91 function=f43 visibility=Private runtimefunction id=131072 function=f44 visibility=Private runtimefunction id=131091 function=f73 visibility=Private # -- generated: Message diff --git a/test/aot/engine-tests/passes/untyped-loops/loops-expect-array-handed-other.ir b/test/aot/engine-tests/passes/untyped-loops/loops-expect-array-handed-other.ir index 42cf8ea274c7..8d53be593d1e 100644 --- a/test/aot/engine-tests/passes/untyped-loops/loops-expect-array-handed-other.ir +++ b/test/aot/engine-tests/passes/untyped-loops/loops-expect-array-handed-other.ir @@ -908,7 +908,7 @@ function f59 module=m0 role=Signature thisType={type=anything} results=[{type=an function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f62 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f63 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f63 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -931,7 +931,7 @@ function f63 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f64 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f64 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -949,16 +949,16 @@ function f64 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f65 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f66 name="next" module=m5 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f68] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f67 name="return" module=m5 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f69] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f65 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f66 name="next" module=m5 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f68] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f67 name="return" module=m5 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f69] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f68 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f69 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f70 module=m6 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f71 name="Tick" module=m6 position=1114 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName] thisType={type=anything} results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] constructedClass=L18 -runtimefunction id=69 function=f63 -runtimefunction id=70 function=f64 visibility=Private -runtimefunction id=86 function=f65 visibility=Private +runtimefunction id=68 function=f63 +runtimefunction id=69 function=f64 visibility=Private +runtimefunction id=85 function=f65 visibility=Private # -- generated: Countdown f6 weigh f10 f11 f12 f13 f14 f15 f16 f17 f19 f20 f23 f24 f27 f28 f29 f33 f36 count # CHECK-LABEL: function {{*}}name="count" # CHECK: module=m0 position=754 role=CoroutineRamp flags=[IsGenerator, HasThis, TakesCallee, HasExplicitName] thisType={type=undefined} results=[{type=Generator}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] creator=Coroutine{ramp=f1 body=f79 promiseParameter=2} diff --git a/test/aot/engine-tests/passes/untyped-loops/variable-another-kind-second-turn-loop.ir b/test/aot/engine-tests/passes/untyped-loops/variable-another-kind-second-turn-loop.ir index b6f9938dddd3..f96c09ddc81f 100644 --- a/test/aot/engine-tests/passes/untyped-loops/variable-another-kind-second-turn-loop.ir +++ b/test/aot/engine-tests/passes/untyped-loops/variable-another-kind-second-turn-loop.ir @@ -641,8 +641,8 @@ function f32 module=m0 role=Signature thisType={type=anything} results=[{type=an function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -680,7 +680,7 @@ function f37 name="forEach" module=m2 position=3958 kind=Method role=Library fla v32 = Undefined Return v32 } -function f38 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f38 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -814,9 +814,9 @@ function f45 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b9(v124, v125): Return v67 } -runtimefunction id=44 function=f37 -runtimefunction id=65 function=f38 -runtimefunction id=69 function=f36 +runtimefunction id=43 function=f37 +runtimefunction id=64 function=f38 +runtimefunction id=68 function=f36 runtimefunction id=131091 function=f45 visibility=Private # -- generated: f0 declaredInTheHead storedByACallbackBetweenTwoReadsInAList copiedFromTurnToTurn keepsTheValueOfTheTurnBefore storedByADefault # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/passes/untyped-speed/options-objects.ir b/test/aot/engine-tests/passes/untyped-speed/options-objects.ir index 6199d2c6bfbb..0602db09877e 100644 --- a/test/aot/engine-tests/passes/untyped-speed/options-objects.ir +++ b/test/aot/engine-tests/passes/untyped-speed/options-objects.ir @@ -276,8 +276,8 @@ function f7 name="run" module=m0 position=1234 flags=[HasExplicitName] length=1 } function f8 name="call" module=m1 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f9 name="apply" module=m1 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f10 name="fromEntries" module=m2 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=51 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w4 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f11 name="groupBy" module=m2 position=1940 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="fromEntries" module=m2 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=50 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w4 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f11 name="groupBy" module=m2 position=1940 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=59 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = Undefined v3 = Convert v1 declared={type=undefined|null|function flags=[IsExpected]} @@ -292,7 +292,7 @@ function f11 name="groupBy" module=m2 position=1940 kind=Method role=Library fla LoopHint Return v9 } -function f12 name="[Symbol.iterator]" module=m2 position=2910 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=60 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f12 name="[Symbol.iterator]" module=m2 position=2910 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=59 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f13 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w7}, {type=number site=w8}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f14 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w11}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f15 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=anything}] results=[{type=number site=w14}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -302,8 +302,8 @@ function f18 name="finishReduce" module=m3 position=2116 role=Library flags=[IsC function f19 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w22 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w23}, {type=undefined|number site=w24}, {type=number site=w25}, {type=undefined|null|Array site=w26 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f9 runtimefunction id=12 function=f8 -runtimefunction id=51 function=f10 -runtimefunction id=60 function=f11 +runtimefunction id=50 function=f10 +runtimefunction id=59 function=f11 runtimefunction id=131091 function=f19 visibility=Private # -- generated: extend # CHECK-LABEL: function {{*}}name="extend" diff --git a/test/aot/engine-tests/passes/untyped-stress/realm-of-error-thrown-by-native-code.ir b/test/aot/engine-tests/passes/untyped-stress/realm-of-error-thrown-by-native-code.ir index c89879d9c960..7b8d5ae4572b 100644 --- a/test/aot/engine-tests/passes/untyped-stress/realm-of-error-thrown-by-native-code.ir +++ b/test/aot/engine-tests/passes/untyped-stress/realm-of-error-thrown-by-native-code.ir @@ -196,8 +196,8 @@ function f17 module=m1 kind=Module flags=[IsChecked] thisType={type=anything} re v0 = Undefined Return v0 } -function f18 name="next" module=m3 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f20] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f19 name="return" module=m3 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f21] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f18 name="next" module=m3 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f20] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f19 name="return" module=m3 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f21] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f20 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -426,7 +426,7 @@ function f23 name="Tick" module=m4 position=1114 kind=BaseConstructor role=Libra # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f20] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] +# CHECK: module=m3 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f20] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="recurseThroughArityFixup" # CHECK: module=m0 position=654 role=GenericEntrypoint flags=[HasThis] captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): diff --git a/test/aot/engine-tests/pipeline/arrays/appended-elements-of-every-kind-of-array.ir b/test/aot/engine-tests/pipeline/arrays/appended-elements-of-every-kind-of-array.ir index f0f047f1d3bc..64b631b8be63 100644 --- a/test/aot/engine-tests/pipeline/arrays/appended-elements-of-every-kind-of-array.ir +++ b/test/aot/engine-tests/pipeline/arrays/appended-elements-of-every-kind-of-array.ir @@ -1376,7 +1376,7 @@ function f12 name="literalDoubles" module=m0 position=5590 flags=[IsChecked, Has v1 = Convert v0 declared={type=undefined|null|Array site=w32 flags=[OmitsNull, OmitsUndefined]} Return v1 } -function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1948,7 +1948,7 @@ function f19 name="includes" module=m2 position=2203 kind=Method role=Library fl v119 = Convert v118 declared={type=boolean site=w198} Return v119 } -runtimefunction id=69 function=f13 +runtimefunction id=68 function=f13 runtimefunction id=131087 function=f19 runtimefunction id=131088 function=f17 # -- generated: show joinValues joinStrings joinNumbers around pushAll pushNumbers diff --git a/test/aot/engine-tests/pipeline/arrays/array-literals-of-five-and-more-elements.ir b/test/aot/engine-tests/pipeline/arrays/array-literals-of-five-and-more-elements.ir index 65327a03040e..1df95cbea942 100644 --- a/test/aot/engine-tests/pipeline/arrays/array-literals-of-five-and-more-elements.ir +++ b/test/aot/engine-tests/pipeline/arrays/array-literals-of-five-and-more-elements.ir @@ -985,7 +985,7 @@ function f16 module=m0 role=Signature thisType={type=anything} results=[{type=an function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1008,7 +1008,7 @@ function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f21 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1143,7 +1143,7 @@ function f21 name="reduce" module=m2 position=1398 kind=Method role=Library flag v94 = ThrowNewError errorKind=TypeError message="Array.prototype.reduce callback must be a function" Unreachable } -function f22 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1220,7 +1220,7 @@ function f22 name="filter" module=m2 position=4475 kind=Method role=Library flag v54 = ThrowNewError errorKind=TypeError message="Array.prototype.filter callback must be a function" Unreachable } -function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2625,10 +2625,10 @@ function f34 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=33 function=f22 -runtimefunction id=65 function=f23 -runtimefunction id=69 function=f20 -runtimefunction id=82 function=f21 +runtimefunction id=32 function=f22 +runtimefunction id=64 function=f23 +runtimefunction id=68 function=f20 +runtimefunction id=81 function=f21 runtimefunction id=131088 function=f27 runtimefunction id=131091 function=f34 visibility=Private # -- generated: show f9 f10 f12 next six seven eightFractions mixed @@ -2796,7 +2796,7 @@ runtimefunction id=131091 function=f34 visibility=Private # CHECK-NEXT: Return v11 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f58 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f58 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f58 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2993,13 +2993,13 @@ runtimefunction id=131091 function=f34 visibility=Private # CHECK-NEXT: Return v11 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f20}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f20} creator=Entrypoint{target=f20 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f20}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f20} creator=Entrypoint{target=f20 arguments=Registers} { # CHECK-NEXT: b0(v0: f20, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f20 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f20 parameterMap=[{original=0}]} creator=ResultWorker{origin=f20} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f20 parameterMap=[{original=0}]} creator=ResultWorker{origin=f20} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/arrays/array-map-makes-of-numbers-read-numbers.ir b/test/aot/engine-tests/pipeline/arrays/array-map-makes-of-numbers-read-numbers.ir index 5ae2c4924c0d..8ed8add0447c 100644 --- a/test/aot/engine-tests/pipeline/arrays/array-map-makes-of-numbers-read-numbers.ir +++ b/test/aot/engine-tests/pipeline/arrays/array-map-makes-of-numbers-read-numbers.ir @@ -316,7 +316,7 @@ function f13 module=m0 role=Signature thisType={type=anything} results=[{type=an function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f17 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -669,7 +669,7 @@ function f30 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v248 = TruncateNewArray v246, v247 Return v248 } -runtimefunction id=65 function=f17 +runtimefunction id=64 function=f17 runtimefunction id=131087 function=f23 runtimefunction id=131088 function=f21 runtimefunction id=131091 function=f30 visibility=Private diff --git a/test/aot/engine-tests/pipeline/arrays/callbacks-call-function-always-throws.ir b/test/aot/engine-tests/pipeline/arrays/callbacks-call-function-always-throws.ir index a110682566b5..8949e642f810 100644 --- a/test/aot/engine-tests/pipeline/arrays/callbacks-call-function-always-throws.ir +++ b/test/aot/engine-tests/pipeline/arrays/callbacks-call-function-always-throws.ir @@ -351,10 +351,10 @@ function f50 module=m0 role=Signature thisType={type=anything} results=[{type=an function f51 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f52 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f54 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f55 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f56 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f57 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f54 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f55 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f56 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -855,10 +855,10 @@ function f64 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b113(v454): Return v454 } -runtimefunction id=33 function=f56 -runtimefunction id=44 function=f55 -runtimefunction id=65 function=f57 -runtimefunction id=69 function=f54 +runtimefunction id=32 function=f56 +runtimefunction id=43 function=f55 +runtimefunction id=64 function=f57 +runtimefunction id=68 function=f54 runtimefunction id=131091 function=f64 visibility=Private # -- generated: fail throwsOut catchesInside changesWithoutThrowing f19 f20 f24 f25 # CHECK-LABEL: function {{*}}name="fail" diff --git a/test/aot/engine-tests/pipeline/arrays/element-read-four-times-array-array.ir b/test/aot/engine-tests/pipeline/arrays/element-read-four-times-array-array.ir index 455f4dce3c26..a86fe52b6e0f 100644 --- a/test/aot/engine-tests/pipeline/arrays/element-read-four-times-array-array.ir +++ b/test/aot/engine-tests/pipeline/arrays/element-read-four-times-array-array.ir @@ -141,7 +141,7 @@ function f1 name="isList" module=m0 position=174 flags=[IsChecked, HasExplicitNa v52 = Convert v51 declared={type=boolean site=w0} Return v52 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -164,7 +164,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: f0 isList next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -375,7 +375,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Return v32 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -450,7 +450,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/arrays/function-returns-new-object-called.ir b/test/aot/engine-tests/pipeline/arrays/function-returns-new-object-called.ir index a3d84d0a4656..e5b1920a2943 100644 --- a/test/aot/engine-tests/pipeline/arrays/function-returns-new-object-called.ir +++ b/test/aot/engine-tests/pipeline/arrays/function-returns-new-object-called.ir @@ -183,7 +183,7 @@ function f2 name="pair" module=m0 position=275 kind=Arrow length=2 captures=[{ty Return v17 } function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -206,7 +206,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 leastShared next pair # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -367,7 +367,7 @@ runtimefunction id=69 function=f4 # CHECK-LABEL: function {{*}}name="pair" # CHECK: module=m0 position=275 kind=Arrow length=2 captures=[{type=env L0 flags=[IsFromCompiler]}] thisType={type=anything} parameters=[{type=number}, {type=number}] results=[{type=L2}] functionTypes=[f3] capabilities=[MayBeCloned, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -442,7 +442,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/arrays/index-of-and-includes-with-strings.ir b/test/aot/engine-tests/pipeline/arrays/index-of-and-includes-with-strings.ir index 64b9aa8c8a09..93b1c669d313 100644 --- a/test/aot/engine-tests/pipeline/arrays/index-of-and-includes-with-strings.ir +++ b/test/aot/engine-tests/pipeline/arrays/index-of-and-includes-with-strings.ir @@ -1592,7 +1592,7 @@ function f32 module=m0 role=Signature thisType={type=anything} results=[{type=an function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1615,7 +1615,7 @@ function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3267,8 +3267,8 @@ function f50 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f37 -runtimefunction id=69 function=f36 +runtimefunction id=64 function=f37 +runtimefunction id=68 function=f36 runtimefunction id=131087 function=f43 runtimefunction id=131088 function=f41 runtimefunction id=131091 function=f50 visibility=Private diff --git a/test/aot/engine-tests/pipeline/arrays/list-filled-from-entries-map-array-set.ir b/test/aot/engine-tests/pipeline/arrays/list-filled-from-entries-map-array-set.ir index e2913e717c41..2a42b8b3f4bc 100644 --- a/test/aot/engine-tests/pipeline/arrays/list-filled-from-entries-map-array-set.ir +++ b/test/aot/engine-tests/pipeline/arrays/list-filled-from-entries-map-array-set.ir @@ -165,7 +165,7 @@ function f3 name="Sym" module=m0 position=369 kind=BaseConstructor flags=[HasNew Return v11 } function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -188,7 +188,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 arrayFrom next names # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f15 callPosition=409 parent=1 module=m0}, {callee=f14 callPosition=4294967295 isConstruction=true module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f15 callPosition=409 parent=4 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f15 callPosition=409 parent=6 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f15 callPosition=409 parent=8 module=m0}, {callee=f14 callPosition=4294967295 isConstruction=true module=m0}, {callee=f15 callPosition=4294967295 parent=8 isTailCall=true module=m0}] { @@ -317,7 +317,7 @@ runtimefunction id=69 function=f5 # CHECK-LABEL: function {{*}}name="names" # CHECK: module=m0 position=409 role=ParameterWrapper flags=[HasExplicitName] length=1 thisType={type=anything} parameters=[{type=L0|L1}] results=[{type=number}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces, ClosuresAreReadWithoutCode] creator=ParameterWrapper{body=f7} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f16 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f16 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f16 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -328,7 +328,7 @@ runtimefunction id=69 function=f5 # CHECK-LABEL: function {{*}}name="names" # CHECK: module=m0 position=409 flags=[HasExplicitName] length=1 thisType={type=anything} parameters=[{type=f1}, {type=Array|Map, undefined|int|"a"|"b"|Array, proven, pristine[Storage, Names]>|Set}] results=[{type=number}] capabilities=[MayBeCloned, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f2 parameterMap=[{}, {}]} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -451,7 +451,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v85 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/arrays/list-literal-of-numbers-may-undefined.ir b/test/aot/engine-tests/pipeline/arrays/list-literal-of-numbers-may-undefined.ir index 1d4a1b51801b..1932cd647564 100644 --- a/test/aot/engine-tests/pipeline/arrays/list-literal-of-numbers-may-undefined.ir +++ b/test/aot/engine-tests/pipeline/arrays/list-literal-of-numbers-may-undefined.ir @@ -754,7 +754,7 @@ function f13 module=m0 role=Signature thisType={type=anything} results=[{type=an function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f17 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1060,13 +1060,13 @@ function f17 name="from" module=m1 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f18 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f19 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1089,7 +1089,7 @@ function f19 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f20 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2367,9 +2367,9 @@ function f28 name="from" module=m5 position=651 kind=Method role=Library flags=[ v116 = Call v114, v113, v112, v115 calleeName="Array.from" ReturnCall v116 casts=[{declared={type=undefined|null|Array site=w89 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w79 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=47 function=f17 -runtimefunction id=65 function=f20 -runtimefunction id=69 function=f19 +runtimefunction id=46 function=f17 +runtimefunction id=64 function=f20 +runtimefunction id=68 function=f19 runtimefunction id=131091 function=f27 visibility=Private runtimefunction id=131110 function=f28 # -- generated: show f7 f8 next @@ -2503,7 +2503,7 @@ runtimefunction id=131110 function=f28 # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f45 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f45 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f45 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2512,7 +2512,7 @@ runtimefunction id=131110 function=f28 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f19}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f19} creator=Entrypoint{target=f19 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f19}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f19} creator=Entrypoint{target=f19 arguments=Registers} { # CHECK-NEXT: b0(v0: f19, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f19 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2525,7 +2525,7 @@ runtimefunction id=131110 function=f28 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f19 parameterMap=[{original=0}]} creator=ResultWorker{origin=f19} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f19 parameterMap=[{original=0}]} creator=ResultWorker{origin=f19} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/arrays/list-taken-two-list-patterns-object.ir b/test/aot/engine-tests/pipeline/arrays/list-taken-two-list-patterns-object.ir index 2bbcda6110c1..042505c032c6 100644 --- a/test/aot/engine-tests/pipeline/arrays/list-taken-two-list-patterns-object.ir +++ b/test/aot/engine-tests/pipeline/arrays/list-taken-two-list-patterns-object.ir @@ -210,7 +210,7 @@ function f2 name="twin" module=m0 position=488 flags=[IsChecked, HasExplicitName v11 = Undefined Return v11 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -233,7 +233,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 scene next twin # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}] { @@ -289,7 +289,7 @@ runtimefunction id=69 function=f3 # CHECK-LABEL: function {{*}}name="twin" # CHECK: module=m0 position=488 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|Array site=w2 flags=[IsExpected, OmitsNull, OmitsUndefined]}] results=[{type=undefined}] capabilities=[MayBeCloned, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f10 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -460,7 +460,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Jump -> next b4(v30, v32) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -472,7 +472,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v1 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b16() diff --git a/test/aot/engine-tests/pipeline/arrays/long-arrays-that-hold-little-are-joined.ir b/test/aot/engine-tests/pipeline/arrays/long-arrays-that-hold-little-are-joined.ir index 5461877ef8e5..b917bc675df4 100644 --- a/test/aot/engine-tests/pipeline/arrays/long-arrays-that-hold-little-are-joined.ir +++ b/test/aot/engine-tests/pipeline/arrays/long-arrays-that-hold-little-are-joined.ir @@ -870,7 +870,7 @@ function f15 module=m0 role=Signature thisType={type=anything} results=[{type=an function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -893,7 +893,7 @@ function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f20 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -917,7 +917,7 @@ function f20 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f21 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -941,7 +941,7 @@ function f21 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f22 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -998,7 +998,7 @@ function f23 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f24 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1019,7 +1019,7 @@ function f24 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f25 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1070,7 +1070,7 @@ function f25 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f26 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f26 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1092,7 +1092,7 @@ function f26 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f27 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1138,14 +1138,14 @@ function f28 name="toLocaleString" module=m6 position=1291 kind=Method role=Mode v3 = Call v2, v0 calleeKey="toString" calleeName="this.toString" ReturnCall v3 } -runtimefunction id=69 function=f19 -runtimefunction id=70 function=f20 visibility=Private -runtimefunction id=71 function=f24 visibility=Private -runtimefunction id=72 function=f26 -runtimefunction id=86 function=f21 visibility=Private -runtimefunction id=87 function=f25 -runtimefunction id=88 function=f27 -runtimefunction id=92 function=f22 visibility=Private +runtimefunction id=68 function=f19 +runtimefunction id=69 function=f20 visibility=Private +runtimefunction id=70 function=f24 visibility=Private +runtimefunction id=71 function=f26 +runtimefunction id=85 function=f21 visibility=Private +runtimefunction id=86 function=f25 +runtimefunction id=87 function=f27 +runtimefunction id=91 function=f22 visibility=Private runtimefunction id=131072 function=f23 visibility=Private runtimefunction id=131086 function=f28 # -- generated: withLength join withElements peak shorten toString get f9 throw @@ -1482,7 +1482,7 @@ runtimefunction id=131086 function=f28 # CHECK-NEXT: ReturnCall v5 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f53 layout=L(IteratorResult)} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f53 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f53 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1540,7 +1540,7 @@ runtimefunction id=131086 function=f28 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f22}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { +# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f22}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { # CHECK-NEXT: b0(v0: f22, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f22 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -1586,7 +1586,7 @@ runtimefunction id=131086 function=f28 # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f22} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f22} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/arrays/map-then-join-not-fused.ir b/test/aot/engine-tests/pipeline/arrays/map-then-join-not-fused.ir index 646976810491..35dec119282f 100644 --- a/test/aot/engine-tests/pipeline/arrays/map-then-join-not-fused.ir +++ b/test/aot/engine-tests/pipeline/arrays/map-then-join-not-fused.ir @@ -439,7 +439,7 @@ function f10 module=m0 role=Signature thisType={type=anything} results=[{type=an function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f11] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f14 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1542,7 +1542,7 @@ function f21 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f14 +runtimefunction id=64 function=f14 runtimefunction id=131091 function=f21 visibility=Private # -- generated: f0 usedTwice thisArgument unknownCallback separatorOfAnyKind insideTry row f7 f8 clampToLength storeInNewArray joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/arrays/nans-read-bytes-negated-loops-closures.ir b/test/aot/engine-tests/pipeline/arrays/nans-read-bytes-negated-loops-closures.ir index 45d8dddf0ac6..5c47da5ab310 100644 --- a/test/aot/engine-tests/pipeline/arrays/nans-read-bytes-negated-loops-closures.ir +++ b/test/aot/engine-tests/pipeline/arrays/nans-read-bytes-negated-loops-closures.ir @@ -190,11 +190,11 @@ function f37 module=m0 role=Signature thisType={type=anything} results=[{type=an function f38 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f41 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f42 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f43 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f44 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="flatIntoArray" module=m3 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f41 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f42 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="flatIntoArray" module=m3 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: anything): v5 = Undefined v6 = Integer @@ -257,10 +257,10 @@ function f50 name="joinedText" module=m5 position=1819 role=Library flags=[IsChe function f51 name="finishJoin" module=m5 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w18 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w19}, {type=number site=w20}] results=[{type=undefined|null|string site=w21 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f52 name="finishReduce" module=m5 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w22}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f53 name="traverseArray" module=m5 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w24}, {type=undefined|number site=w25}, {type=number site=w26}, {type=undefined|null|Array site=w27 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=40 function=f45 visibility=Private -runtimefunction id=47 function=f41 -runtimefunction id=65 function=f44 -runtimefunction id=69 function=f43 +runtimefunction id=39 function=f45 visibility=Private +runtimefunction id=46 function=f41 +runtimefunction id=64 function=f44 +runtimefunction id=68 function=f43 runtimefunction id=131074 function=f46 runtimefunction id=131091 function=f53 visibility=Private # -- generated: f0 f19 flatIntoArray @@ -329,19 +329,19 @@ runtimefunction id=131091 function=f53 visibility=Private # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="flatIntoArray" -# CHECK: module=m3 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayBeCloned, HasOrdinaryFrame, IsHiddenInStackTraces] { +# CHECK: module=m3 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayBeCloned, HasOrdinaryFrame, IsHiddenInStackTraces] { # CHECK-NEXT: b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: anything): # CHECK-NEXT: v5: anything = CallDirect v0, v1, v3, v4 function=f62 # CHECK-NEXT: ReturnCall v5 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="flatIntoArray" -# CHECK: module=m3 position=8579 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=5 enclosingRuntimeFunction=40 captures=[{type=f45}] thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f45} creator=Entrypoint{target=f45 arguments=Registers} { +# CHECK: module=m3 position=8579 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=5 enclosingRuntimeFunction=39 captures=[{type=f45}] thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f45} creator=Entrypoint{target=f45 arguments=Registers} { # CHECK-NEXT: b0(v0: f45, v1: anything, v2: anything, v3: anything, v4: anything, v5: anything, v6: anything) frequency=Rare: # CHECK-NEXT: v7: anything = CallDirect v2, v3, v5, v6 function=f62 # CHECK-NEXT: ReturnCall v7 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="flatIntoArray" -# CHECK: module=m3 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f45 parameterMap=[{original=0}, {original=1}, {original=3}, {original=4}]} { +# CHECK: module=m3 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f45 parameterMap=[{original=0}, {original=1}, {original=3}, {original=4}]} { # CHECK-NEXT: b0(v0: anything, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: 0 = Integer # CHECK-NEXT: Jump -> next b1(v2, v4) diff --git a/test/aot/engine-tests/pipeline/arrays/pairs-map-numbers-taken-apart-changed.ir b/test/aot/engine-tests/pipeline/arrays/pairs-map-numbers-taken-apart-changed.ir index a563d40a0221..bdb45627783a 100644 --- a/test/aot/engine-tests/pipeline/arrays/pairs-map-numbers-taken-apart-changed.ir +++ b/test/aot/engine-tests/pipeline/arrays/pairs-map-numbers-taken-apart-changed.ir @@ -777,7 +777,7 @@ function f8 module=m0 role=Signature thisType={type=anything} results=[{type=any function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f11] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -800,7 +800,7 @@ function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f13 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -863,7 +863,7 @@ function f13 name="map" module=m2 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f14 name="groupBy" module=m3 position=1339 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=59 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="groupBy" module=m3 position=1339 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=58 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -980,7 +980,7 @@ function f14 name="groupBy" module=m3 position=1339 kind=Method role=Library fla v63 = ThrowNewError errorKind=TypeError message="Map.groupBy requires that the second argument must be a function" Unreachable } -function f15 name="[Symbol.iterator]" module=m3 position=2287 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=59 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="[Symbol.iterator]" module=m3 position=2287 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=58 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2026,9 +2026,9 @@ function f22 name="traverseArray" module=m4 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=59 function=f14 -runtimefunction id=65 function=f13 -runtimefunction id=69 function=f12 +runtimefunction id=58 function=f14 +runtimefunction id=64 function=f13 +runtimefunction id=68 function=f12 runtimefunction id=131091 function=f22 visibility=Private # -- generated: show total kept f6 next firstOf # CHECK-LABEL: function {{*}}name="show" @@ -2151,7 +2151,7 @@ runtimefunction id=131091 function=f22 visibility=Private # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f39 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f39 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f39 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2342,13 +2342,13 @@ runtimefunction id=131091 function=f22 visibility=Private # CHECK-LABEL: function {{*}}name="firstOf" # CHECK: module=m0 position=948 role=GenericVersion flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|Array site=w8 flags=[IsExpected, OmitsNull, OmitsUndefined]}] results=[{type=Array, proven, pristine[Storage, Names, Dense]> site=w9 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=Version{provenVersion=f25} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { # CHECK-NEXT: b0(v0: f12, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f12 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/arrays/parsed-list-begins-text-text-number.ir b/test/aot/engine-tests/pipeline/arrays/parsed-list-begins-text-text-number.ir index 8fb4c1368e3f..7611d72d9bcf 100644 --- a/test/aot/engine-tests/pipeline/arrays/parsed-list-begins-text-text-number.ir +++ b/test/aot/engine-tests/pipeline/arrays/parsed-list-begins-text-text-number.ir @@ -113,7 +113,7 @@ function f0 module=m0 kind=Module thisType={type=anything} results=[{type=anythi IteratorClose v4 completion=Throw Rethrow v63 } -function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -136,7 +136,7 @@ function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f1 +runtimefunction id=68 function=f1 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -426,7 +426,7 @@ runtimefunction id=69 function=f1 # CHECK-NEXT: Jump -> next b47() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -501,7 +501,7 @@ runtimefunction id=69 function=f1 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f1}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f1} creator=Entrypoint{target=f1 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f1}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f1} creator=Entrypoint{target=f1 arguments=Registers} { # CHECK-NEXT: b0(v0: f1, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f1 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/arrays/position-goes-around-loop-comes-back.ir b/test/aot/engine-tests/pipeline/arrays/position-goes-around-loop-comes-back.ir index fadac8aea38f..38f3eecda655 100644 --- a/test/aot/engine-tests/pipeline/arrays/position-goes-around-loop-comes-back.ir +++ b/test/aot/engine-tests/pipeline/arrays/position-goes-around-loop-comes-back.ir @@ -1437,7 +1437,7 @@ function f27 module=m1 role=Signature thisType={type=anything} results=[{type=an function f28 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1460,7 +1460,7 @@ function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f32 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1484,7 +1484,7 @@ function f32 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f33 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f33 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1508,7 +1508,7 @@ function f33 name="return" module=m3 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f34 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f34 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1565,7 +1565,7 @@ function f35 name="iteratorGenericClose" module=m4 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f36 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1586,7 +1586,7 @@ function f36 name="next" module=m6 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f37 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1637,7 +1637,7 @@ function f37 name="return" module=m6 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f38 name="toLocaleString" module=m7 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=93 thisType={type=undefined|null|Array flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|string site=w81 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f38 name="toLocaleString" module=m7 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=92 thisType={type=undefined|null|Array flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|string site=w81 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|Array, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1767,7 +1767,7 @@ function f39 name="at" module=m7 position=482 kind=Method role=Library flags=[Ha b13(v25): Return v25 } -function f40 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f40 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1789,7 +1789,7 @@ function f40 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f41 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f41 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3631,15 +3631,15 @@ function f91 name="traverseArray" module=m15 position=2337 kind=Method role=Libr Return v555 } runtimefunction id=9 function=f39 -runtimefunction id=69 function=f31 -runtimefunction id=70 function=f32 visibility=Private -runtimefunction id=71 function=f36 visibility=Private -runtimefunction id=72 function=f40 -runtimefunction id=86 function=f33 visibility=Private -runtimefunction id=87 function=f37 -runtimefunction id=88 function=f41 -runtimefunction id=92 function=f34 visibility=Private -runtimefunction id=93 function=f38 +runtimefunction id=68 function=f31 +runtimefunction id=69 function=f32 visibility=Private +runtimefunction id=70 function=f36 visibility=Private +runtimefunction id=71 function=f40 +runtimefunction id=85 function=f33 visibility=Private +runtimefunction id=86 function=f37 +runtimefunction id=87 function=f41 +runtimefunction id=91 function=f34 visibility=Private +runtimefunction id=92 function=f38 runtimefunction id=65574 function=f13 runtimefunction id=65580 function=f12 runtimefunction id=131072 function=f35 visibility=Private @@ -3849,7 +3849,7 @@ runtimefunction id=131091 function=f91 visibility=Private # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L3 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w50 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w51 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f151 layout=L(IteratorResult)} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f151 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f151 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -3906,7 +3906,7 @@ runtimefunction id=131091 function=f91 visibility=Private # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m12 position=1458 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|function site=w98 flags=[IsExpected, OmitsNull, OmitsUndefined]}, {type=Array site=w99 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}, {type=function}] results=[{type=undefined}] capabilities=[MayBeCloned, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f51 parameterMap=[{original=0}, {original=1}, {}]} # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f34}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f34} creator=Entrypoint{target=f34 arguments=Registers} { +# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f34}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f34} creator=Entrypoint{target=f34 arguments=Registers} { # CHECK-NEXT: b0(v0: f34, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f34 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -4075,7 +4075,7 @@ runtimefunction id=131091 function=f91 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f34 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f34} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f34 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f34} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/arrays/record-list-field-read-element-loose.ir b/test/aot/engine-tests/pipeline/arrays/record-list-field-read-element-loose.ir index 44269bfd014c..a6b2e6175289 100644 --- a/test/aot/engine-tests/pipeline/arrays/record-list-field-read-element-loose.ir +++ b/test/aot/engine-tests/pipeline/arrays/record-list-field-read-element-loose.ir @@ -104,7 +104,7 @@ function f1 name="make" module=m0 position=347 flags=[IsChecked, HasExplicitName v10 = Convert v9 declared={type=undefined|null|L0 site=w3 flags=[OmitsNull, OmitsUndefined]} Return v10 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -127,7 +127,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: f0 next make # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}] { @@ -168,7 +168,7 @@ runtimefunction id=69 function=f2 # CHECK-LABEL: function {{*}}name="make" # CHECK: module=m0 position=347 role=ResultWrapper flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=Array site=w2 flags=[OmitsNull, OmitsUndefined]}] results=[{type=L0 site=w3 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces, ClosuresAreReadWithoutCode] creator=ResultWrapper{worker=f4 layout=L0} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -260,7 +260,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Jump -> next b2(v8) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/arrays/rest-after-bound-element.ir b/test/aot/engine-tests/pipeline/arrays/rest-after-bound-element.ir index 196d6393ed8d..ef73fbe30b3e 100644 --- a/test/aot/engine-tests/pipeline/arrays/rest-after-bound-element.ir +++ b/test/aot/engine-tests/pipeline/arrays/rest-after-bound-element.ir @@ -943,7 +943,7 @@ function f19 module=m0 role=Signature thisType={type=anything} results=[{type=an function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14, f22] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14, f22] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -966,7 +966,7 @@ function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f23 +runtimefunction id=68 function=f23 # -- generated: unknowns anys generic all skipped strings union f13 # CHECK-LABEL: function {{*}}name="unknowns" # CHECK: module=m0 position=108 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|Array site=w2 flags=[OmitsNull, OmitsUndefined]}] results=[{type=Array site=w3 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f14] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/pipeline/arrays/rest-of-destructured-list-asked-length.ir b/test/aot/engine-tests/pipeline/arrays/rest-of-destructured-list-asked-length.ir index e45bc4009d5f..c5e4c5d2c22f 100644 --- a/test/aot/engine-tests/pipeline/arrays/rest-of-destructured-list-asked-length.ir +++ b/test/aot/engine-tests/pipeline/arrays/rest-of-destructured-list-asked-length.ir @@ -135,7 +135,7 @@ function f1 name="head" module=m0 position=209 flags=[IsChecked, HasExplicitName IteratorClose v1 completion=Throw Rethrow v29 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -158,7 +158,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: f0 head next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -248,7 +248,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f17 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f17 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f17 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -479,13 +479,13 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Rethrow v95 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b16() diff --git a/test/aot/engine-tests/pipeline/arrays/stores-between-arrays-of-every-storage.ir b/test/aot/engine-tests/pipeline/arrays/stores-between-arrays-of-every-storage.ir index 8f1b9c3aa252..5dd4d9725a13 100644 --- a/test/aot/engine-tests/pipeline/arrays/stores-between-arrays-of-every-storage.ir +++ b/test/aot/engine-tests/pipeline/arrays/stores-between-arrays-of-every-storage.ir @@ -145,7 +145,7 @@ function f1 name="fill" module=m0 flags=[IsChecked, HasExplicitName] length=2 th v17 = Undefined Return v17 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -168,7 +168,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: f0 next fill # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f4 parent=1 isTailCall=true module=m0}] { @@ -623,7 +623,7 @@ runtimefunction id=69 function=f2 # CHECK-LABEL: function {{*}}name="fill" # CHECK: module=m0 role=EntryChecks flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|null|Array site=w1 flags=[IsExpected, OmitsNull, OmitsUndefined]}, {type=undefined|null|Array site=w2 flags=[IsExpected, OmitsNull, OmitsUndefined]}] results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] creator=EntryChecks{body=f4 fallback=f5} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f9 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f9 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f9 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -654,13 +654,13 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/async/every-job-under-the-store-it-captured.ir b/test/aot/engine-tests/pipeline/async/every-job-under-the-store-it-captured.ir index a6b0ab3a1862..eb81c429ecc0 100644 --- a/test/aot/engine-tests/pipeline/async/every-job-under-the-store-it-captured.ir +++ b/test/aot/engine-tests/pipeline/async/every-job-under-the-store-it-captured.ir @@ -2601,7 +2601,7 @@ function f98 module=m2 role=Signature thisType={type=anything} results=[{type=an function f99 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f100 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f101 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f102 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f102 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -4982,7 +4982,7 @@ function f293 module=m14 kind=Module role=Library flags=[IsChecked] thisType={ty function f294 name="matchesGlob" module=m14 position=3424 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w414}, {type=undefined|null|string site=w415 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w416 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w417}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f104 runtimefunction id=4 function=f103 -runtimefunction id=69 function=f102 +runtimefunction id=68 function=f102 runtimefunction id=65574 function=f84 runtimefunction id=65580 function=f83 # -- generated: f0 log waits macrotask here f7 f8 f10 f11 f12 f15 f16 f17 f18 f19 f22 f23 f24 f25 f26 f27 f29 f30 f31 f32 f33 f34 f35 f84 diff --git a/test/aot/engine-tests/pipeline/async/first-async-function-program-reads.ir b/test/aot/engine-tests/pipeline/async/first-async-function-program-reads.ir index 27ad9b6757ff..e0ffd60dcd57 100644 --- a/test/aot/engine-tests/pipeline/async/first-async-function-program-reads.ir +++ b/test/aot/engine-tests/pipeline/async/first-async-function-program-reads.ir @@ -1181,7 +1181,7 @@ function f26 module=m1 role=Signature thisType={type=anything} results=[{type=an function f27 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f28 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f30 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2022,7 +2022,7 @@ function f74 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type } function f75 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f31 -runtimefunction id=69 function=f30 +runtimefunction id=68 function=f30 runtimefunction id=65574 function=f12 runtimefunction id=65580 function=f11 # -- generated: f0 make overwriteStack f12 next nextTick fillsMap @@ -2106,7 +2106,7 @@ runtimefunction id=65580 function=f11 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L2 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w12 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f126 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f126 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f126 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2184,7 +2184,7 @@ runtimefunction id=65580 function=f11 # CHECK-NEXT: Return v25 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f30}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f30} creator=Entrypoint{target=f30 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f30}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f30} creator=Entrypoint{target=f30 arguments=Registers} { # CHECK-NEXT: b0(v0: f30, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f30 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2353,7 +2353,7 @@ runtimefunction id=65580 function=f11 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f30 parameterMap=[{original=0}]} creator=ResultWorker{origin=f30} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f30 parameterMap=[{original=0}]} creator=ResultWorker{origin=f30} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/async/functions-read-args-stack-suspend.ir b/test/aot/engine-tests/pipeline/async/functions-read-args-stack-suspend.ir index a58756e9b577..8afdc4677584 100644 --- a/test/aot/engine-tests/pipeline/async/functions-read-args-stack-suspend.ir +++ b/test/aot/engine-tests/pipeline/async/functions-read-args-stack-suspend.ir @@ -1497,7 +1497,7 @@ function f51 module=m1 role=Signature thisType={type=anything} results=[{type=an function f52 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f55 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f55 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1520,7 +1520,7 @@ function f55 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f56 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="reduce" module=m3 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1675,7 +1675,7 @@ function f57 name="apply" module=m4 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f58 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f58 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1699,7 +1699,7 @@ function f58 name="next" module=m5 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f59 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f59 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2575,10 +2575,10 @@ function f105 name="matchesGlob" module=m12 position=3105 role=Library flags=[Is runtimefunction id=0 function=f60 runtimefunction id=4 function=f57 runtimefunction id=5 function=f63 -runtimefunction id=69 function=f55 -runtimefunction id=70 function=f58 visibility=Private -runtimefunction id=82 function=f56 -runtimefunction id=86 function=f59 visibility=Private +runtimefunction id=68 function=f55 +runtimefunction id=69 function=f58 visibility=Private +runtimefunction id=81 function=f56 +runtimefunction id=85 function=f59 visibility=Private runtimefunction id=65574 function=f37 runtimefunction id=65580 function=f36 # -- generated: f0 callByName below restAsync argumentsAsync restGenerator restAsyncGenerator method fixed pending arrowAsync f16 f37 return @@ -2739,7 +2739,7 @@ runtimefunction id=65580 function=f36 # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f183 layout=L(IteratorResult)} { +# CHECK: module=m5 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f183 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f183 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -3173,7 +3173,7 @@ runtimefunction id=65580 function=f36 # CHECK-NEXT: Return v71 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f59}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f59} creator=Entrypoint{target=f59 arguments=Registers} { +# CHECK: module=m5 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f59}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f59} creator=Entrypoint{target=f59 arguments=Registers} { # CHECK-NEXT: b0(v0: f59, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f59 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -3253,7 +3253,7 @@ runtimefunction id=65580 function=f36 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f59 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f59} { +# CHECK: module=m5 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f59 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f59} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/async/param-generator-function-evaluated-call.ir b/test/aot/engine-tests/pipeline/async/param-generator-function-evaluated-call.ir index f49f42bcb5e3..2262f9327487 100644 --- a/test/aot/engine-tests/pipeline/async/param-generator-function-evaluated-call.ir +++ b/test/aot/engine-tests/pipeline/async/param-generator-function-evaluated-call.ir @@ -200,8 +200,8 @@ function f44 module=m0 role=Signature thisType={type=anything} results=[{type=an function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f48 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f49 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f48 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f49 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 check=IsGenerator v3 = ResultAt v2 @@ -219,12 +219,12 @@ function f49 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f50 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f51 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f48 -runtimefunction id=70 function=f49 visibility=Private -runtimefunction id=86 function=f50 visibility=Private -runtimefunction id=92 function=f51 visibility=Private +function f50 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f51 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=68 function=f48 +runtimefunction id=69 function=f49 visibility=Private +runtimefunction id=85 function=f50 visibility=Private +runtimefunction id=91 function=f51 visibility=Private # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f15 callPosition=4294967295 module=m0}, {callee=f49 callPosition=4294967295 module=m2}, {callee=f49 callPosition=4294967295 parent=1 module=m2}, {callee=f53 callPosition=25 parent=3 module=m2}] { @@ -318,9 +318,9 @@ runtimefunction id=92 function=f51 visibility=Private # CHECK-NEXT: Jump -> next b3(v34) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f53 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f53 callPosition=25 module=m2}] { +# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f53 layout=L(IteratorResult)} inlineFrames=[{}, {callee=f53 callPosition=25 module=m2}] { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -343,7 +343,7 @@ runtimefunction id=92 function=f51 visibility=Private # CHECK-NEXT: Return v15 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f49 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f49} { +# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f49 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f49} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: int[0, 2] = ResultAt v2 index=1 @@ -363,7 +363,7 @@ runtimefunction id=92 function=f51 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f49}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f49} creator=Entrypoint{target=f49 arguments=Registers} inlineFrames=[{}, {callee=f49 callPosition=25 isTailCall=true module=m2}, {callee=f53 callPosition=25 parent=1 module=m2}] { +# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f49}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f49} creator=Entrypoint{target=f49 arguments=Registers} inlineFrames=[{}, {callee=f49 callPosition=25 isTailCall=true module=m2}, {callee=f53 callPosition=25 parent=1 module=m2}] { # CHECK-NEXT: b0(v0: f49, v1: anything, v2: anything): # CHECK-NEXT: v3: anything ~ Generator = Upcast v1 castType=anything # CHECK-NEXT: v4: undefined = StepGenerator v3, v2 check=IsGenerator diff --git a/test/aot/engine-tests/pipeline/async/variable-object-first-turn-number-await.ir b/test/aot/engine-tests/pipeline/async/variable-object-first-turn-number-await.ir index 8db3d9813624..6a79227f8139 100644 --- a/test/aot/engine-tests/pipeline/async/variable-object-first-turn-number-await.ir +++ b/test/aot/engine-tests/pipeline/async/variable-object-first-turn-number-await.ir @@ -1067,7 +1067,7 @@ function f19 module=m1 role=Signature thisType={type=anything} results=[{type=an function f20 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1845,7 +1845,7 @@ function f64 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f65 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w142}, {type=undefined|null|string site=w143 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w144 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w145}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f23 +runtimefunction id=68 function=f23 runtimefunction id=65574 function=f5 runtimefunction id=65580 function=f4 # -- generated: f0 Box f3 f4 f5 startRing next f24 f27 f28 listOf setUp nextTick f49 newTickObject pushTickObject takeTickObject pushWithList f start @@ -1931,7 +1931,7 @@ runtimefunction id=65580 function=f4 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L2 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w28 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w29 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f114 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f114 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f114 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2192,7 +2192,7 @@ runtimefunction id=65580 function=f4 # CHECK-NEXT: Return v46 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { # CHECK-NEXT: b0(v0: f23, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f23 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2463,7 +2463,7 @@ runtimefunction id=65580 function=f4 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/backend-claims/read-from-text-used-when-text-gone.ir b/test/aot/engine-tests/pipeline/backend-claims/read-from-text-used-when-text-gone.ir index 147e5a5fee69..03e5b839c7a8 100644 --- a/test/aot/engine-tests/pipeline/backend-claims/read-from-text-used-when-text-gone.ir +++ b/test/aot/engine-tests/pipeline/backend-claims/read-from-text-used-when-text-gone.ir @@ -600,7 +600,7 @@ function f7 name="onEveryTurn" module=m0 position=2108 flags=[HasExplicitName] l } function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -623,7 +623,7 @@ function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f10 +runtimefunction id=68 function=f10 # -- generated: f0 textOf madeFarDown digested ends whereAsked onEveryTurn next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f7 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}] { @@ -977,7 +977,7 @@ runtimefunction id=69 function=f10 # CHECK-NEXT: Return v36 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f14 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f14 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f14 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -986,13 +986,13 @@ runtimefunction id=69 function=f10 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f10}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f10} creator=Entrypoint{target=f10 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f10}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f10} creator=Entrypoint{target=f10 arguments=Registers} { # CHECK-NEXT: b0(v0: f10, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f10 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f10 parameterMap=[{original=0}]} creator=ResultWorker{origin=f10} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f10 parameterMap=[{original=0}]} creator=ResultWorker{origin=f10} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/builtin-modules/members-compiled-module-read-object-body.ir b/test/aot/engine-tests/pipeline/builtin-modules/members-compiled-module-read-object-body.ir index bbf9ac32f518..c3b146441161 100644 --- a/test/aot/engine-tests/pipeline/builtin-modules/members-compiled-module-read-object-body.ir +++ b/test/aot/engine-tests/pipeline/builtin-modules/members-compiled-module-read-object-body.ir @@ -164,7 +164,7 @@ function f1 name="countCharacters" module=m0 position=431 flags=[IsChecked, HasE Rethrow v41 } function f2 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -287,7 +287,7 @@ function f4 module=m2 kind=Module role=Library flags=[IsChecked] thisType={type= Return v39 } function f5 name="matchesGlob" module=m2 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w9}, {type=undefined|null|string site=w10 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w12}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 countCharacters next f4 # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -498,7 +498,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -647,7 +647,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v31 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/builtins-on-typed-objects/positions-that-may-be-undefined.ir b/test/aot/engine-tests/pipeline/builtins-on-typed-objects/positions-that-may-be-undefined.ir index 1b2a187c58ad..38af9ac06f21 100644 --- a/test/aot/engine-tests/pipeline/builtins-on-typed-objects/positions-that-may-be-undefined.ir +++ b/test/aot/engine-tests/pipeline/builtins-on-typed-objects/positions-that-may-be-undefined.ir @@ -601,8 +601,8 @@ function f12 name="codePointAt" module=m0 position=1235 flags=[IsChecked, HasExp function f13 module=m0 position=2538 kind=Arrow flags=[IsChecked] length=2 thisType={type=anything} parameters=[{type=undefined|null|string site=w97 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w98}] results=[{type=boolean site=w99}] functionTypes=[f14] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f15] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f17 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f17 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.filter requires that |this| not be null or undefined" @@ -700,8 +700,8 @@ function f29 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChe function f30 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w173}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f31 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w174 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w175}, {type=undefined|number site=w176}, {type=number site=w177}, {type=undefined|null|Array site=w178 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=8 function=f18 -runtimefunction id=33 function=f17 -runtimefunction id=69 function=f16 +runtimefunction id=32 function=f17 +runtimefunction id=68 function=f16 runtimefunction id=131087 function=f24 runtimefunction id=131088 function=f22 runtimefunction id=131091 function=f31 visibility=Private diff --git a/test/aot/engine-tests/pipeline/builtins/array-array-callable-proxies-typeof.ir b/test/aot/engine-tests/pipeline/builtins/array-array-callable-proxies-typeof.ir index 81639ccf75a7..ec24fe4499de 100644 --- a/test/aot/engine-tests/pipeline/builtins/array-array-callable-proxies-typeof.ir +++ b/test/aot/engine-tests/pipeline/builtins/array-array-callable-proxies-typeof.ir @@ -699,7 +699,7 @@ function f44 module=m0 role=Signature thisType={type=anything} results=[{type=an function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16, f29, f46] -function f48 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f48 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -722,7 +722,7 @@ function f48 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f49 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f49 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -895,7 +895,7 @@ function f51 name="apply" module=m3 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f52 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f52 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -919,7 +919,7 @@ function f52 name="next" module=m4 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f53 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f53 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -943,7 +943,7 @@ function f53 name="return" module=m4 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f54 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f54 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1000,7 +1000,7 @@ function f55 name="iteratorGenericClose" module=m5 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f56 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1021,7 +1021,7 @@ function f56 name="next" module=m6 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f57 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f57 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1104,7 +1104,7 @@ function f58 name="apply" module=m7 position=1385 kind=Method role=Library flags v16 = ThrowNewError errorKind=TypeError message="Reflect.apply requires the first argument be a function" Unreachable } -function f59 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f59 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1126,7 +1126,7 @@ function f59 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f60 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f60 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1166,15 +1166,15 @@ function f60 name="return" module=m8 position=2171 kind=Method role=Library flag runtimefunction id=4 function=f51 runtimefunction id=5 function=f58 runtimefunction id=12 function=f50 -runtimefunction id=44 function=f49 -runtimefunction id=69 function=f48 -runtimefunction id=70 function=f52 visibility=Private -runtimefunction id=71 function=f56 visibility=Private -runtimefunction id=72 function=f59 -runtimefunction id=86 function=f53 visibility=Private -runtimefunction id=87 function=f57 -runtimefunction id=88 function=f60 -runtimefunction id=92 function=f54 visibility=Private +runtimefunction id=43 function=f49 +runtimefunction id=68 function=f48 +runtimefunction id=69 function=f52 visibility=Private +runtimefunction id=70 function=f56 visibility=Private +runtimefunction id=71 function=f59 +runtimefunction id=85 function=f53 visibility=Private +runtimefunction id=86 function=f57 +runtimefunction id=87 function=f60 +runtimefunction id=91 function=f54 visibility=Private runtimefunction id=131072 function=f55 visibility=Private # -- generated: f0 ofParameter behindNotObject ofFunctionOrList unused inLoop byCall byReflect f8 f9 f10 f11 f15 call apply throw iteratorGenericClose # CHECK-LABEL: function f0 module= @@ -1647,7 +1647,7 @@ runtimefunction id=131072 function=f55 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f94 layout=L(IteratorResult)} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f94 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f94 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1731,7 +1731,7 @@ runtimefunction id=131072 function=f55 visibility=Private # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f54}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f54} creator=Entrypoint{target=f54 arguments=Registers} { +# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f54}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f54} creator=Entrypoint{target=f54 arguments=Registers} { # CHECK-NEXT: b0(v0: f54, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f54 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -1809,7 +1809,7 @@ runtimefunction id=131072 function=f55 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f54 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f54} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f54 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f54} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/builtins/iso-text-of-date-same-every-way-builtin.ir b/test/aot/engine-tests/pipeline/builtins/iso-text-of-date-same-every-way-builtin.ir index f1b5b85a9781..2ac1535a6f0d 100644 --- a/test/aot/engine-tests/pipeline/builtins/iso-text-of-date-same-every-way-builtin.ir +++ b/test/aot/engine-tests/pipeline/builtins/iso-text-of-date-same-every-way-builtin.ir @@ -391,8 +391,8 @@ function f36 module=m0 role=Signature thisType={type=anything} results=[{type=an function f37 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f38 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[DatePrototypeToISOString] -function f40 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f41 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f40 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f41 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f42 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f43 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="apply" module=m4 position=1385 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=3 enclosingRuntimeFunction=5 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -406,8 +406,8 @@ function f51 name="traverseArray" module=m5 position=2337 kind=Method role=Libra runtimefunction id=4 function=f43 runtimefunction id=5 function=f44 runtimefunction id=12 function=f42 -runtimefunction id=33 function=f41 -runtimefunction id=69 function=f40 +runtimefunction id=32 function=f41 +runtimefunction id=68 function=f40 runtimefunction id=131091 function=f51 visibility=Private # -- generated: f0 fromParts # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/pipeline/builtins/number-called-function-all-kinds-value.ir b/test/aot/engine-tests/pipeline/builtins/number-called-function-all-kinds-value.ir index 0bf23f01adf8..651cb41d5d2d 100644 --- a/test/aot/engine-tests/pipeline/builtins/number-called-function-all-kinds-value.ir +++ b/test/aot/engine-tests/pipeline/builtins/number-called-function-all-kinds-value.ir @@ -694,7 +694,7 @@ function f27 module=m0 role=Signature thisType={type=anything} results=[{type=an function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -717,7 +717,7 @@ function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f32 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1820,8 +1820,8 @@ function f39 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f32 -runtimefunction id=69 function=f31 +runtimefunction id=64 function=f32 +runtimefunction id=68 function=f31 runtimefunction id=131091 function=f39 visibility=Private # -- generated: f0 show ofString ofOptionalString ofAnything f5 f6 f7 f8 f9 f10 f11 f15 valueOf next storeInNewArray joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -2245,7 +2245,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Throw v1 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f62 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f62 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f62 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2347,7 +2347,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { # CHECK-NEXT: b0(v0: f31, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f31 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2372,7 +2372,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/builtins/walks-over-maps-and-sets-all-kinds-table.ir b/test/aot/engine-tests/pipeline/builtins/walks-over-maps-and-sets-all-kinds-table.ir index 3de666374d56..a8bfe83be1a0 100644 --- a/test/aot/engine-tests/pipeline/builtins/walks-over-maps-and-sets-all-kinds-table.ir +++ b/test/aot/engine-tests/pipeline/builtins/walks-over-maps-and-sets-all-kinds-table.ir @@ -2166,7 +2166,7 @@ function f43 module=m0 role=Signature thisType={type=anything} results=[{type=an function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f46] function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f47 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -2472,13 +2472,13 @@ function f47 name="from" module=m1 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f48 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f48 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f49 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f49 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2501,7 +2501,7 @@ function f49 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f50 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f50 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2564,7 +2564,7 @@ function f50 name="map" module=m3 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f51 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f51 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2588,7 +2588,7 @@ function f51 name="next" module=m4 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f52 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f52 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2612,7 +2612,7 @@ function f52 name="return" module=m4 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f53 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f53 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2669,7 +2669,7 @@ function f54 name="iteratorGenericClose" module=m5 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f55 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f55 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2690,7 +2690,7 @@ function f55 name="next" module=m6 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f56 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2741,7 +2741,7 @@ function f56 name="return" module=m6 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f57 name="groupBy" module=m7 position=1339 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=59 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f57 name="groupBy" module=m7 position=1339 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=58 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2858,13 +2858,13 @@ function f57 name="groupBy" module=m7 position=1339 kind=Method role=Library fla v63 = ThrowNewError errorKind=TypeError message="Map.groupBy requires that the second argument must be a function" Unreachable } -function f58 name="[Symbol.iterator]" module=m7 position=2287 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=59 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f58 name="[Symbol.iterator]" module=m7 position=2287 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=58 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f59 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f59 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2886,7 +2886,7 @@ function f59 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f60 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f60 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3963,17 +3963,17 @@ function f67 name="traverseArray" module=m9 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=47 function=f47 -runtimefunction id=59 function=f57 -runtimefunction id=65 function=f50 -runtimefunction id=69 function=f49 -runtimefunction id=70 function=f51 visibility=Private -runtimefunction id=71 function=f55 visibility=Private -runtimefunction id=72 function=f59 -runtimefunction id=86 function=f52 visibility=Private -runtimefunction id=87 function=f56 -runtimefunction id=88 function=f60 -runtimefunction id=92 function=f53 visibility=Private +runtimefunction id=46 function=f47 +runtimefunction id=58 function=f57 +runtimefunction id=64 function=f50 +runtimefunction id=68 function=f49 +runtimefunction id=69 function=f51 visibility=Private +runtimefunction id=70 function=f55 visibility=Private +runtimefunction id=71 function=f59 +runtimefunction id=85 function=f52 visibility=Private +runtimefunction id=86 function=f56 +runtimefunction id=87 function=f60 +runtimefunction id=91 function=f53 visibility=Private runtimefunction id=131072 function=f54 visibility=Private runtimefunction id=131091 function=f67 visibility=Private # -- generated: note show walkSet f12 f13 f14 f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 Counted throw set changing @@ -4388,7 +4388,7 @@ runtimefunction id=131091 function=f67 visibility=Private # CHECK-LABEL: function {{*}}name="set" # CHECK: module=m0 position=6883 kind=Method role=EntryChecks flags=[HasThis, IsChecked, HasExplicitName] length=2 thisType={type=L0 site=w123 flags=[IsExpected]} parameters=[{type=anything site=w121}, {type=anything site=w122}] results=[{type=undefined|null|L0 site=w124 flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] creator=EntryChecks{body=f82 fallback=f96} # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f143 layout=L(IteratorResult)} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f143 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f143 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -4434,7 +4434,7 @@ runtimefunction id=131091 function=f67 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f53}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f53} creator=Entrypoint{target=f53 arguments=Registers} { +# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f53}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f53} creator=Entrypoint{target=f53 arguments=Registers} { # CHECK-NEXT: b0(v0: f53, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f53 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -4544,7 +4544,7 @@ runtimefunction id=131091 function=f67 visibility=Private # CHECK-NEXT: Jump -> next b4() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f53 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f53} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f53 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f53} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/builtins/walks-over-written-tables-number-keys.ir b/test/aot/engine-tests/pipeline/builtins/walks-over-written-tables-number-keys.ir index 12882b50c5a8..c6f14a371727 100644 --- a/test/aot/engine-tests/pipeline/builtins/walks-over-written-tables-number-keys.ir +++ b/test/aot/engine-tests/pipeline/builtins/walks-over-written-tables-number-keys.ir @@ -2119,7 +2119,7 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2142,7 +2142,7 @@ function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f23 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="reduce" module=m2 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): Jump -> next b1() b1(): @@ -2277,7 +2277,7 @@ function f23 name="reduce" module=m2 position=1398 kind=Method role=Library flag v94 = ThrowNewError errorKind=TypeError message="Array.prototype.reduce callback must be a function" Unreachable } -function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2340,7 +2340,7 @@ function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f25 name="forEach" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="forEach" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=45 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3442,10 +3442,10 @@ function f32 name="traverseArray" module=m5 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=46 function=f25 -runtimefunction id=65 function=f24 -runtimefunction id=69 function=f22 -runtimefunction id=82 function=f23 +runtimefunction id=45 function=f25 +runtimefunction id=64 function=f24 +runtimefunction id=68 function=f22 +runtimefunction id=81 function=f23 runtimefunction id=131091 function=f32 visibility=Private # -- generated: say writtenMap writtenSet keysOf valuesOf textsOf sumOf listOf keySum mixedOf f11 f14 next # CHECK-LABEL: function {{*}}name="say" @@ -3834,7 +3834,7 @@ runtimefunction id=131091 function=f32 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f45 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f45 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f45 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -3843,13 +3843,13 @@ runtimefunction id=131091 function=f32 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f22}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f22}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { # CHECK-NEXT: b0(v0: f22, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f22 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}]} creator=ResultWorker{origin=f22} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}]} creator=ResultWorker{origin=f22} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/calls-fast-paths/number-result-boxed-by-stub.ir b/test/aot/engine-tests/pipeline/calls-fast-paths/number-result-boxed-by-stub.ir index 67b7eb48a68a..264d8453898d 100644 --- a/test/aot/engine-tests/pipeline/calls-fast-paths/number-result-boxed-by-stub.ir +++ b/test/aot/engine-tests/pipeline/calls-fast-paths/number-result-boxed-by-stub.ir @@ -589,7 +589,7 @@ function f16 module=m0 role=Signature thisType={type=anything} results=[{type=an function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f19] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -612,7 +612,7 @@ function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1715,8 +1715,8 @@ function f28 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f21 -runtimefunction id=69 function=f20 +runtimefunction id=64 function=f21 +runtimefunction id=68 function=f20 runtimefunction id=131091 function=f28 visibility=Private # -- generated: addOne half negate xOf pick firstOf plusOneOrNaN show f9 next # CHECK-LABEL: function {{*}}name="addOne" @@ -1830,7 +1830,7 @@ runtimefunction id=131091 function=f28 visibility=Private # CHECK-NEXT: ReturnCall v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f57 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f57 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f57 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2062,7 +2062,7 @@ runtimefunction id=131091 function=f28 visibility=Private # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f20}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f20} creator=Entrypoint{target=f20 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f20}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f20} creator=Entrypoint{target=f20 arguments=Registers} { # CHECK-NEXT: b0(v0: f20, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f20 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2146,7 +2146,7 @@ runtimefunction id=131091 function=f28 visibility=Private # CHECK-LABEL: function {{*}}name="show" # CHECK: module=m0 position=1093 kind=Arrow role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f20 parameterMap=[{original=0}]} creator=ResultWorker{origin=f20} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f20 parameterMap=[{original=0}]} creator=ResultWorker{origin=f20} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/calls/call-site-expecting-bound-method-untyped.ir b/test/aot/engine-tests/pipeline/calls/call-site-expecting-bound-method-untyped.ir index 642730dd4918..26143dfbcded 100644 --- a/test/aot/engine-tests/pipeline/calls/call-site-expecting-bound-method-untyped.ir +++ b/test/aot/engine-tests/pipeline/calls/call-site-expecting-bound-method-untyped.ir @@ -864,7 +864,7 @@ function f43 module=m0 role=Signature thisType={type=anything} results=[{type=an function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -887,7 +887,7 @@ function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f47 +runtimefunction id=68 function=f47 # -- generated: asAValue asAMember takenApart withMoreArguments withNoArgument withAText inALoop add f12 f13 f14 f15 f16 f17 f18 f19 f20 f21 # CHECK-LABEL: function {{*}}name="asAValue" # CHECK: module=m0 position=383 flags=[HasExplicitName] length=2 thisType={type=anything} parameters=[{type=L0}, {type=int[0, 7]}] results=[{type=number|string}] functionTypes=[f25] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] inlineFrames=[{}, {callee=f62 callPosition=4294967295 isTailCall=true calleeIsPredicted=true module=m0}, {callee=f11 callPosition=4294967295 isTailCall=true module=m0}, {callee=f11 callPosition=311 parent=1 isTailCall=true module=m0}] { diff --git a/test/aot/engine-tests/pipeline/calls/callback-handed-flat-map-arrow-until.ir b/test/aot/engine-tests/pipeline/calls/callback-handed-flat-map-arrow-until.ir index 535e2e332a09..6456090a2837 100644 --- a/test/aot/engine-tests/pipeline/calls/callback-handed-flat-map-arrow-until.ir +++ b/test/aot/engine-tests/pipeline/calls/callback-handed-flat-map-arrow-until.ir @@ -188,9 +188,9 @@ function f10 module=m0 role=Signature thisType={type=anything} results=[{type=an function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f14 name="flatIntoArray" module=m1 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f15 name="flatIntoArrayWithCallback" module=m1 position=9316 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=41 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f16 name="flatMap" module=m1 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=42 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="flatIntoArray" module=m1 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f15 name="flatIntoArrayWithCallback" module=m1 position=9316 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f16 name="flatMap" module=m1 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=41 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = ToObject v0 message="Array.prototype.flatMap requires that |this| not be null or undefined" v4 = PropGet v3 key="length" @@ -403,9 +403,9 @@ function f23 name="traverseArray" module=m2 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w68} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=40 function=f14 visibility=Private -runtimefunction id=41 function=f15 visibility=Private -runtimefunction id=42 function=f16 +runtimefunction id=39 function=f14 visibility=Private +runtimefunction id=40 function=f15 visibility=Private +runtimefunction id=41 function=f16 runtimefunction id=131091 function=f23 visibility=Private # -- generated: f0 use walk flatMap # CHECK-LABEL: function f0 module= @@ -455,7 +455,7 @@ runtimefunction id=131091 function=f23 visibility=Private # CHECK-NEXT: ReturnCall v1 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="flatMap" -# CHECK: module=m1 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=42 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=41 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.flatMap requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -482,7 +482,7 @@ runtimefunction id=131091 function=f23 visibility=Private # CHECK-NEXT: ReturnCall v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="flatMap" -# CHECK: module=m1 position=10078 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=42 captures=[{type=f16}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { +# CHECK: module=m1 position=10078 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=41 captures=[{type=f16}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { # CHECK-NEXT: b0(v0: f16, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: anything = CallDirect v1, v2, v3 function=f16 # CHECK-NEXT: ReturnCall v4 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/calls/caller-that-answers-of-tests-at-entrance.ir b/test/aot/engine-tests/pipeline/calls/caller-that-answers-of-tests-at-entrance.ir index ed29d3eeac90..70095954b31d 100644 --- a/test/aot/engine-tests/pipeline/calls/caller-that-answers-of-tests-at-entrance.ir +++ b/test/aot/engine-tests/pipeline/calls/caller-that-answers-of-tests-at-entrance.ir @@ -1073,7 +1073,7 @@ function f23 module=m0 role=Signature thisType={type=anything} results=[{type=an function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f26] function f26 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f27 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -4346,7 +4346,7 @@ function f49 name="sort" module=m2 position=21596 kind=Method role=Library flags v188 = Call v187, v0, v1 calleeKey="sort" calleeName="this.sort" ReturnCall v188 casts=[{declared={type=undefined|null|Array site=w151 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f27 +runtimefunction id=68 function=f27 runtimefunction id=131089 function=f49 # -- generated: combine optional descend withProvenCountAndBox withProvenLabel withNothingProven withFewerArguments callsOptional note Box Crate toString valueOf f15 format viaAny f18 next makeCounter # CHECK-LABEL: function {{*}}name="combine" @@ -4597,7 +4597,7 @@ runtimefunction id=131089 function=f49 # CHECK-NEXT: Jump -> next b2() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f69 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f69 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f69 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -4726,7 +4726,7 @@ runtimefunction id=131089 function=f49 # CHECK-NEXT: Return # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f27}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f27}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} { # CHECK-NEXT: b0(v0: f27, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f27 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -4793,7 +4793,7 @@ runtimefunction id=131089 function=f49 # CHECK-LABEL: function {{*}}name="viaAny" # CHECK: module=m0 position=2001 role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 captures=[{type=f17}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f17} creator=Entrypoint{target=f17 arguments=Registers} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f27 parameterMap=[{original=0}]} creator=ResultWorker{origin=f27} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f27 parameterMap=[{original=0}]} creator=ResultWorker{origin=f27} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/calls/deep-tail-recursion-through-rest-param.ir b/test/aot/engine-tests/pipeline/calls/deep-tail-recursion-through-rest-param.ir index b9b9feeab1d8..a1f02c3c2acc 100644 --- a/test/aot/engine-tests/pipeline/calls/deep-tail-recursion-through-rest-param.ir +++ b/test/aot/engine-tests/pipeline/calls/deep-tail-recursion-through-rest-param.ir @@ -441,7 +441,7 @@ function f8 module=m0 role=Signature thisType={type=anything} results=[{type=any function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -485,7 +485,7 @@ function f13 name="apply" module=m2 position=1161 kind=Method role=Library flags ReturnCall v10 } runtimefunction id=4 function=f13 -runtimefunction id=69 function=f12 +runtimefunction id=68 function=f12 # -- generated: f0 throughValue byName surplus applies literal even odd # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { diff --git a/test/aot/engine-tests/pipeline/calls/deep-tail-recursion.ir b/test/aot/engine-tests/pipeline/calls/deep-tail-recursion.ir index c4092cfeb4b1..90d6f3efacdd 100644 --- a/test/aot/engine-tests/pipeline/calls/deep-tail-recursion.ir +++ b/test/aot/engine-tests/pipeline/calls/deep-tail-recursion.ir @@ -2860,7 +2860,7 @@ function f175 module=m0 role=Signature thisType={type=anything} results=[{type=a function f176 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f111] function f177 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f178 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f177] -function f179 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f179 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2999,7 +2999,7 @@ function f181 name="apply" module=m2 position=1161 kind=Method role=Library flag } runtimefunction id=4 function=f181 runtimefunction id=12 function=f180 -runtimefunction id=69 function=f179 +runtimefunction id=68 function=f179 # -- generated: selfAnd doubles objects voids many nested inCatch inFinally inSwitch C s f44 g arrow f54 f55 f56 f57 f58 f59 f60 f61 f62 f63 f64 f65 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f81 f82 f83 f84 f85 f86 f87 f88 f89 byValue f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f105 anyValue t p m loop fresh # CHECK-LABEL: function {{*}}name="selfAnd" # CHECK: module=m0 position=767 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=int|whole site=w6}] results=[{type=true site=w7}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/pipeline/calls/helper-calls-handed-called-walk-list.ir b/test/aot/engine-tests/pipeline/calls/helper-calls-handed-called-walk-list.ir index 9d91ec568938..6be200234deb 100644 --- a/test/aot/engine-tests/pipeline/calls/helper-calls-handed-called-walk-list.ir +++ b/test/aot/engine-tests/pipeline/calls/helper-calls-handed-called-walk-list.ir @@ -296,7 +296,7 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f9] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f21 name="findLastIndex" module=m1 position=8031 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=number site=w22}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="findLastIndex" module=m1 position=8031 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=38 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=number site=w22}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1449,7 +1449,7 @@ function f30 name="traverseArray" module=m4 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f22 runtimefunction id=5 function=f23 -runtimefunction id=39 function=f21 +runtimefunction id=38 function=f21 runtimefunction id=131091 function=f30 visibility=Private # -- generated: f0 callTwice walk f3 f4 f5 findLastIndex apply clampToLength storeInNewArray appendParts joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -1640,7 +1640,7 @@ runtimefunction id=131091 function=f30 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="findLastIndex" -# CHECK: module=m1 position=8031 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=39 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=int[-1, 9007199254740990] site=w22}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=8031 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=38 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=int[-1, 9007199254740990] site=w22}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.findLastIndex requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -2030,7 +2030,7 @@ runtimefunction id=131091 function=f30 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="findLastIndex" -# CHECK: module=m1 position=8031 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=39 captures=[{type=f21}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f21} creator=Entrypoint{target=f21 arguments=Registers} { +# CHECK: module=m1 position=8031 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=38 captures=[{type=f21}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f21} creator=Entrypoint{target=f21 arguments=Registers} { # CHECK-NEXT: b0(v0: f21, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: int[-1, 9007199254740990] = CallDirect v1, v2, v3 function=f21 @8031 tail # CHECK-NEXT: Return v4 diff --git a/test/aot/engine-tests/pipeline/calls/long-row-of-chained-calls-hands-closures.ir b/test/aot/engine-tests/pipeline/calls/long-row-of-chained-calls-hands-closures.ir index 4d1cfdfb83f6..271cce4a2d88 100644 --- a/test/aot/engine-tests/pipeline/calls/long-row-of-chained-calls-hands-closures.ir +++ b/test/aot/engine-tests/pipeline/calls/long-row-of-chained-calls-hands-closures.ir @@ -481,7 +481,7 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -552,7 +552,7 @@ function f23 name="at" module=m2 position=10565 kind=Method role=Library flags=[ Return v29 } runtimefunction id=8 function=f23 -runtimefunction id=69 function=f22 +runtimefunction id=68 function=f22 # -- generated: f0 reachedThroughTheLastClosureAlone Command run f8 f9 f10 f11 f12 f13 next at # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f29 callPosition=4294967295 isConstruction=true module=m0}] { @@ -731,7 +731,7 @@ runtimefunction id=69 function=f22 # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f42 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f42 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f42 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -803,7 +803,7 @@ runtimefunction id=69 function=f22 # CHECK-NEXT: Return v37 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f22}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f22}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { # CHECK-NEXT: b0(v0: f22, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f22 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -829,7 +829,7 @@ runtimefunction id=69 function=f22 # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}]} creator=ResultWorker{origin=f22} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}]} creator=ResultWorker{origin=f22} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/calls/many-callbacks-different-lengths-outside.ir b/test/aot/engine-tests/pipeline/calls/many-callbacks-different-lengths-outside.ir index ecee5e5bd6b5..ee094fee9746 100644 --- a/test/aot/engine-tests/pipeline/calls/many-callbacks-different-lengths-outside.ir +++ b/test/aot/engine-tests/pipeline/calls/many-callbacks-different-lengths-outside.ir @@ -1244,7 +1244,7 @@ function f122 module=m0 role=Signature thisType={type=anything} results=[{type=a function f123 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f124 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f125 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f126 name="reduce" module=m1 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f126 name="reduce" module=m1 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1379,7 +1379,7 @@ function f126 name="reduce" module=m1 position=1398 kind=Method role=Library fla v94 = ThrowNewError errorKind=TypeError message="Array.prototype.reduce callback must be a function" Unreachable } -function f127 name="every" module=m1 position=3388 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=31 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f127 name="every" module=m1 position=3388 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=30 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w0}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1450,7 +1450,7 @@ function f127 name="every" module=m1 position=3388 kind=Method role=Library flag v43 = ThrowNewError errorKind=TypeError message="Array.prototype.every callback must be a function" Unreachable } -function f128 name="filter" module=m1 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f128 name="filter" module=m1 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1527,7 +1527,7 @@ function f128 name="filter" module=m1 position=4475 kind=Method role=Library fla v54 = ThrowNewError errorKind=TypeError message="Array.prototype.filter callback must be a function" Unreachable } -function f129 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f129 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1590,7 +1590,7 @@ function f129 name="map" module=m1 position=5210 kind=Method role=Library flags= v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f130 name="some" module=m1 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w1}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f130 name="some" module=m1 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w1}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1661,7 +1661,7 @@ function f130 name="some" module=m1 position=5857 kind=Method role=Library flags v43 = ThrowNewError errorKind=TypeError message="Array.prototype.some callback must be a function" Unreachable } -function f131 name="find" module=m1 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f131 name="find" module=m1 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=34 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1718,7 +1718,7 @@ function f131 name="find" module=m1 position=6413 kind=Method role=Library flags v35 = ThrowNewError errorKind=TypeError message="Array.prototype.find callback must be a function" Unreachable } -function f132 name="flatIntoArray" module=m1 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f132 name="flatIntoArray" module=m1 position=8579 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=5 enclosingRuntimeFunction=39 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: anything): Jump -> next b1() b1(): @@ -1809,7 +1809,7 @@ function f132 name="flatIntoArray" module=m1 position=8579 kind=Method role=Libr v65 = Convert v8 declared={type=undefined|null|number|string|symbol flags=[IsExpected]} Return v65 } -function f133 name="flatIntoArrayWithCallback" module=m1 position=9316 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=41 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f133 name="flatIntoArrayWithCallback" module=m1 position=9316 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=40 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: anything, v5: anything): Jump -> next b1() b1(): @@ -1891,7 +1891,7 @@ function f133 name="flatIntoArrayWithCallback" module=m1 position=9316 kind=Meth b20(): Return v0 } -function f134 name="flatMap" module=m1 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=42 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f134 name="flatMap" module=m1 position=10078 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=41 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2960,15 +2960,15 @@ function f141 name="traverseArray" module=m2 position=2337 kind=Method role=Libr b252(v555): Return v555 } -runtimefunction id=31 function=f127 -runtimefunction id=33 function=f128 -runtimefunction id=35 function=f131 -runtimefunction id=40 function=f132 visibility=Private -runtimefunction id=41 function=f133 visibility=Private -runtimefunction id=42 function=f134 -runtimefunction id=65 function=f129 -runtimefunction id=82 function=f126 -runtimefunction id=89 function=f130 +runtimefunction id=30 function=f127 +runtimefunction id=32 function=f128 +runtimefunction id=34 function=f131 +runtimefunction id=39 function=f132 visibility=Private +runtimefunction id=40 function=f133 visibility=Private +runtimefunction id=41 function=f134 +runtimefunction id=64 function=f129 +runtimefunction id=81 function=f126 +runtimefunction id=88 function=f130 runtimefunction id=131091 function=f141 visibility=Private # -- generated: f0 flattened f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f26 f27 f28 f29 f30 f31 f32 f33 f34 f35 f36 f37 f38 f39 f40 f41 f42 f43 f44 f45 f46 f47 f48 f49 f50 f51 f52 f53 f54 f55 f56 f57 f58 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/calls/third-argument-callback-object-receiver.ir b/test/aot/engine-tests/pipeline/calls/third-argument-callback-object-receiver.ir index dc3922584f46..b5dee957df1f 100644 --- a/test/aot/engine-tests/pipeline/calls/third-argument-callback-object-receiver.ir +++ b/test/aot/engine-tests/pipeline/calls/third-argument-callback-object-receiver.ir @@ -192,7 +192,7 @@ function f3 module=m0 role=Signature thisType={type=anything} results=[{type=any function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f6] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f7 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -251,7 +251,7 @@ function f7 name="forEach" module=m1 position=3958 kind=Method role=Library flag v37 = ThrowNewError errorKind=TypeError message="Array.prototype.forEach callback must be a function" Unreachable } -function f8 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1408,8 +1408,8 @@ function f17 name="traverseArray" module=m4 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f9 runtimefunction id=5 function=f10 -runtimefunction id=44 function=f7 -runtimefunction id=65 function=f8 +runtimefunction id=43 function=f7 +runtimefunction id=64 function=f8 runtimefunction id=131091 function=f17 visibility=Private # -- generated: f0 f1 f2 forEach apply clampToLength storeInNewArray appendParts joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -1449,7 +1449,7 @@ runtimefunction id=131091 function=f17 visibility=Private # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -1825,7 +1825,7 @@ runtimefunction id=131091 function=f17 visibility=Private # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=44 captures=[{type=f7}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m1 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=43 captures=[{type=f7}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: undefined = CallDirect v1, v2, v3 function=f7 @3958 tail # CHECK-NEXT: Return v4 @@ -1843,7 +1843,7 @@ runtimefunction id=131091 function=f17 visibility=Private # CHECK-NEXT: ReturnCall v5 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f7} { +# CHECK: module=m1 position=3958 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f7} { # CHECK-NEXT: b0(v0: anything ~ Array, v1: function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array diff --git a/test/aot/engine-tests/pipeline/classes-and-closures/callbacks-of-many-kinds-handed-to-walker.ir b/test/aot/engine-tests/pipeline/classes-and-closures/callbacks-of-many-kinds-handed-to-walker.ir index 8ee9357da5b1..34dd234c7907 100644 --- a/test/aot/engine-tests/pipeline/classes-and-closures/callbacks-of-many-kinds-handed-to-walker.ir +++ b/test/aot/engine-tests/pipeline/classes-and-closures/callbacks-of-many-kinds-handed-to-walker.ir @@ -1715,7 +1715,7 @@ function f75 module=m0 role=Signature thisType={type=anything} results=[{type=an function f76 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f78] function f77 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f78] function f78 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[String] -function f79 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f79 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1738,7 +1738,7 @@ function f79 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f80 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f80 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1801,7 +1801,7 @@ function f80 name="map" module=m3 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f81 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f81 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1825,7 +1825,7 @@ function f81 name="next" module=m4 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f82 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f82 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1849,7 +1849,7 @@ function f82 name="return" module=m4 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f83 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f83 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1906,7 +1906,7 @@ function f84 name="iteratorGenericClose" module=m5 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f85 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f85 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1927,7 +1927,7 @@ function f85 name="next" module=m7 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f86 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f86 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1978,7 +1978,7 @@ function f86 name="return" module=m7 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f87 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f87 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2000,7 +2000,7 @@ function f87 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f88 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f88 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3079,15 +3079,15 @@ function f97 name="traverseArray" module=m10 position=2337 kind=Method role=Libr b252(v555): Return v555 } -runtimefunction id=65 function=f80 -runtimefunction id=69 function=f79 -runtimefunction id=70 function=f81 visibility=Private -runtimefunction id=71 function=f85 visibility=Private -runtimefunction id=72 function=f87 -runtimefunction id=86 function=f82 visibility=Private -runtimefunction id=87 function=f86 -runtimefunction id=88 function=f88 -runtimefunction id=92 function=f83 visibility=Private +runtimefunction id=64 function=f80 +runtimefunction id=68 function=f79 +runtimefunction id=69 function=f81 visibility=Private +runtimefunction id=70 function=f85 visibility=Private +runtimefunction id=71 function=f87 +runtimefunction id=85 function=f82 visibility=Private +runtimefunction id=86 function=f86 +runtimefunction id=87 function=f88 +runtimefunction id=91 function=f83 visibility=Private runtimefunction id=131072 function=f84 visibility=Private runtimefunction id=131091 function=f97 visibility=Private # -- generated: trample handsOnItsOwnParameter findUpLater returnsItsCallback throwsItsCallback say keepsItself declarationKeepsItself f21 f22 f23 f24 f25 f27 f28 f29 f30 f33 f34 f35 f36 f37 f38 f39 f40 f41 f42 f43 f44 throw getsItBack @@ -3765,7 +3765,7 @@ runtimefunction id=131091 function=f97 visibility=Private # CHECK-NEXT: ReturnCall v8 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f161 layout=L(IteratorResult)} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f161 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f161 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -3787,7 +3787,7 @@ runtimefunction id=131091 function=f97 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f83}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f83} creator=Entrypoint{target=f83 arguments=Registers} { +# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f83}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f83} creator=Entrypoint{target=f83 arguments=Registers} { # CHECK-NEXT: b0(v0: f83, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f83 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -3815,7 +3815,7 @@ runtimefunction id=131091 function=f97 visibility=Private # CHECK-NEXT: Return v14 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f83 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f83} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f83 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f83} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/classes-and-closures/inner-functions-made-only-where-used.ir b/test/aot/engine-tests/pipeline/classes-and-closures/inner-functions-made-only-where-used.ir index 2f493c9e5fae..c4ec30dbf6b4 100644 --- a/test/aot/engine-tests/pipeline/classes-and-closures/inner-functions-made-only-where-used.ir +++ b/test/aot/engine-tests/pipeline/classes-and-closures/inner-functions-made-only-where-used.ir @@ -750,7 +750,7 @@ function f13 module=m0 role=Signature thisType={type=anything} results=[{type=an function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f15] -function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -773,7 +773,7 @@ function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f18 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -836,7 +836,7 @@ function f18 name="map" module=m2 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f19 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -860,7 +860,7 @@ function f19 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f20 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -884,7 +884,7 @@ function f20 name="return" module=m3 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f21 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -941,7 +941,7 @@ function f22 name="iteratorGenericClose" module=m4 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f23 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -962,7 +962,7 @@ function f23 name="next" module=m5 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f24 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1013,7 +1013,7 @@ function f24 name="return" module=m5 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f25 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1035,7 +1035,7 @@ function f25 name="next" module=m6 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f26 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f26 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2112,15 +2112,15 @@ function f33 name="traverseArray" module=m7 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f18 -runtimefunction id=69 function=f17 -runtimefunction id=70 function=f19 visibility=Private -runtimefunction id=71 function=f23 visibility=Private -runtimefunction id=72 function=f25 -runtimefunction id=86 function=f20 visibility=Private -runtimefunction id=87 function=f24 -runtimefunction id=88 function=f26 -runtimefunction id=92 function=f21 visibility=Private +runtimefunction id=64 function=f18 +runtimefunction id=68 function=f17 +runtimefunction id=69 function=f19 visibility=Private +runtimefunction id=70 function=f23 visibility=Private +runtimefunction id=71 function=f25 +runtimefunction id=85 function=f20 visibility=Private +runtimefunction id=86 function=f24 +runtimefunction id=87 function=f26 +runtimefunction id=91 function=f21 visibility=Private runtimefunction id=131072 function=f22 visibility=Private runtimefunction id=131091 function=f33 visibility=Private # -- generated: f0 keep say early withProperties thrown helper throw iteratorGenericClose clampToLength storeInNewArray joinedText finishJoin finishReduce capturing twoArms @@ -2511,7 +2511,7 @@ runtimefunction id=131091 function=f33 visibility=Private # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f55 layout=L(IteratorResult)} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f55 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f55 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2714,7 +2714,7 @@ runtimefunction id=131091 function=f33 visibility=Private # CHECK-NEXT: Return v32 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f21}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f21} creator=Entrypoint{target=f21 arguments=Registers} { +# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f21}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f21} creator=Entrypoint{target=f21 arguments=Registers} { # CHECK-NEXT: b0(v0: f21, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f21 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -2743,7 +2743,7 @@ runtimefunction id=131091 function=f33 visibility=Private # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f21 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f21} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f21 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f21} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/classes-and-closures/name-of-closure-read-for-first-time.ir b/test/aot/engine-tests/pipeline/classes-and-closures/name-of-closure-read-for-first-time.ir index 252fd9c1290e..ba7f3127faee 100644 --- a/test/aot/engine-tests/pipeline/classes-and-closures/name-of-closure-read-for-first-time.ir +++ b/test/aot/engine-tests/pipeline/classes-and-closures/name-of-closure-read-for-first-time.ir @@ -507,7 +507,7 @@ function f27 module=m0 role=Signature thisType={type=anything} results=[{type=an function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f29] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -530,7 +530,7 @@ function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f32 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1633,8 +1633,8 @@ function f39 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f32 -runtimefunction id=69 function=f31 +runtimefunction id=64 function=f32 +runtimefunction id=68 function=f31 runtimefunction id=131091 function=f39 visibility=Private # -- generated: f0 f14 next clampToLength storeInNewArray appendParts joinedText finishJoin finishReduce makeCounter # CHECK-LABEL: function f0 module= @@ -1777,7 +1777,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f61 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f61 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f61 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2037,7 +2037,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Return v1 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { # CHECK-NEXT: b0(v0: f31, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f31 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2049,7 +2049,7 @@ runtimefunction id=131091 function=f39 visibility=Private # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/classes-and-closures/new-target-this-allocation.ir b/test/aot/engine-tests/pipeline/classes-and-closures/new-target-this-allocation.ir index ccba813e30b0..4e4229d32460 100644 --- a/test/aot/engine-tests/pipeline/classes-and-closures/new-target-this-allocation.ir +++ b/test/aot/engine-tests/pipeline/classes-and-closures/new-target-this-allocation.ir @@ -923,7 +923,7 @@ function f38 module=m0 role=Signature thisType={type=anything} results=[{type=an function f39 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f40 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f41 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16, f17, f40] -function f42 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f42 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1060,7 +1060,7 @@ function f44 name="apply" module=m2 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f45 name="get" module=m3 position=1801 kind=Method role=Library flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=53 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f45 name="get" module=m3 position=1801 kind=Method role=Library flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=52 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: int[0, 4294967295], v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -2130,8 +2130,8 @@ function f52 name="traverseArray" module=m4 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f44 runtimefunction id=12 function=f43 -runtimefunction id=53 function=f45 -runtimefunction id=69 function=f42 +runtimefunction id=52 function=f45 +runtimefunction id=68 function=f42 runtimefunction id=131091 function=f52 visibility=Private # -- generated: count Plain record C kind D f9 f11 f14 f15 next # CHECK-LABEL: function {{*}}name="count" @@ -2332,7 +2332,7 @@ runtimefunction id=131091 function=f52 visibility=Private # CHECK-LABEL: function f15 module= # CHECK: m0 position=503 kind=Initializer flags=[HasThis, IsHiddenInStackTraces] thisType={type=L2 flags=[IsFromCompiler, IsExpected]} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f73 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f73 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f73 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2341,7 +2341,7 @@ runtimefunction id=131091 function=f52 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f42}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f42} creator=Entrypoint{target=f42 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f42}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f42} creator=Entrypoint{target=f42 arguments=Registers} { # CHECK-NEXT: b0(v0: f42, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f42 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2453,7 +2453,7 @@ runtimefunction id=131091 function=f52 visibility=Private # CHECK-NEXT: Return v31 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f42 parameterMap=[{original=0}]} creator=ResultWorker{origin=f42} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f42 parameterMap=[{original=0}]} creator=ResultWorker{origin=f42} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/classes-and-closures/own-accessor-hides-a-getter-and-a-setter.ir b/test/aot/engine-tests/pipeline/classes-and-closures/own-accessor-hides-a-getter-and-a-setter.ir index eb7f30ac884c..6241a2a01ba4 100644 --- a/test/aot/engine-tests/pipeline/classes-and-closures/own-accessor-hides-a-getter-and-a-setter.ir +++ b/test/aot/engine-tests/pipeline/classes-and-closures/own-accessor-hides-a-getter-and-a-setter.ir @@ -586,7 +586,7 @@ function f29 name="set" module=m2 position=112 kind=Method flags=[IsSloppy, HasE } function f30 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f22] function f31 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f23] -function f32 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -609,7 +609,7 @@ function f32 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f32 +runtimefunction id=68 function=f32 # -- generated: anonymous get set f10 Box size f15 f16 f18 next # CHECK-LABEL: function {{*}}name="Box" # CHECK: module=m0 position=233 kind=BaseConstructor flags=[HasNewTarget, IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=int[1, 2] site=w5}] results=[{type=L0 flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] constructedClass=L0 inlineFrames=[{}, {callee=f11 callPosition=4294967295 module=m0}, {callee=f11 callPosition=4294967295 module=m0}] { @@ -735,7 +735,7 @@ runtimefunction id=69 function=f32 # CHECK-NEXT: Jump -> next b2() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f56 layout=L(IteratorResult)} { +# CHECK: module=m3 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f56 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f56 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -781,7 +781,7 @@ runtimefunction id=69 function=f32 # CHECK-NEXT: Return v8 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f32}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f32} creator=Entrypoint{target=f32 arguments=Registers} { +# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f32}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f32} creator=Entrypoint{target=f32 arguments=Registers} { # CHECK-NEXT: b0(v0: f32, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f32 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -907,7 +907,7 @@ runtimefunction id=69 function=f32 # CHECK-NEXT: Jump -> next b2() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f32 parameterMap=[{original=0}]} creator=ResultWorker{origin=f32} { +# CHECK: module=m3 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f32 parameterMap=[{original=0}]} creator=ResultWorker{origin=f32} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/classes/defined-frozen-prototype-stops-stores.ir b/test/aot/engine-tests/pipeline/classes/defined-frozen-prototype-stops-stores.ir index 0a4f6bf13b00..6c15f32833c9 100644 --- a/test/aot/engine-tests/pipeline/classes/defined-frozen-prototype-stops-stores.ir +++ b/test/aot/engine-tests/pipeline/classes/defined-frozen-prototype-stops-stores.ir @@ -573,7 +573,7 @@ function f23 module=m0 role=Signature thisType={type=anything} results=[{type=an function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f26 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f27 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -596,7 +596,7 @@ function f27 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f27 +runtimefunction id=68 function=f27 # -- generated: f0 describe Refused get set f13 f14 f15 next show # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f11 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f42 callPosition=4294967295 isConstruction=true module=m0}, {callee=f39 callPosition=4294967295 isConstruction=true module=m0}, {callee=f42 callPosition=4294967295 isConstruction=true module=m0}, {callee=f42 callPosition=4294967295 isConstruction=true module=m0}, {callee=f39 callPosition=4294967295 isConstruction=true module=m0}] { @@ -838,7 +838,7 @@ runtimefunction id=69 function=f27 # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f52 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f52 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f52 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -847,7 +847,7 @@ runtimefunction id=69 function=f27 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f27}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f27}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} { # CHECK-NEXT: b0(v0: f27, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f27 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1083,7 +1083,7 @@ runtimefunction id=69 function=f27 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f27 parameterMap=[{original=0}]} creator=ResultWorker{origin=f27} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f27 parameterMap=[{original=0}]} creator=ResultWorker{origin=f27} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/classes/instanceof-of-function-keeps-prototype.ir b/test/aot/engine-tests/pipeline/classes/instanceof-of-function-keeps-prototype.ir index fc2c096cf44b..2c1faac83848 100644 --- a/test/aot/engine-tests/pipeline/classes/instanceof-of-function-keeps-prototype.ir +++ b/test/aot/engine-tests/pipeline/classes/instanceof-of-function-keeps-prototype.ir @@ -494,20 +494,20 @@ function f54 module=m0 role=Signature thisType={type=anything} results=[{type=an function f55 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f56 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f57 module=m1 kind=Method role=Library flags=[HasThis, IsChecked] enclosingRuntimeFunction=65569 thisType={type=undefined|null|Buffer flags=[IsExpected, OmitsNull, OmitsUndefined]} results=[{type=undefined|null|L27 site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f59 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f60 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f61 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f59 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f60 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f61 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f62 name="call" module=m5 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f63 name="apply" module=m5 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f64 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f65 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f66 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f64 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f65 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f66 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f67 name="iteratorGenericClose" module=m7 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f68 name="next" module=m9 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f69 name="return" module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f70 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f71 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f68 name="next" module=m9 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f69 name="return" module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f70 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f71 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f72 name="clampToLength" module=m11 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w11}, {type=number site=w12}] results=[{type=number site=w13}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f73 name="storeInNewArray" module=m11 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w15}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f74 name="appendParts" module=m11 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w16 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w17}, {type=anything}] results=[{type=number site=w18}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -517,16 +517,16 @@ function f77 name="finishReduce" module=m11 position=2116 role=Library flags=[Is function f78 name="traverseArray" module=m11 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w26 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w27}, {type=undefined|number site=w28}, {type=number site=w29}, {type=undefined|null|Array site=w30 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f63 runtimefunction id=12 function=f62 -runtimefunction id=47 function=f58 -runtimefunction id=65 function=f61 -runtimefunction id=69 function=f60 -runtimefunction id=70 function=f64 visibility=Private -runtimefunction id=71 function=f68 visibility=Private -runtimefunction id=72 function=f70 -runtimefunction id=86 function=f65 visibility=Private -runtimefunction id=87 function=f69 -runtimefunction id=88 function=f71 -runtimefunction id=92 function=f66 visibility=Private +runtimefunction id=46 function=f58 +runtimefunction id=64 function=f61 +runtimefunction id=68 function=f60 +runtimefunction id=69 function=f64 visibility=Private +runtimefunction id=70 function=f68 visibility=Private +runtimefunction id=71 function=f70 +runtimefunction id=85 function=f65 visibility=Private +runtimefunction id=86 function=f69 +runtimefunction id=87 function=f71 +runtimefunction id=91 function=f66 visibility=Private runtimefunction id=65569 function=f57 runtimefunction id=131072 function=f67 visibility=Private runtimefunction id=131091 function=f78 visibility=Private diff --git a/test/aot/engine-tests/pipeline/classes/lists-every-length-spread-super-class.ir b/test/aot/engine-tests/pipeline/classes/lists-every-length-spread-super-class.ir index 5f2e1838bda5..955cda734e69 100644 --- a/test/aot/engine-tests/pipeline/classes/lists-every-length-spread-super-class.ir +++ b/test/aot/engine-tests/pipeline/classes/lists-every-length-spread-super-class.ir @@ -178,7 +178,7 @@ function f11 module=m0 role=Signature thisType={type=anything} results=[{type=an function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] -function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f16 name="filledArray" module=m2 position=2241 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 enclosingRuntimeFunction=131113 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=undefined|null|Array site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = TypeTest v0 testedType=number @@ -226,7 +226,7 @@ function f16 name="filledArray" module=m2 position=2241 kind=Method role=Library v38 = Call v37, v36, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v38 casts=[{declared={type=undefined|null|Array site=w8 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w0 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f15 +runtimefunction id=68 function=f15 runtimefunction id=131113 function=f16 visibility=Private # -- generated: f0 A C # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/classes/mixins-applied-where-classes-declared.ir b/test/aot/engine-tests/pipeline/classes/mixins-applied-where-classes-declared.ir index a1e8d1c01120..180225bad019 100644 --- a/test/aot/engine-tests/pipeline/classes/mixins-applied-where-classes-declared.ir +++ b/test/aot/engine-tests/pipeline/classes/mixins-applied-where-classes-declared.ir @@ -1646,7 +1646,7 @@ function f77 module=m0 role=Signature thisType={type=anything} results=[{type=an function f78 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f76] function f79 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f47] function f80 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f47] -function f81 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f81 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1669,7 +1669,7 @@ function f81 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f82 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f82 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1846,7 +1846,7 @@ function f84 name="apply" module=m3 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f85 name="fromEntries" module=m4 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=51 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w6 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f85 name="fromEntries" module=m4 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=50 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w6 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2979,9 +2979,9 @@ function f93 name="traverseArray" module=m6 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f84 runtimefunction id=12 function=f83 -runtimefunction id=51 function=f85 -runtimefunction id=65 function=f82 -runtimefunction id=69 function=f81 +runtimefunction id=50 function=f85 +runtimefunction id=64 function=f82 +runtimefunction id=68 function=f81 runtimefunction id=131082 function=f86 runtimefunction id=131091 function=f93 visibility=Private # -- generated: Base Other attempt Timed Tagged A B C D f14 f15 f16 f17 f22 f23 f25 f26 f28 f29 f30 f36 Tag size self f44 f45 diff --git a/test/aot/engine-tests/pipeline/classes/objects-classes-functions-make-base.ir b/test/aot/engine-tests/pipeline/classes/objects-classes-functions-make-base.ir index c0545bee5c66..86a3d8df9afa 100644 --- a/test/aot/engine-tests/pipeline/classes/objects-classes-functions-make-base.ir +++ b/test/aot/engine-tests/pipeline/classes/objects-classes-functions-make-base.ir @@ -507,12 +507,12 @@ function f27 module=m0 role=Signature thisType={type=anything} results=[{type=an function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f28] function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f28] -function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 Unreachable } -runtimefunction id=69 function=f31 +runtimefunction id=68 function=f31 # -- generated: withFirst withSecond withThird Base Other BelowFirst BelowSecond BelowThird BelowBoth f14 f18 # CHECK-LABEL: function {{*}}name="withFirst" # CHECK: module=m0 position=750 flags=[HasExplicitName] length=1 thisType={type=anything} parameters=[{type=f5|f14}] results=[{type=f13}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/pipeline/classes/thirty-classes-row-constructed.ir b/test/aot/engine-tests/pipeline/classes/thirty-classes-row-constructed.ir index 24dcc7137607..3cc24185f0fc 100644 --- a/test/aot/engine-tests/pipeline/classes/thirty-classes-row-constructed.ir +++ b/test/aot/engine-tests/pipeline/classes/thirty-classes-row-constructed.ir @@ -1948,7 +1948,7 @@ function f63 module=m0 role=Signature thisType={type=anything} results=[{type=an function f64 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f65 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f66 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f67 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f67 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3051,7 +3051,7 @@ function f74 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f67 +runtimefunction id=64 function=f67 runtimefunction id=131091 function=f74 visibility=Private # -- generated: sumOfFields Level0 Level1 Level2 Level3 Level4 Level5 Level12 Level15 Level17 Level18 Level19 Level20 Level22 Level23 Level24 Level25 Level26 Level27 Level28 Level29 f32 # CHECK-LABEL: function {{*}}name="sumOfFields" diff --git a/test/aot/engine-tests/pipeline/constant-containers/literals-that-go-on-behind-constants.ir b/test/aot/engine-tests/pipeline/constant-containers/literals-that-go-on-behind-constants.ir index 0d3d808348a1..ca9dcb1d784f 100644 --- a/test/aot/engine-tests/pipeline/constant-containers/literals-that-go-on-behind-constants.ir +++ b/test/aot/engine-tests/pipeline/constant-containers/literals-that-go-on-behind-constants.ir @@ -322,10 +322,10 @@ function f9 name="show" module=m0 position=798 kind=Arrow flags=[IsChecked] leng Return v9 } function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f12 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f11 -runtimefunction id=70 function=f12 visibility=Private +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f12 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=68 function=f11 +runtimefunction id=69 function=f12 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 role= # CHECK: Source diff --git a/test/aot/engine-tests/pipeline/errors/frames-async-generator-steps-another.ir b/test/aot/engine-tests/pipeline/errors/frames-async-generator-steps-another.ir index 82a1b1ce6f01..ed7a0989f8fc 100644 --- a/test/aot/engine-tests/pipeline/errors/frames-async-generator-steps-another.ir +++ b/test/aot/engine-tests/pipeline/errors/frames-async-generator-steps-another.ir @@ -1321,7 +1321,7 @@ function f37 module=m2 role=Signature thisType={type=anything} results=[{type=an function f38 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f39 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f40 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f41 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f41 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1344,7 +1344,7 @@ function f41 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f42 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f42 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3221,8 +3221,8 @@ function f110 name="traverseArray" module=m14 position=2337 kind=Method role=Lib b252(v555): Return v555 } -runtimefunction id=65 function=f42 -runtimefunction id=69 function=f41 +runtimefunction id=64 function=f42 +runtimefunction id=68 function=f41 runtimefunction id=65574 function=f23 runtimefunction id=65580 function=f22 runtimefunction id=131091 function=f110 visibility=Private @@ -3402,7 +3402,7 @@ runtimefunction id=131091 function=f110 visibility=Private # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m2 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L3 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w12 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f166 layout=L(IteratorResult)} { +# CHECK: module=m3 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f166 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f166 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -3581,7 +3581,7 @@ runtimefunction id=131091 function=f110 visibility=Private # CHECK-NEXT: Return v60 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f41}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f41} creator=Entrypoint{target=f41 arguments=Registers} { +# CHECK: module=m3 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f41}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f41} creator=Entrypoint{target=f41 arguments=Registers} { # CHECK-NEXT: b0(v0: f41, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f41 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -3762,7 +3762,7 @@ runtimefunction id=131091 function=f110 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f41 parameterMap=[{original=0}]} creator=ResultWorker{origin=f41} { +# CHECK: module=m3 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f41 parameterMap=[{original=0}]} creator=ResultWorker{origin=f41} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/errors/frames-functions-classes-bound-called.ir b/test/aot/engine-tests/pipeline/errors/frames-functions-classes-bound-called.ir index a9780536636a..dc04a3210e60 100644 --- a/test/aot/engine-tests/pipeline/errors/frames-functions-classes-bound-called.ir +++ b/test/aot/engine-tests/pipeline/errors/frames-functions-classes-bound-called.ir @@ -374,8 +374,8 @@ function f53 module=m0 role=Signature thisType={type=anything} results=[{type=an function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f55 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f56 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f57 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f59 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: number, v1: number): v2 = Integer @@ -610,8 +610,8 @@ function f65 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v182 = Convert v181 declared={type=number site=w65} Jump -> next b34(v174, v175, v176, v177, v178, v179, v180, v182) } -runtimefunction id=65 function=f58 -runtimefunction id=69 function=f57 +runtimefunction id=64 function=f58 +runtimefunction id=68 function=f57 runtimefunction id=131091 function=f65 visibility=Private # -- generated: f0 fail made forwards frames f23 clampToLength attempt # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/errors/proxy-of-what-is-no-function-is-called.ir b/test/aot/engine-tests/pipeline/errors/proxy-of-what-is-no-function-is-called.ir index 61ec69eac11c..658519624048 100644 --- a/test/aot/engine-tests/pipeline/errors/proxy-of-what-is-no-function-is-called.ir +++ b/test/aot/engine-tests/pipeline/errors/proxy-of-what-is-no-function-is-called.ir @@ -237,7 +237,7 @@ function f24 module=m0 role=Signature thisType={type=anything} results=[{type=an function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f26 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f28 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f28 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -260,7 +260,7 @@ function f28 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f29 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -284,7 +284,7 @@ function f29 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f30 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -308,7 +308,7 @@ function f30 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f31 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -365,7 +365,7 @@ function f32 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f33 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f33 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -386,7 +386,7 @@ function f33 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f34 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f34 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -437,7 +437,7 @@ function f34 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f35 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f35 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -459,7 +459,7 @@ function f35 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f36 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -496,14 +496,14 @@ function f36 name="return" module=m5 position=2171 kind=Method role=Library flag v19 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -runtimefunction id=69 function=f28 -runtimefunction id=70 function=f29 visibility=Private -runtimefunction id=71 function=f33 visibility=Private -runtimefunction id=72 function=f35 -runtimefunction id=86 function=f30 visibility=Private -runtimefunction id=87 function=f34 -runtimefunction id=88 function=f36 -runtimefunction id=92 function=f31 visibility=Private +runtimefunction id=68 function=f28 +runtimefunction id=69 function=f29 visibility=Private +runtimefunction id=70 function=f33 visibility=Private +runtimefunction id=71 function=f35 +runtimefunction id=85 function=f30 visibility=Private +runtimefunction id=86 function=f34 +runtimefunction id=87 function=f36 +runtimefunction id=91 function=f31 visibility=Private runtimefunction id=131072 function=f32 visibility=Private # -- generated: f0 f2 f3 f4 next return throw iteratorGenericClose # CHECK-LABEL: function f0 module= @@ -620,7 +620,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f51 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f51 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f51 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -629,7 +629,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f52 layout=L(IteratorResult)} { +# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f52 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f52 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -651,7 +651,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f53 layout=L(IteratorResult)} { +# CHECK: module=m2 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f53 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f53 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -673,7 +673,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f54 layout=L(IteratorResult)} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f54 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f54 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -717,7 +717,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ IteratorHelper): # CHECK-NEXT: v1: boolean = HasJSType v0 first=6 last=6 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b2() @@ -733,7 +733,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f55 layout=L(IteratorResult)} { +# CHECK: module=m4 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f55 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f55 # CHECK-NEXT: v2: i32 = ResultAt v1 @@ -755,7 +755,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ WrapForValidIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=10 last=10 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b2() @@ -771,7 +771,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ WrapForValidIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=10 last=10 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b4() @@ -795,31 +795,31 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f28}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f28} creator=Entrypoint{target=f28 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f28}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f28} creator=Entrypoint{target=f28 arguments=Registers} { # CHECK-NEXT: b0(v0: f28, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f28 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f29}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f29} creator=Entrypoint{target=f29 arguments=Registers} { +# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f29}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f29} creator=Entrypoint{target=f29 arguments=Registers} { # CHECK-NEXT: b0(v0: f29, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f29 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f30}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f30} creator=Entrypoint{target=f30 arguments=Registers} { +# CHECK: module=m2 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f30}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f30} creator=Entrypoint{target=f30 arguments=Registers} { # CHECK-NEXT: b0(v0: f30, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f30 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f31}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { +# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f31}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { # CHECK-NEXT: b0(v0: f31, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f31 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=71 captures=[{type=f33}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f33} creator=Entrypoint{target=f33 arguments=Registers} inlineFrames=[{}, {callee=f33 callPosition=25 isTailCall=true module=m4}] { +# CHECK: module=m4 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=70 captures=[{type=f33}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f33} creator=Entrypoint{target=f33 arguments=Registers} inlineFrames=[{}, {callee=f33 callPosition=25 isTailCall=true module=m4}] { # CHECK-NEXT: b0(v0: f33, v1: anything): # CHECK-NEXT: v2: anything ~ IteratorHelper = Upcast v1 castType=anything @25 tail # CHECK-NEXT: v3: fact = Entered function=f33 @25 tail @@ -837,13 +837,13 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f34}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f34} creator=Entrypoint{target=f34 arguments=Registers} { +# CHECK: module=m4 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=86 captures=[{type=f34}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f34} creator=Entrypoint{target=f34 arguments=Registers} { # CHECK-NEXT: b0(v0: f34, v1: anything): # CHECK-NEXT: v2: object = CallDirect v1 function=f34 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=1421 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=72 captures=[{type=f35}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f35} creator=Entrypoint{target=f35 arguments=Registers} inlineFrames=[{}, {callee=f35 callPosition=1421 isTailCall=true module=m5}] { +# CHECK: module=m5 position=1421 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=71 captures=[{type=f35}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f35} creator=Entrypoint{target=f35 arguments=Registers} inlineFrames=[{}, {callee=f35 callPosition=1421 isTailCall=true module=m5}] { # CHECK-NEXT: b0(v0: f35, v1: anything): # CHECK-NEXT: v2: anything ~ WrapForValidIterator = Upcast v1 castType=anything @1421 tail # CHECK-NEXT: v3: fact = Entered function=f35 @1421 tail @@ -861,13 +861,13 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=2171 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=88 captures=[{type=f36}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f36} creator=Entrypoint{target=f36 arguments=Registers} { +# CHECK: module=m5 position=2171 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f36}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f36} creator=Entrypoint{target=f36 arguments=Registers} { # CHECK-NEXT: b0(v0: f36, v1: anything): # CHECK-NEXT: v2: anything = CallDirect v1 function=f36 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f28 parameterMap=[{original=0}]} creator=ResultWorker{origin=f28} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f28 parameterMap=[{original=0}]} creator=ResultWorker{origin=f28} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() @@ -971,7 +971,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f29 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f29} { +# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f29 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f29} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -996,7 +996,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f30 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f30} { +# CHECK: module=m2 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f30 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f30} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -1021,7 +1021,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f31} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f31} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -1046,7 +1046,7 @@ runtimefunction id=131072 function=f32 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=i32}, {type=object|unspecified}, {type=undefined|unspecified}, {type=true|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f34 parameterMap=[{original=0}]} creator=ResultWorker{origin=f34} { +# CHECK: module=m4 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=i32}, {type=object|unspecified}, {type=undefined|unspecified}, {type=true|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f34 parameterMap=[{original=0}]} creator=ResultWorker{origin=f34} { # CHECK-NEXT: b0(v0: anything ~ IteratorHelper): # CHECK-NEXT: v1: boolean = HasJSType v0 first=6 last=6 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b6() diff --git a/test/aot/engine-tests/pipeline/escape-analysis/loop-over-args-object-or-undefined.ir b/test/aot/engine-tests/pipeline/escape-analysis/loop-over-args-object-or-undefined.ir index 28dcf371d41d..57f53d226d0c 100644 --- a/test/aot/engine-tests/pipeline/escape-analysis/loop-over-args-object-or-undefined.ir +++ b/test/aot/engine-tests/pipeline/escape-analysis/loop-over-args-object-or-undefined.ir @@ -361,7 +361,7 @@ function f4 module=m0 position=863 flags=[IsSloppy, TakesCallee, HasArgumentCoun v4 = Convert v3 declared={type=undefined|null|object flags=[IsExpected]} Return v4 } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -384,7 +384,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 show sum trySum next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=CommonJsModule flags=[IsSloppy] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -668,7 +668,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v105 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f9 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f9 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f9 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -677,13 +677,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/escape-analysis/objects-declared-fields-given-expected.ir b/test/aot/engine-tests/pipeline/escape-analysis/objects-declared-fields-given-expected.ir index 5ff05ec14a6a..86eb3361983c 100644 --- a/test/aot/engine-tests/pipeline/escape-analysis/objects-declared-fields-given-expected.ir +++ b/test/aot/engine-tests/pipeline/escape-analysis/objects-declared-fields-given-expected.ir @@ -341,7 +341,7 @@ function f2 module=m0 position=1100 kind=Initializer flags=[HasThis, IsChecked, v7 = Undefined Return v7 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -364,7 +364,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f9 callPosition=4294967295 isConstruction=true module=m0}, {callee=f2 callPosition=4294967295 parent=1 module=m0}] { @@ -476,7 +476,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v93 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f10 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -485,13 +485,13 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/escape-analysis/sum-stored-in-new-object-is-found-by-in.ir b/test/aot/engine-tests/pipeline/escape-analysis/sum-stored-in-new-object-is-found-by-in.ir index 41854e216b87..8ad247d0042b 100644 --- a/test/aot/engine-tests/pipeline/escape-analysis/sum-stored-in-new-object-is-found-by-in.ir +++ b/test/aot/engine-tests/pipeline/escape-analysis/sum-stored-in-new-object-is-found-by-in.ir @@ -245,7 +245,7 @@ function f3 module=m0 role=Signature thisType={type=anything} results=[{type=any function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -268,7 +268,7 @@ function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f8 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -327,7 +327,7 @@ function f8 name="forEach" module=m2 position=3958 kind=Method role=Library flag v37 = ThrowNewError errorKind=TypeError message="Array.prototype.forEach callback must be a function" Unreachable } -function f9 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1430,9 +1430,9 @@ function f16 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=44 function=f8 -runtimefunction id=65 function=f9 -runtimefunction id=69 function=f7 +runtimefunction id=43 function=f8 +runtimefunction id=64 function=f9 +runtimefunction id=68 function=f7 runtimefunction id=131091 function=f16 visibility=Private # -- generated: f0 increment f2 next forEach clampToLength storeInNewArray joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -1659,7 +1659,7 @@ runtimefunction id=131091 function=f16 visibility=Private # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f28 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1668,7 +1668,7 @@ runtimefunction id=131091 function=f16 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -1876,19 +1876,19 @@ runtimefunction id=131091 function=f16 visibility=Private # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f7 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m2 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=44 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m2 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=43 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: undefined = CallDirect v1, v2, v3 function=f8 @3958 tail # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}]} creator=ResultWorker{origin=f7} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}]} creator=ResultWorker{origin=f7} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/external-data/json-parse-type-argument-three-shape.ir b/test/aot/engine-tests/pipeline/external-data/json-parse-type-argument-three-shape.ir index 08ef4ab65e47..0380437e052c 100644 --- a/test/aot/engine-tests/pipeline/external-data/json-parse-type-argument-three-shape.ir +++ b/test/aot/engine-tests/pipeline/external-data/json-parse-type-argument-three-shape.ir @@ -148,7 +148,7 @@ function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} res v66 = Undefined Return v66 } -function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -171,7 +171,7 @@ function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f1 +runtimefunction id=68 function=f1 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f5 callPosition=4294967295}] { @@ -406,7 +406,7 @@ runtimefunction id=69 function=f1 # CHECK-NEXT: Return v128 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f8 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f8 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f8 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -415,13 +415,13 @@ runtimefunction id=69 function=f1 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f1}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f1} creator=Entrypoint{target=f1 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f1}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f1} creator=Entrypoint{target=f1 arguments=Registers} { # CHECK-NEXT: b0(v0: f1, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f1 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f1 parameterMap=[{original=0}]} creator=ResultWorker{origin=f1} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f1 parameterMap=[{original=0}]} creator=ResultWorker{origin=f1} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/external-data/two-files-ask-serializer-layout-verified.ir b/test/aot/engine-tests/pipeline/external-data/two-files-ask-serializer-layout-verified.ir index 7847c93d23bd..c44025337bc2 100644 --- a/test/aot/engine-tests/pipeline/external-data/two-files-ask-serializer-layout-verified.ir +++ b/test/aot/engine-tests/pipeline/external-data/two-files-ask-serializer-layout-verified.ir @@ -1158,7 +1158,7 @@ function f24 module=m3 role=Signature thisType={type=anything} results=[{type=an function f25 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f26 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f27 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] -function f28 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f28 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1181,7 +1181,7 @@ function f28 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f29 name="map" module=m5 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="map" module=m5 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3039,8 +3039,8 @@ function f78 name="traverseArray" module=m11 position=2337 kind=Method role=Libr b252(v555): Return v555 } -runtimefunction id=65 function=f29 -runtimefunction id=69 function=f28 +runtimefunction id=64 function=f29 +runtimefunction id=68 function=f28 runtimefunction id=65574 function=f10 runtimefunction id=65580 function=f9 runtimefunction id=131091 function=f78 visibility=Private @@ -3223,7 +3223,7 @@ runtimefunction id=131091 function=f78 visibility=Private # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f131 layout=L(IteratorResult)} { +# CHECK: module=m4 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f131 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f131 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -3232,7 +3232,7 @@ runtimefunction id=131091 function=f78 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f28}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f28} creator=Entrypoint{target=f28 arguments=Registers} { +# CHECK: module=m4 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f28}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f28} creator=Entrypoint{target=f28 arguments=Registers} { # CHECK-NEXT: b0(v0: f28, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f28 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -3280,7 +3280,7 @@ runtimefunction id=131091 function=f78 visibility=Private # CHECK-NEXT: Rethrow v22 @0:1 tail # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f28 parameterMap=[{original=0}]} creator=ResultWorker{origin=f28} { +# CHECK: module=m4 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f28 parameterMap=[{original=0}]} creator=ResultWorker{origin=f28} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/external-data/unions-unions-no-tag-tells-apart-time.ir b/test/aot/engine-tests/pipeline/external-data/unions-unions-no-tag-tells-apart-time.ir index 1afbdf3435d1..1bc197f7b441 100644 --- a/test/aot/engine-tests/pipeline/external-data/unions-unions-no-tag-tells-apart-time.ir +++ b/test/aot/engine-tests/pipeline/external-data/unions-unions-no-tag-tells-apart-time.ir @@ -362,7 +362,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f15] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f9] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -668,7 +668,7 @@ function f16 name="from" module=m1 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f17 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -849,7 +849,7 @@ function f18 name="from" module=m2 position=651 kind=Method role=Library flags=[ v116 = Call v114, v113, v112, v115 calleeName="Array.from" ReturnCall v116 casts=[{declared={type=undefined|null|Array site=w36 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w26 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=47 function=f16 +runtimefunction id=46 function=f16 runtimefunction id=131110 function=f18 # -- generated: f0 depthOf nested f4 f5 f6 f7 f8 timed # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/function-prototypes/parent-call-of-a-library-function-that-makes-no-object.ir b/test/aot/engine-tests/pipeline/function-prototypes/parent-call-of-a-library-function-that-makes-no-object.ir index 30641ea50c51..3b615d511252 100644 --- a/test/aot/engine-tests/pipeline/function-prototypes/parent-call-of-a-library-function-that-makes-no-object.ir +++ b/test/aot/engine-tests/pipeline/function-prototypes/parent-call-of-a-library-function-that-makes-no-object.ir @@ -543,7 +543,7 @@ function f33 module=m2 role=Signature thisType={type=anything} results=[{type=an function f34 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f36 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f37 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2091,5 +2091,5 @@ function f230 module=m13 role=Signature thisType={type=anything} results=[{type= function f231 module=m13 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f21] runtimefunction id=4 function=f39 runtimefunction id=12 function=f38 -runtimefunction id=69 function=f37 +runtimefunction id=68 function=f37 # -- generated: * diff --git a/test/aot/engine-tests/pipeline/gc/function-holds-other-functions-call.ir b/test/aot/engine-tests/pipeline/gc/function-holds-other-functions-call.ir index 58222f2301c5..62bd3f431e2a 100644 --- a/test/aot/engine-tests/pipeline/gc/function-holds-other-functions-call.ir +++ b/test/aot/engine-tests/pipeline/gc/function-holds-other-functions-call.ir @@ -2831,7 +2831,7 @@ function f72 module=m1 role=Signature thisType={type=anything} results=[{type=an function f73 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f74 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f75 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f76 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f76 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2854,7 +2854,7 @@ function f76 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f77 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f77 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -4804,8 +4804,8 @@ function f129 name="traverseArray" module=m10 position=2337 kind=Method role=Lib Return v555 } runtimefunction id=0 function=f78 -runtimefunction id=33 function=f77 -runtimefunction id=69 function=f76 +runtimefunction id=32 function=f77 +runtimefunction id=68 function=f76 runtimefunction id=65574 function=f58 runtimefunction id=65580 function=f57 runtimefunction id=131091 function=f129 visibility=Private @@ -5131,7 +5131,7 @@ runtimefunction id=131091 function=f129 visibility=Private # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f209 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f209 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f209 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -5292,7 +5292,7 @@ runtimefunction id=131091 function=f129 visibility=Private # CHECK-NEXT: Return v81 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f76}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f76} creator=Entrypoint{target=f76 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f76}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f76} creator=Entrypoint{target=f76 arguments=Registers} { # CHECK-NEXT: b0(v0: f76, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f76 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -5406,7 +5406,7 @@ runtimefunction id=131091 function=f129 visibility=Private # CHECK-NEXT: Throw v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f76 parameterMap=[{original=0}]} creator=ResultWorker{origin=f76} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f76 parameterMap=[{original=0}]} creator=ResultWorker{origin=f76} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/gc/function-nobody-reads-holds-names-scope.ir b/test/aot/engine-tests/pipeline/gc/function-nobody-reads-holds-names-scope.ir index 0b008ccb0086..61c1c03c2b40 100644 --- a/test/aot/engine-tests/pipeline/gc/function-nobody-reads-holds-names-scope.ir +++ b/test/aot/engine-tests/pipeline/gc/function-nobody-reads-holds-names-scope.ir @@ -1638,7 +1638,7 @@ function f73 module=m1 role=Signature thisType={type=anything} results=[{type=an function f74 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f75 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f76 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f77 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f77 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1661,7 +1661,7 @@ function f77 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f78 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f78 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1738,7 +1738,7 @@ function f78 name="filter" module=m3 position=4475 kind=Method role=Library flag v54 = ThrowNewError errorKind=TypeError message="Array.prototype.filter callback must be a function" Unreachable } -function f79 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f79 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -3674,9 +3674,9 @@ function f131 name="traverseArray" module=m10 position=2337 kind=Method role=Lib Return v555 } runtimefunction id=0 function=f80 -runtimefunction id=33 function=f78 -runtimefunction id=65 function=f79 -runtimefunction id=69 function=f77 +runtimefunction id=32 function=f78 +runtimefunction id=64 function=f79 +runtimefunction id=68 function=f77 runtimefunction id=65574 function=f59 runtimefunction id=65580 function=f58 runtimefunction id=131091 function=f131 visibility=Private @@ -3842,7 +3842,7 @@ runtimefunction id=131091 function=f131 visibility=Private # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L2 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w12 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f208 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f208 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f208 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -4045,7 +4045,7 @@ runtimefunction id=131091 function=f131 visibility=Private # CHECK-NEXT: Return v81 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f77}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f77} creator=Entrypoint{target=f77 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f77}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f77} creator=Entrypoint{target=f77 arguments=Registers} { # CHECK-NEXT: b0(v0: f77, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f77 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -4356,7 +4356,7 @@ runtimefunction id=131091 function=f131 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f77 parameterMap=[{original=0}]} creator=ResultWorker{origin=f77} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f77 parameterMap=[{original=0}]} creator=ResultWorker{origin=f77} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/gc/member-nobody-reads-holds-interface.ir b/test/aot/engine-tests/pipeline/gc/member-nobody-reads-holds-interface.ir index 2b0b90ededc2..ed88a3274c72 100644 --- a/test/aot/engine-tests/pipeline/gc/member-nobody-reads-holds-interface.ir +++ b/test/aot/engine-tests/pipeline/gc/member-nobody-reads-holds-interface.ir @@ -735,8 +735,8 @@ function f83 module=m1 role=Signature thisType={type=anything} results=[{type=an function f84 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f85 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f86 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f87 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f88 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f87 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f88 name="filter" module=m3 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f89 name="Promise" module=m4 position=1836 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName, IsNakedConstructor] length=1 enclosingRuntimeFunction=0 thisType={type=anything} parameters=[{type=anything}] results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f90 module=m4 position=2114 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f91 module=m4 position=2263 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -868,8 +868,8 @@ function f146 name="traverseArray" module=m12 position=2337 kind=Method role=Lib function f147 name="addInitializer" module=m13 position=3267 kind=Arrow role=Library flags=[IsChecked, IsHiddenInStackTraces] length=1 captures=[{type=anything}, {type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] functionTypes=[f148] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f148 module=m13 role=Signature thisType={type=anything} results=[{type=anything}] runtimefunction id=0 function=f89 -runtimefunction id=33 function=f88 -runtimefunction id=69 function=f87 +runtimefunction id=32 function=f88 +runtimefunction id=68 function=f87 runtimefunction id=65574 function=f69 runtimefunction id=65580 function=f68 runtimefunction id=131091 function=f146 visibility=Private diff --git a/test/aot/engine-tests/pipeline/gc/thrown-kept-object-made-front-throw.ir b/test/aot/engine-tests/pipeline/gc/thrown-kept-object-made-front-throw.ir index 826b9e02709f..aa6b22230e27 100644 --- a/test/aot/engine-tests/pipeline/gc/thrown-kept-object-made-front-throw.ir +++ b/test/aot/engine-tests/pipeline/gc/thrown-kept-object-made-front-throw.ir @@ -436,7 +436,7 @@ function f7 module=m0 position=215 kind=Initializer flags=[HasThis, IsChecked, I v8 = Undefined Return v8 } -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -459,7 +459,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f8 +runtimefunction id=68 function=f8 # -- generated: f0 fill read next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f10 callPosition=532 parent=3 module=m0}, {callee=f11 callPosition=739 parent=2 module=m0}, {callee=f12 callPosition=928 parent=1 module=m0}] { @@ -609,7 +609,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f17 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f17 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f17 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -618,7 +618,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f8 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -630,7 +630,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/host-classes/encoder-and-a-view-nobody-followed.ir b/test/aot/engine-tests/pipeline/host-classes/encoder-and-a-view-nobody-followed.ir index 753328ab5f5b..369bdf281ac0 100644 --- a/test/aot/engine-tests/pipeline/host-classes/encoder-and-a-view-nobody-followed.ir +++ b/test/aot/engine-tests/pipeline/host-classes/encoder-and-a-view-nobody-followed.ir @@ -258,7 +258,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -281,7 +281,7 @@ function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f16 +runtimefunction id=68 function=f16 # -- generated: f0 into bytesOf restOf next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f6 callPosition=4294967295 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}] { @@ -506,7 +506,7 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: Return v27 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f23 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -649,13 +649,13 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: Return v32 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f16}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f16}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { # CHECK-NEXT: b0(v0: f16, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f16 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}]} creator=ResultWorker{origin=f16} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}]} creator=ResultWorker{origin=f16} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/host-classes/members-of-process-that-windows-lacks.ir b/test/aot/engine-tests/pipeline/host-classes/members-of-process-that-windows-lacks.ir index 7046f2cdd48c..d99ae92ad7f1 100644 --- a/test/aot/engine-tests/pipeline/host-classes/members-of-process-that-windows-lacks.ir +++ b/test/aot/engine-tests/pipeline/host-classes/members-of-process-that-windows-lacks.ir @@ -175,12 +175,12 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ProcessGetegid, ProcessGeteuid, ProcessGetgid, ProcessGetgroups, ProcessGetuid] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ProcessSetgroups] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="firstSearchedIndex" module=m2 position=399 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|number site=w0}, {type=number site=w1}] results=[{type=number site=w2}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="holdsBoxedValues" module=m2 position=750 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=number site=w3}] results=[{type=boolean site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="includesNaN" module=m2 position=1987 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=number site=w7}] results=[{type=boolean site=w8}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="includes" module=m2 position=2203 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=131087 thisType={type=undefined|null|Array site=w10 flags=[OmitsNull, OmitsUndefined]} parameters=[{type=anything}, {type=undefined|number site=w9}] results=[{type=boolean site=w11}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f26 +runtimefunction id=68 function=f26 runtimefunction id=131087 function=f30 # -- generated: f0 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/pipeline/language/instanceof-builtin-classes-all-kinds.ir b/test/aot/engine-tests/pipeline/language/instanceof-builtin-classes-all-kinds.ir index b050bdfda9fd..9abed6e41fca 100644 --- a/test/aot/engine-tests/pipeline/language/instanceof-builtin-classes-all-kinds.ir +++ b/test/aot/engine-tests/pipeline/language/instanceof-builtin-classes-all-kinds.ir @@ -1344,7 +1344,7 @@ function f43 module=m1 role=Signature thisType={type=anything} results=[{type=an function f44 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f45 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f47 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2185,7 +2185,7 @@ function f91 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type } function f92 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f48 -runtimefunction id=69 function=f47 +runtimefunction id=68 function=f47 runtimefunction id=65574 function=f29 runtimefunction id=65580 function=f28 # -- generated: f0 kinds countPromises f8 f29 next @@ -2541,7 +2541,7 @@ runtimefunction id=65580 function=f28 # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f148 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f148 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f148 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2550,13 +2550,13 @@ runtimefunction id=65580 function=f28 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f47}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f47} creator=Entrypoint{target=f47 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f47}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f47} creator=Entrypoint{target=f47 arguments=Registers} { # CHECK-NEXT: b0(v0: f47, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f47 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f47 parameterMap=[{original=0}]} creator=ResultWorker{origin=f47} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f47 parameterMap=[{original=0}]} creator=ResultWorker{origin=f47} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/language/length-read-by-name-all-kinds-of-value.ir b/test/aot/engine-tests/pipeline/language/length-read-by-name-all-kinds-of-value.ir index 73ae3e981835..c9ed8656950e 100644 --- a/test/aot/engine-tests/pipeline/language/length-read-by-name-all-kinds-of-value.ir +++ b/test/aot/engine-tests/pipeline/language/length-read-by-name-all-kinds-of-value.ir @@ -536,7 +536,7 @@ function f27 module=m0 role=Signature thisType={type=anything} results=[{type=an function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -559,7 +559,7 @@ function f31 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f31 +runtimefunction id=68 function=f31 # -- generated: f0 lengthOf Named length get next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f37 callPosition=4294967295 isConstruction=true module=m0}, {callee=f8 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 isConstruction=true module=m0}, {callee=f1 callPosition=4294967295 parent=2 module=m0}] { @@ -818,7 +818,7 @@ runtimefunction id=69 function=f31 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f43 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f43 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f43 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -827,7 +827,7 @@ runtimefunction id=69 function=f31 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { # CHECK-NEXT: b0(v0: f31, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f31 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -856,7 +856,7 @@ runtimefunction id=69 function=f31 # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/language/number-parameters-called-with-sums.ir b/test/aot/engine-tests/pipeline/language/number-parameters-called-with-sums.ir index 2c7618e92d41..e6660d12e50d 100644 --- a/test/aot/engine-tests/pipeline/language/number-parameters-called-with-sums.ir +++ b/test/aot/engine-tests/pipeline/language/number-parameters-called-with-sums.ir @@ -452,7 +452,7 @@ function f15 name="anonymous" module=m1 position=1 flags=[IsSloppy, HasExplicitN b1(): Return v0 } -function f16 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -475,7 +475,7 @@ function f16 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f16 +runtimefunction id=68 function=f16 # -- generated: f2 half low describe next text Counter add # CHECK-LABEL: function {{*}}name="half" # CHECK: module=m0 position=78 role=EntryChecks flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=i32 site=w0 flags=[IsExpected]}] results=[{type=number site=w1}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] creator=EntryChecks{body=f18 fallback=f24} { @@ -559,7 +559,7 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: ReturnCall v5 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f36 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f36 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f36 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -722,7 +722,7 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: Return v11 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f16}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f16}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { # CHECK-NEXT: b0(v0: f16, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f16 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -742,7 +742,7 @@ runtimefunction id=69 function=f16 # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}]} creator=ResultWorker{origin=f16} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}]} creator=ResultWorker{origin=f16} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/language/numbers-beside-the-ends-of-int32.ir b/test/aot/engine-tests/pipeline/language/numbers-beside-the-ends-of-int32.ir index d37050143413..6d94e2fb1609 100644 --- a/test/aot/engine-tests/pipeline/language/numbers-beside-the-ends-of-int32.ir +++ b/test/aot/engine-tests/pipeline/language/numbers-beside-the-ends-of-int32.ir @@ -226,7 +226,7 @@ function f3 name="half" module=m0 position=412 flags=[IsChecked, HasExplicitName v3 = Convert v2 declared={type=number site=w8} Return v3 } -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -297,7 +297,7 @@ function f5 name="at" module=m2 position=10565 kind=Method role=Library flags=[H Return v29 } runtimefunction id=8 function=f5 -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 letterAt isSmall half next at # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f8 callPosition=412 parent=1 isTailCall=true module=m0}, {callee=f7 callPosition=412 parent=1 isTailCall=true module=m0}] { @@ -529,7 +529,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f12 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -617,7 +617,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -629,7 +629,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/language/thrown-literal-errors.ir b/test/aot/engine-tests/pipeline/language/thrown-literal-errors.ir index 5cf350e27e83..914566f054f9 100644 --- a/test/aot/engine-tests/pipeline/language/thrown-literal-errors.ir +++ b/test/aot/engine-tests/pipeline/language/thrown-literal-errors.ir @@ -1455,7 +1455,7 @@ function f27 module=m1 role=Signature thisType={type=anything} results=[{type=an function f28 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f29 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2233,7 +2233,7 @@ function f72 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f73 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w185}, {type=undefined|null|string site=w186 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w187 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w188}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f31 +runtimefunction id=68 function=f31 runtimefunction id=65574 function=f13 runtimefunction id=65580 function=f12 # -- generated: f0 slot follow forbid portrait f13 next f32 f35 listOf nextTick newTickObject pushTickObject takeTickObject pushWithList afterATurn start @@ -2357,7 +2357,7 @@ runtimefunction id=65580 function=f12 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L1 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w71 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w72 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f126 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f126 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f126 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2599,7 +2599,7 @@ runtimefunction id=65580 function=f12 # CHECK-NEXT: ReturnCall v7 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f31}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f31} creator=Entrypoint{target=f31 arguments=Registers} { # CHECK-NEXT: b0(v0: f31, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f31 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2827,7 +2827,7 @@ runtimefunction id=65580 function=f12 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f31 parameterMap=[{original=0}]} creator=ResultWorker{origin=f31} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/language/typeof-function-of-every-kind-of-value.ir b/test/aot/engine-tests/pipeline/language/typeof-function-of-every-kind-of-value.ir index c0c2d89ee4cc..4fbc821f2daa 100644 --- a/test/aot/engine-tests/pipeline/language/typeof-function-of-every-kind-of-value.ir +++ b/test/aot/engine-tests/pipeline/language/typeof-function-of-every-kind-of-value.ir @@ -1798,7 +1798,7 @@ function f67 module=m1 role=Signature thisType={type=anything} results=[{type=an function f68 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f69 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f70 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f71 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f71 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1821,7 +1821,7 @@ function f71 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f72 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f72 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1845,7 +1845,7 @@ function f72 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f73 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f73 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2624,9 +2624,9 @@ function f114 module=m8 kind=Module role=Library flags=[IsChecked] thisType={typ Return v39 } function f115 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f71 -runtimefunction id=70 function=f72 visibility=Private -runtimefunction id=86 function=f73 visibility=Private +runtimefunction id=68 function=f71 +runtimefunction id=69 function=f72 visibility=Private +runtimefunction id=85 function=f73 visibility=Private runtimefunction id=65574 function=f53 runtimefunction id=65580 function=f52 # -- generated: declared Plain arrow f53 next return nextTick generator @@ -2665,7 +2665,7 @@ runtimefunction id=65580 function=f52 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L7 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w12 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f181 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f181 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f181 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2674,7 +2674,7 @@ runtimefunction id=65580 function=f52 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f182 layout=L(IteratorResult)} { +# CHECK: module=m3 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f182 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f182 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2696,7 +2696,7 @@ runtimefunction id=65580 function=f52 # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f183 layout=L(IteratorResult)} { +# CHECK: module=m3 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f183 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f183 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2772,19 +2772,19 @@ runtimefunction id=65580 function=f52 # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f71}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f71} creator=Entrypoint{target=f71 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f71}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f71} creator=Entrypoint{target=f71 arguments=Registers} { # CHECK-NEXT: b0(v0: f71, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f71 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f72}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f72} creator=Entrypoint{target=f72 arguments=Registers} { +# CHECK: module=m3 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f72}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f72} creator=Entrypoint{target=f72 arguments=Registers} { # CHECK-NEXT: b0(v0: f72, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f72 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f73}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f73} creator=Entrypoint{target=f73 arguments=Registers} { +# CHECK: module=m3 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f73}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f73} creator=Entrypoint{target=f73 arguments=Registers} { # CHECK-NEXT: b0(v0: f73, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f73 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -2987,7 +2987,7 @@ runtimefunction id=65580 function=f52 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f71 parameterMap=[{original=0}]} creator=ResultWorker{origin=f71} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f71 parameterMap=[{original=0}]} creator=ResultWorker{origin=f71} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() @@ -3091,7 +3091,7 @@ runtimefunction id=65580 function=f52 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m3 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f72 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f72} { +# CHECK: module=m3 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f72 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f72} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -3116,7 +3116,7 @@ runtimefunction id=65580 function=f52 # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f73 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f73} { +# CHECK: module=m3 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f73 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f73} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/language/value-32-bits-feeds-phi-64-bits-same.ir b/test/aot/engine-tests/pipeline/language/value-32-bits-feeds-phi-64-bits-same.ir index 521006d176a8..c5f12158b743 100644 --- a/test/aot/engine-tests/pipeline/language/value-32-bits-feeds-phi-64-bits-same.ir +++ b/test/aot/engine-tests/pipeline/language/value-32-bits-feeds-phi-64-bits-same.ir @@ -969,7 +969,7 @@ function f6 module=m0 position=196 kind=Initializer flags=[HasThis, IsChecked, I v6 = Undefined Return v6 } -function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -992,7 +992,7 @@ function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f7 +runtimefunction id=68 function=f7 # -- generated: f0 opaqueInt opaqueBox fold next Box # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -1071,7 +1071,7 @@ runtimefunction id=69 function=f7 # CHECK-LABEL: function {{*}}name="Box" # CHECK: module=m0 position=215 kind=BaseConstructor flags=[HasNewTarget, IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w11}, {type=null site=w12 flags=[OmitsUndefined]}] results=[{type=L0 flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] constructedClass=L0 # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1080,7 +1080,7 @@ runtimefunction id=69 function=f7 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f7}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f7 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1104,7 +1104,7 @@ runtimefunction id=69 function=f7 # CHECK-LABEL: function {{*}}name="Box" # CHECK: module=m0 position=215 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, IsChecked, HasExplicitName] length=2 thisType={type=L0} parameters=[{type=number site=w11}, {type=null site=w12 flags=[OmitsUndefined]}] results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{}, {original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f5} constructedClass=L0 # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}]} creator=ResultWorker{origin=f7} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}]} creator=ResultWorker{origin=f7} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/lazy-initializers/default-locale-is-fixed-at-the-start.ir b/test/aot/engine-tests/pipeline/lazy-initializers/default-locale-is-fixed-at-the-start.ir index 8de9d580d963..81cd8ceca5a8 100644 --- a/test/aot/engine-tests/pipeline/lazy-initializers/default-locale-is-fixed-at-the-start.ir +++ b/test/aot/engine-tests/pipeline/lazy-initializers/default-locale-is-fixed-at-the-start.ir @@ -387,15 +387,15 @@ function f19 module=m1 role=Signature thisType={type=anything} results=[{type=an function f20 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="iteratorGenericClose" module=m4 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f29 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f30 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f29 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f30 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="toLocaleString" module=m8 position=1291 kind=Method role=Model flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=131086 thisType={type=anything} results=[{type=anything}] function f33 module=m9 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): @@ -509,14 +509,14 @@ function f73 module=m13 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f74 name="matchesGlob" module=m13 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w148}, {type=undefined|null|string site=w149 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w150 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w151}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f23 -runtimefunction id=70 function=f24 visibility=Private -runtimefunction id=71 function=f28 visibility=Private -runtimefunction id=72 function=f30 -runtimefunction id=86 function=f25 visibility=Private -runtimefunction id=87 function=f29 -runtimefunction id=88 function=f31 -runtimefunction id=92 function=f26 visibility=Private +runtimefunction id=68 function=f23 +runtimefunction id=69 function=f24 visibility=Private +runtimefunction id=70 function=f28 visibility=Private +runtimefunction id=71 function=f30 +runtimefunction id=85 function=f25 visibility=Private +runtimefunction id=86 function=f29 +runtimefunction id=87 function=f31 +runtimefunction id=91 function=f26 visibility=Private runtimefunction id=65574 function=f5 runtimefunction id=65580 function=f4 runtimefunction id=131072 function=f27 visibility=Private diff --git a/test/aot/engine-tests/pipeline/lazy-initializers/function-runs-says-constant-object-inner.ir b/test/aot/engine-tests/pipeline/lazy-initializers/function-runs-says-constant-object-inner.ir index ba8cbc02c835..3ead5c702c56 100644 --- a/test/aot/engine-tests/pipeline/lazy-initializers/function-runs-says-constant-object-inner.ir +++ b/test/aot/engine-tests/pipeline/lazy-initializers/function-runs-says-constant-object-inner.ir @@ -2478,7 +2478,7 @@ function f55 module=m1 role=Signature thisType={type=anything} results=[{type=an function f56 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f57 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f58 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f59 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f59 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2501,7 +2501,7 @@ function f59 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f60 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f60 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2525,7 +2525,7 @@ function f60 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f61 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f61 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3304,9 +3304,9 @@ function f102 module=m8 kind=Module role=Library flags=[IsChecked] thisType={typ Return v39 } function f103 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w223}, {type=undefined|null|string site=w224 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w225 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w226}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f59 -runtimefunction id=70 function=f60 visibility=Private -runtimefunction id=86 function=f61 visibility=Private +runtimefunction id=68 function=f59 +runtimefunction id=69 function=f60 visibility=Private +runtimefunction id=85 function=f61 visibility=Private runtimefunction id=65574 function=f41 runtimefunction id=65580 function=f40 # -- generated: f0 sure isHolder same nameOf aNumberInAList aNumberWhoseReadsDoNotThrow aStringInAList nullInAList undefinedInAList anotherClassInAList aPredicate aTypeArgumentBetween aField aMap anAsyncFunctionHoldsIt aBooleanAndABigInt Other f19 f20 add f22 f23 f24 f25 f26 f27 f28 f29 f32 f33 f41 return steps later @@ -3819,7 +3819,7 @@ runtimefunction id=65580 function=f40 # CHECK-NEXT: Return v9 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f159 layout=L(IteratorResult)} { +# CHECK: module=m3 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f159 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f159 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -3908,7 +3908,7 @@ runtimefunction id=65580 function=f40 # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f61}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f61} creator=Entrypoint{target=f61 arguments=Registers} { +# CHECK: module=m3 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f61}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f61} creator=Entrypoint{target=f61 arguments=Registers} { # CHECK-NEXT: b0(v0: f61, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f61 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -3922,7 +3922,7 @@ runtimefunction id=65580 function=f40 # CHECK-LABEL: function {{*}}name="Other" # CHECK: module=m0 position=260 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, IsChecked, HasExplicitName] thisType={type=L0} results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f18 parameterMap=[{}, {original=0}]} creator=Version{provenVersion=f18} constructedClass=L0 # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f61 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f61} { +# CHECK: module=m3 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f61 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f61} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/lazy-initializers/stores-to-new-functions-objects-refuse.ir b/test/aot/engine-tests/pipeline/lazy-initializers/stores-to-new-functions-objects-refuse.ir index f3a880fd3f19..eb3b0e92f6c8 100644 --- a/test/aot/engine-tests/pipeline/lazy-initializers/stores-to-new-functions-objects-refuse.ir +++ b/test/aot/engine-tests/pipeline/lazy-initializers/stores-to-new-functions-objects-refuse.ir @@ -1221,7 +1221,7 @@ function f141 module=m0 role=Signature thisType={type=anything} results=[{type=a function f142 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f143 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f144 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f145 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f145 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1244,7 +1244,7 @@ function f145 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsC v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f145 +runtimefunction id=68 function=f145 # -- generated: asyncConstructor generatorConstructor asyncGeneratorConstructor asyncArrowConstructor plainConstructor arrowConstructor plainHasInstance asyncToStringTag generatorToStringTag plainToStringTag generatorPrototype asyncPrototype asyncOtherName asyncToString asyncName asyncDefinition once onceForAGenerator onceUnderASymbol f21 f22 f23 f24 f25 f26 f27 f28 f29 f30 f31 f32 f33 f34 f35 f36 f37 read f57 f58 f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 next attempt # CHECK-LABEL: function {{*}}name="asyncConstructor" # CHECK: module=m0 position=607 flags=[HasExplicitName] thisType={type=anything} results=[{type=undefined}] functionTypes=[f75] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -1739,7 +1739,7 @@ runtimefunction id=69 function=f145 # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f235 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f235 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f235 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1844,7 +1844,7 @@ runtimefunction id=69 function=f145 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f145}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f145} creator=Entrypoint{target=f145 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f145}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f145} creator=Entrypoint{target=f145 arguments=Registers} { # CHECK-NEXT: b0(v0: f145, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f145 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1888,7 +1888,7 @@ runtimefunction id=69 function=f145 # CHECK-NEXT: Return v30 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f145 parameterMap=[{original=0}]} creator=ResultWorker{origin=f145} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f145 parameterMap=[{original=0}]} creator=ResultWorker{origin=f145} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/modules/imported-cjs-requires-module-that-awaits.ir b/test/aot/engine-tests/pipeline/modules/imported-cjs-requires-module-that-awaits.ir index 88d320489d6c..ce56ed79df67 100644 --- a/test/aot/engine-tests/pipeline/modules/imported-cjs-requires-module-that-awaits.ir +++ b/test/aot/engine-tests/pipeline/modules/imported-cjs-requires-module-that-awaits.ir @@ -336,7 +336,7 @@ function f24 module=m5 role=Signature thisType={type=anything} results=[{type=an function f25 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f26 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] function f27 module=m5 role=Signature thisType={type=anything} results=[{type=anything}] -function f28 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d0 @@ -449,7 +449,7 @@ function f69 module=m11 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f70 name="matchesGlob" module=m11 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f28 +runtimefunction id=68 function=f28 runtimefunction id=65574 function=f10 runtimefunction id=65580 function=f9 # -- generated: f0 f2 f3 f5 f10 writeOut onWarning f32 f69 diff --git a/test/aot/engine-tests/pipeline/narrowing/literals-failed-comparison-assignment.ir b/test/aot/engine-tests/pipeline/narrowing/literals-failed-comparison-assignment.ir index 623888cedd6e..7b3c0af3a31c 100644 --- a/test/aot/engine-tests/pipeline/narrowing/literals-failed-comparison-assignment.ir +++ b/test/aot/engine-tests/pipeline/narrowing/literals-failed-comparison-assignment.ir @@ -476,7 +476,7 @@ function f5 module=m0 position=1291 kind=Arrow flags=[IsChecked] length=1 captur } function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f6] -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -499,7 +499,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f8 +runtimefunction id=68 function=f8 # -- generated: f0 walk isGate rank findsEven f5 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}] { @@ -832,7 +832,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: ReturnCall v5 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f18 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f18 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f18 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -981,13 +981,13 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v16 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f8 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}]} creator=ResultWorker{origin=f8} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/native-callbacks/entries-pairs-are-taken-apart-in-a-loop.ir b/test/aot/engine-tests/pipeline/native-callbacks/entries-pairs-are-taken-apart-in-a-loop.ir index cf5365f52bf9..028f6ab0d37b 100644 --- a/test/aot/engine-tests/pipeline/native-callbacks/entries-pairs-are-taken-apart-in-a-loop.ir +++ b/test/aot/engine-tests/pipeline/native-callbacks/entries-pairs-are-taken-apart-in-a-loop.ir @@ -174,7 +174,7 @@ function f2 name="pairs" module=m0 position=305 flags=[HasExplicitName] length=1 v35 = Convert v9 declared={type=number flags=[IsExpected]} Return v35 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -197,7 +197,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 # -- generated: f0 total pairs next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -601,7 +601,7 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v35 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f7 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f7 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f7 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -610,13 +610,13 @@ runtimefunction id=69 function=f3 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/descriptor-that-crosses-join-verified.ir b/test/aot/engine-tests/pipeline/objects/descriptor-that-crosses-join-verified.ir index 595735d64c58..7dc5969586ae 100644 --- a/test/aot/engine-tests/pipeline/objects/descriptor-that-crosses-join-verified.ir +++ b/test/aot/engine-tests/pipeline/objects/descriptor-that-crosses-join-verified.ir @@ -242,7 +242,7 @@ function f7 module=m0 role=Signature thisType={type=anything} results=[{type=any function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -265,7 +265,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f11 +runtimefunction id=68 function=f11 # -- generated: f0 nameOfConstructor walk K get next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f16 callPosition=4294967295 isConstruction=true module=m0}] { @@ -456,7 +456,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f19 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f19 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f19 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -471,7 +471,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -486,7 +486,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/late-fields-never-undefined-read-empty.ir b/test/aot/engine-tests/pipeline/objects/late-fields-never-undefined-read-empty.ir index 8f9be2030977..ba20b1e1a755 100644 --- a/test/aot/engine-tests/pipeline/objects/late-fields-never-undefined-read-empty.ir +++ b/test/aot/engine-tests/pipeline/objects/late-fields-never-undefined-read-empty.ir @@ -795,7 +795,7 @@ function f11 module=m0 role=Signature thisType={type=anything} results=[{type=an function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -818,7 +818,7 @@ function f15 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f15 +runtimefunction id=68 function=f15 # -- generated: createObjectType getObjectFlags readAnyway targetOf nameOf allOf get next # CHECK-LABEL: function {{*}}name="createObjectType" # CHECK: module=m0 position=395 flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=1 site=w3}, {type=int[0, 1999] site=w4}] results=[{type=L0 site=w5 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] inlineFrames=[{}, {callee=f20 callPosition=4294967295 isConstruction=true module=m0}, {callee=f10 callPosition=4294967295 parent=1 module=m0}] { @@ -1040,7 +1040,7 @@ runtimefunction id=69 function=f15 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f23 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1049,7 +1049,7 @@ runtimefunction id=69 function=f15 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f15}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f15} creator=Entrypoint{target=f15 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f15}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f15} creator=Entrypoint{target=f15 arguments=Registers} { # CHECK-NEXT: b0(v0: f15, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f15 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1070,7 +1070,7 @@ runtimefunction id=69 function=f15 # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f15 parameterMap=[{original=0}]} creator=ResultWorker{origin=f15} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f15 parameterMap=[{original=0}]} creator=ResultWorker{origin=f15} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/list-parsed-by-type-literal-lone-setter.ir b/test/aot/engine-tests/pipeline/objects/list-parsed-by-type-literal-lone-setter.ir index a953942c6178..8e9152597bcf 100644 --- a/test/aot/engine-tests/pipeline/objects/list-parsed-by-type-literal-lone-setter.ir +++ b/test/aot/engine-tests/pipeline/objects/list-parsed-by-type-literal-lone-setter.ir @@ -177,7 +177,7 @@ function f3 name="symbol" module=m0 position=146 kind=Setter flags=[IsChecked, H v8 = Undefined Return v8 } -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -200,7 +200,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 make symbol next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 calleeIsPredicted=true module=m0}] { @@ -541,7 +541,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -550,7 +550,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -565,7 +565,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/literal-computed-members-written-json.ir b/test/aot/engine-tests/pipeline/objects/literal-computed-members-written-json.ir index fdaed82bcee6..b569fb55ffe4 100644 --- a/test/aot/engine-tests/pipeline/objects/literal-computed-members-written-json.ir +++ b/test/aot/engine-tests/pipeline/objects/literal-computed-members-written-json.ir @@ -224,7 +224,7 @@ function f4 name="listEntriesOfThree" module=m0 position=685 flags=[HasExplicitN v18 = Call v2, v1, v17 calleeName="Object.entries" ReturnCall v18 casts=[{declared={type=undefined|null|Array flags=[IsExpected]}}] } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -247,7 +247,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 writeBehindSpread next writeBoth listKeys listEntriesOfThree # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f9 callPosition=685 parent=1 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f8 callPosition=309 parent=3 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f7 callPosition=133 parent=5 module=m0}] { @@ -343,7 +343,7 @@ runtimefunction id=69 function=f5 # CHECK-LABEL: function {{*}}name="listEntriesOfThree" # CHECK: module=m0 position=685 role=ParameterWrapper flags=[HasExplicitName] length=1 thisType={type=anything} parameters=[{type=L1}] results=[{type=Array, proven, Contiguous, pristine[Storage, Names, Dense]>, proven, pristine[Storage, Names, Dense]>}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, IsHiddenInStackTraces, ClosuresAreReadWithoutCode] creator=ParameterWrapper{body=f9} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f12 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -388,13 +388,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/literal-takes-wrapped-number-variable.ir b/test/aot/engine-tests/pipeline/objects/literal-takes-wrapped-number-variable.ir index 6f67859d666c..0da2cb05dd1a 100644 --- a/test/aot/engine-tests/pipeline/objects/literal-takes-wrapped-number-variable.ir +++ b/test/aot/engine-tests/pipeline/objects/literal-takes-wrapped-number-variable.ir @@ -283,7 +283,7 @@ function f4 module=m0 position=865 kind=Arrow flags=[IsChecked] captures=[{type= v16 = Convert v15 declared={type=undefined|null|number|object site=w13 flags=[OmitsNull]} Return v16 } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -306,7 +306,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 isOptional fillHolders next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -492,7 +492,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v27 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f10 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f10 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -501,13 +501,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/name-object-filled-key-defined-anew-more.ir b/test/aot/engine-tests/pipeline/objects/name-object-filled-key-defined-anew-more.ir index c497d0bb4772..f7a5ad06746e 100644 --- a/test/aot/engine-tests/pipeline/objects/name-object-filled-key-defined-anew-more.ir +++ b/test/aot/engine-tests/pipeline/objects/name-object-filled-key-defined-anew-more.ir @@ -711,7 +711,7 @@ function f21 module=m0 role=Signature thisType={type=anything} results=[{type=an function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -753,7 +753,7 @@ function f41 module=m4 role=Signature thisType={type=anything} results=[{type=an function f42 module=m4 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f24] function f43 module=m4 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f36] function f44 module=m4 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f36] -runtimefunction id=69 function=f25 +runtimefunction id=68 function=f25 # -- generated: fill check f3 f4 f5 f6 f7 get set next # CHECK-LABEL: function {{*}}name="fill" # CHECK: module=m0 position=849 flags=[HasExplicitName] length=2 thisType={type=anything} parameters=[{type=Object}, {type=undefined|int}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -1187,7 +1187,7 @@ runtimefunction id=69 function=f25 # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f59 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f59 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f59 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1208,7 +1208,7 @@ runtimefunction id=69 function=f25 # CHECK-LABEL: function {{*}}name="set" # CHECK: module=m4 position=21739 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 captures=[{type=undefined|null|string site=w5 flags=[OmitsNull, OmitsUndefined]}] thisType={type=undefined|null|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] functionTypes=[f42] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f25}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f25}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { # CHECK-NEXT: b0(v0: f25, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f25 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1232,7 +1232,7 @@ runtimefunction id=69 function=f25 # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f25 parameterMap=[{original=0}]} creator=ResultWorker{origin=f25} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f25 parameterMap=[{original=0}]} creator=ResultWorker{origin=f25} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/objects/undefined-stored-fields-lie-outside-cell.ir b/test/aot/engine-tests/pipeline/objects/undefined-stored-fields-lie-outside-cell.ir index 269e1ed72618..41668e6aa193 100644 --- a/test/aot/engine-tests/pipeline/objects/undefined-stored-fields-lie-outside-cell.ir +++ b/test/aot/engine-tests/pipeline/objects/undefined-stored-fields-lie-outside-cell.ir @@ -1210,7 +1210,7 @@ function f13 module=m0 position=370 kind=Initializer flags=[HasThis, IsChecked, function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16] function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1233,7 +1233,7 @@ function f17 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f18 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2336,8 +2336,8 @@ function f25 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f18 -runtimefunction id=69 function=f17 +runtimefunction id=64 function=f18 +runtimefunction id=68 function=f17 runtimefunction id=131091 function=f25 visibility=Private # -- generated: show clearAll fillSome fillAll blank f11 f12 next # CHECK-LABEL: function {{*}}name="show" @@ -2658,7 +2658,7 @@ runtimefunction id=131091 function=f25 visibility=Private # CHECK-NEXT: Jump -> next b3(v21, v19) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f39 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f39 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f39 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2807,13 +2807,13 @@ runtimefunction id=131091 function=f25 visibility=Private # CHECK-NEXT: Return v45 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f17}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f17} creator=Entrypoint{target=f17 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f17}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f17} creator=Entrypoint{target=f17 arguments=Registers} { # CHECK-NEXT: b0(v0: f17, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f17 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f17 parameterMap=[{original=0}]} creator=ResultWorker{origin=f17} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f17 parameterMap=[{original=0}]} creator=ResultWorker{origin=f17} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/parsed-records/members-that-objects-program-makes.ir b/test/aot/engine-tests/pipeline/parsed-records/members-that-objects-program-makes.ir index 34c605c1dc91..95c60a497789 100644 --- a/test/aot/engine-tests/pipeline/parsed-records/members-that-objects-program-makes.ir +++ b/test/aot/engine-tests/pipeline/parsed-records/members-that-objects-program-makes.ir @@ -520,7 +520,7 @@ function f6 module=m0 role=Signature thisType={type=anything} results=[{type=any function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -543,7 +543,7 @@ function f10 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f11 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -606,7 +606,7 @@ function f11 name="map" module=m2 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f12 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -630,7 +630,7 @@ function f12 name="next" module=m3 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f13 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -654,7 +654,7 @@ function f13 name="return" module=m3 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f14 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -711,7 +711,7 @@ function f15 name="iteratorGenericClose" module=m4 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f16 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -732,7 +732,7 @@ function f16 name="next" module=m5 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f17 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -783,7 +783,7 @@ function f17 name="return" module=m5 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f18 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -805,7 +805,7 @@ function f18 name="next" module=m6 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f19 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1882,15 +1882,15 @@ function f26 name="traverseArray" module=m7 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f11 -runtimefunction id=69 function=f10 -runtimefunction id=70 function=f12 visibility=Private -runtimefunction id=71 function=f16 visibility=Private -runtimefunction id=72 function=f18 -runtimefunction id=86 function=f13 visibility=Private -runtimefunction id=87 function=f17 -runtimefunction id=88 function=f19 -runtimefunction id=92 function=f14 visibility=Private +runtimefunction id=64 function=f11 +runtimefunction id=68 function=f10 +runtimefunction id=69 function=f12 visibility=Private +runtimefunction id=70 function=f16 visibility=Private +runtimefunction id=71 function=f18 +runtimefunction id=85 function=f13 visibility=Private +runtimefunction id=86 function=f17 +runtimefunction id=87 function=f19 +runtimefunction id=91 function=f14 visibility=Private runtimefunction id=131072 function=f15 visibility=Private runtimefunction id=131091 function=f26 visibility=Private # -- generated: show row use f5 throw @@ -1982,7 +1982,7 @@ runtimefunction id=131091 function=f26 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f51 layout=L(IteratorResult)} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f51 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f51 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2063,7 +2063,7 @@ runtimefunction id=131091 function=f26 visibility=Private # CHECK-NEXT: Jump -> next b1(v17) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f14}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { +# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f14}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { # CHECK-NEXT: b0(v0: f14, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f14 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -2075,7 +2075,7 @@ runtimefunction id=131091 function=f26 visibility=Private # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f14 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f14} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f14 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f14} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/private-members/private-field-read-values-no-instances.ir b/test/aot/engine-tests/pipeline/private-members/private-field-read-values-no-instances.ir index 533200014970..397e54d7512d 100644 --- a/test/aot/engine-tests/pipeline/private-members/private-field-read-values-no-instances.ir +++ b/test/aot/engine-tests/pipeline/private-members/private-field-read-values-no-instances.ir @@ -165,7 +165,7 @@ function f3 module=m0 position=221 kind=Initializer flags=[HasThis, IsChecked, I v8 = Undefined Return v8 } -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -188,7 +188,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 Safe codeOf f3 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f11 callPosition=4294967295 isConstruction=true module=m0}, {callee=f11 callPosition=4294967295 isConstruction=true module=m0}, {callee=f3 callPosition=4294967295 parent=4 module=m0}, {callee=f3 callPosition=4294967295 parent=3 module=m0}, {callee=f7 callPosition=244 parent=2 isTailCall=true module=m0}, {callee=f6 callPosition=244 parent=2 isTailCall=true module=m0}, {callee=f7 callPosition=244 parent=1 isTailCall=true module=m0}, {callee=f6 callPosition=244 parent=1 isTailCall=true module=m0}] { @@ -295,7 +295,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -374,7 +374,7 @@ runtimefunction id=69 function=f4 # CHECK-LABEL: function {{*}}name="codeOf" # CHECK: module=m0 position=244 kind=Method role=GenericVersion flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|L0 site=w3 flags=[IsExpected, OmitsNull, OmitsUndefined]}] results=[{type=int site=w4}] capabilities=[MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=Version{provenVersion=f6} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/relational-summaries/accessor-arrives-on-one-object-of-many.ir b/test/aot/engine-tests/pipeline/relational-summaries/accessor-arrives-on-one-object-of-many.ir index 35e0df2991af..514b0d6df9c4 100644 --- a/test/aot/engine-tests/pipeline/relational-summaries/accessor-arrives-on-one-object-of-many.ir +++ b/test/aot/engine-tests/pipeline/relational-summaries/accessor-arrives-on-one-object-of-many.ir @@ -408,8 +408,8 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f28 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w2}, {type=number site=w3}] results=[{type=number site=w4}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w5 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w6}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=number site=w9}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -717,8 +717,8 @@ function f34 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v249 = TruncateNewArray v247, v248 Return v249 } -runtimefunction id=65 function=f27 -runtimefunction id=69 function=f26 +runtimefunction id=64 function=f27 +runtimefunction id=68 function=f26 runtimefunction id=131091 function=f34 visibility=Private # -- generated: width widen spyOn measureInstance Box get set # CHECK-LABEL: function {{*}}name="width" diff --git a/test/aot/engine-tests/pipeline/runtime-caches/getters-found-name-strings-functions.ir b/test/aot/engine-tests/pipeline/runtime-caches/getters-found-name-strings-functions.ir index 6a15ae01f9ef..81c29c4cb5f5 100644 --- a/test/aot/engine-tests/pipeline/runtime-caches/getters-found-name-strings-functions.ir +++ b/test/aot/engine-tests/pipeline/runtime-caches/getters-found-name-strings-functions.ir @@ -419,7 +419,7 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f20] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -442,7 +442,7 @@ function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f22 +runtimefunction id=68 function=f22 # -- generated: f0 made get next readAll # CHECK-LABEL: function f0 module= # CHECK: m0 kind=CommonJsModule thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}] { @@ -688,7 +688,7 @@ runtimefunction id=69 function=f22 # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f37 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f37 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f37 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -734,7 +734,7 @@ runtimefunction id=69 function=f22 # CHECK-NEXT: Return v30 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f22}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f22}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f22} creator=Entrypoint{target=f22 arguments=Registers} { # CHECK-NEXT: b0(v0: f22, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f22 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -853,7 +853,7 @@ runtimefunction id=69 function=f22 # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}]} creator=ResultWorker{origin=f22} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f22 parameterMap=[{original=0}]} creator=ResultWorker{origin=f22} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/runtime-caches/place-reads-name-objects-many-kinds.ir b/test/aot/engine-tests/pipeline/runtime-caches/place-reads-name-objects-many-kinds.ir index 20c6622a5366..df08f61d0cda 100644 --- a/test/aot/engine-tests/pipeline/runtime-caches/place-reads-name-objects-many-kinds.ir +++ b/test/aot/engine-tests/pipeline/runtime-caches/place-reads-name-objects-many-kinds.ir @@ -902,7 +902,7 @@ function f20 module=m0 role=Signature thisType={type=anything} results=[{type=an function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f24 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2005,7 +2005,7 @@ function f31 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f24 +runtimefunction id=64 function=f24 runtimefunction id=131091 function=f31 visibility=Private # -- generated: read make round Field Late Inherits Computes mark Lacks get # CHECK-LABEL: function {{*}}name="read" diff --git a/test/aot/engine-tests/pipeline/sabotages/generator-heads-have-effects-left-alone.ir b/test/aot/engine-tests/pipeline/sabotages/generator-heads-have-effects-left-alone.ir index 1134f9f6332e..44a49caa9a25 100644 --- a/test/aot/engine-tests/pipeline/sabotages/generator-heads-have-effects-left-alone.ir +++ b/test/aot/engine-tests/pipeline/sabotages/generator-heads-have-effects-left-alone.ir @@ -19,14 +19,14 @@ layout L3 fields=[{key="return" declared={type=anything} flags=[IsRequired, IsMe layout L4 module=m4 fields=[{key="done" declared={type=undefined|boolean flags=[IsExpected]}}, {key="value" declared={type=anything}}] variable g0 name="takes" module=m0 declared={type=f1 flags=[IsFromCompiler]} initialization=Function function=f1 flags=[IsImmutable] data d0 root=Array{contents=anything} module=m0 -runtimefunction id=69 function=f8 -runtimefunction id=70 function=f9 visibility=Private -runtimefunction id=71 function=f13 visibility=Private -runtimefunction id=72 function=f15 -runtimefunction id=86 function=f10 visibility=Private -runtimefunction id=87 function=f14 -runtimefunction id=88 function=f16 -runtimefunction id=92 function=f11 visibility=Private +runtimefunction id=68 function=f8 +runtimefunction id=69 function=f9 visibility=Private +runtimefunction id=70 function=f13 visibility=Private +runtimefunction id=71 function=f15 +runtimefunction id=85 function=f10 visibility=Private +runtimefunction id=86 function=f14 +runtimefunction id=87 function=f16 +runtimefunction id=91 function=f11 visibility=Private runtimefunction id=131072 function=f12 visibility=Private function f0 module=m0 kind=Module thisType={type=anything} results=[{type=anything}] { @@ -152,7 +152,7 @@ function f5 module=m0 role=Signature thisType={type=anything} results=[{type=any function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -176,7 +176,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe Unreachable } -function f9 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f9 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -201,7 +201,7 @@ function f9 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChe Return v13 } -function f10 name="return" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f10 name="return" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -226,7 +226,7 @@ function f10 name="return" module=m2 kind=Method role=Library flags=[HasThis, Is Return v13 } -function f11 name="throw" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f11 name="throw" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -285,7 +285,7 @@ function f12 name="iteratorGenericClose" module=m3 kind=Method role=Library flag Unreachable } -function f13 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] { +function f13 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -307,7 +307,7 @@ function f13 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f14 name="return" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] { +function f14 name="return" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -359,7 +359,7 @@ function f14 name="return" module=m5 kind=Method role=Library flags=[HasThis, Is Unreachable } -function f15 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] { +function f15 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -382,7 +382,7 @@ function f15 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f16 name="return" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] { +function f16 name="return" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/pipeline/sabotages/generators-are-read-before-their-first-step-left-alone.ir b/test/aot/engine-tests/pipeline/sabotages/generators-are-read-before-their-first-step-left-alone.ir index 735159e749dc..db98a9edece3 100644 --- a/test/aot/engine-tests/pipeline/sabotages/generators-are-read-before-their-first-step-left-alone.ir +++ b/test/aot/engine-tests/pipeline/sabotages/generators-are-read-before-their-first-step-left-alone.ir @@ -24,14 +24,14 @@ variable g6 name="extraTurns" module=m0 declared={type=int[0, 1]|absent flags=[I variable g7 name="shared" module=m0 declared={type=number|absent flags=[IsExpected]} data d0 root=Array{contents=anything} module=m0 data d1 root=Array{contents=anything} module=m0 -runtimefunction id=69 function=f19 -runtimefunction id=70 function=f20 visibility=Private -runtimefunction id=71 function=f24 visibility=Private -runtimefunction id=72 function=f26 -runtimefunction id=86 function=f21 visibility=Private -runtimefunction id=87 function=f25 -runtimefunction id=88 function=f27 -runtimefunction id=92 function=f22 visibility=Private +runtimefunction id=68 function=f19 +runtimefunction id=69 function=f20 visibility=Private +runtimefunction id=70 function=f24 visibility=Private +runtimefunction id=71 function=f26 +runtimefunction id=85 function=f21 visibility=Private +runtimefunction id=86 function=f25 +runtimefunction id=87 function=f27 +runtimefunction id=91 function=f22 visibility=Private runtimefunction id=131072 function=f23 visibility=Private function f0 module=m0 kind=Module thisType={type=anything} results=[{type=anything}] { @@ -398,7 +398,7 @@ function f16 module=m0 role=Signature thisType={type=anything} results=[{type=an function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] { +function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -422,7 +422,7 @@ function f19 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f20 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f20 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -447,7 +447,7 @@ function f20 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh Return v13 } -function f21 name="return" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f21 name="return" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -472,7 +472,7 @@ function f21 name="return" module=m2 kind=Method role=Library flags=[HasThis, Is Return v13 } -function f22 name="throw" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f22 name="throw" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -531,7 +531,7 @@ function f23 name="iteratorGenericClose" module=m3 kind=Method role=Library flag Unreachable } -function f24 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] { +function f24 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -553,7 +553,7 @@ function f24 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f25 name="return" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] { +function f25 name="return" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -605,7 +605,7 @@ function f25 name="return" module=m5 kind=Method role=Library flags=[HasThis, Is Unreachable } -function f26 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] { +function f26 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -628,7 +628,7 @@ function f26 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f27 name="return" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] { +function f27 name="return" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/pipeline/sabotages/promoted-environments-are-made-often-left-alone.ir b/test/aot/engine-tests/pipeline/sabotages/promoted-environments-are-made-often-left-alone.ir index e079ad3f0e38..772f6ffcce0d 100644 --- a/test/aot/engine-tests/pipeline/sabotages/promoted-environments-are-made-often-left-alone.ir +++ b/test/aot/engine-tests/pipeline/sabotages/promoted-environments-are-made-often-left-alone.ir @@ -22,14 +22,14 @@ variable g2 name="said" module=m0 declared={type=undefined|null|absent|Array fla variable g3 name="older" module=m0 declared={type=undefined|null|absent|Array flags=[OmitsNull, OmitsUndefined]} flags=[IsImmutable] data d0 root=Array{contents=anything} module=m0 data d1 root=Array{contents=undefined|null|L1} module=m0 -runtimefunction id=69 function=f16 -runtimefunction id=70 function=f17 visibility=Private -runtimefunction id=71 function=f21 visibility=Private -runtimefunction id=72 function=f23 -runtimefunction id=86 function=f18 visibility=Private -runtimefunction id=87 function=f22 -runtimefunction id=88 function=f24 -runtimefunction id=92 function=f19 visibility=Private +runtimefunction id=68 function=f16 +runtimefunction id=69 function=f17 visibility=Private +runtimefunction id=70 function=f21 visibility=Private +runtimefunction id=71 function=f23 +runtimefunction id=85 function=f18 visibility=Private +runtimefunction id=86 function=f22 +runtimefunction id=87 function=f24 +runtimefunction id=91 function=f19 visibility=Private runtimefunction id=131072 function=f20 visibility=Private function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=anything}] { @@ -407,7 +407,7 @@ function f13 module=m0 role=Signature thisType={type=anything} results=[{type=an function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f12] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] { +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -431,7 +431,7 @@ function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -456,7 +456,7 @@ function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh Return v13 } -function f18 name="return" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f18 name="return" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -481,7 +481,7 @@ function f18 name="return" module=m2 kind=Method role=Library flags=[HasThis, Is Return v13 } -function f19 name="throw" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { +function f19 name="throw" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -540,7 +540,7 @@ function f20 name="iteratorGenericClose" module=m3 kind=Method role=Library flag Unreachable } -function f21 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] { +function f21 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -562,7 +562,7 @@ function f21 name="next" module=m5 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f22 name="return" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] { +function f22 name="return" module=m5 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -614,7 +614,7 @@ function f22 name="return" module=m5 kind=Method role=Library flags=[HasThis, Is Unreachable } -function f23 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] { +function f23 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): @@ -637,7 +637,7 @@ function f23 name="next" module=m6 kind=Method role=Library flags=[HasThis, IsCh Unreachable } -function f24 name="return" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] { +function f24 name="return" module=m6 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] { b0(v0: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/pipeline/sabotages/remembered-reads-outlast-writes-left-alone.ir b/test/aot/engine-tests/pipeline/sabotages/remembered-reads-outlast-writes-left-alone.ir index 95485fd61c34..0d2491ceb246 100644 --- a/test/aot/engine-tests/pipeline/sabotages/remembered-reads-outlast-writes-left-alone.ir +++ b/test/aot/engine-tests/pipeline/sabotages/remembered-reads-outlast-writes-left-alone.ir @@ -17,7 +17,7 @@ variable g4 name="Point" module=m0 declared={type=absent|f8 flags=[IsFromCompile variable g5 module=m0 declared={type=function flags=[IsFromCompiler]} flags=[IsImmutable] data d0 root=Array{contents=anything} module=m0 data d1 root=Array{contents=number elements=[Number{value=3}, Number{value=4}]} module=m0 -runtimefunction id=44 function=f22 +runtimefunction id=43 function=f22 function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=anything}] { b0(): @@ -392,7 +392,7 @@ function f19 module=m0 role=Signature thisType={type=anything} results=[{type=an function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f22 name="forEach" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { +function f22 name="forEach" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/pipeline/sabotages/skipped-blocks-have-effects-left-alone.ir b/test/aot/engine-tests/pipeline/sabotages/skipped-blocks-have-effects-left-alone.ir index 637de1acd3ad..e718dad44a82 100644 --- a/test/aot/engine-tests/pipeline/sabotages/skipped-blocks-have-effects-left-alone.ir +++ b/test/aot/engine-tests/pipeline/sabotages/skipped-blocks-have-effects-left-alone.ir @@ -19,7 +19,7 @@ variable g5 name="box" module=m0 declared={type=undefined|null|absent|L2 flags=[ data d0 root=Array{contents=anything} module=m0 data d1 root=Object{layout=L2 members=[{key="value" value=Number{}}]} module=m0 data d2 root=Array{contents=number elements=[Number{value=3}, Number{value=4}]} module=m0 -runtimefunction id=44 function=f25 +runtimefunction id=43 function=f25 function f0 module=m0 kind=Module thisType={type=anything} results=[{type=anything}] { b0(): @@ -379,7 +379,7 @@ function f22 module=m0 role=Signature thisType={type=anything} results=[{type=an function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f25 name="forEach" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { +function f25 name="forEach" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): diff --git a/test/aot/engine-tests/pipeline/soundness/esm-registry-entry-deleted.ir b/test/aot/engine-tests/pipeline/soundness/esm-registry-entry-deleted.ir index 2e450922c941..273f446af096 100644 --- a/test/aot/engine-tests/pipeline/soundness/esm-registry-entry-deleted.ir +++ b/test/aot/engine-tests/pipeline/soundness/esm-registry-entry-deleted.ir @@ -1092,7 +1092,7 @@ function f25 module=m2 role=Signature thisType={type=anything} results=[{type=an function f26 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f27 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f28 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f29 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1115,7 +1115,7 @@ function f29 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f30 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1139,7 +1139,7 @@ function f30 name="next" module=m4 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f31 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f31 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1163,7 +1163,7 @@ function f31 name="return" module=m4 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f32 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f32 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1220,7 +1220,7 @@ function f33 name="iteratorGenericClose" module=m5 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f34 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f34 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1241,7 +1241,7 @@ function f34 name="next" module=m7 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f35 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f35 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1292,7 +1292,7 @@ function f35 name="return" module=m7 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f36 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1314,7 +1314,7 @@ function f36 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f37 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2106,14 +2106,14 @@ function f78 module=m13 kind=Module role=Library flags=[IsChecked] thisType={typ Return v39 } function f79 name="matchesGlob" module=m13 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f29 -runtimefunction id=70 function=f30 visibility=Private -runtimefunction id=71 function=f34 visibility=Private -runtimefunction id=72 function=f36 -runtimefunction id=86 function=f31 visibility=Private -runtimefunction id=87 function=f35 -runtimefunction id=88 function=f37 -runtimefunction id=92 function=f32 visibility=Private +runtimefunction id=68 function=f29 +runtimefunction id=69 function=f30 visibility=Private +runtimefunction id=70 function=f34 visibility=Private +runtimefunction id=71 function=f36 +runtimefunction id=85 function=f31 visibility=Private +runtimefunction id=86 function=f35 +runtimefunction id=87 function=f37 +runtimefunction id=91 function=f32 visibility=Private runtimefunction id=65574 function=f11 runtimefunction id=65580 function=f10 runtimefunction id=131072 function=f33 visibility=Private @@ -2260,7 +2260,7 @@ runtimefunction id=131072 function=f33 visibility=Private # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m2 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L3 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w12 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f139 layout=L(IteratorResult)} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f139 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f139 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2523,7 +2523,7 @@ runtimefunction id=131072 function=f33 visibility=Private # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m11 position=1458 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|function site=w55 flags=[IsExpected, OmitsNull, OmitsUndefined]}, {type=Array site=w56 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}, {type=function}] results=[{type=undefined}] capabilities=[MayBeCloned, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, IsHiddenInStackTraces] derivation={source=f46 parameterMap=[{original=0}, {original=1}, {}]} # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f32}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f32} creator=Entrypoint{target=f32 arguments=Registers} { +# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f32}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f32} creator=Entrypoint{target=f32 arguments=Registers} { # CHECK-NEXT: b0(v0: f32, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f32 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -2798,7 +2798,7 @@ runtimefunction id=131072 function=f33 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f32 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f32} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f32 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f32} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/soundness/member-read-of-undefined-known-inlining.ir b/test/aot/engine-tests/pipeline/soundness/member-read-of-undefined-known-inlining.ir index 6a649bc04227..82655a27a958 100644 --- a/test/aot/engine-tests/pipeline/soundness/member-read-of-undefined-known-inlining.ir +++ b/test/aot/engine-tests/pipeline/soundness/member-read-of-undefined-known-inlining.ir @@ -339,7 +339,7 @@ function f21 module=m0 role=Signature thisType={type=anything} results=[{type=an function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f23 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f22] function f24 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f22] -function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -362,7 +362,7 @@ function f25 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f25 +runtimefunction id=68 function=f25 # -- generated: f0 tryAll Person Animal f7 f8 f9 f10 f11 f13 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f36 callPosition=4294967295 isConstruction=true module=m0}, {callee=f38 callPosition=4294967295 isConstruction=true module=m0}, {callee=f34 callPosition=4294967295 parent=2 isConstruction=true module=m0}, {callee=f34 callPosition=4294967295 parent=1 isConstruction=true module=m0}] { @@ -551,7 +551,7 @@ runtimefunction id=69 function=f25 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -626,7 +626,7 @@ runtimefunction id=69 function=f25 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f25}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f25}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f25} creator=Entrypoint{target=f25 arguments=Registers} { # CHECK-NEXT: b0(v0: f25, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f25 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/soundness/prototype-getter-new-target-shortens.ir b/test/aot/engine-tests/pipeline/soundness/prototype-getter-new-target-shortens.ir index 20e097ddce5f..cad86e0f0c1c 100644 --- a/test/aot/engine-tests/pipeline/soundness/prototype-getter-new-target-shortens.ir +++ b/test/aot/engine-tests/pipeline/soundness/prototype-getter-new-target-shortens.ir @@ -201,7 +201,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -260,7 +260,7 @@ function f16 name="forEach" module=m1 position=3958 kind=Method role=Library fla v37 = ThrowNewError errorKind=TypeError message="Array.prototype.forEach callback must be a function" Unreachable } -runtimefunction id=44 function=f16 +runtimefunction id=43 function=f16 # -- generated: f0 F B get f5 forEach # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -458,7 +458,7 @@ runtimefunction id=44 function=f16 # CHECK-NEXT: Return v17 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -544,7 +544,7 @@ runtimefunction id=44 function=f16 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=44 captures=[{type=f16}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { +# CHECK: module=m1 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=43 captures=[{type=f16}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { # CHECK-NEXT: b0(v0: f16, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: undefined = CallDirect v1, v2, v3 function=f16 @3958 tail # CHECK-NEXT: Return v4 diff --git a/test/aot/engine-tests/pipeline/soundness/reflect-set-stores-receiver-set.ir b/test/aot/engine-tests/pipeline/soundness/reflect-set-stores-receiver-set.ir index 3cef3cff12f2..af324d63e9aa 100644 --- a/test/aot/engine-tests/pipeline/soundness/reflect-set-stores-receiver-set.ir +++ b/test/aot/engine-tests/pipeline/soundness/reflect-set-stores-receiver-set.ir @@ -86,7 +86,7 @@ function f2 name="look" module=m0 position=102 flags=[HasExplicitName] length=1 v20 = Undefined Return v20 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -109,7 +109,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f4 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -133,7 +133,7 @@ function f4 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f5 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -157,7 +157,7 @@ function f5 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f6 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -214,7 +214,7 @@ function f7 name="iteratorGenericClose" module=m3 position=314 kind=Method role= v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f8 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -235,7 +235,7 @@ function f8 name="next" module=m4 position=25 kind=Method role=Library flags=[Ha v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f9 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -286,7 +286,7 @@ function f9 name="return" module=m4 position=326 kind=Method role=Library flags= v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f10 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -308,7 +308,7 @@ function f10 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f11 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -345,14 +345,14 @@ function f11 name="return" module=m5 position=2171 kind=Method role=Library flag v19 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -runtimefunction id=69 function=f3 -runtimefunction id=70 function=f4 visibility=Private -runtimefunction id=71 function=f8 visibility=Private -runtimefunction id=72 function=f10 -runtimefunction id=86 function=f5 visibility=Private -runtimefunction id=87 function=f9 -runtimefunction id=88 function=f11 -runtimefunction id=92 function=f6 visibility=Private +runtimefunction id=68 function=f3 +runtimefunction id=69 function=f4 visibility=Private +runtimefunction id=70 function=f8 visibility=Private +runtimefunction id=71 function=f10 +runtimefunction id=85 function=f5 visibility=Private +runtimefunction id=86 function=f9 +runtimefunction id=87 function=f11 +runtimefunction id=91 function=f6 visibility=Private runtimefunction id=131072 function=f7 visibility=Private # -- generated: f0 one look next return throw iteratorGenericClose # CHECK-LABEL: function f0 module= @@ -402,7 +402,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v14 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f23 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f23 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -411,7 +411,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f24 layout=L(IteratorResult)} { +# CHECK: module=m2 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f24 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f24 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -433,7 +433,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f25 layout=L(IteratorResult)} { +# CHECK: module=m2 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f25 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f25 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -455,7 +455,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f26 layout=L(IteratorResult)} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f26 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f26 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -499,7 +499,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ IteratorHelper): # CHECK-NEXT: v1: boolean = HasJSType v0 first=6 last=6 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b2() @@ -515,7 +515,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f27 layout=L(IteratorResult)} { +# CHECK: module=m4 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f27 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f27 # CHECK-NEXT: v2: i32 = ResultAt v1 @@ -537,7 +537,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ WrapForValidIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=10 last=10 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b2() @@ -553,7 +553,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ WrapForValidIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=10 last=10 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b4() @@ -577,31 +577,31 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3 arguments=Registers} { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f3 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f4}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m2 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f4 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f5}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m2 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f5}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f5 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f6}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f6} creator=Entrypoint{target=f6 arguments=Registers} { +# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f6}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f6} creator=Entrypoint{target=f6 arguments=Registers} { # CHECK-NEXT: b0(v0: f6, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f6 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=71 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} inlineFrames=[{}, {callee=f8 callPosition=25 isTailCall=true module=m4}] { +# CHECK: module=m4 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=70 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} inlineFrames=[{}, {callee=f8 callPosition=25 isTailCall=true module=m4}] { # CHECK-NEXT: b0(v0: f8, v1: anything): # CHECK-NEXT: v2: anything ~ IteratorHelper = Upcast v1 castType=anything @25 tail # CHECK-NEXT: v3: fact = Entered function=f8 @25 tail @@ -619,13 +619,13 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { +# CHECK: module=m4 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=86 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { # CHECK-NEXT: b0(v0: f9, v1: anything): # CHECK-NEXT: v2: object = CallDirect v1 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m5 position=1421 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=72 captures=[{type=f10}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f10} creator=Entrypoint{target=f10 arguments=Registers} inlineFrames=[{}, {callee=f10 callPosition=1421 isTailCall=true module=m5}] { +# CHECK: module=m5 position=1421 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=71 captures=[{type=f10}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f10} creator=Entrypoint{target=f10 arguments=Registers} inlineFrames=[{}, {callee=f10 callPosition=1421 isTailCall=true module=m5}] { # CHECK-NEXT: b0(v0: f10, v1: anything): # CHECK-NEXT: v2: anything ~ WrapForValidIterator = Upcast v1 castType=anything @1421 tail # CHECK-NEXT: v3: fact = Entered function=f10 @1421 tail @@ -643,7 +643,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=2171 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=88 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m5 position=2171 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: anything = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -655,7 +655,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}]} creator=ResultWorker{origin=f3} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() @@ -759,7 +759,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f4} { +# CHECK: module=m2 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f4} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -784,7 +784,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m2 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -809,7 +809,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f6 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f6} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f6 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f6} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -834,7 +834,7 @@ runtimefunction id=131072 function=f7 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=i32}, {type=object|unspecified}, {type=undefined|unspecified}, {type=true|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { +# CHECK: module=m4 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=i32}, {type=object|unspecified}, {type=undefined|unspecified}, {type=true|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { # CHECK-NEXT: b0(v0: anything ~ IteratorHelper): # CHECK-NEXT: v1: boolean = HasJSType v0 first=6 last=6 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b6() diff --git a/test/aot/engine-tests/pipeline/soundness/typed-against-erased.ir b/test/aot/engine-tests/pipeline/soundness/typed-against-erased.ir index c53a50e8f2bb..918ff4f80e0b 100644 --- a/test/aot/engine-tests/pipeline/soundness/typed-against-erased.ir +++ b/test/aot/engine-tests/pipeline/soundness/typed-against-erased.ir @@ -2162,7 +2162,7 @@ function f52 module=m1 role=Signature thisType={type=anything} results=[{type=an function f53 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f55 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f56 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2940,7 +2940,7 @@ function f97 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f98 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w224}, {type=undefined|null|string site=w225 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w226 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w227}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f56 +runtimefunction id=68 function=f56 runtimefunction id=65574 function=f38 runtimefunction id=65580 function=f37 # -- generated: f0 load run awaits sumOf maxOf countOf isId isIdOrNothing guardBehindTest guardThatTests optionalChain kindInVariable throughAny fieldOfHolder createdTail createdLocal accessors f23 f24 f25 get f38 main diff --git a/test/aot/engine-tests/pipeline/static-modules/earlier-cases/namespace-keys-are-sorted.ir b/test/aot/engine-tests/pipeline/static-modules/earlier-cases/namespace-keys-are-sorted.ir index ed04177f378c..0971102b70d8 100644 --- a/test/aot/engine-tests/pipeline/static-modules/earlier-cases/namespace-keys-are-sorted.ir +++ b/test/aot/engine-tests/pipeline/static-modules/earlier-cases/namespace-keys-are-sorted.ir @@ -744,8 +744,8 @@ function f25 module=m2 kind=Module thisType={type=anything} results=[{type=anyth Return v3 } function f26 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f27 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="filter" module=m4 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="filter" module=m4 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.filter requires that |this| not be null or undefined" @@ -788,7 +788,7 @@ function f28 name="filter" module=m4 position=4475 kind=Method role=Library flag v41 = Convert v40 declared={type=undefined|number site=w265} Jump -> next b1(v38, v41, v39) } -function f29 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f29 name="map" module=m4 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="clampToLength" module=m5 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w268}, {type=number site=w269}] results=[{type=number site=w270}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f31 name="storeInNewArray" module=m5 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w271 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w272}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="appendParts" module=m5 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w273 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w274}, {type=anything}] results=[{type=number site=w275}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -801,9 +801,9 @@ function f34 name="finishJoin" module=m5 position=1934 role=Library flags=[IsChe } function f35 name="finishReduce" module=m5 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w282}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f36 name="traverseArray" module=m5 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w283 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w284}, {type=undefined|number site=w285}, {type=number site=w286}, {type=undefined|null|Array site=w287 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=33 function=f28 -runtimefunction id=65 function=f29 -runtimefunction id=69 function=f27 +runtimefunction id=32 function=f28 +runtimefunction id=64 function=f29 +runtimefunction id=68 function=f27 runtimefunction id=131091 function=f36 visibility=Private # -- generated: filter # CHECK-LABEL: function {{*}}name="filter" diff --git a/test/aot/engine-tests/pipeline/static-modules/failures/error-crosses-close-iterator-swallows.ir b/test/aot/engine-tests/pipeline/static-modules/failures/error-crosses-close-iterator-swallows.ir index ac344dca54cc..b1efb7828f00 100644 --- a/test/aot/engine-tests/pipeline/static-modules/failures/error-crosses-close-iterator-swallows.ir +++ b/test/aot/engine-tests/pipeline/static-modules/failures/error-crosses-close-iterator-swallows.ir @@ -142,8 +142,8 @@ function f7 name="t" module=m1 position=131 kind=Arrow flags=[IsSloppy] thisType Return v4 } function f8 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m3 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f11] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f10 name="return" module=m3 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f12] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f9 name="next" module=m3 position=7366 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}, {type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f11] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f10 name="return" module=m3 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f12] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f11 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f12 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] # -- generated: f0 return f6 t @@ -189,6 +189,6 @@ function f12 module=m3 role=Signature thisType={type=anything} results=[{type=an # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=43 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f12] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] +# CHECK: module=m3 position=7441 role=Library flags=[IsChecked] enclosingRuntimeFunction=42 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] functionTypes=[f12] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="return" # CHECK: module=m0 position=95 kind=Method role=ResultWorker flags=[IsSloppy, HasExplicitName] thisType={type=anything} results=[{type=undefined}] functionTypes=[f5] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3} creator=ResultWorker{origin=f3} diff --git a/test/aot/engine-tests/pipeline/static-modules/failures/failure-below-import-that-is-outlived.ir b/test/aot/engine-tests/pipeline/static-modules/failures/failure-below-import-that-is-outlived.ir index 8a52c6fdc19b..5bdde6d7a8eb 100644 --- a/test/aot/engine-tests/pipeline/static-modules/failures/failure-below-import-that-is-outlived.ir +++ b/test/aot/engine-tests/pipeline/static-modules/failures/failure-below-import-that-is-outlived.ir @@ -368,7 +368,7 @@ function f22 module=m7 role=Signature thisType={type=anything} results=[{type=an function f23 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] function f24 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] -function f26 name="next" module=m8 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m8 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 module=m9 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d0 @@ -492,7 +492,7 @@ function f67 module=m13 kind=Module role=Library flags=[IsChecked] thisType={typ Return v35 } function f68 name="matchesGlob" module=m13 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w125}, {type=undefined|null|string site=w126 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w127 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w128}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f26 +runtimefunction id=68 function=f26 runtimefunction id=65574 function=f8 runtimefunction id=65580 function=f7 # -- generated: f1 f3 f6 f8 writeOut onWarning f30 f67 diff --git a/test/aot/engine-tests/pipeline/stress/species/programs-rx2-flags-are-no-constant.ir b/test/aot/engine-tests/pipeline/stress/species/programs-rx2-flags-are-no-constant.ir index 8fbb43353e4d..cadd1010133f 100644 --- a/test/aot/engine-tests/pipeline/stress/species/programs-rx2-flags-are-no-constant.ir +++ b/test/aot/engine-tests/pipeline/stress/species/programs-rx2-flags-are-no-constant.ir @@ -257,7 +257,7 @@ function f2 name="exec" module=m0 position=350 kind=Method flags=[HasThis, IsChe v20 = Call v16, v0, v19 calleeName="super.exec" ReturnCall v20 casts=[{declared={type=undefined|null|Array flags=[IsExpected]}}, {declared={type=undefined|null|Array flags=[IsExpected]}}] } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -394,7 +394,7 @@ function f5 name="apply" module=m2 position=1161 kind=Method role=Library flags= v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f6 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -418,7 +418,7 @@ function f6 name="next" module=m3 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f7 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -442,7 +442,7 @@ function f7 name="return" module=m3 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f8 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -499,7 +499,7 @@ function f9 name="iteratorGenericClose" module=m4 position=314 kind=Method role= v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f10 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -520,7 +520,7 @@ function f10 name="next" module=m6 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f11 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -571,7 +571,7 @@ function f11 name="return" module=m6 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f12 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -593,7 +593,7 @@ function f12 name="next" module=m7 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f13 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -632,14 +632,14 @@ function f13 name="return" module=m7 position=2171 kind=Method role=Library flag } runtimefunction id=4 function=f5 runtimefunction id=12 function=f4 -runtimefunction id=69 function=f3 -runtimefunction id=70 function=f6 visibility=Private -runtimefunction id=71 function=f10 visibility=Private -runtimefunction id=72 function=f12 -runtimefunction id=86 function=f7 visibility=Private -runtimefunction id=87 function=f11 -runtimefunction id=88 function=f13 -runtimefunction id=92 function=f8 visibility=Private +runtimefunction id=68 function=f3 +runtimefunction id=69 function=f6 visibility=Private +runtimefunction id=70 function=f10 visibility=Private +runtimefunction id=71 function=f12 +runtimefunction id=85 function=f7 visibility=Private +runtimefunction id=86 function=f11 +runtimefunction id=87 function=f13 +runtimefunction id=91 function=f8 visibility=Private runtimefunction id=131072 function=f9 visibility=Private # -- generated: f0 Pattern exec call apply return throw iteratorGenericClose # CHECK-LABEL: function f0 module= @@ -919,7 +919,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f31 layout=L(IteratorResult)} { +# CHECK: module=m3 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f31 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f31 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -941,7 +941,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f32 layout=L(IteratorResult)} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f32 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f32 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -985,7 +985,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m6 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f33 layout=L(IteratorResult)} { +# CHECK: module=m6 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f33 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f33 # CHECK-NEXT: v2: i32 = ResultAt v1 @@ -1007,7 +1007,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=WrapForValidIterator flags=[IsExpected]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ WrapForValidIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=10 last=10 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b4() @@ -1056,25 +1056,25 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f7}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m3 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f7}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f7 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m3 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f8 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m6 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m6 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=86 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: object = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m7 position=2171 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=88 captures=[{type=f13}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { +# CHECK: module=m7 position=2171 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f13}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { # CHECK-NEXT: b0(v0: f13, v1: anything): # CHECK-NEXT: v2: anything = CallDirect v1 function=f13 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1086,7 +1086,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m3 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f7} { +# CHECK: module=m3 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f7} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -1111,7 +1111,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f8} { +# CHECK: module=m3 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f8 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f8} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -1136,7 +1136,7 @@ runtimefunction id=131072 function=f9 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m6 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=i32}, {type=object|unspecified}, {type=undefined|unspecified}, {type=true|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { +# CHECK: module=m6 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=i32}, {type=object|unspecified}, {type=undefined|unspecified}, {type=true|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { # CHECK-NEXT: b0(v0: anything ~ IteratorHelper): # CHECK-NEXT: v1: boolean = HasJSType v0 first=6 last=6 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b6() diff --git a/test/aot/engine-tests/pipeline/stress/species/proxy-programs-n06-spread-stores-objects.ir b/test/aot/engine-tests/pipeline/stress/species/proxy-programs-n06-spread-stores-objects.ir index 66f77039bf44..bfb0f88b1df9 100644 --- a/test/aot/engine-tests/pipeline/stress/species/proxy-programs-n06-spread-stores-objects.ir +++ b/test/aot/engine-tests/pipeline/stress/species/proxy-programs-n06-spread-stores-objects.ir @@ -112,7 +112,7 @@ function f0 module=m0 kind=Module thisType={type=anything} results=[{type=anythi function f1 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f2 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -135,7 +135,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -185,7 +185,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v41 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f8 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f8 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f8 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -194,13 +194,13 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f4 parameterMap=[{original=0}]} creator=ResultWorker{origin=f4} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-character-class.ir b/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-character-class.ir index dd93367f70dc..091a3489eb93 100644 --- a/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-character-class.ir +++ b/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-character-class.ir @@ -462,7 +462,7 @@ function f3 module=m1 kind=Method role=Library flags=[HasThis, IsChecked] enclos v10 = Convert v9 declared={type=undefined|null|L0 site=w44 flags=[OmitsNull, OmitsUndefined]} Return v10 } -function f4 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): v4 = Undefined v5 = Convert v2 declared={type=undefined|null|function flags=[IsExpected]} @@ -609,11 +609,11 @@ function f4 name="from" module=m2 position=1338 kind=Method role=Library flags=[ b28(v118): Unreachable } -function f5 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f6 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f7 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f8 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f9 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f6 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f7 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f8 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f9 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): v2 = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator v3 = ResultAt v2 index=1 @@ -638,7 +638,7 @@ function f10 name="iteratorGenericClose" module=m5 position=314 kind=Method role v11 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f11 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -659,7 +659,7 @@ function f11 name="next" module=m6 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f12 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=6 last=6 v2 = ToBoolean v1 @@ -688,7 +688,7 @@ function f12 name="return" module=m6 position=326 kind=Method role=Library flags v21 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f13 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -704,16 +704,16 @@ function f13 name="next" module=m7 position=1421 kind=Method role=Library flags= v7 = Call v4, v6 ReturnCall v7 } -function f14 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f4 -runtimefunction id=69 function=f6 -runtimefunction id=70 function=f7 visibility=Private -runtimefunction id=71 function=f11 visibility=Private -runtimefunction id=72 function=f13 -runtimefunction id=86 function=f8 visibility=Private -runtimefunction id=87 function=f12 -runtimefunction id=88 function=f14 -runtimefunction id=92 function=f9 visibility=Private +function f14 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=46 function=f4 +runtimefunction id=68 function=f6 +runtimefunction id=69 function=f7 visibility=Private +runtimefunction id=70 function=f11 visibility=Private +runtimefunction id=71 function=f13 +runtimefunction id=85 function=f8 visibility=Private +runtimefunction id=86 function=f12 +runtimefunction id=87 function=f14 +runtimefunction id=91 function=f9 visibility=Private runtimefunction id=65569 function=f3 runtimefunction id=131072 function=f10 visibility=Private # -- generated: show diff --git a/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-long-regexps-untyped.ir b/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-long-regexps-untyped.ir index b6b2d3424b92..dddd1a8651a4 100644 --- a/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-long-regexps-untyped.ir +++ b/test/aot/engine-tests/pipeline/strings/atomic-group-idiom-long-regexps-untyped.ir @@ -322,7 +322,7 @@ function f1 name="long" module=m0 position=120 flags=[HasExplicitName] length=2 # CHECK: role=Source # CHECK-NEXT: BB#0: ; frequency = 1.000000 # CHECK-NEXT: Int64 b@10 = ArgumentReg(%r13) -# CHECK-NEXT: Int64 b@21 = Load(b@10, offset = 8040, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v2:String) +# CHECK-NEXT: Int64 b@21 = Load(b@10, offset = 8032, ControlDependent|ReadsImmutable|Reads:AOTInstance_fixedFields, v2:String) # CHECK-NEXT: Int64 b@22 = Load(b@21, offset = 32, ControlDependent|Reads:AOTInstance_stringCells, v2:String) # CHECK-NEXT: Void b@24 = Branch(b@22, Terminal, v2:String) # CHECK-NEXT: Successors: Then:#2, Else:Rare:#3 diff --git a/test/aot/engine-tests/pipeline/strings/code-points-around-the-surrogates.ir b/test/aot/engine-tests/pipeline/strings/code-points-around-the-surrogates.ir index 4b6a4faadbc1..ffdc2cd89683 100644 --- a/test/aot/engine-tests/pipeline/strings/code-points-around-the-surrogates.ir +++ b/test/aot/engine-tests/pipeline/strings/code-points-around-the-surrogates.ir @@ -716,7 +716,7 @@ function f6 module=m0 position=1511 kind=Arrow flags=[IsChecked] length=1 thisTy } function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -739,7 +739,7 @@ function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f10 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1842,8 +1842,8 @@ function f17 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f10 -runtimefunction id=69 function=f9 +runtimefunction id=64 function=f10 +runtimefunction id=68 function=f9 runtimefunction id=131091 function=f17 visibility=Private # -- generated: point unit pointOfAnything walk backwards f6 next # CHECK-LABEL: function {{*}}name="point" @@ -2157,7 +2157,7 @@ runtimefunction id=131091 function=f17 visibility=Private # CHECK-NEXT: ReturnCall v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f28 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2243,13 +2243,13 @@ runtimefunction id=131091 function=f17 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { # CHECK-NEXT: b0(v0: f9, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/conversion-is-remembered-for-one-string.ir b/test/aot/engine-tests/pipeline/strings/conversion-is-remembered-for-one-string.ir index 9b56e22c3313..469fd55821dd 100644 --- a/test/aot/engine-tests/pipeline/strings/conversion-is-remembered-for-one-string.ir +++ b/test/aot/engine-tests/pipeline/strings/conversion-is-remembered-for-one-string.ir @@ -712,7 +712,7 @@ function f13 module=m1 role=Signature thisType={type=anything} results=[{type=an function f14 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -735,7 +735,7 @@ function f17 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f17 +runtimefunction id=68 function=f17 # -- generated: f1 slowly say next # CHECK-LABEL: function f1 module= # CHECK: m0 position=1 flags=[IsSloppy] syntax=[IsEvaluatedScript] thisType={type=anything} results=[{type=f2}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -1033,7 +1033,7 @@ runtimefunction id=69 function=f17 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f22 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f22 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f22 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1042,13 +1042,13 @@ runtimefunction id=69 function=f17 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f17}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f17} creator=Entrypoint{target=f17 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f17}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f17} creator=Entrypoint{target=f17 arguments=Registers} { # CHECK-NEXT: b0(v0: f17, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f17 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f17 parameterMap=[{original=0}]} creator=ResultWorker{origin=f17} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f17 parameterMap=[{original=0}]} creator=ResultWorker{origin=f17} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/line-joined-last-turn-loop-left-verified.ir b/test/aot/engine-tests/pipeline/strings/line-joined-last-turn-loop-left-verified.ir index 859c6232ca6a..6e739fe6c938 100644 --- a/test/aot/engine-tests/pipeline/strings/line-joined-last-turn-loop-left-verified.ir +++ b/test/aot/engine-tests/pipeline/strings/line-joined-last-turn-loop-left-verified.ir @@ -893,7 +893,7 @@ function f43 module=m0 role=Signature thisType={type=anything} results=[{type=an function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f45 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f44] function f46 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -916,7 +916,7 @@ function f47 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f47 +runtimefunction id=68 function=f47 # -- generated: f0 note run joinTooLong readThenJoinTooLong nothing text joined number negativeZero big none flag list converted valued refuses symbol throwsAtOnce throwsLater toString valueOf next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f15 callPosition=4294967295 module=m0}, {callee=f17 callPosition=4294967295 module=m0}] { @@ -1377,7 +1377,7 @@ runtimefunction id=69 function=f47 # CHECK-NEXT: Throw v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f73 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f73 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f73 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1408,7 +1408,7 @@ runtimefunction id=69 function=f47 # CHECK-NEXT: Return v1 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f47}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f47} creator=Entrypoint{target=f47 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f47}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f47} creator=Entrypoint{target=f47 arguments=Registers} { # CHECK-NEXT: b0(v0: f47, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f47 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1550,7 +1550,7 @@ runtimefunction id=69 function=f47 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f47 parameterMap=[{original=0}]} creator=ResultWorker{origin=f47} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f47 parameterMap=[{original=0}]} creator=ResultWorker{origin=f47} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/positions-slice-substring-substr.ir b/test/aot/engine-tests/pipeline/strings/positions-slice-substring-substr.ir index 0414763d4e15..2fdb44540806 100644 --- a/test/aot/engine-tests/pipeline/strings/positions-slice-substring-substr.ir +++ b/test/aot/engine-tests/pipeline/strings/positions-slice-substring-substr.ir @@ -504,7 +504,7 @@ function f4 name="halves" module=m0 position=1735 flags=[IsChecked, HasExplicitN v45 = Convert v6 declared={type=undefined|null|string site=w16 flags=[OmitsNull, OmitsUndefined]} Return v45 } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -527,7 +527,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 one two mix halves next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f7 callPosition=867 parent=4 isTailCall=true module=m0}, {callee=f8 callPosition=980 parent=2 isTailCall=true module=m0}] { @@ -879,7 +879,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v34 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f13 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f13 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -962,13 +962,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v11 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/regexp-literals-matched-string-becomes.ir b/test/aot/engine-tests/pipeline/strings/regexp-literals-matched-string-becomes.ir index 4dd0df658b8f..618340e32b1d 100644 --- a/test/aot/engine-tests/pipeline/strings/regexp-literals-matched-string-becomes.ir +++ b/test/aot/engine-tests/pipeline/strings/regexp-literals-matched-string-becomes.ir @@ -439,7 +439,7 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -452,11 +452,11 @@ function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh } function f22 name="call" module=m2 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="apply" module=m2 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f25 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f25 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="iteratorGenericClose" module=m4 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f28 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=6 last=6 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -465,7 +465,7 @@ function f28 name="next" module=m5 position=25 kind=Method role=Library flags=[H v5 = ResumeGenerator v3, v4 Return v5 } -function f29 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f29 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=6 last=6 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -486,8 +486,8 @@ function f29 name="return" module=m5 position=326 kind=Method role=Library flags v15 = ResumeGenerator v3, v14 resumeMode=Return Return v15 } -function f30 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f30 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=10 last=10 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -508,14 +508,14 @@ function f31 name="return" module=m6 position=2171 kind=Method role=Library flag } runtimefunction id=4 function=f23 runtimefunction id=12 function=f22 -runtimefunction id=69 function=f21 -runtimefunction id=70 function=f24 visibility=Private -runtimefunction id=71 function=f28 visibility=Private -runtimefunction id=72 function=f30 -runtimefunction id=86 function=f25 visibility=Private -runtimefunction id=87 function=f29 -runtimefunction id=88 function=f31 -runtimefunction id=92 function=f26 visibility=Private +runtimefunction id=68 function=f21 +runtimefunction id=69 function=f24 visibility=Private +runtimefunction id=70 function=f28 visibility=Private +runtimefunction id=71 function=f30 +runtimefunction id=85 function=f25 visibility=Private +runtimefunction id=86 function=f29 +runtimefunction id=87 function=f31 +runtimefunction id=91 function=f26 visibility=Private runtimefunction id=131072 function=f27 visibility=Private # -- generated: Location toString f5 f7 f9 pathnames # CHECK-LABEL: function {{*}}name="Location" diff --git a/test/aot/engine-tests/pipeline/strings/regexp-very-long-non-latin1-classes.ir b/test/aot/engine-tests/pipeline/strings/regexp-very-long-non-latin1-classes.ir index 34cb50b8e91d..e752ce400c9f 100644 --- a/test/aot/engine-tests/pipeline/strings/regexp-very-long-non-latin1-classes.ir +++ b/test/aot/engine-tests/pipeline/strings/regexp-very-long-non-latin1-classes.ir @@ -227,7 +227,7 @@ function f1 name="hash" module=m0 position=149 flags=[IsChecked, HasExplicitName v10 = Convert v9 declared={type=number site=w4} Return v10 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -250,7 +250,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: f0 hash next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}] { @@ -495,7 +495,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f6 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f6 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f6 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -504,13 +504,13 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/regexps-from-text-kept-constant-symbols.ir b/test/aot/engine-tests/pipeline/strings/regexps-from-text-kept-constant-symbols.ir index 1dca57221818..6e60eb376532 100644 --- a/test/aot/engine-tests/pipeline/strings/regexps-from-text-kept-constant-symbols.ir +++ b/test/aot/engine-tests/pipeline/strings/regexps-from-text-kept-constant-symbols.ir @@ -384,7 +384,7 @@ function f8 module=m0 role=Signature thisType={type=anything} results=[{type=any function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f11] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f12 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -970,7 +970,7 @@ function f19 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b139(v527): Return v527 } -runtimefunction id=65 function=f12 +runtimefunction id=64 function=f12 runtimefunction id=131091 function=f19 visibility=Private # -- generated: f0 alternatives Speller pattern f5 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/strings/repeated-group-can-match-nothing-stretch.ir b/test/aot/engine-tests/pipeline/strings/repeated-group-can-match-nothing-stretch.ir index b26d0b7f90ef..8ab66883f632 100644 --- a/test/aot/engine-tests/pipeline/strings/repeated-group-can-match-nothing-stretch.ir +++ b/test/aot/engine-tests/pipeline/strings/repeated-group-can-match-nothing-stretch.ir @@ -342,10 +342,10 @@ function f14 module=m0 role=Signature thisType={type=anything} results=[{type=an function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f18 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f19 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f20 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f21 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f19 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f20 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f21 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -372,14 +372,14 @@ function f21 name="map" module=m3 position=5210 kind=Method role=Library flags=[ v25 = Convert v24 declared={type=undefined|number site=w3} Jump -> next b1(v25, v22) } -function f22 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f22 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f25 name="iteratorGenericClose" module=m5 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f26 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f27 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f29 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f26 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="return" module=m6 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="next" module=m7 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f29 name="return" module=m7 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="clampToLength" module=m8 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w4}, {type=number site=w5}] results=[{type=number site=w6}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f31 name="storeInNewArray" module=m8 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w7 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w8}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="appendParts" module=m8 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w9 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w10}, {type=anything}] results=[{type=number site=w11}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -387,16 +387,16 @@ function f33 name="joinedText" module=m8 position=1819 role=Library flags=[IsChe function f34 name="finishJoin" module=m8 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w13 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w15}, {type=number site=w16}] results=[{type=undefined|null|string site=w17 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f35 name="finishReduce" module=m8 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w18}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f36 name="traverseArray" module=m8 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w19 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w20}, {type=undefined|number site=w21}, {type=number site=w22}, {type=undefined|null|Array site=w23 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=47 function=f18 -runtimefunction id=65 function=f21 -runtimefunction id=69 function=f20 -runtimefunction id=70 function=f22 visibility=Private -runtimefunction id=71 function=f26 visibility=Private -runtimefunction id=72 function=f28 -runtimefunction id=86 function=f23 visibility=Private -runtimefunction id=87 function=f27 -runtimefunction id=88 function=f29 -runtimefunction id=92 function=f24 visibility=Private +runtimefunction id=46 function=f18 +runtimefunction id=64 function=f21 +runtimefunction id=68 function=f20 +runtimefunction id=69 function=f22 visibility=Private +runtimefunction id=70 function=f26 visibility=Private +runtimefunction id=71 function=f28 +runtimefunction id=85 function=f23 visibility=Private +runtimefunction id=86 function=f27 +runtimefunction id=87 function=f29 +runtimefunction id=91 function=f24 visibility=Private runtimefunction id=131072 function=f25 visibility=Private runtimefunction id=131091 function=f36 visibility=Private # -- generated: f0 diff --git a/test/aot/engine-tests/pipeline/strings/run-once-async-and-element-stores.ir b/test/aot/engine-tests/pipeline/strings/run-once-async-and-element-stores.ir index 7faa2c1b5c15..4f6148b9aa8a 100644 --- a/test/aot/engine-tests/pipeline/strings/run-once-async-and-element-stores.ir +++ b/test/aot/engine-tests/pipeline/strings/run-once-async-and-element-stores.ir @@ -3450,7 +3450,7 @@ function f44 module=m1 role=Signature thisType={type=anything} results=[{type=an function f45 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f47 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f48 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f48 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -4228,7 +4228,7 @@ function f89 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type Return v39 } function f90 name="matchesGlob" module=m7 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w413}, {type=undefined|null|string site=w414 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w415 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w416}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f48 +runtimefunction id=68 function=f48 runtimefunction id=65574 function=f30 runtimefunction id=65580 function=f29 # -- generated: p0 p1 pd pAwait put f15 f30 next nextTick p4 pThrow @@ -4311,7 +4311,7 @@ runtimefunction id=65580 function=f29 # CHECK-LABEL: function {{*}}name="nextTick" # CHECK: module=m1 position=14680 role=Library flags=[HasRestParameter, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65580 captures=[{type=env L5 flags=[IsFromCompiler]}, {type=undefined|null|object flags=[IsExpected]}, {type=undefined|null|object flags=[IsExpected]}] thisType={type=anything} parameters=[{type=undefined|null|function site=w299 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w300 flags=[IsFromCompiler, OmitsNull, OmitsUndefined]}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f160 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f160 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f160 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -4521,7 +4521,7 @@ runtimefunction id=65580 function=f29 # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f48}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f48} creator=Entrypoint{target=f48 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f48}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f48} creator=Entrypoint{target=f48 arguments=Registers} { # CHECK-NEXT: b0(v0: f48, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f48 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -4696,7 +4696,7 @@ runtimefunction id=65580 function=f29 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f48 parameterMap=[{original=0}]} creator=ResultWorker{origin=f48} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f48 parameterMap=[{original=0}]} creator=ResultWorker{origin=f48} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/strings/strings-compared-with-literals.ir b/test/aot/engine-tests/pipeline/strings/strings-compared-with-literals.ir index bdd49492686c..11b3257fd3b8 100644 --- a/test/aot/engine-tests/pipeline/strings/strings-compared-with-literals.ir +++ b/test/aot/engine-tests/pipeline/strings/strings-compared-with-literals.ir @@ -912,8 +912,8 @@ function f130 module=m0 role=Signature thisType={type=anything} results=[{type=a function f131 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f132 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f133] function f133 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f134 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f135 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f134 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f135 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1159,8 +1159,8 @@ function f142 name="traverseArray" module=m3 position=2337 kind=Method role=Libr v173 = Convert v172 declared={type=number site=w274} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f135 -runtimefunction id=69 function=f134 +runtimefunction id=64 function=f135 +runtimefunction id=68 function=f134 runtimefunction id=131091 function=f142 visibility=Private # -- generated: f64 f67 # CHECK-LABEL: function f64 module= diff --git a/test/aot/engine-tests/pipeline/structural-types/accessor-subclass-field-base-typed.ir b/test/aot/engine-tests/pipeline/structural-types/accessor-subclass-field-base-typed.ir index babd7363fd2c..6931aa4b25e2 100644 --- a/test/aot/engine-tests/pipeline/structural-types/accessor-subclass-field-base-typed.ir +++ b/test/aot/engine-tests/pipeline/structural-types/accessor-subclass-field-base-typed.ir @@ -452,7 +452,7 @@ function f17 module=m0 role=Signature thisType={type=anything} results=[{type=an function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f16, f19] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f15] -function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -475,7 +475,7 @@ function f21 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f21 +runtimefunction id=68 function=f21 # -- generated: f0 read write line Base level f10 f11 f12 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f38 callPosition=4294967295 isConstruction=true module=m0}, {callee=f35 callPosition=4294967295 parent=6 isConstruction=true module=m0}, {callee=f24 callPosition=505 parent=3 isTailCall=true module=m0}, {callee=f23 callPosition=448 parent=2 isTailCall=true module=m0}, {callee=f13 callPosition=4294967295 parent=7 module=m0}, {callee=f24 callPosition=505 parent=4 isTailCall=true module=m0}] { @@ -906,7 +906,7 @@ runtimefunction id=69 function=f21 # CHECK-NEXT: Return v1 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f49 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f49 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f49 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -985,7 +985,7 @@ runtimefunction id=69 function=f21 # CHECK-NEXT: Return v6 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f21}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f21} creator=Entrypoint{target=f21 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f21}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f21} creator=Entrypoint{target=f21 arguments=Registers} { # CHECK-NEXT: b0(v0: f21, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f21 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -1017,7 +1017,7 @@ runtimefunction id=69 function=f21 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f21 parameterMap=[{original=0}]} creator=ResultWorker{origin=f21} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f21 parameterMap=[{original=0}]} creator=ResultWorker{origin=f21} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/structural-types/class-that-implements-iterable.ir b/test/aot/engine-tests/pipeline/structural-types/class-that-implements-iterable.ir index 607e613780c7..41ccff01fbb9 100644 --- a/test/aot/engine-tests/pipeline/structural-types/class-that-implements-iterable.ir +++ b/test/aot/engine-tests/pipeline/structural-types/class-that-implements-iterable.ir @@ -1566,7 +1566,7 @@ function f64 module=m0 role=Signature thisType={type=anything} results=[{type=an function f65 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f66 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f67 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f68 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f68 name="from" module=m2 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1872,13 +1872,13 @@ function f68 name="from" module=m2 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f69 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f69 name="[Symbol.iterator]" module=m2 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f70 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f70 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1901,7 +1901,7 @@ function f70 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f71 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f71 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1925,7 +1925,7 @@ function f71 name="next" module=m5 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f72 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f72 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1949,7 +1949,7 @@ function f72 name="return" module=m5 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f73 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f73 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1992,11 +1992,11 @@ function f89 module=m8 role=Signature thisType={type=anything} results=[{type=an function f90 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f67] function f91 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f84] function f92 module=m8 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f84] -runtimefunction id=47 function=f68 -runtimefunction id=69 function=f70 -runtimefunction id=70 function=f71 visibility=Private -runtimefunction id=86 function=f72 visibility=Private -runtimefunction id=92 function=f73 visibility=Private +runtimefunction id=46 function=f68 +runtimefunction id=68 function=f70 +runtimefunction id=69 function=f71 visibility=Private +runtimefunction id=85 function=f72 visibility=Private +runtimefunction id=91 function=f73 visibility=Private # -- generated: attempt Countdown f13 Liar f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f26 f27 f28 f29 f30 f31 f32 f33 f34 f35 f36 return f39 throw # CHECK-LABEL: function {{*}}name="attempt" # CHECK: module=m0 position=947 flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=f25|f26|f27|f28|f29|f30|f31|f32|f33|f34|f35 site=w15 flags=[OmitsNull, OmitsUndefined]}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -2333,7 +2333,7 @@ runtimefunction id=92 function=f73 visibility=Private # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f171 layout=L(IteratorResult)} { +# CHECK: module=m5 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f171 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f171 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2355,7 +2355,7 @@ runtimefunction id=92 function=f73 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m5 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f172 layout=L(IteratorResult)} { +# CHECK: module=m5 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f172 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f172 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2379,13 +2379,13 @@ runtimefunction id=92 function=f73 visibility=Private # CHECK-LABEL: function {{*}}name="return" # CHECK: module=m0 position=1601 kind=Arrow role=ResultWorker flags=[IsChecked] thisType={type=anything} results=[{type=true}, {type=undefined}] functionTypes=[f42] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f38} creator=ResultWorker{origin=f38} # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f72}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f72} creator=Entrypoint{target=f72 arguments=Registers} { +# CHECK: module=m5 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f72}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f72} creator=Entrypoint{target=f72 arguments=Registers} { # CHECK-NEXT: b0(v0: f72, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f72 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m5 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f73}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f73} creator=Entrypoint{target=f73 arguments=Registers} { +# CHECK: module=m5 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f73}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f73} creator=Entrypoint{target=f73 arguments=Registers} { # CHECK-NEXT: b0(v0: f73, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f73 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -2454,7 +2454,7 @@ runtimefunction id=92 function=f73 visibility=Private # CHECK-NEXT: Return v8 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f72 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f72} { +# CHECK: module=m5 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f72 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f72} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -2479,7 +2479,7 @@ runtimefunction id=92 function=f73 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m5 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f73 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f73} { +# CHECK: module=m5 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f73 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f73} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/structural-types/classes-implement-method-all-kinds-param.ir b/test/aot/engine-tests/pipeline/structural-types/classes-implement-method-all-kinds-param.ir index 51eb41a6083a..48d4e81da9fe 100644 --- a/test/aot/engine-tests/pipeline/structural-types/classes-implement-method-all-kinds-param.ir +++ b/test/aot/engine-tests/pipeline/structural-types/classes-implement-method-all-kinds-param.ir @@ -884,7 +884,7 @@ function f46 module=m0 role=Signature thisType={type=anything} results=[{type=an function f47 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f48 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f47] function f49 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f47] -function f50 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f50 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -895,7 +895,7 @@ function f50 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v7 = CreateIteratorResult v4, v6 Return v7 } -runtimefunction id=69 function=f50 +runtimefunction id=68 function=f50 # -- generated: text NoParameter Optional Defaulted Rest Needed Hidden TwoDefaults Arrow Getter f28 # CHECK-LABEL: function {{*}}name="text" # CHECK: module=m0 position=67 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|int|whole}] results=[{type=string site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/pipeline/structural-types/in-and-for-primitives-object-types.ir b/test/aot/engine-tests/pipeline/structural-types/in-and-for-primitives-object-types.ir index c9de282710c7..100b44aa70f0 100644 --- a/test/aot/engine-tests/pipeline/structural-types/in-and-for-primitives-object-types.ir +++ b/test/aot/engine-tests/pipeline/structural-types/in-and-for-primitives-object-types.ir @@ -1370,7 +1370,7 @@ function f48 module=m0 role=Signature thisType={type=anything} results=[{type=an function f49 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f29] function f50 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f51 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f52 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f52 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1393,7 +1393,7 @@ function f52 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f53 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f53 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1417,7 +1417,7 @@ function f53 name="next" module=m4 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f54 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f54 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1441,7 +1441,7 @@ function f54 name="return" module=m4 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f55 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f55 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1484,10 +1484,10 @@ function f71 module=m7 role=Signature thisType={type=anything} results=[{type=an function f72 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f51] function f73 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f66] function f74 module=m7 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f66] -runtimefunction id=69 function=f52 -runtimefunction id=70 function=f53 visibility=Private -runtimefunction id=86 function=f54 visibility=Private -runtimefunction id=92 function=f55 visibility=Private +runtimefunction id=68 function=f52 +runtimefunction id=69 function=f53 visibility=Private +runtimefunction id=85 function=f54 visibility=Private +runtimefunction id=91 function=f55 visibility=Private # -- generated: namesIn spreadOut pastTheEnd attempt abc f12 f13 f14 f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f26 f27 f28 return throw # CHECK-LABEL: function {{*}}name="namesIn" # CHECK: module=m0 position=1424 role=EntryChecks flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|null|string|L0|L10 site=w1 flags=[IsExpected, OmitsNull, OmitsUndefined]}] results=[{type=Array site=w2 flags=[OmitsNull, OmitsUndefined]}] functionTypes=[f30] capabilities=[MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] creator=EntryChecks{body=f76 fallback=f83} { @@ -1774,7 +1774,7 @@ runtimefunction id=92 function=f55 visibility=Private # CHECK-NEXT: ReturnCall v2 casts=[{declared={type=string} resolution=Assume}] # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f124 layout=L(IteratorResult)} { +# CHECK: module=m4 position=548 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f124 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f124 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1796,7 +1796,7 @@ runtimefunction id=92 function=f55 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f125 layout=L(IteratorResult)} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f125 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f125 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1930,13 +1930,13 @@ runtimefunction id=92 function=f55 visibility=Private # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=86 captures=[{type=f54}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f54} creator=Entrypoint{target=f54 arguments=Registers} { +# CHECK: module=m4 position=548 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=85 captures=[{type=f54}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f54} creator=Entrypoint{target=f54 arguments=Registers} { # CHECK-NEXT: b0(v0: f54, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f54 # CHECK-NEXT: ReturnCall v3 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f55}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f55} creator=Entrypoint{target=f55 arguments=Registers} { +# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f55}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f55} creator=Entrypoint{target=f55 arguments=Registers} { # CHECK-NEXT: b0(v0: f55, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f55 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -1985,7 +1985,7 @@ runtimefunction id=92 function=f55 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m4 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f54 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f54} { +# CHECK: module=m4 position=548 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f54 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f54} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Return check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 @@ -2010,7 +2010,7 @@ runtimefunction id=92 function=f55 visibility=Private # CHECK-NEXT: Return v18 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f55 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f55} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f55 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f55} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/structural-types/twenty-subclasses-override-method.ir b/test/aot/engine-tests/pipeline/structural-types/twenty-subclasses-override-method.ir index 3abf1fa12463..29bad6d946ff 100644 --- a/test/aot/engine-tests/pipeline/structural-types/twenty-subclasses-override-method.ir +++ b/test/aot/engine-tests/pipeline/structural-types/twenty-subclasses-override-method.ir @@ -1133,7 +1133,7 @@ function f111 module=m0 role=Signature thisType={type=anything} results=[{type=a function f112 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f94] function f113 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f94] function f114 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f94] -function f115 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f115 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -1149,7 +1149,7 @@ function f115 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsC b2(v10): Unreachable } -runtimefunction id=69 function=f115 +runtimefunction id=68 function=f115 # -- generated: soundOf chorus Animal twice f47 # CHECK-LABEL: function {{*}}name="soundOf" # CHECK: module=m0 position=2319 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} parameters=[{type=undefined|L1|L2|L3|L4|L5|L6|L7|L8|L9|L10|L11|L12|L13|L14|L15|L16|L17|L18|L19|L20 site=w0 flags=[OmitsNull, OmitsUndefined]}] results=[{type=string site=w1 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/pipeline/type-predicates/own-names-of-lists.ir b/test/aot/engine-tests/pipeline/type-predicates/own-names-of-lists.ir index 25997ea44b6a..ee5a6ac8c66d 100644 --- a/test/aot/engine-tests/pipeline/type-predicates/own-names-of-lists.ir +++ b/test/aot/engine-tests/pipeline/type-predicates/own-names-of-lists.ir @@ -642,7 +642,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ObjectPrototypeHasOwnProperty] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="from" module=m1 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -948,13 +948,13 @@ function f16 name="from" module=m1 position=1338 kind=Method role=Library flags= v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f17 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="[Symbol.iterator]" module=m1 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f18 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2133,8 +2133,8 @@ function f27 name="traverseArray" module=m4 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f20 runtimefunction id=12 function=f19 -runtimefunction id=47 function=f16 -runtimefunction id=69 function=f18 +runtimefunction id=46 function=f16 +runtimefunction id=68 function=f18 runtimefunction id=131091 function=f27 visibility=Private # -- generated: f0 test onlyLists Stack next apply clampToLength storeInNewArray joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -2420,7 +2420,7 @@ runtimefunction id=131091 function=f27 visibility=Private # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f39 layout=L(IteratorResult)} { +# CHECK: module=m2 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f39 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f39 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2569,7 +2569,7 @@ runtimefunction id=131091 function=f27 visibility=Private # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f18}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f18} creator=Entrypoint{target=f18 arguments=Registers} { +# CHECK: module=m2 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f18}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f18} creator=Entrypoint{target=f18 arguments=Registers} { # CHECK-NEXT: b0(v0: f18, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f18 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2594,7 +2594,7 @@ runtimefunction id=131091 function=f27 visibility=Private # CHECK-NEXT: Return v7 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f18 parameterMap=[{original=0}]} creator=ResultWorker{origin=f18} { +# CHECK: module=m2 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f18 parameterMap=[{original=0}]} creator=ResultWorker{origin=f18} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/type-rules/loop-bounds-that-arrive-boxed.ir b/test/aot/engine-tests/pipeline/type-rules/loop-bounds-that-arrive-boxed.ir index a4c048f24d11..62d946ed2a0d 100644 --- a/test/aot/engine-tests/pipeline/type-rules/loop-bounds-that-arrive-boxed.ir +++ b/test/aot/engine-tests/pipeline/type-rules/loop-bounds-that-arrive-boxed.ir @@ -640,7 +640,7 @@ function f10 name="nearTheTop" module=m0 position=1842 flags=[IsChecked, HasExpl v28 = Convert v27 declared={type=number site=w13} Return v28 } -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -663,7 +663,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f11 +runtimefunction id=68 function=f11 # -- generated: setBound below atMost above atLeast boundOnLeftAbove boundOnLeftAtLeast boundOnLeftBelow boundOnLeftAtMost nearTheTop # CHECK-LABEL: function {{*}}name="setBound" # CHECK: module=m0 position=482 flags=[IsChecked, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=undefined|null|boolean|number|string|object}, {type=int|whole site=w0}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/pipeline/type-rules/results-functions-return-inner-check.ir b/test/aot/engine-tests/pipeline/type-rules/results-functions-return-inner-check.ir index 755e5d5bacf2..05b1e38e0603 100644 --- a/test/aot/engine-tests/pipeline/type-rules/results-functions-return-inner-check.ir +++ b/test/aot/engine-tests/pipeline/type-rules/results-functions-return-inner-check.ir @@ -776,7 +776,7 @@ function f12 module=m0 role=Signature thisType={type=anything} results=[{type=an function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f15] function f14 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f15 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -799,7 +799,7 @@ function f16 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f17 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -862,7 +862,7 @@ function f17 name="map" module=m2 position=5210 kind=Method role=Library flags=[ v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f18 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w84}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f18 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w84}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1973,9 +1973,9 @@ function f25 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f17 -runtimefunction id=69 function=f16 -runtimefunction id=89 function=f18 +runtimefunction id=64 function=f17 +runtimefunction id=68 function=f16 +runtimefunction id=88 function=f18 runtimefunction id=131091 function=f25 visibility=Private # -- generated: head truncate hasMark pick picked pickedOrShort describe report f10 f11 # CHECK-LABEL: function {{*}}name="head" diff --git a/test/aot/engine-tests/pipeline/type-rules/uses-of-variable-bound-conditional-type.ir b/test/aot/engine-tests/pipeline/type-rules/uses-of-variable-bound-conditional-type.ir index 2ccbd3675c17..dcde31853947 100644 --- a/test/aot/engine-tests/pipeline/type-rules/uses-of-variable-bound-conditional-type.ir +++ b/test/aot/engine-tests/pipeline/type-rules/uses-of-variable-bound-conditional-type.ir @@ -2674,7 +2674,7 @@ function f168 module=m1 role=Signature thisType={type=anything} results=[{type=a function f169 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f170 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f171 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f172 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f172 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2697,7 +2697,7 @@ function f172 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsC v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f173 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f173 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2760,7 +2760,7 @@ function f173 name="map" module=m3 position=5210 kind=Method role=Library flags= v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f174 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f174 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -4594,9 +4594,9 @@ function f223 name="traverseArray" module=m10 position=2337 kind=Method role=Lib b252(v555): Return v555 } -runtimefunction id=65 function=f173 -runtimefunction id=69 function=f172 -runtimefunction id=70 function=f174 visibility=Private +runtimefunction id=64 function=f173 +runtimefunction id=68 function=f172 +runtimefunction id=69 function=f174 visibility=Private runtimefunction id=65574 function=f154 runtimefunction id=65580 function=f153 runtimefunction id=131091 function=f223 visibility=Private diff --git a/test/aot/engine-tests/pipeline/typed-objects/enum-fields-any-number.ir b/test/aot/engine-tests/pipeline/typed-objects/enum-fields-any-number.ir index 633530e87251..81d33b4c849d 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/enum-fields-any-number.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/enum-fields-any-number.ir @@ -555,8 +555,8 @@ function f10 name="Pixel" module=m0 position=537 kind=BaseConstructor flags=[Has function f11 module=m0 position=448 kind=Initializer flags=[HasThis, IsChecked, IsHiddenInStackTraces] thisType={type=L0 flags=[IsFromCompiler]} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f15 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f15 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f16 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w104}, {type=number site=w105}] results=[{type=number site=w106}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f17 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w107 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w108}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f18 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w109 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w110}, {type=anything}] results=[{type=number site=w111}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -564,8 +564,8 @@ function f19 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f20 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w113 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w114 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w115}, {type=number site=w116}] results=[{type=undefined|null|string site=w117 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f21 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w118}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w119 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w120}, {type=undefined|number site=w121}, {type=number site=w122}, {type=undefined|null|Array site=w123 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f15 -runtimefunction id=69 function=f14 +runtimefunction id=64 function=f15 +runtimefunction id=68 function=f14 runtimefunction id=131091 function=f22 visibility=Private # -- generated: uses # CHECK-LABEL: function {{*}}name="uses" diff --git a/test/aot/engine-tests/pipeline/typed-objects/function-field-declared-never-stored.ir b/test/aot/engine-tests/pipeline/typed-objects/function-field-declared-never-stored.ir index 9c0d37a76228..a25259fbf9f4 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/function-field-declared-never-stored.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/function-field-declared-never-stored.ir @@ -230,7 +230,7 @@ function f5 module=m0 position=661 kind=Arrow flags=[IsChecked] captures=[{type= } function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f7] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f8 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="forEach" module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -289,7 +289,7 @@ function f8 name="forEach" module=m1 position=3958 kind=Method role=Library flag v37 = ThrowNewError errorKind=TypeError message="Array.prototype.forEach callback must be a function" Unreachable } -runtimefunction id=44 function=f8 +runtimefunction id=43 function=f8 # -- generated: f0 describe probe both Planet f5 forEach # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -367,7 +367,7 @@ runtimefunction id=44 function=f8 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -453,7 +453,7 @@ runtimefunction id=44 function=f8 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m1 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=44 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m1 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=43 captures=[{type=f8}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: undefined = CallDirect v1, v2, v3 function=f8 @3958 tail # CHECK-NEXT: Return v4 diff --git a/test/aot/engine-tests/pipeline/typed-objects/getter-stores-receiver-field-receiver.ir b/test/aot/engine-tests/pipeline/typed-objects/getter-stores-receiver-field-receiver.ir index 34bb3ff73400..001cd8a0e040 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/getter-stores-receiver-field-receiver.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/getter-stores-receiver-field-receiver.ir @@ -306,7 +306,7 @@ function f1 name="list" module=m0 position=401 kind=Getter flags=[HasThis, IsChe v7 = Convert v6 declared={type=undefined|null|Array site=w4 flags=[OmitsNull, OmitsUndefined]} Return v7 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -329,7 +329,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f3 name="get" module=m2 position=1801 kind=Method role=Library flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=53 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="get" module=m2 position=1801 kind=Method role=Library flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=52 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: int[0, 4294967295], v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -1397,8 +1397,8 @@ function f10 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=53 function=f3 -runtimefunction id=69 function=f2 +runtimefunction id=52 function=f3 +runtimefunction id=68 function=f2 runtimefunction id=131091 function=f10 visibility=Private # -- generated: f0 list next get clampToLength storeInNewArray appendParts joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -1544,7 +1544,7 @@ runtimefunction id=131091 function=f10 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f17 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f17 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f17 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -1553,7 +1553,7 @@ runtimefunction id=131091 function=f10 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="get" -# CHECK: module=m2 position=1801 kind=Method role=ParameterWrapper flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=53 thisType={type=anything} parameters=[{type=object flags=[IsExpected]}, {type=string|symbol flags=[IsExpected]}, {type=undefined flags=[IsExpected]}] results=[{type=anything}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ParameterWrapper{body=f12 parameter=2} inlineFrames=[{}, {callee=f12 callPosition=1801 module=m2}, {callee=f12 callPosition=1801 isTailCall=true module=m2}] { +# CHECK: module=m2 position=1801 kind=Method role=ParameterWrapper flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=52 thisType={type=anything} parameters=[{type=object flags=[IsExpected]}, {type=string|symbol flags=[IsExpected]}, {type=undefined flags=[IsExpected]}] results=[{type=anything}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ParameterWrapper{body=f12 parameter=2} inlineFrames=[{}, {callee=f12 callPosition=1801 module=m2}, {callee=f12 callPosition=1801 isTailCall=true module=m2}] { # CHECK-NEXT: b0(v0: int[0, 4294967295], v1: anything ~ object, v2: anything ~ string|symbol, v3: anything ~ undefined): # CHECK-NEXT: v4: boolean ~ true = TypeTest v1 testedType=object # CHECK-NEXT: Branch v4 -> taken b1(| 0), notTaken b3() @@ -1817,15 +1817,15 @@ runtimefunction id=131091 function=f10 visibility=Private # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="get" -# CHECK: module=m2 position=1801 kind=Method flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=53 thisType={type=anything} parameters=[{type=object flags=[IsExpected]}, {type=string|symbol flags=[IsExpected]}, {type=undefined flags=[IsExpected]}, {type=object}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}, {original=1}, {original=2}, {original=3}, {}]} +# CHECK: module=m2 position=1801 kind=Method flags=[HasArgumentCount, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=52 thisType={type=anything} parameters=[{type=object flags=[IsExpected]}, {type=string|symbol flags=[IsExpected]}, {type=undefined flags=[IsExpected]}, {type=object}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}, {original=1}, {original=2}, {original=3}, {}]} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="get" -# CHECK: module=m2 position=1801 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 enclosingRuntimeFunction=53 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3} inlineFrames=[{}, {callee=f3 callPosition=1801 isTailCall=true module=m2}, {callee=f12 callPosition=1801 parent=1 module=m2}, {callee=f12 callPosition=1801 parent=1 isTailCall=true module=m2}] { +# CHECK: module=m2 position=1801 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 enclosingRuntimeFunction=52 captures=[{type=f3}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f3} creator=Entrypoint{target=f3} inlineFrames=[{}, {callee=f3 callPosition=1801 isTailCall=true module=m2}, {callee=f12 callPosition=1801 parent=1 module=m2}, {callee=f12 callPosition=1801 parent=1 isTailCall=true module=m2}] { # CHECK-NEXT: b0(v0: f3, v1: anything): # CHECK-NEXT: v2: anything = GetArgument # CHECK-NEXT: v3: anything = GetArgument argumentIndex=1 @@ -1857,7 +1857,7 @@ runtimefunction id=131091 function=f10 visibility=Private # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f2 parameterMap=[{original=0}]} creator=ResultWorker{origin=f2} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/typed-objects/key-order-literals.ir b/test/aot/engine-tests/pipeline/typed-objects/key-order-literals.ir index 5e116a3a6c55..d02ab699bcc7 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/key-order-literals.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/key-order-literals.ir @@ -671,8 +671,8 @@ function f10 module=m0 role=Signature thisType={type=anything} results=[{type=an function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f13] function f13 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f15 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f14 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f15 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f16 name="getOwnPropertyDescriptors" module=m3 position=537 kind=Method role=Model flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=131083 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything): v1 = Builtin builtin=Object @@ -692,8 +692,8 @@ function f20 name="joinedText" module=m4 position=1819 role=Library flags=[IsChe function f21 name="finishJoin" module=m4 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w119 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w120 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w121}, {type=number site=w122}] results=[{type=undefined|null|string site=w123 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f22 name="finishReduce" module=m4 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w124}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f23 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w125 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w126}, {type=undefined|number site=w127}, {type=number site=w128}, {type=undefined|null|Array site=w129 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f15 -runtimefunction id=69 function=f14 +runtimefunction id=64 function=f15 +runtimefunction id=68 function=f14 runtimefunction id=131083 function=f16 runtimefunction id=131091 function=f23 visibility=Private # -- generated: f0 total listings diff --git a/test/aot/engine-tests/pipeline/typed-objects/keys-objects-two-layouts-indexes-written.ir b/test/aot/engine-tests/pipeline/typed-objects/keys-objects-two-layouts-indexes-written.ir index 8af3b5a502f3..5c894e760dd9 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/keys-objects-two-layouts-indexes-written.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/keys-objects-two-layouts-indexes-written.ir @@ -144,7 +144,7 @@ function f2 name="read" module=m0 position=146 kind=Arrow flags=[IsChecked] leng } function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -167,7 +167,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 read next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f11 callPosition=4294967295 isConstruction=true module=m0}] { @@ -476,7 +476,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f12 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f12 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -485,13 +485,13 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f5 parameterMap=[{original=0}]} creator=ResultWorker{origin=f5} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/typed-objects/literal-getter-parsed-object-come-typed.ir b/test/aot/engine-tests/pipeline/typed-objects/literal-getter-parsed-object-come-typed.ir index 2e3117df28b8..2be273164f9e 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/literal-getter-parsed-object-come-typed.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/literal-getter-parsed-object-come-typed.ir @@ -165,7 +165,7 @@ function f3 name="a" module=m0 position=293 kind=Getter flags=[IsChecked, HasExp v3 = Convert v2 declared={type=number site=w13} Return v3 } -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -188,7 +188,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 # -- generated: f0 sum made a next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f6 callPosition=205 parent=1 isTailCall=true module=m0}] { @@ -478,7 +478,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -576,7 +576,7 @@ runtimefunction id=69 function=f4 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f4}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f4 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/typed-objects/literal-kept-field-changed-call-hot.ir b/test/aot/engine-tests/pipeline/typed-objects/literal-kept-field-changed-call-hot.ir index ef6c115bfff1..da05c58f72db 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/literal-kept-field-changed-call-hot.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/literal-kept-field-changed-call-hot.ir @@ -961,7 +961,7 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f21] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2140,7 +2140,7 @@ function f31 name="traverseArray" module=m3 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f24 runtimefunction id=12 function=f23 -runtimefunction id=69 function=f22 +runtimefunction id=68 function=f22 runtimefunction id=131091 function=f31 visibility=Private # -- generated: f0 show three run y get set # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/typed-objects/narrowed-identity-recursive-types.ir b/test/aot/engine-tests/pipeline/typed-objects/narrowed-identity-recursive-types.ir index b531f1ce2057..9058d7bf51c0 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/narrowed-identity-recursive-types.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/narrowed-identity-recursive-types.ir @@ -275,7 +275,7 @@ function f4 module=m0 position=293 kind=Arrow flags=[IsChecked] length=1 thisTyp } function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f6] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f7 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -1378,7 +1378,7 @@ function f14 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f7 +runtimefunction id=64 function=f7 runtimefunction id=131091 function=f14 visibility=Private # -- generated: f0 isW build f4 map clampToLength storeInNewArray appendParts joinedText finishJoin finishReduce # CHECK-LABEL: function f0 module= @@ -1455,7 +1455,7 @@ runtimefunction id=131091 function=f14 visibility=Private # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -1815,13 +1815,13 @@ runtimefunction id=131091 function=f14 visibility=Private # CHECK-LABEL: function {{*}}name="isW" # CHECK: module=m0 position=940 flags=[IsChecked, HasExplicitName] length=1 thisType={type=anything} results=[{type=boolean site=w1}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f1} # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m1 position=5210 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=65 captures=[{type=f7}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { +# CHECK: module=m1 position=5210 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=64 captures=[{type=f7}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f7} creator=Entrypoint{target=f7 arguments=Registers} { # CHECK-NEXT: b0(v0: f7, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: anything = CallDirect v1, v2, v3 function=f7 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="map" -# CHECK: module=m1 position=5210 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f7} { +# CHECK: module=m1 position=5210 kind=Method role=CalleeVersion flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=Array flags=[IsExpected]} parameters=[{type=function}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f7 parameter=1073741825 parameterMap=[{original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f7} { # CHECK-NEXT: b0(v0: anything ~ Array, v1: function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array diff --git a/test/aot/engine-tests/pipeline/typed-objects/returned-literal-lists-field-read-again.ir b/test/aot/engine-tests/pipeline/typed-objects/returned-literal-lists-field-read-again.ir index 6074ae4f1704..7ecc13905e52 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/returned-literal-lists-field-read-again.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/returned-literal-lists-field-read-again.ir @@ -168,7 +168,7 @@ function f1 name="read" module=m0 position=302 flags=[IsChecked, HasExplicitName v40 = Convert v39 declared={type=undefined|null|L1 site=w3 flags=[OmitsNull, OmitsUndefined]} Return v40 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -191,7 +191,7 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 # -- generated: f0 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f4 callPosition=302 parent=1 module=m0}] { @@ -235,7 +235,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Return v35 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -310,7 +310,7 @@ runtimefunction id=69 function=f2 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f2}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f2} creator=Entrypoint{target=f2 arguments=Registers} { # CHECK-NEXT: b0(v0: f2, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f2 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/pipeline/typed-objects/spread-declared-type-leaves-plain.ir b/test/aot/engine-tests/pipeline/typed-objects/spread-declared-type-leaves-plain.ir index ccaa1c2e2c6c..72c2682ad8b7 100644 --- a/test/aot/engine-tests/pipeline/typed-objects/spread-declared-type-leaves-plain.ir +++ b/test/aot/engine-tests/pipeline/typed-objects/spread-declared-type-leaves-plain.ir @@ -297,7 +297,7 @@ function f3 name="readState" module=m0 position=541 flags=[IsChecked, HasExplici } function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f5] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -320,7 +320,7 @@ function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f6 +runtimefunction id=68 function=f6 # -- generated: f0 relabel readState next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f10 callPosition=371 parent=3 module=m0}, {callee=f10 callPosition=371 parent=2 module=m0}, {callee=f8 callPosition=541 parent=1 isTailCall=true module=m0}] { @@ -589,7 +589,7 @@ runtimefunction id=69 function=f6 # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f14 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f14 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f14 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -619,7 +619,7 @@ runtimefunction id=69 function=f6 # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f6}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f6} creator=Entrypoint{target=f6 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f6}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f6} creator=Entrypoint{target=f6 arguments=Registers} { # CHECK-NEXT: b0(v0: f6, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f6 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -631,7 +631,7 @@ runtimefunction id=69 function=f6 # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f6 parameterMap=[{original=0}]} creator=ResultWorker{origin=f6} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f6 parameterMap=[{original=0}]} creator=ResultWorker{origin=f6} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/unexpected-null/length-of-field-holds-undefined-or-null.ir b/test/aot/engine-tests/pipeline/unexpected-null/length-of-field-holds-undefined-or-null.ir index cacec8be049e..867c70a1e8ed 100644 --- a/test/aot/engine-tests/pipeline/unexpected-null/length-of-field-holds-undefined-or-null.ir +++ b/test/aot/engine-tests/pipeline/unexpected-null/length-of-field-holds-undefined-or-null.ir @@ -1041,7 +1041,7 @@ function f47 module=m0 role=Signature thisType={type=anything} results=[{type=an function f48 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] function f49 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] function f50 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] -function f51 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f51 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1064,7 +1064,7 @@ function f51 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f52 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f52 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1088,7 +1088,7 @@ function f52 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f53 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f53 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1112,7 +1112,7 @@ function f53 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f54 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f54 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -1169,7 +1169,7 @@ function f55 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f56 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1190,7 +1190,7 @@ function f56 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f57 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f57 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1241,7 +1241,7 @@ function f57 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f58 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f58 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1263,7 +1263,7 @@ function f58 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f59 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f59 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1300,14 +1300,14 @@ function f59 name="return" module=m5 position=2171 kind=Method role=Library flag v19 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -runtimefunction id=69 function=f51 -runtimefunction id=70 function=f52 visibility=Private -runtimefunction id=71 function=f56 visibility=Private -runtimefunction id=72 function=f58 -runtimefunction id=86 function=f53 visibility=Private -runtimefunction id=87 function=f57 -runtimefunction id=88 function=f59 -runtimefunction id=92 function=f54 visibility=Private +runtimefunction id=68 function=f51 +runtimefunction id=69 function=f52 visibility=Private +runtimefunction id=70 function=f56 visibility=Private +runtimefunction id=71 function=f58 +runtimefunction id=85 function=f53 visibility=Private +runtimefunction id=86 function=f57 +runtimefunction id=87 function=f59 +runtimefunction id=91 function=f54 visibility=Private runtimefunction id=131072 function=f55 visibility=Private # -- generated: wordsOf note lengthOfName lengthOfList firstOfList codeOfName startOfName cutList Record f17 f18 f19 f20 f21 f22 f23 f24 f25 f26 f27 f28 f29 f30 f31 f32 throw # CHECK-LABEL: function {{*}}name="wordsOf" @@ -1694,7 +1694,7 @@ runtimefunction id=131072 function=f55 visibility=Private # CHECK-NEXT: Jump -> next b11(v22) # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f137 layout=L(IteratorResult)} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f137 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f137 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1924,7 +1924,7 @@ runtimefunction id=131072 function=f55 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f54}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f54} creator=Entrypoint{target=f54 arguments=Registers} { +# CHECK: module=m2 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f54}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f54} creator=Entrypoint{target=f54 arguments=Registers} { # CHECK-NEXT: b0(v0: f54, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f54 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -1940,7 +1940,7 @@ runtimefunction id=131072 function=f55 visibility=Private # CHECK-LABEL: function {{*}}name="Record" # CHECK: module=m0 position=413 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, IsChecked, HasExplicitName] length=2 thisType={type=L0} parameters=[{type=string site=w35 flags=[OmitsNull, OmitsUndefined]}, {type=Array site=w36 flags=[OmitsNull, OmitsUndefined]}] results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{}, {original=0}, {original=1}, {original=2}]} creator=Version{provenVersion=f16} constructedClass=L0 # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f54 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f54} { +# CHECK: module=m2 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f54 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f54} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/untyped-code/compiled-code-asks-whether-index.ir b/test/aot/engine-tests/pipeline/untyped-code/compiled-code-asks-whether-index.ir index 8759668f8cf3..0d378628ca44 100644 --- a/test/aot/engine-tests/pipeline/untyped-code/compiled-code-asks-whether-index.ir +++ b/test/aot/engine-tests/pipeline/untyped-code/compiled-code-asks-whether-index.ir @@ -2374,7 +2374,7 @@ function f148 module=m1 kind=Method role=Library flags=[HasThis, IsChecked] encl v10 = Convert v9 declared={type=undefined|null|L18 site=w0 flags=[OmitsNull, OmitsUndefined]} Return v10 } -function f149 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=47 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f149 name="from" module=m3 position=1338 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=46 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|function, v1: anything, v2: anything, v3: anything): Jump -> next b1() b1(): @@ -2680,13 +2680,13 @@ function f149 name="from" module=m3 position=1338 kind=Method role=Library flags v175 = ThrowNewError errorKind=TypeError message="Array.from requires that the second argument, when provided, be a function" Unreachable } -function f150 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=47 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f150 name="[Symbol.iterator]" module=m3 position=2834 role=Library flags=[IsChecked, IsNamedByComputedKey] enclosingRuntimeFunction=46 captures=[{type=anything}] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): Return v0 } -function f151 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f151 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2709,7 +2709,7 @@ function f151 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsC v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f152 name="filter" module=m5 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f152 name="filter" module=m5 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2786,7 +2786,7 @@ function f152 name="filter" module=m5 position=4475 kind=Method role=Library fla v54 = ThrowNewError errorKind=TypeError message="Array.prototype.filter callback must be a function" Unreachable } -function f153 name="map" module=m5 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f153 name="map" module=m5 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2849,7 +2849,7 @@ function f153 name="map" module=m5 position=5210 kind=Method role=Library flags= v43 = ThrowNewError errorKind=TypeError message="Array.prototype.map callback must be a function" Unreachable } -function f154 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f154 name="next" module=m6 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2873,7 +2873,7 @@ function f154 name="next" module=m6 position=25 kind=Method role=Library flags=[ v13 = CreateIteratorResult v3, v12 Return v13 } -function f155 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f155 name="return" module=m6 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2897,7 +2897,7 @@ function f155 name="return" module=m6 position=548 kind=Method role=Library flag v13 = CreateIteratorResult v3, v12 Return v13 } -function f156 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f156 name="throw" module=m6 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2954,7 +2954,7 @@ function f157 name="iteratorGenericClose" module=m7 position=314 kind=Method rol v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f158 name="next" module=m9 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f158 name="next" module=m9 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2975,7 +2975,7 @@ function f158 name="next" module=m9 position=25 kind=Method role=Library flags=[ v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f159 name="return" module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f159 name="return" module=m9 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3026,7 +3026,7 @@ function f159 name="return" module=m9 position=326 kind=Method role=Library flag v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f160 name="has" module=m10 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=61 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w10}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f160 name="has" module=m10 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w10}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -3046,7 +3046,7 @@ function f160 name="has" module=m10 position=2204 kind=Method role=Library flags v9 = ThrowNewError errorKind=TypeError message="Reflect.has requires the first argument be an object" Unreachable } -function f161 name="next" module=m11 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f161 name="next" module=m11 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -3068,7 +3068,7 @@ function f161 name="next" module=m11 position=1421 kind=Method role=Library flag v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f162 name="return" module=m11 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f162 name="return" module=m11 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -4149,18 +4149,18 @@ function f171 name="traverseArray" module=m13 position=2337 kind=Method role=Lib } function f172 name="addInitializer" module=m14 position=3267 kind=Arrow role=Library flags=[IsChecked, IsHiddenInStackTraces] length=1 captures=[{type=anything}, {type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] functionTypes=[f173] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f173 module=m14 role=Signature thisType={type=anything} results=[{type=anything}] -runtimefunction id=33 function=f152 -runtimefunction id=47 function=f149 -runtimefunction id=61 function=f160 -runtimefunction id=65 function=f153 -runtimefunction id=69 function=f151 -runtimefunction id=70 function=f154 visibility=Private -runtimefunction id=71 function=f158 visibility=Private -runtimefunction id=72 function=f161 -runtimefunction id=86 function=f155 visibility=Private -runtimefunction id=87 function=f159 -runtimefunction id=88 function=f162 -runtimefunction id=92 function=f156 visibility=Private +runtimefunction id=32 function=f152 +runtimefunction id=46 function=f149 +runtimefunction id=60 function=f160 +runtimefunction id=64 function=f153 +runtimefunction id=68 function=f151 +runtimefunction id=69 function=f154 visibility=Private +runtimefunction id=70 function=f158 visibility=Private +runtimefunction id=71 function=f161 +runtimefunction id=85 function=f155 visibility=Private +runtimefunction id=86 function=f159 +runtimefunction id=87 function=f162 +runtimefunction id=91 function=f156 visibility=Private runtimefunction id=65569 function=f148 runtimefunction id=131072 function=f157 visibility=Private runtimefunction id=131091 function=f171 visibility=Private @@ -4736,7 +4736,7 @@ runtimefunction id=131091 function=f171 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m6 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f228 layout=L(IteratorResult)} { +# CHECK: module=m6 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f228 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f228 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -4758,7 +4758,7 @@ runtimefunction id=131091 function=f171 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m6 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f156}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f156} creator=Entrypoint{target=f156 arguments=Registers} { +# CHECK: module=m6 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f156}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f156} creator=Entrypoint{target=f156 arguments=Registers} { # CHECK-NEXT: b0(v0: f156, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f156 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -4773,7 +4773,7 @@ runtimefunction id=131091 function=f171 visibility=Private # CHECK-LABEL: function {{*}}name="Holder" # CHECK: module=m0 position=3806 kind=BaseConstructor role=AllocatedThisVersion flags=[HasThis, HasNewTarget, HasExplicitName] length=1 thisType={type=L0} parameters=[{type=int[0, 2]}] results=[{type=undefined}] capabilities=[MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{}, {original=0}, {original=1}]} creator=Version{provenVersion=f3} constructedClass=L0 # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m6 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f156 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f156} { +# CHECK: module=m6 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f156 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f156} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/untyped-code/in-typed-objects.ir b/test/aot/engine-tests/pipeline/untyped-code/in-typed-objects.ir index fd69e6552598..9d6d0622f748 100644 --- a/test/aot/engine-tests/pipeline/untyped-code/in-typed-objects.ir +++ b/test/aot/engine-tests/pipeline/untyped-code/in-typed-objects.ir @@ -1314,7 +1314,7 @@ function f68 module=m0 role=Signature thisType={type=anything} results=[{type=an function f69 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f70 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f71 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f34] -function f72 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f72 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1337,7 +1337,7 @@ function f72 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f73 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f73 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -2440,8 +2440,8 @@ function f80 name="traverseArray" module=m3 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=65 function=f73 -runtimefunction id=69 function=f72 +runtimefunction id=64 function=f73 +runtimefunction id=68 function=f72 runtimefunction id=131091 function=f80 visibility=Private # -- generated: hide looped Base plain f14 f15 f16 f17 f19 f20 f22 f23 f24 f25 f26 f27 f28 f30 f31 # CHECK-LABEL: function {{*}}name="hide" diff --git a/test/aot/engine-tests/pipeline/untyped-code/names-asked-proxy-function-program.ir b/test/aot/engine-tests/pipeline/untyped-code/names-asked-proxy-function-program.ir index 7b1328a64091..7b65064aeb0e 100644 --- a/test/aot/engine-tests/pipeline/untyped-code/names-asked-proxy-function-program.ir +++ b/test/aot/engine-tests/pipeline/untyped-code/names-asked-proxy-function-program.ir @@ -148,7 +148,7 @@ function f16 module=m0 role=Signature thisType={type=anything} results=[{type=an function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -171,7 +171,7 @@ function f20 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f20 +runtimefunction id=68 function=f20 # -- generated: f0 named next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f2 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 parent=1 module=m0}, {callee=f3 callPosition=4294967295 parent=1 module=m0}, {callee=f3 callPosition=4294967295 parent=1 calleeIsPredicted=true module=m0}, {callee=f3 callPosition=4294967295 parent=1 calleeIsPredicted=true module=m0}, {callee=f3 callPosition=4294967295 parent=1 calleeIsPredicted=true module=m0}, {callee=f3 callPosition=4294967295 parent=1 calleeIsPredicted=true module=m0}] { @@ -409,7 +409,7 @@ runtimefunction id=69 function=f20 # CHECK-LABEL: function {{*}}name="named" # CHECK: module=m0 position=190 flags=[HasExplicitName] thisType={type=anything} results=[{type=anything}] functionTypes=[f4] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost, ClosuresAreReadWithoutCode] # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f26 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f26 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f26 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -424,13 +424,13 @@ runtimefunction id=69 function=f20 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f20}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f20} creator=Entrypoint{target=f20 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f20}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f20} creator=Entrypoint{target=f20 arguments=Registers} { # CHECK-NEXT: b0(v0: f20, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f20 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f20 parameterMap=[{original=0}]} creator=ResultWorker{origin=f20} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f20 parameterMap=[{original=0}]} creator=ResultWorker{origin=f20} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/pipeline/untyped-code/negative-keys-on-huge-typed-array.ir b/test/aot/engine-tests/pipeline/untyped-code/negative-keys-on-huge-typed-array.ir index 56ac00897213..b819129d0271 100644 --- a/test/aot/engine-tests/pipeline/untyped-code/negative-keys-on-huge-typed-array.ir +++ b/test/aot/engine-tests/pipeline/untyped-code/negative-keys-on-huge-typed-array.ir @@ -190,7 +190,7 @@ function f4 module=m0 position=423 kind=Arrow flags=[IsChecked] length=1 capture } function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f6] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f7 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f7 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f8 name="clampToLength" module=m2 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w13}, {type=number site=w14}] results=[{type=number site=w15}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f9 name="storeInNewArray" module=m2 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w16 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w17}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f10 name="appendParts" module=m2 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w18 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w19}, {type=anything}] results=[{type=number site=w20}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -555,7 +555,7 @@ function f14 name="traverseArray" module=m2 position=2337 kind=Method role=Libra b113(v273): Return v273 } -runtimefunction id=65 function=f7 +runtimefunction id=64 function=f7 runtimefunction id=131091 function=f14 visibility=Private # -- generated: f0 read f4 finishJoin report # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/pipeline/untyped-code/stores-around-setter-cached-together.ir b/test/aot/engine-tests/pipeline/untyped-code/stores-around-setter-cached-together.ir index 987ea596ec90..3953ca903a8e 100644 --- a/test/aot/engine-tests/pipeline/untyped-code/stores-around-setter-cached-together.ir +++ b/test/aot/engine-tests/pipeline/untyped-code/stores-around-setter-cached-together.ir @@ -622,7 +622,7 @@ function f32 module=m0 role=Signature thisType={type=anything} results=[{type=an function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -645,7 +645,7 @@ function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -822,7 +822,7 @@ function f39 name="apply" module=m3 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f40 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f40 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -846,7 +846,7 @@ function f40 name="next" module=m4 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f41 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f41 name="return" module=m4 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -870,7 +870,7 @@ function f41 name="return" module=m4 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f42 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f42 name="throw" module=m4 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -927,7 +927,7 @@ function f43 name="iteratorGenericClose" module=m5 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f44 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f44 name="next" module=m7 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -948,7 +948,7 @@ function f44 name="next" module=m7 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f45 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f45 name="return" module=m7 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -999,7 +999,7 @@ function f45 name="return" module=m7 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f46 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f46 name="next" module=m8 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1021,7 +1021,7 @@ function f46 name="next" module=m8 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f47 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f47 name="return" module=m8 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -2100,15 +2100,15 @@ function f54 name="traverseArray" module=m9 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f39 runtimefunction id=12 function=f38 -runtimefunction id=65 function=f37 -runtimefunction id=69 function=f36 -runtimefunction id=70 function=f40 visibility=Private -runtimefunction id=71 function=f44 visibility=Private -runtimefunction id=72 function=f46 -runtimefunction id=86 function=f41 visibility=Private -runtimefunction id=87 function=f45 -runtimefunction id=88 function=f47 -runtimefunction id=92 function=f42 visibility=Private +runtimefunction id=64 function=f37 +runtimefunction id=68 function=f36 +runtimefunction id=69 function=f40 visibility=Private +runtimefunction id=70 function=f44 visibility=Private +runtimefunction id=71 function=f46 +runtimefunction id=85 function=f41 visibility=Private +runtimefunction id=86 function=f45 +runtimefunction id=87 function=f47 +runtimefunction id=91 function=f42 visibility=Private runtimefunction id=131072 function=f43 visibility=Private runtimefunction id=131091 function=f54 visibility=Private # -- generated: f0 HeirOfKnown HeirOfUnknown describe Known Unknown prototypeOf f8 Unused get set f15 f16 f17 throw @@ -2476,7 +2476,7 @@ runtimefunction id=131091 function=f54 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f90 layout=L(IteratorResult)} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f90 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f90 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -2550,7 +2550,7 @@ runtimefunction id=131091 function=f54 visibility=Private # CHECK-NEXT: Jump -> next b4() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=92 captures=[{type=f42}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f42} creator=Entrypoint{target=f42 arguments=Registers} { +# CHECK: module=m4 position=1077 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=91 captures=[{type=f42}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f42} creator=Entrypoint{target=f42 arguments=Registers} { # CHECK-NEXT: b0(v0: f42, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f42 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -2688,7 +2688,7 @@ runtimefunction id=131091 function=f54 visibility=Private # CHECK-NEXT: Return v13 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="throw" -# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f42 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f42} { +# CHECK: module=m4 position=1077 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f42 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f42} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 resumeMode=Throw check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/pipeline/untyped-speed/validators.ir b/test/aot/engine-tests/pipeline/untyped-speed/validators.ir index 0a4df0fb463d..cbcc1260da60 100644 --- a/test/aot/engine-tests/pipeline/untyped-speed/validators.ir +++ b/test/aot/engine-tests/pipeline/untyped-speed/validators.ir @@ -262,7 +262,7 @@ function f15 module=m0 role=Signature thisType={type=anything} results=[{type=an function f16 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f17 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f18 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f19 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f19 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -499,7 +499,7 @@ function f30 name="traverseArray" module=m4 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w86} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f19 +runtimefunction id=64 function=f19 runtimefunction id=131088 function=f23 runtimefunction id=131091 function=f30 visibility=Private # -- generated: map diff --git a/test/aot/engine-tests/place/side-effects/function-builtin-calls-iterator-bigint.ir b/test/aot/engine-tests/place/side-effects/function-builtin-calls-iterator-bigint.ir index 8164c5d88114..f124a23f8ee3 100644 --- a/test/aot/engine-tests/place/side-effects/function-builtin-calls-iterator-bigint.ir +++ b/test/aot/engine-tests/place/side-effects/function-builtin-calls-iterator-bigint.ir @@ -161,7 +161,7 @@ function f3 name="Held" module=m0 position=201 kind=BaseConstructor flags=[HasNe v3 = Convert v2 declared={type=L1 flags=[IsFromCompiler]} illTypedCause=FromLooseType Return v3 } -function f4 name="fromEntries" module=m1 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=51 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="fromEntries" module=m1 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=50 thisType={type=anything} parameters=[{type=anything}] results=[{type=undefined|null|object site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -252,7 +252,7 @@ function f5 name="fromEntries" module=m2 position=248 kind=Method role=Model fla IteratorClose v6 completion=Throw Rethrow v20 } -runtimefunction id=51 function=f4 +runtimefunction id=50 function=f4 runtimefunction id=131082 function=f5 # -- generated: f0 scene Held fromEntries # CHECK-LABEL: function f0 module= @@ -335,7 +335,7 @@ runtimefunction id=131082 function=f5 # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="fromEntries" -# CHECK: module=m1 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=51 thisType={type=anything} parameters=[{type=anything}] results=[{type=Object site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 position=1528 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=50 thisType={type=anything} parameters=[{type=anything}] results=[{type=Object site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: object = NewDictionary # CHECK-NEXT: v2: anything ~ undefined|null|Array = Upcast v0 castType=anything @@ -464,7 +464,7 @@ runtimefunction id=131082 function=f5 # CHECK-LABEL: function {{*}}name="fromEntries" # CHECK: module=m2 position=248 kind=Method role=Model flags=[IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=131082 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] # CHECK-LABEL: function {{*}}name="fromEntries" -# CHECK: module=m1 position=1528 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=51 captures=[{type=f4}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { +# CHECK: module=m1 position=1528 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=50 captures=[{type=f4}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f4} creator=Entrypoint{target=f4 arguments=Registers} { # CHECK-NEXT: b0(v0: f4, v1: anything, v2: anything): # CHECK-NEXT: v3: Object = CallDirect v2 function=f4 # CHECK-NEXT: ReturnCall v3 requirement=Allowed diff --git a/test/aot/engine-tests/place/untyped-code/define-property-branch-descriptor.ir b/test/aot/engine-tests/place/untyped-code/define-property-branch-descriptor.ir index fc0203ca9739..cce0f71f888b 100644 --- a/test/aot/engine-tests/place/untyped-code/define-property-branch-descriptor.ir +++ b/test/aot/engine-tests/place/untyped-code/define-property-branch-descriptor.ir @@ -566,7 +566,7 @@ function f28 module=m0 role=Signature thisType={type=anything} results=[{type=an function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f30 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f31 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f32 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f32 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="call" module=m2 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="apply" module=m2 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f35 name="clampToLength" module=m4 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w6}, {type=number site=w7}] results=[{type=number site=w8}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -578,7 +578,7 @@ function f40 name="finishReduce" module=m4 position=2116 role=Library flags=[IsC function f41 name="traverseArray" module=m4 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w22}, {type=undefined|number site=w23}, {type=number site=w24}, {type=undefined|null|Array site=w25 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f34 runtimefunction id=12 function=f33 -runtimefunction id=65 function=f32 +runtimefunction id=64 function=f32 runtimefunction id=131091 function=f41 visibility=Private # -- generated: f0 f16 # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/place/untyped-speed/reducers.ir b/test/aot/engine-tests/place/untyped-speed/reducers.ir index 7d63f8fde246..fa4d02335b1b 100644 --- a/test/aot/engine-tests/place/untyped-speed/reducers.ir +++ b/test/aot/engine-tests/place/untyped-speed/reducers.ir @@ -344,9 +344,9 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=33 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="filter" module=m2 position=4475 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=32 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -389,9 +389,9 @@ function f28 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f29 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w14 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w16}, {type=number site=w17}] results=[{type=undefined|null|string site=w18 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f30 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w19}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f31 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w20 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w21}, {type=undefined|number site=w22}, {type=number site=w23}, {type=undefined|null|Array site=w24 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=33 function=f23 -runtimefunction id=65 function=f24 -runtimefunction id=69 function=f22 +runtimefunction id=32 function=f23 +runtimefunction id=64 function=f24 +runtimefunction id=68 function=f22 runtimefunction id=131091 function=f31 visibility=Private # -- generated: f7 # CHECK-LABEL: function f7 role= diff --git a/test/aot/engine-tests/runtime/arrays/spread-of-boxed-numbers.ir b/test/aot/engine-tests/runtime/arrays/spread-of-boxed-numbers.ir index 50775c7bf8e0..265cf15a9ac7 100644 --- a/test/aot/engine-tests/runtime/arrays/spread-of-boxed-numbers.ir +++ b/test/aot/engine-tests/runtime/arrays/spread-of-boxed-numbers.ir @@ -227,7 +227,7 @@ function f5 module=m0 role=Signature thisType={type=anything} results=[{type=any function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f8] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="map" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="map" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -344,7 +344,7 @@ function f11 name="iteratorGenericClose" module=m2 kind=Method role=Library flag v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f12 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=66 thisType={type=undefined|null|number|string|symbol|bigint|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=undefined|null|number|string|symbol|bigint|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|number|string|symbol|bigint|object, v1: anything): Jump -> next b1() b1(): @@ -393,7 +393,7 @@ function f12 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChe v26 = ThrowNewError errorKind=TypeError message="Iterator.prototype.map requires that |this| be an Object." Unreachable } -function f13 module=m3 role=Library flags=[IsGenerator, HasThis, TakesCallee, IsChecked] enclosingRuntimeFunction=66 captures=[{type=anything}, {type=anything}, {type=anything}] thisType={type=anything} results=[{type=undefined|null|Generator flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned] { +function f13 module=m3 role=Library flags=[IsGenerator, HasThis, TakesCallee, IsChecked] enclosingRuntimeFunction=65 captures=[{type=anything}, {type=anything}, {type=anything}] thisType={type=anything} results=[{type=undefined|null|Generator flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned] { b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: function): Jump -> next b1() b1(): @@ -657,6 +657,6 @@ function f14 name="map" module=m4 kind=Method role=Library flags=[IsChecked, Has data d0 root=Array{contents=number elements=[Number{value=1}, Number{value=2}, Number{value=3}, Number{value=4}, Number{value=5}, Number{value=6}, Number{value=7}, Number{value=8}]} module=m0 data d1 root=Array{contents=number elements=[Number{value=1}, Number{value=2}, Number{value=3}, Number{value=4}, Number{value=5}, Number{value=6}, Number{value=7}, Number{value=8}]} module=m0 data d2 root=Array{contents=number elements=[Number{}, Number{}, Number{}, Number{}, Number{}, Number{}, Number{}, Number{}]} module=m0 -runtimefunction id=65 function=f9 -runtimefunction id=66 function=f12 +runtimefunction id=64 function=f9 +runtimefunction id=65 function=f12 runtimefunction id=131114 function=f14 diff --git a/test/aot/engine-tests/runtime/json/wide-strings-are-written-in-place.ir b/test/aot/engine-tests/runtime/json/wide-strings-are-written-in-place.ir index d7a6445d6bc7..599fd6099798 100644 --- a/test/aot/engine-tests/runtime/json/wide-strings-are-written-in-place.ir +++ b/test/aot/engine-tests/runtime/json/wide-strings-are-written-in-place.ir @@ -269,7 +269,7 @@ function f7 module=m0 role=Signature thisType={type=anything} results=[{type=any function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="map" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="map" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -386,7 +386,7 @@ function f13 name="iteratorGenericClose" module=m2 kind=Method role=Library flag v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f14 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=66 thisType={type=undefined|null|number|string|symbol|bigint|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=undefined|null|number|string|symbol|bigint|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|number|string|symbol|bigint|object, v1: anything): Jump -> next b1() b1(): @@ -435,7 +435,7 @@ function f14 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChe v26 = ThrowNewError errorKind=TypeError message="Iterator.prototype.map requires that |this| be an Object." Unreachable } -function f15 module=m3 role=Library flags=[IsGenerator, HasThis, TakesCallee, IsChecked] enclosingRuntimeFunction=66 captures=[{type=anything}, {type=anything}, {type=anything}] thisType={type=anything} results=[{type=undefined|null|Generator flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned] { +function f15 module=m3 role=Library flags=[IsGenerator, HasThis, TakesCallee, IsChecked] enclosingRuntimeFunction=65 captures=[{type=anything}, {type=anything}, {type=anything}] thisType={type=anything} results=[{type=undefined|null|Generator flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned] { b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: function): Jump -> next b1() b1(): @@ -698,6 +698,6 @@ function f16 name="map" module=m4 kind=Method role=Library flags=[IsChecked, Has } data d0 root=Array{contents=undefined|null|L0|L1} module=m0 data d1 root=Array{contents=undefined|null|L1} module=m0 -runtimefunction id=65 function=f11 -runtimefunction id=66 function=f14 +runtimefunction id=64 function=f11 +runtimefunction id=65 function=f14 runtimefunction id=131114 function=f16 diff --git a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level-without-types.ir b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level-without-types.ir index 7051f77f2d8d..bd44613579c4 100644 --- a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level-without-types.ir +++ b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level-without-types.ir @@ -110,7 +110,7 @@ function f0 module=m0 kind=Module thisType={type=anything} results=[{type=anythi } function f1 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f2 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -133,4 +133,4 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f3 +runtimefunction id=68 function=f3 diff --git a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level.ir b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level.ir index ab09c2eb9984..6f840f8e9028 100644 --- a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level.ir +++ b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-at-the-top-level.ir @@ -117,7 +117,7 @@ function f0 module=m0 kind=Module flags=[IsChecked] thisType={type=anything} res v57 = Undefined Return v57 } -function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -140,4 +140,4 @@ function f1 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f1 +runtimefunction id=68 function=f1 diff --git a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function-without-types.ir b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function-without-types.ir index 29f5db5edc1f..deb62ae706b2 100644 --- a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function-without-types.ir +++ b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function-without-types.ir @@ -135,7 +135,7 @@ function f1 name="main" module=m0 position=358 flags=[HasExplicitName] thisType= } function f2 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -158,4 +158,4 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f4 +runtimefunction id=68 function=f4 diff --git a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function.ir b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function.ir index 00e227b6fdef..6e987ffd337d 100644 --- a/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function.ir +++ b/test/aot/engine-tests/runtime/loops-at-the-top-level/patterns-replace-in-a-short-label-in-a-function.ir @@ -143,7 +143,7 @@ function f1 name="main" module=m0 position=330 flags=[IsChecked, HasExplicitName v48 = Undefined Return v48 } -function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -166,4 +166,4 @@ function f2 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f2 +runtimefunction id=68 function=f2 diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts-without-types.ir b/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts-without-types.ir index 0cefc7c3a044..37ea1f17adfc 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts-without-types.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts-without-types.ir @@ -295,7 +295,7 @@ function f2 name="joined" module=m0 position=656 flags=[HasExplicitName] length= function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -318,7 +318,7 @@ function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f7 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -342,7 +342,7 @@ function f7 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f8 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -366,7 +366,7 @@ function f8 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f9 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -423,7 +423,7 @@ function f10 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f11 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -444,7 +444,7 @@ function f11 name="next" module=m5 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f12 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -495,7 +495,7 @@ function f12 name="return" module=m5 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f13 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -517,7 +517,7 @@ function f13 name="next" module=m6 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f14 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1594,13 +1594,13 @@ function f21 name="traverseArray" module=m7 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=69 function=f6 -runtimefunction id=70 function=f7 visibility=Private -runtimefunction id=71 function=f11 visibility=Private -runtimefunction id=72 function=f13 -runtimefunction id=86 function=f8 visibility=Private -runtimefunction id=87 function=f12 -runtimefunction id=88 function=f14 -runtimefunction id=92 function=f9 visibility=Private +runtimefunction id=68 function=f6 +runtimefunction id=69 function=f7 visibility=Private +runtimefunction id=70 function=f11 visibility=Private +runtimefunction id=71 function=f13 +runtimefunction id=85 function=f8 visibility=Private +runtimefunction id=86 function=f12 +runtimefunction id=87 function=f14 +runtimefunction id=91 function=f9 visibility=Private runtimefunction id=131072 function=f10 visibility=Private runtimefunction id=131091 function=f21 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts.ir b/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts.ir index e7a3968eb257..6d5e9c3685f7 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/a-text-joined-of-parts.ir @@ -316,7 +316,7 @@ function f2 name="joined" module=m0 position=628 flags=[IsChecked, HasExplicitNa Return v62 } function f3 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -339,7 +339,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f5 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -363,7 +363,7 @@ function f5 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f6 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -387,7 +387,7 @@ function f6 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f7 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -444,7 +444,7 @@ function f8 name="iteratorGenericClose" module=m3 position=314 kind=Method role= v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f9 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -465,7 +465,7 @@ function f9 name="next" module=m5 position=25 kind=Method role=Library flags=[Ha v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f10 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -516,7 +516,7 @@ function f10 name="return" module=m5 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f11 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -538,7 +538,7 @@ function f11 name="next" module=m6 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f12 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1615,13 +1615,13 @@ function f19 name="traverseArray" module=m7 position=2337 kind=Method role=Libra b252(v555): Return v555 } -runtimefunction id=69 function=f4 -runtimefunction id=70 function=f5 visibility=Private -runtimefunction id=71 function=f9 visibility=Private -runtimefunction id=72 function=f11 -runtimefunction id=86 function=f6 visibility=Private -runtimefunction id=87 function=f10 -runtimefunction id=88 function=f12 -runtimefunction id=92 function=f7 visibility=Private +runtimefunction id=68 function=f4 +runtimefunction id=69 function=f5 visibility=Private +runtimefunction id=70 function=f9 visibility=Private +runtimefunction id=71 function=f11 +runtimefunction id=85 function=f6 visibility=Private +runtimefunction id=86 function=f10 +runtimefunction id=87 function=f12 +runtimefunction id=91 function=f7 visibility=Private runtimefunction id=131072 function=f8 visibility=Private runtimefunction id=131091 function=f19 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances-without-types.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances-without-types.ir index 5d9d1239a74a..8069f4cb8184 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances-without-types.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances-without-types.ir @@ -519,7 +519,7 @@ function f5 module=m0 role=Signature thisType={type=anything} results=[{type=any function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -542,7 +542,7 @@ function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f10 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -566,7 +566,7 @@ function f10 name="next" module=m2 position=25 kind=Method role=Library flags=[H v13 = CreateIteratorResult v3, v12 Return v13 } -function f11 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -590,7 +590,7 @@ function f11 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f12 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -647,7 +647,7 @@ function f13 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f14 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -668,7 +668,7 @@ function f14 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f15 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -719,7 +719,7 @@ function f15 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f16 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -741,7 +741,7 @@ function f16 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f17 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f17 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1958,14 +1958,14 @@ function f26 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w85 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w75 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f9 -runtimefunction id=70 function=f10 visibility=Private -runtimefunction id=71 function=f14 visibility=Private -runtimefunction id=72 function=f16 -runtimefunction id=86 function=f11 visibility=Private -runtimefunction id=87 function=f15 -runtimefunction id=88 function=f17 -runtimefunction id=92 function=f12 visibility=Private +runtimefunction id=68 function=f9 +runtimefunction id=69 function=f10 visibility=Private +runtimefunction id=70 function=f14 visibility=Private +runtimefunction id=71 function=f16 +runtimefunction id=85 function=f11 visibility=Private +runtimefunction id=86 function=f15 +runtimefunction id=87 function=f17 +runtimefunction id=91 function=f12 visibility=Private runtimefunction id=131072 function=f13 visibility=Private runtimefunction id=131091 function=f24 visibility=Private runtimefunction id=131112 function=f25 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances.ir index efae4a34b61e..255d45eab554 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/instances.ir @@ -541,7 +541,7 @@ function f4 module=m0 position=106 kind=Initializer flags=[HasThis, IsChecked, I v6 = Undefined Return v6 } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -564,7 +564,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f6 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -588,7 +588,7 @@ function f6 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f7 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -612,7 +612,7 @@ function f7 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f8 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -669,7 +669,7 @@ function f9 name="iteratorGenericClose" module=m3 position=314 kind=Method role= v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f10 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -690,7 +690,7 @@ function f10 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f11 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -741,7 +741,7 @@ function f11 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f12 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -763,7 +763,7 @@ function f12 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f13 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1980,14 +1980,14 @@ function f22 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w126 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w116 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f5 -runtimefunction id=70 function=f6 visibility=Private -runtimefunction id=71 function=f10 visibility=Private -runtimefunction id=72 function=f12 -runtimefunction id=86 function=f7 visibility=Private -runtimefunction id=87 function=f11 -runtimefunction id=88 function=f13 -runtimefunction id=92 function=f8 visibility=Private +runtimefunction id=68 function=f5 +runtimefunction id=69 function=f6 visibility=Private +runtimefunction id=70 function=f10 visibility=Private +runtimefunction id=71 function=f12 +runtimefunction id=85 function=f7 visibility=Private +runtimefunction id=86 function=f11 +runtimefunction id=87 function=f13 +runtimefunction id=91 function=f8 visibility=Private runtimefunction id=131072 function=f9 visibility=Private runtimefunction id=131091 function=f20 visibility=Private runtimefunction id=131112 function=f21 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals-without-types.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals-without-types.ir index 67024abd17d0..3356c10e060d 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals-without-types.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals-without-types.ir @@ -472,7 +472,7 @@ function f3 module=m0 role=Signature thisType={type=anything} results=[{type=any function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -495,7 +495,7 @@ function f7 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f8 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -519,7 +519,7 @@ function f8 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f9 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -543,7 +543,7 @@ function f9 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f10 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -600,7 +600,7 @@ function f11 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f12 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -621,7 +621,7 @@ function f12 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f13 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -672,7 +672,7 @@ function f13 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f14 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -694,7 +694,7 @@ function f14 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f15 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1911,14 +1911,14 @@ function f24 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w85 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w75 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f7 -runtimefunction id=70 function=f8 visibility=Private -runtimefunction id=71 function=f12 visibility=Private -runtimefunction id=72 function=f14 -runtimefunction id=86 function=f9 visibility=Private -runtimefunction id=87 function=f13 -runtimefunction id=88 function=f15 -runtimefunction id=92 function=f10 visibility=Private +runtimefunction id=68 function=f7 +runtimefunction id=69 function=f8 visibility=Private +runtimefunction id=70 function=f12 visibility=Private +runtimefunction id=71 function=f14 +runtimefunction id=85 function=f9 visibility=Private +runtimefunction id=86 function=f13 +runtimefunction id=87 function=f15 +runtimefunction id=91 function=f10 visibility=Private runtimefunction id=131072 function=f11 visibility=Private runtimefunction id=131091 function=f22 visibility=Private runtimefunction id=131112 function=f23 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals.ir index 4cb4a6f636ec..d3af18a2c024 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/literals.ir @@ -487,7 +487,7 @@ function f2 name="read" module=m0 position=335 flags=[IsChecked, HasExplicitName v33 = Convert v6 declared={type=number site=w8} Return v33 } -function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -510,7 +510,7 @@ function f3 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f4 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -534,7 +534,7 @@ function f4 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f5 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -558,7 +558,7 @@ function f5 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f6 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -615,7 +615,7 @@ function f7 name="iteratorGenericClose" module=m3 position=314 kind=Method role= v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f8 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -636,7 +636,7 @@ function f8 name="next" module=m4 position=25 kind=Method role=Library flags=[Ha v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f9 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -687,7 +687,7 @@ function f9 name="return" module=m4 position=326 kind=Method role=Library flags= v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f10 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -709,7 +709,7 @@ function f10 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f11 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1926,14 +1926,14 @@ function f20 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w119 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w109 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f3 -runtimefunction id=70 function=f4 visibility=Private -runtimefunction id=71 function=f8 visibility=Private -runtimefunction id=72 function=f10 -runtimefunction id=86 function=f5 visibility=Private -runtimefunction id=87 function=f9 -runtimefunction id=88 function=f11 -runtimefunction id=92 function=f6 visibility=Private +runtimefunction id=68 function=f3 +runtimefunction id=69 function=f4 visibility=Private +runtimefunction id=70 function=f8 visibility=Private +runtimefunction id=71 function=f10 +runtimefunction id=85 function=f5 visibility=Private +runtimefunction id=86 function=f9 +runtimefunction id=87 function=f11 +runtimefunction id=91 function=f6 visibility=Private runtimefunction id=131072 function=f7 visibility=Private runtimefunction id=131091 function=f18 visibility=Private runtimefunction id=131112 function=f19 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function-without-types.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function-without-types.ir index 2e930c2f1e8a..c7d9317c71a2 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function-without-types.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function-without-types.ir @@ -487,7 +487,7 @@ function f4 module=m0 role=Signature thisType={type=anything} results=[{type=any function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -510,7 +510,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f9 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -534,7 +534,7 @@ function f9 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f10 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -558,7 +558,7 @@ function f10 name="return" module=m2 position=548 kind=Method role=Library flags v13 = CreateIteratorResult v3, v12 Return v13 } -function f11 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -615,7 +615,7 @@ function f12 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f13 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -636,7 +636,7 @@ function f13 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f14 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -687,7 +687,7 @@ function f14 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f15 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f15 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -709,7 +709,7 @@ function f15 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f16 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1926,14 +1926,14 @@ function f25 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w85 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w75 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f8 -runtimefunction id=70 function=f9 visibility=Private -runtimefunction id=71 function=f13 visibility=Private -runtimefunction id=72 function=f15 -runtimefunction id=86 function=f10 visibility=Private -runtimefunction id=87 function=f14 -runtimefunction id=88 function=f16 -runtimefunction id=92 function=f11 visibility=Private +runtimefunction id=68 function=f8 +runtimefunction id=69 function=f9 visibility=Private +runtimefunction id=70 function=f13 visibility=Private +runtimefunction id=71 function=f15 +runtimefunction id=85 function=f10 visibility=Private +runtimefunction id=86 function=f14 +runtimefunction id=87 function=f16 +runtimefunction id=91 function=f11 visibility=Private runtimefunction id=131072 function=f12 visibility=Private runtimefunction id=131091 function=f23 visibility=Private runtimefunction id=131112 function=f24 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function.ir index 820ea4513d14..427c2f60c727 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/made-by-a-function.ir @@ -512,7 +512,7 @@ function f3 name="read" module=m0 position=440 flags=[IsChecked, HasExplicitName v33 = Convert v6 declared={type=number site=w13} Return v33 } -function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -535,7 +535,7 @@ function f4 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f5 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -559,7 +559,7 @@ function f5 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f6 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -583,7 +583,7 @@ function f6 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f7 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -640,7 +640,7 @@ function f8 name="iteratorGenericClose" module=m3 position=314 kind=Method role= v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f9 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -661,7 +661,7 @@ function f9 name="next" module=m4 position=25 kind=Method role=Library flags=[Ha v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f10 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f10 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -712,7 +712,7 @@ function f10 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f11 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -734,7 +734,7 @@ function f11 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f12 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1951,14 +1951,14 @@ function f21 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w125 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w115 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f4 -runtimefunction id=70 function=f5 visibility=Private -runtimefunction id=71 function=f9 visibility=Private -runtimefunction id=72 function=f11 -runtimefunction id=86 function=f6 visibility=Private -runtimefunction id=87 function=f10 -runtimefunction id=88 function=f12 -runtimefunction id=92 function=f7 visibility=Private +runtimefunction id=68 function=f4 +runtimefunction id=69 function=f5 visibility=Private +runtimefunction id=70 function=f9 visibility=Private +runtimefunction id=71 function=f11 +runtimefunction id=85 function=f6 visibility=Private +runtimefunction id=86 function=f10 +runtimefunction id=87 function=f12 +runtimefunction id=91 function=f7 visibility=Private runtimefunction id=131072 function=f8 visibility=Private runtimefunction id=131091 function=f19 visibility=Private runtimefunction id=131112 function=f20 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/without-types.ir b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/without-types.ir index 1cc1ff3249cf..ad1d92db1bab 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/without-types.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/numbers-out-of-a-request/without-types.ir @@ -473,7 +473,7 @@ function f3 name="Pair" module=m0 position=26 kind=BaseConstructor flags=[HasNew } function f4 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -496,7 +496,7 @@ function f6 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f7 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f7 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -520,7 +520,7 @@ function f7 name="next" module=m2 position=25 kind=Method role=Library flags=[Ha v13 = CreateIteratorResult v3, v12 Return v13 } -function f8 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -544,7 +544,7 @@ function f8 name="return" module=m2 position=548 kind=Method role=Library flags= v13 = CreateIteratorResult v3, v12 Return v13 } -function f9 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -601,7 +601,7 @@ function f10 name="iteratorGenericClose" module=m3 position=314 kind=Method role v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f11 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -622,7 +622,7 @@ function f11 name="next" module=m4 position=25 kind=Method role=Library flags=[H v9 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f12 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="return" module=m4 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -673,7 +673,7 @@ function f12 name="return" module=m4 position=326 kind=Method role=Library flags v27 = ThrowNewError errorKind=TypeError message="|this| should be an iterator helper" Unreachable } -function f13 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m5 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -695,7 +695,7 @@ function f13 name="next" module=m5 position=1421 kind=Method role=Library flags= v10 = ThrowNewError errorKind=TypeError message="%WrapForValidIteratorPrototype%.next requires that |this| be a WrapForValidIteratorPrototype object" Unreachable } -function f14 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="return" module=m5 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -1912,14 +1912,14 @@ function f23 name="filledArray" module=m7 position=2241 kind=Method role=Library v64 = Call v63, v62, v1 calleeKey="fill" calleeName="made.fill" ReturnCall v64 casts=[{declared={type=undefined|null|Array site=w85 flags=[OmitsNull, OmitsUndefined]}}, {declared={type=undefined|null|Array site=w75 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=69 function=f6 -runtimefunction id=70 function=f7 visibility=Private -runtimefunction id=71 function=f11 visibility=Private -runtimefunction id=72 function=f13 -runtimefunction id=86 function=f8 visibility=Private -runtimefunction id=87 function=f12 -runtimefunction id=88 function=f14 -runtimefunction id=92 function=f9 visibility=Private +runtimefunction id=68 function=f6 +runtimefunction id=69 function=f7 visibility=Private +runtimefunction id=70 function=f11 visibility=Private +runtimefunction id=71 function=f13 +runtimefunction id=85 function=f8 visibility=Private +runtimefunction id=86 function=f12 +runtimefunction id=87 function=f14 +runtimefunction id=91 function=f9 visibility=Private runtimefunction id=131072 function=f10 visibility=Private runtimefunction id=131091 function=f21 visibility=Private runtimefunction id=131112 function=f22 visibility=Private diff --git a/test/aot/engine-tests/runtime/one-loop-against-another/the-fields-of-a-merged-object.ir b/test/aot/engine-tests/runtime/one-loop-against-another/the-fields-of-a-merged-object.ir index f0403a898f87..351a1d4f0e1d 100644 --- a/test/aot/engine-tests/runtime/one-loop-against-another/the-fields-of-a-merged-object.ir +++ b/test/aot/engine-tests/runtime/one-loop-against-another/the-fields-of-a-merged-object.ir @@ -616,7 +616,7 @@ function f8 name="sumsOfAssigned" module=m0 position=1544 flags=[IsSloppy, HasEx v33 = Convert v6 declared={type=number flags=[IsExpected]} Return v33 } -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -639,4 +639,4 @@ function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f9 +runtimefunction id=68 function=f9 diff --git a/test/aot/engine-tests/runtime/promises/awaits-of-objects.ir b/test/aot/engine-tests/runtime/promises/awaits-of-objects.ir index cd302f1b6422..6c572b6de677 100644 --- a/test/aot/engine-tests/runtime/promises/awaits-of-objects.ir +++ b/test/aot/engine-tests/runtime/promises/awaits-of-objects.ir @@ -190,7 +190,7 @@ function f4 module=m0 role=Signature thisType={type=anything} results=[{type=any function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f8 name="map" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="map" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -307,7 +307,7 @@ function f10 name="iteratorGenericClose" module=m2 kind=Method role=Library flag v15 = ThrowNewError errorKind=TypeError message="Iterator result interface is not an object." Unreachable } -function f11 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=66 thisType={type=undefined|null|number|string|symbol|bigint|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=undefined|null|number|string|symbol|bigint|object flags=[IsExpected]} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|number|string|symbol|bigint|object, v1: anything): Jump -> next b1() b1(): @@ -356,7 +356,7 @@ function f11 name="map" module=m3 kind=Method role=Library flags=[HasThis, IsChe v26 = ThrowNewError errorKind=TypeError message="Iterator.prototype.map requires that |this| be an Object." Unreachable } -function f12 module=m3 role=Library flags=[IsGenerator, HasThis, TakesCallee, IsChecked] enclosingRuntimeFunction=66 captures=[{type=anything}, {type=anything}, {type=anything}] thisType={type=anything} results=[{type=undefined|null|Generator flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned] { +function f12 module=m3 role=Library flags=[IsGenerator, HasThis, TakesCallee, IsChecked] enclosingRuntimeFunction=65 captures=[{type=anything}, {type=anything}, {type=anything}] thisType={type=anything} results=[{type=undefined|null|Generator flags=[IsExpected, OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned] { b0(v0: anything, v1: anything, v2: anything, v3: anything, v4: function): Jump -> next b1() b1(): @@ -683,6 +683,6 @@ data d0 root=Object{layout=L1 members=[{key="x" value=Number{value=1}}]} module= data d1 root=Object{layout=L1 members=[{key="x" value=Number{value=3}}]} module=m0 data d2 root=Object{layout=L1 members=[{key="x" value=Number{value=5}}]} module=m0 runtimefunction id=0 function=f13 -runtimefunction id=65 function=f8 -runtimefunction id=66 function=f11 +runtimefunction id=64 function=f8 +runtimefunction id=65 function=f11 runtimefunction id=131114 function=f16 diff --git a/test/aot/engine-tests/select/language/math-functions-of-optional.ir b/test/aot/engine-tests/select/language/math-functions-of-optional.ir index 973860470153..7c5c88f58e6a 100644 --- a/test/aot/engine-tests/select/language/math-functions-of-optional.ir +++ b/test/aot/engine-tests/select/language/math-functions-of-optional.ir @@ -877,8 +877,8 @@ function f73 module=m0 role=Signature thisType={type=anything} results=[{type=an function f74 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f68, f69] function f75 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f68, f69] function f76 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f77 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f78 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f77 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f78 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -1138,8 +1138,8 @@ function f85 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v200 = Convert v199 declared={type=number site=w314} Jump -> next b30(v192, v193, v194, v195, v196, v197, v198, v200) } -runtimefunction id=65 function=f78 -runtimefunction id=69 function=f77 +runtimefunction id=64 function=f78 +runtimefunction id=68 function=f77 runtimefunction id=131091 function=f85 visibility=Private # -- generated: sumAbs bumpAll f30 # CHECK-LABEL: function {{*}}name="sumAbs" diff --git a/test/aot/engine-tests/select/mistyped-values/boolean-map-numbers-held-field-rounded.ir b/test/aot/engine-tests/select/mistyped-values/boolean-map-numbers-held-field-rounded.ir index 0ce96fd48dce..423a9f7d7e4f 100644 --- a/test/aot/engine-tests/select/mistyped-values/boolean-map-numbers-held-field-rounded.ir +++ b/test/aot/engine-tests/select/mistyped-values/boolean-map-numbers-held-field-rounded.ir @@ -540,7 +540,7 @@ function f9 module=m0 position=1404 kind=Arrow flags=[IsChecked] length=1 captur function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f12] function f12 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -563,7 +563,7 @@ function f13 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f14 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f14 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -642,7 +642,7 @@ function f15 name="apply" module=m3 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f16 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f16 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -667,9 +667,9 @@ function f16 name="next" module=m4 position=25 kind=Method role=Library flags=[H Return v13 } runtimefunction id=4 function=f15 -runtimefunction id=44 function=f14 -runtimefunction id=69 function=f13 -runtimefunction id=70 function=f16 visibility=Private +runtimefunction id=43 function=f14 +runtimefunction id=68 function=f13 +runtimefunction id=69 function=f16 visibility=Private # -- generated: f0 convert note readHeld next forEach apply roundWhatIsHeld # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f4 callPosition=4294967295 module=m0}, {callee=f4 callPosition=4294967295 module=m0}] { @@ -863,7 +863,7 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: Return v5 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f27 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f27 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f27 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -872,7 +872,7 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=Array flags=[IsExpected]} parameters=[{type=function flags=[IsExpected]}, {type=anything}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ Array, v1: anything ~ function, v2: anything): # CHECK-NEXT: v3: object ~ Array = ToObject v0 message="Array.prototype.forEach requires that |this| not be null or undefined" # CHECK-NEXT: v4: boolean ~ true = TypeTest v3 testedType=Array @@ -982,7 +982,7 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { +# CHECK: module=m4 position=25 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=object}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f28 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything, v1: anything): # CHECK-NEXT: v2: undefined = CallDirect v0, v1 function=f28 # CHECK-NEXT: v3: i32 = ResultAt v2 @@ -1163,13 +1163,13 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: Return v110 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f13}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f13}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f13} creator=Entrypoint{target=f13 arguments=Registers} { # CHECK-NEXT: b0(v0: f13, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f13 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="forEach" -# CHECK: module=m2 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=44 captures=[{type=f14}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { +# CHECK: module=m2 position=3958 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=43 captures=[{type=f14}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f14} creator=Entrypoint{target=f14 arguments=Registers} { # CHECK-NEXT: b0(v0: f14, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: undefined = CallDirect v1, v2, v3 function=f14 @3958 tail # CHECK-NEXT: Return v4 @@ -1181,7 +1181,7 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=70 captures=[{type=f16}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { +# CHECK: module=m4 position=25 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=1 enclosingRuntimeFunction=69 captures=[{type=f16}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f16} creator=Entrypoint{target=f16 arguments=Registers} { # CHECK-NEXT: b0(v0: f16, v1: anything, v2: anything): # CHECK-NEXT: v3: object = CallDirect v1, v2 function=f16 # CHECK-NEXT: ReturnCall v3 requirement=Allowed @@ -1193,7 +1193,7 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: Throw v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f13 parameterMap=[{original=0}]} creator=ResultWorker{origin=f13} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f13 parameterMap=[{original=0}]} creator=ResultWorker{origin=f13} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() @@ -1297,7 +1297,7 @@ runtimefunction id=70 function=f16 visibility=Private # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m4 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f16} { +# CHECK: module=m4 position=25 kind=Method role=ResultWorker flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=Generator flags=[IsExpected]} parameters=[{type=anything}] results=[{type=i32}, {type=object|unspecified}, {type=anything|unspecified}, {type=boolean|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f16 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f16} { # CHECK-NEXT: b0(v0: anything ~ Generator, v1: anything): # CHECK-NEXT: v2: undefined = StepGenerator v0, v1 check=IsGenerator # CHECK-NEXT: v3: anything = ResultAt v2 diff --git a/test/aot/engine-tests/select/objects/descriptors-that-meet-in-front-of-call.ir b/test/aot/engine-tests/select/objects/descriptors-that-meet-in-front-of-call.ir index 7efe452a575e..599dbf150c75 100644 --- a/test/aot/engine-tests/select/objects/descriptors-that-meet-in-front-of-call.ir +++ b/test/aot/engine-tests/select/objects/descriptors-that-meet-in-front-of-call.ir @@ -479,8 +479,8 @@ function f51 module=m0 role=Signature thisType={type=anything} results=[{type=an function f52 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f55 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f56 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f55 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f56 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f57 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w105}, {type=number site=w106}] results=[{type=number site=w107}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f58 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w108 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w109}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: undefined|null|Array, v1: number, v2: anything): @@ -497,8 +497,8 @@ function f60 name="joinedText" module=m3 position=1819 role=Library flags=[IsChe function f61 name="finishJoin" module=m3 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w114 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w115 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w116}, {type=number site=w117}] results=[{type=undefined|null|string site=w118 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f62 name="finishReduce" module=m3 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w119}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f63 name="traverseArray" module=m3 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w120 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w121}, {type=undefined|number site=w122}, {type=number site=w123}, {type=undefined|null|Array site=w124 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f56 -runtimefunction id=69 function=f55 +runtimefunction id=64 function=f56 +runtimefunction id=68 function=f55 runtimefunction id=131091 function=f63 visibility=Private # -- generated: f0 note getters f14 f15 f16 attempt inOrder # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/select/strings/buffer-byte-length-untyped.ir b/test/aot/engine-tests/select/strings/buffer-byte-length-untyped.ir index 771a2198011a..22cf32941856 100644 --- a/test/aot/engine-tests/select/strings/buffer-byte-length-untyped.ir +++ b/test/aot/engine-tests/select/strings/buffer-byte-length-untyped.ir @@ -507,8 +507,8 @@ function f32 module=m0 role=Signature thisType={type=anything} results=[{type=an function f33 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f34 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f35 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f36 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f37 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -745,8 +745,8 @@ function f46 name="traverseArray" module=m4 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f39 runtimefunction id=12 function=f38 -runtimefunction id=65 function=f37 -runtimefunction id=69 function=f36 +runtimefunction id=64 function=f37 +runtimefunction id=68 function=f36 runtimefunction id=131091 function=f46 visibility=Private # -- generated: f0 ofTextByDefault # CHECK-LABEL: function f0 role= diff --git a/test/aot/engine-tests/select/strings/keys-made-only-where-they-are-needed.ir b/test/aot/engine-tests/select/strings/keys-made-only-where-they-are-needed.ir index 827aef141619..3e4640d317ff 100644 --- a/test/aot/engine-tests/select/strings/keys-made-only-where-they-are-needed.ir +++ b/test/aot/engine-tests/select/strings/keys-made-only-where-they-are-needed.ir @@ -634,8 +634,8 @@ function f26 module=m0 role=Signature thisType={type=anything} results=[{type=an function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f29] function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f29] function f29 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f31 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f30 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f31 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w198}, {type=number site=w199}] results=[{type=number site=w200}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w201 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w202}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f34 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w203 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w204}, {type=anything}] results=[{type=number site=w205}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -833,8 +833,8 @@ function f38 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v173 = Convert v172 declared={type=number site=w261} Jump -> next b30(v165, v166, v167, v168, v169, v170, v171, v173) } -runtimefunction id=65 function=f31 -runtimefunction id=69 function=f30 +runtimefunction id=64 function=f31 +runtimefunction id=68 function=f30 runtimefunction id=131091 function=f38 visibility=Private # -- generated: f19 onAnyShelf # CHECK-LABEL: function {{*}}name="onAnyShelf" diff --git a/test/aot/engine-tests/select/strings/regexp-substring-subjects.ir b/test/aot/engine-tests/select/strings/regexp-substring-subjects.ir index 023a1f6a27ed..776b58bf69d3 100644 --- a/test/aot/engine-tests/select/strings/regexp-substring-subjects.ir +++ b/test/aot/engine-tests/select/strings/regexp-substring-subjects.ir @@ -385,7 +385,7 @@ function f7 module=m0 role=Signature thisType={type=anything} results=[{type=any function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f10] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="reduce" module=m1 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=82 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="reduce" module=m1 position=1398 kind=Method role=Library flags=[HasThis, HasArgumentCount, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=81 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: int[0, 4294967295], v2: anything, v3: anything): v4 = ToObject v0 message="Array.prototype.reduce requires that |this| not be null or undefined" v5 = PropGet v4 key="length" @@ -428,7 +428,7 @@ function f11 name="reduce" module=m1 position=1398 kind=Method role=Library flag b6(v39, v40): Return v15 } -runtimefunction id=82 function=f11 +runtimefunction id=81 function=f11 # -- generated: legacy f3 entries f5 # CHECK-LABEL: function {{*}}name="legacy" # CHECK: module=m0 position=592 flags=[IsChecked, HasExplicitName] thisType={type=anything} results=[{type=string site=w0 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { diff --git a/test/aot/engine-tests/select/unexpected-null/none-in-symbol-bigint-and-regexp.ir b/test/aot/engine-tests/select/unexpected-null/none-in-symbol-bigint-and-regexp.ir index 7baa89f5ead4..ba5ae87771fa 100644 --- a/test/aot/engine-tests/select/unexpected-null/none-in-symbol-bigint-and-regexp.ir +++ b/test/aot/engine-tests/select/unexpected-null/none-in-symbol-bigint-and-regexp.ir @@ -281,7 +281,7 @@ function f19 module=m0 role=Signature thisType={type=anything} results=[{type=an function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f14] -function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -304,7 +304,7 @@ function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f23 +runtimefunction id=68 function=f23 # -- generated: f0 describe double matches day f6 f7 f8 f9 f10 f11 f12 f13 next attempt # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f5 callPosition=4294967295 module=m0}, {callee=f6 callPosition=4294967295 parent=4 module=m0}, {callee=f7 callPosition=4294967295 parent=3 module=m0}, {callee=f8 callPosition=4294967295 parent=2 module=m0}, {callee=f9 callPosition=4294967295 parent=1 module=m0}] { @@ -587,7 +587,7 @@ runtimefunction id=69 function=f23 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f32 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f32 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f32 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -596,7 +596,7 @@ runtimefunction id=69 function=f23 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { # CHECK-NEXT: b0(v0: f23, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f23 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -629,7 +629,7 @@ runtimefunction id=69 function=f23 # CHECK-NEXT: Jump -> next b2() # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/valueflow/arrays/some-on-slices-in-a-nested-loop.ir b/test/aot/engine-tests/valueflow/arrays/some-on-slices-in-a-nested-loop.ir index 5e6b4e2e6072..c13546f75fbf 100644 --- a/test/aot/engine-tests/valueflow/arrays/some-on-slices-in-a-nested-loop.ir +++ b/test/aot/engine-tests/valueflow/arrays/some-on-slices-in-a-nested-loop.ir @@ -291,9 +291,9 @@ function f18 module=m0 role=Signature thisType={type=anything} results=[{type=an function f19 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f20] function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f24 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=89 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w64}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f22 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f23 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f24 name="some" module=m2 position=5857 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=88 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w64}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f25 name="clampToLength" module=m3 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w69}, {type=number site=w70}] results=[{type=number site=w71}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f26 name="storeInNewArray" module=m3 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w72 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w73}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f27 name="appendParts" module=m3 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w74 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w75}, {type=anything}] results=[{type=number site=w76}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { @@ -401,9 +401,9 @@ function f31 name="traverseArray" module=m3 position=2337 kind=Method role=Libra v80 = Call v76, -, v62, v77, v54, v79 calleeName="finishJoin" ReturnCall v80 casts=[{declared={type=undefined|null|string site=w143 flags=[OmitsNull, OmitsUndefined]}}] } -runtimefunction id=65 function=f23 -runtimefunction id=69 function=f22 -runtimefunction id=89 function=f24 +runtimefunction id=64 function=f23 +runtimefunction id=68 function=f22 +runtimefunction id=88 function=f24 runtimefunction id=131091 function=f31 visibility=Private # -- generated: f0 # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/valueflow/calls/deep-tail-recursion-comes-back.ir b/test/aot/engine-tests/valueflow/calls/deep-tail-recursion-comes-back.ir index db62b67ab215..77d48e3b4f61 100644 --- a/test/aot/engine-tests/valueflow/calls/deep-tail-recursion-comes-back.ir +++ b/test/aot/engine-tests/valueflow/calls/deep-tail-recursion-comes-back.ir @@ -598,9 +598,9 @@ function f40 module=m1 role=Signature thisType={type=anything} results=[{type=an function f41 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f42 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f43 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f44 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f45 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f44 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f45 name="map" module=m3 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 module=m5 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d1 @@ -720,9 +720,9 @@ function f92 name="joinedText" module=m10 position=1819 role=Library flags=[IsCh function f93 name="finishJoin" module=m10 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w228 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w229 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w230}, {type=number site=w231}] results=[{type=undefined|null|string site=w232 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f94 name="finishReduce" module=m10 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w233}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f95 name="traverseArray" module=m10 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w234 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w235}, {type=undefined|number site=w236}, {type=number site=w237}, {type=undefined|null|Array site=w238 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f45 -runtimefunction id=69 function=f44 -runtimefunction id=70 function=f46 visibility=Private +runtimefunction id=64 function=f45 +runtimefunction id=68 function=f44 +runtimefunction id=69 function=f46 visibility=Private runtimefunction id=65574 function=f26 runtimefunction id=65580 function=f25 runtimefunction id=131091 function=f95 visibility=Private diff --git a/test/aot/engine-tests/valueflow/classes-and-closures/closures-in-class-heritage.ir b/test/aot/engine-tests/valueflow/classes-and-closures/closures-in-class-heritage.ir index ad9c8208f3b6..6ce84ec54c24 100644 --- a/test/aot/engine-tests/valueflow/classes-and-closures/closures-in-class-heritage.ir +++ b/test/aot/engine-tests/valueflow/classes-and-closures/closures-in-class-heritage.ir @@ -316,7 +316,7 @@ function f52 module=m0 role=Signature thisType={type=anything} results=[{type=an function f53 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f54 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f55 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f56 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f56 name="map" module=m1 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): v3 = Undefined v4 = ToObject v0 message="Array.prototype.map requires that |this| not be null or undefined" @@ -359,7 +359,7 @@ function f60 name="joinedText" module=m2 position=1819 role=Library flags=[IsChe function f61 name="finishJoin" module=m2 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w11 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w12 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w13}, {type=number site=w14}] results=[{type=undefined|null|string site=w15 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f62 name="finishReduce" module=m2 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w16}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f63 name="traverseArray" module=m2 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w17 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w18}, {type=undefined|number site=w19}, {type=number site=w20}, {type=undefined|null|Array site=w21 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f56 +runtimefunction id=64 function=f56 runtimefunction id=131091 function=f63 visibility=Private # -- generated: f0 f4 f5 f6 f19 set # CHECK-LABEL: function f0 module= diff --git a/test/aot/engine-tests/valueflow/classes/field-declared-base-stored-code-subclass.ir b/test/aot/engine-tests/valueflow/classes/field-declared-base-stored-code-subclass.ir index 8d78a4ef6612..f85ff0e2da5c 100644 --- a/test/aot/engine-tests/valueflow/classes/field-declared-base-stored-code-subclass.ir +++ b/test/aot/engine-tests/valueflow/classes/field-declared-base-stored-code-subclass.ir @@ -614,7 +614,7 @@ function f41 module=m0 role=Signature thisType={type=anything} results=[{type=an function f42 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f24] function f43 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f24] function f44 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f33] -function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=5 last=5 v2 = ToBoolean v1 @@ -631,7 +631,7 @@ function f45 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f45 +runtimefunction id=68 function=f45 # -- generated: Base # CHECK-LABEL: function {{*}}name="Base" # CHECK: role=Source diff --git a/test/aot/engine-tests/valueflow/constant-keys/two-emitters-subclass-borrowed-methods.ir b/test/aot/engine-tests/valueflow/constant-keys/two-emitters-subclass-borrowed-methods.ir index 28c17cb2c3c7..fa8051f7ced9 100644 --- a/test/aot/engine-tests/valueflow/constant-keys/two-emitters-subclass-borrowed-methods.ir +++ b/test/aot/engine-tests/valueflow/constant-keys/two-emitters-subclass-borrowed-methods.ir @@ -304,8 +304,8 @@ function f25 module=m0 role=Signature thisType={type=anything} results=[{type=an function f26 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f27 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f28 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f29 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f30 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f29 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f30 name="forEach" module=m2 position=3958 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=43 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f31 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f32 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f33 name="apply" module=m4 position=1385 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=3 enclosingRuntimeFunction=5 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -319,8 +319,8 @@ function f34 name="toLocaleString" module=m5 position=1291 kind=Method role=Mode runtimefunction id=4 function=f32 runtimefunction id=5 function=f33 runtimefunction id=12 function=f31 -runtimefunction id=44 function=f30 -runtimefunction id=69 function=f29 +runtimefunction id=43 function=f30 +runtimefunction id=68 function=f29 runtimefunction id=131086 function=f34 # -- generated: describe listen Response f7 f8 f10 emit # CHECK-LABEL: function {{*}}name="describe" diff --git a/test/aot/engine-tests/valueflow/escape-analysis/inner-function-reads-list-outer-writes.ir b/test/aot/engine-tests/valueflow/escape-analysis/inner-function-reads-list-outer-writes.ir index 3671083cc0ab..d14df43d848e 100644 --- a/test/aot/engine-tests/valueflow/escape-analysis/inner-function-reads-list-outer-writes.ir +++ b/test/aot/engine-tests/valueflow/escape-analysis/inner-function-reads-list-outer-writes.ir @@ -283,7 +283,7 @@ function f4 name="add" module=m0 position=502 flags=[IsChecked, HasExplicitName] v18 = Undefined Return v18 } -function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -306,7 +306,7 @@ function f5 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f5 +runtimefunction id=68 function=f5 # -- generated: f0 throughItself through add next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] { @@ -851,7 +851,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Return v35 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -929,7 +929,7 @@ runtimefunction id=69 function=f5 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f5}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f5} creator=Entrypoint{target=f5 arguments=Registers} { # CHECK-NEXT: b0(v0: f5, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f5 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/valueflow/escape-analysis/result-that-may-null-asked-twice.ir b/test/aot/engine-tests/valueflow/escape-analysis/result-that-may-null-asked-twice.ir index 90d6e14c35ca..db4a590493ff 100644 --- a/test/aot/engine-tests/valueflow/escape-analysis/result-that-may-null-asked-twice.ir +++ b/test/aot/engine-tests/valueflow/escape-analysis/result-that-may-null-asked-twice.ir @@ -457,7 +457,7 @@ function f8 module=m0 role=Signature thisType={type=anything} results=[{type=any function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f11 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -480,7 +480,7 @@ function f12 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f12 +runtimefunction id=68 function=f12 # -- generated: note makePairOrNull makePairOrNothing next # CHECK-LABEL: function {{*}}name="note" # CHECK: module=m0 position=207 flags=[HasRestParameter, HasExplicitName] thisType={type=anything} parameters=[{type=Array flags=[IsFromCompiler]}] results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost, ClosuresAreReadWithoutCode] { @@ -583,7 +583,7 @@ runtimefunction id=69 function=f12 # CHECK-NEXT: Return v14 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f22 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f22 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f22 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -596,13 +596,13 @@ runtimefunction id=69 function=f12 # CHECK-LABEL: function {{*}}name="makePairOrNothing" # CHECK: module=m0 position=462 role=ResultWorker flags=[HasExplicitName] length=2 thisType={type=anything} parameters=[{type=int[0, 5]}, {type=undefined|int}] results=[{type=i32}, {type=int[-2147483643, 2147483647]|unspecified}, {type=undefined|int|unspecified}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f3 parameterMap=[{original=0}, {original=1}]} creator=ResultWorker{origin=f3} # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f12}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f12} creator=Entrypoint{target=f12 arguments=Registers} { # CHECK-NEXT: b0(v0: f12, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f12 # CHECK-NEXT: ReturnCall v2 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f12 parameterMap=[{original=0}]} creator=ResultWorker{origin=f12} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/valueflow/external-data/json-parse-type-argument-long-things.ir b/test/aot/engine-tests/valueflow/external-data/json-parse-type-argument-long-things.ir index bce3801564b9..ecdf46d565be 100644 --- a/test/aot/engine-tests/valueflow/external-data/json-parse-type-argument-long-things.ir +++ b/test/aot/engine-tests/valueflow/external-data/json-parse-type-argument-long-things.ir @@ -740,16 +740,16 @@ function f58 module=m0 role=Signature thisType={type=anything} results=[{type=an function f59 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] function f60 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f31] function f61 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f62 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f63 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f64 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f65 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f66 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f62 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f63 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f64 name="next" module=m3 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f65 name="return" module=m3 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f66 name="throw" module=m3 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f67 name="iteratorGenericClose" module=m4 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f68 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f69 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f70 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f71 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f68 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f69 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f70 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f71 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f72 name="clampToLength" module=m7 position=720 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=number site=w148}, {type=number site=w149}] results=[{type=number site=w150}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f73 name="storeInNewArray" module=m7 position=955 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w151 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w152}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f74 name="appendParts" module=m7 position=1242 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=undefined|null|Array site=w153 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w154}, {type=anything}] results=[{type=number site=w155}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] @@ -757,15 +757,15 @@ function f75 name="joinedText" module=m7 position=1819 role=Library flags=[IsChe function f76 name="finishJoin" module=m7 position=1934 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=4 thisType={type=anything} parameters=[{type=undefined|null|string site=w157 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w158 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w159}, {type=number site=w160}] results=[{type=undefined|null|string site=w161 flags=[OmitsNull, OmitsUndefined]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f77 name="finishReduce" module=m7 position=2116 role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=2 thisType={type=anything} parameters=[{type=boolean site=w162}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f78 name="traverseArray" module=m7 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w163 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w164}, {type=undefined|number site=w165}, {type=number site=w166}, {type=undefined|null|Array site=w167 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=65 function=f63 -runtimefunction id=69 function=f62 -runtimefunction id=70 function=f64 visibility=Private -runtimefunction id=71 function=f68 visibility=Private -runtimefunction id=72 function=f70 -runtimefunction id=86 function=f65 visibility=Private -runtimefunction id=87 function=f69 -runtimefunction id=88 function=f71 -runtimefunction id=92 function=f66 visibility=Private +runtimefunction id=64 function=f63 +runtimefunction id=68 function=f62 +runtimefunction id=69 function=f64 visibility=Private +runtimefunction id=70 function=f68 visibility=Private +runtimefunction id=71 function=f70 +runtimefunction id=85 function=f65 visibility=Private +runtimefunction id=86 function=f69 +runtimefunction id=87 function=f71 +runtimefunction id=91 function=f66 visibility=Private runtimefunction id=131072 function=f67 visibility=Private runtimefunction id=131091 function=f78 visibility=Private # -- generated: f0 f17 diff --git a/test/aot/engine-tests/valueflow/external-data/return-generic-array-find-and-spread.ir b/test/aot/engine-tests/valueflow/external-data/return-generic-array-find-and-spread.ir index 090a81c3399d..b06c73045bca 100644 --- a/test/aot/engine-tests/valueflow/external-data/return-generic-array-find-and-spread.ir +++ b/test/aot/engine-tests/valueflow/external-data/return-generic-array-find-and-spread.ir @@ -378,8 +378,8 @@ function f23 module=m1 role=Signature thisType={type=anything} results=[{type=an function f24 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f25 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f26 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f27 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f28 name="find" module=m3 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=35 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f27 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f28 name="find" module=m3 position=6413 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=34 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f29 module=m4 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d0 @@ -492,8 +492,8 @@ function f69 module=m8 kind=Module role=Library flags=[IsChecked] thisType={type Return v35 } function f70 name="matchesGlob" module=m8 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w143}, {type=undefined|null|string site=w144 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w145 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w146}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=35 function=f28 -runtimefunction id=69 function=f27 +runtimefunction id=34 function=f28 +runtimefunction id=68 function=f27 runtimefunction id=65574 function=f9 runtimefunction id=65580 function=f8 # -- generated: f0 list ask f9 writeOut onWarning f32 f69 diff --git a/test/aot/engine-tests/valueflow/language/optional-chains-await-yield-statement.ir b/test/aot/engine-tests/valueflow/language/optional-chains-await-yield-statement.ir index 61df8e0cf30d..22f120d59fa0 100644 --- a/test/aot/engine-tests/valueflow/language/optional-chains-await-yield-statement.ir +++ b/test/aot/engine-tests/valueflow/language/optional-chains-await-yield-statement.ir @@ -700,8 +700,8 @@ function f84 module=m2 role=Signature thisType={type=anything} results=[{type=an function f85 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f86 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] function f87 module=m2 role=Signature thisType={type=anything} results=[{type=anything}] -function f88 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f89 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f88 name="next" module=m3 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f89 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f90 module=m7 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d6 @@ -833,8 +833,8 @@ function f149 module=m13 kind=Module role=Library flags=[IsChecked] thisType={ty Return v35 } function f150 name="matchesGlob" module=m13 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w309}, {type=undefined|null|string site=w310 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w311 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w312}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f88 -runtimefunction id=70 function=f89 visibility=Private +runtimefunction id=68 function=f88 +runtimefunction id=69 function=f89 visibility=Private runtimefunction id=65574 function=f70 runtimefunction id=65580 function=f69 # -- generated: f0 steps drive f70 writeOut f94 f149 diff --git a/test/aot/engine-tests/valueflow/results/symbols-and-signatures-of-a-module-of-the-library.ir b/test/aot/engine-tests/valueflow/results/symbols-and-signatures-of-a-module-of-the-library.ir index 5ec21ad4f50f..a614ce38ed3f 100644 --- a/test/aot/engine-tests/valueflow/results/symbols-and-signatures-of-a-module-of-the-library.ir +++ b/test/aot/engine-tests/valueflow/results/symbols-and-signatures-of-a-module-of-the-library.ir @@ -16,7 +16,7 @@ module m0 path="main.js" displayPath="main.js" body=f0 requests=[{target=m1 comp module m1 path="node:readline" displayPath="node:readline" kind=RuntimeSource exportRule=RuntimeModule requireResult=DefaultExport runtimeModule=NodeReadline body=f1 module m2 path="internal:library" displayPath="internal:library" kind=RuntimeSource flags=[IsLibrary] exportRule=RuntimeModule entry module=m0 -runtimefunction id=47 function=f5 +runtimefunction id=46 function=f5 layout L0 name="Holder" variable g0 name="kState" module=m1 declared={type=anything|absent} initialization=Uninitialized variable g1 name="setState" module=m1 declared={type=anything} initialization=Undefined @@ -87,7 +87,7 @@ function f4 name="readsLate" module=m1 role=Library results=[{type=anything}] { v1 = CheckInitialized v0 name="late" Return v1 } -function f5 name="from" module=m2 role=Library flags=[HasThis] enclosingRuntimeFunction=47 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { +function f5 name="from" module=m2 role=Library flags=[HasThis] enclosingRuntimeFunction=46 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything, v2: anything): Return v1 } diff --git a/test/aot/engine-tests/valueflow/results/variables-of-a-module-of-the-library.ir b/test/aot/engine-tests/valueflow/results/variables-of-a-module-of-the-library.ir index 9204255b4b77..1b5a1e326bc8 100644 --- a/test/aot/engine-tests/valueflow/results/variables-of-a-module-of-the-library.ir +++ b/test/aot/engine-tests/valueflow/results/variables-of-a-module-of-the-library.ir @@ -54,10 +54,10 @@ function f4 name="readerBesideRegistered" module=m2 role=Library results=[{type= v1 = CheckInitialized v0 name="besideRegistered" Return v1 } -function f5 name="registered" module=m2 role=Library flags=[HasThis] enclosingRuntimeFunction=47 parameters=[{type=anything}] results=[{type=anything}] { +function f5 name="registered" module=m2 role=Library flags=[HasThis] enclosingRuntimeFunction=46 parameters=[{type=anything}] results=[{type=anything}] { b0(v0: anything, v1: anything): v2 = GetModuleVariable variable=g3 v3 = Call v2 Return v3 } -runtimefunction id=47 function=f5 +runtimefunction id=46 function=f5 diff --git a/test/aot/engine-tests/valueflow/soundness/goes-out-rest-param-thirteen-ways.ir b/test/aot/engine-tests/valueflow/soundness/goes-out-rest-param-thirteen-ways.ir index b8256a156ed4..25b3e4db6bd6 100644 --- a/test/aot/engine-tests/valueflow/soundness/goes-out-rest-param-thirteen-ways.ir +++ b/test/aot/engine-tests/valueflow/soundness/goes-out-rest-param-thirteen-ways.ir @@ -569,10 +569,10 @@ function f59 module=m1 role=Signature thisType={type=anything} results=[{type=an function f60 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f61 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f62 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f63 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f63 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f64 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f65 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f66 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f66 name="next" module=m4 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f67 name="apply" module=m5 position=1385 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=3 enclosingRuntimeFunction=5 thisType={type=anything} parameters=[{type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f68 module=m6 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): @@ -689,8 +689,8 @@ function f109 name="matchesGlob" module=m10 position=3105 role=Library flags=[Is runtimefunction id=4 function=f65 runtimefunction id=5 function=f67 runtimefunction id=12 function=f64 -runtimefunction id=69 function=f63 -runtimefunction id=70 function=f66 visibility=Private +runtimefunction id=68 function=f63 +runtimefunction id=69 function=f66 visibility=Private runtimefunction id=65574 function=f45 runtimefunction id=65580 function=f44 # -- generated: f0 t2 t12 C2 C12 f45 writeOut onWarning f71 f108 diff --git a/test/aot/engine-tests/valueflow/stress/built-ins-mc/poly-small.ir b/test/aot/engine-tests/valueflow/stress/built-ins-mc/poly-small.ir index 4463743738fc..5e45a9bbf55d 100644 --- a/test/aot/engine-tests/valueflow/stress/built-ins-mc/poly-small.ir +++ b/test/aot/engine-tests/valueflow/stress/built-ins-mc/poly-small.ir @@ -149,7 +149,7 @@ function f5 module=m0 role=Signature thisType={type=anything} results=[{type=any function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -172,7 +172,7 @@ function f9 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f9 +runtimefunction id=68 function=f9 # -- generated: f0 install lastOfTheProgram demethodize next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}, {callee=f3 callPosition=4294967295 module=m0}] { @@ -343,7 +343,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f16 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f16 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f16 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -352,7 +352,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f9}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f9} creator=Entrypoint{target=f9 arguments=Registers} { # CHECK-NEXT: b0(v0: f9, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f9 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -370,7 +370,7 @@ runtimefunction id=69 function=f9 # CHECK-NEXT: Return v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f9 parameterMap=[{original=0}]} creator=ResultWorker{origin=f9} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/valueflow/stress/species/proxy-programs-m05-getters-other-values.ir b/test/aot/engine-tests/valueflow/stress/species/proxy-programs-m05-getters-other-values.ir index 2c023451f544..24d77fc8a05f 100644 --- a/test/aot/engine-tests/valueflow/stress/species/proxy-programs-m05-getters-other-values.ir +++ b/test/aot/engine-tests/valueflow/stress/species/proxy-programs-m05-getters-other-values.ir @@ -179,7 +179,7 @@ function f7 module=m0 role=Signature thisType={type=anything} results=[{type=any function f8 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f9 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f10 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -202,7 +202,7 @@ function f11 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f11 +runtimefunction id=68 function=f11 # -- generated: f0 Body made fn next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f3 callPosition=4294967295 module=m0}] { @@ -310,7 +310,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Return v0 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f19 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f19 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f19 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -319,7 +319,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f11}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f11} creator=Entrypoint{target=f11 arguments=Registers} { # CHECK-NEXT: b0(v0: f11, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f11 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -346,7 +346,7 @@ runtimefunction id=69 function=f11 # CHECK-NEXT: Throw v2 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f11 parameterMap=[{original=0}]} creator=ResultWorker{origin=f11} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/valueflow/structural-types/forgotten-number-comes-back-optional.ir b/test/aot/engine-tests/valueflow/structural-types/forgotten-number-comes-back-optional.ir index 87059ec91f0f..4eebae0e4dfa 100644 --- a/test/aot/engine-tests/valueflow/structural-types/forgotten-number-comes-back-optional.ir +++ b/test/aot/engine-tests/valueflow/structural-types/forgotten-number-comes-back-optional.ir @@ -148,7 +148,7 @@ function f4 module=m0 role=Signature thisType={type=anything} results=[{type=any function f5 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f6 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f5] function f7 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f5] -function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -171,7 +171,7 @@ function f8 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChe v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -runtimefunction id=69 function=f8 +runtimefunction id=68 function=f8 # -- generated: f0 f2 next # CHECK-LABEL: function f0 module= # CHECK: m0 kind=Module flags=[IsChecked] thisType={type=anything} results=[{type=undefined}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame, IsNeverCalledByHost] inlineFrames=[{}, {callee=f1 callPosition=4294967295 module=m0}, {callee=f10 callPosition=237 parent=1 module=m0}] { @@ -203,7 +203,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Return v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b17() @@ -278,7 +278,7 @@ runtimefunction id=69 function=f8 # CHECK-NEXT: Unreachable # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f8}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f8} creator=Entrypoint{target=f8 arguments=Registers} { # CHECK-NEXT: b0(v0: f8, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f8 # CHECK-NEXT: ReturnCall v2 requirement=Allowed diff --git a/test/aot/engine-tests/valueflow/structural-types/globals-that-only-a-browser-has.ir b/test/aot/engine-tests/valueflow/structural-types/globals-that-only-a-browser-has.ir index 8ebdc04473b3..021c0a557ffd 100644 --- a/test/aot/engine-tests/valueflow/structural-types/globals-that-only-a-browser-has.ir +++ b/test/aot/engine-tests/valueflow/structural-types/globals-that-only-a-browser-has.ir @@ -623,13 +623,13 @@ function f295 module=m0 role=Signature thisType={type=anything} results=[{type=a function f296 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f297 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] function f298 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f299 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f300 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f301 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f302 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f299 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f300 name="next" module=m2 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f301 name="return" module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f302 name="throw" module=m2 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f303 name="iteratorGenericClose" module=m3 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f304 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f305 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f304 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f305 name="return" module=m5 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): v1 = HasJSType v0 first=6 last=6 v2 = Convert v0 declared={type=object flags=[IsFromCompiler, IsClaim]} @@ -645,16 +645,16 @@ function f305 name="return" module=m5 position=326 kind=Method role=Library flag v12 = CreateIteratorResult v9, v11 Return v12 } -function f306 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f307 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -runtimefunction id=69 function=f299 -runtimefunction id=70 function=f300 visibility=Private -runtimefunction id=71 function=f304 visibility=Private -runtimefunction id=72 function=f306 -runtimefunction id=86 function=f301 visibility=Private -runtimefunction id=87 function=f305 -runtimefunction id=88 function=f307 -runtimefunction id=92 function=f302 visibility=Private +function f306 name="next" module=m6 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f307 name="return" module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +runtimefunction id=68 function=f299 +runtimefunction id=69 function=f300 visibility=Private +runtimefunction id=70 function=f304 visibility=Private +runtimefunction id=71 function=f306 +runtimefunction id=85 function=f301 visibility=Private +runtimefunction id=86 function=f305 +runtimefunction id=87 function=f307 +runtimefunction id=91 function=f302 visibility=Private runtimefunction id=131072 function=f303 visibility=Private # -- generated: f0 titleOr widthOr f19 f20 Card return show # CHECK-LABEL: function f0 module= @@ -748,9 +748,9 @@ runtimefunction id=131072 function=f303 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m2 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f319 layout=L(IteratorResult)} { +# CHECK: module=m5 position=326 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f319 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f319 # CHECK-NEXT: v2: undefined = ResultAt v1 @@ -759,9 +759,9 @@ runtimefunction id=131072 function=f303 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +# CHECK: module=m6 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=87 captures=[{type=f305}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f305} creator=Entrypoint{target=f305 arguments=Registers} { +# CHECK: module=m5 position=326 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=86 captures=[{type=f305}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f305} creator=Entrypoint{target=f305 arguments=Registers} { # CHECK-NEXT: b0(v0: f305, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f305 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -813,7 +813,7 @@ runtimefunction id=131072 function=f303 visibility=Private # CHECK-NEXT: Return v20 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="return" -# CHECK: module=m5 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=undefined}, {type=true}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f305 parameterMap=[{original=0}]} creator=ResultWorker{origin=f305} { +# CHECK: module=m5 position=326 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=IteratorHelper flags=[IsExpected]} results=[{type=undefined}, {type=true}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f305 parameterMap=[{original=0}]} creator=ResultWorker{origin=f305} { # CHECK-NEXT: b0(v0: anything ~ IteratorHelper): # CHECK-NEXT: v1: object ~ IteratorHelper = AssumeType v0 provenType=object [isWordOfFrontEnd] # CHECK-NEXT: v2: anything = GetInternalField v1 index=1 diff --git a/test/aot/engine-tests/valueflow/typed-objects/dictionary-only-inspected.ir b/test/aot/engine-tests/valueflow/typed-objects/dictionary-only-inspected.ir index 7f69c59c6457..d1a42a8b00e5 100644 --- a/test/aot/engine-tests/valueflow/typed-objects/dictionary-only-inspected.ir +++ b/test/aot/engine-tests/valueflow/typed-objects/dictionary-only-inspected.ir @@ -599,7 +599,7 @@ function f19 module=m0 role=Signature thisType={type=anything} results=[{type=an function f20 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] functionTypes=[f22] function f21 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] builtinMembers=[ObjectPrototypeHasOwnProperty] function f22 module=m0 role=Signature thisType={type=anything} results=[{type=anything}] -function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything): Jump -> next b1() b1(): @@ -622,7 +622,7 @@ function f23 name="next" module=m1 kind=Method role=Library flags=[HasThis, IsCh v11 = ThrowNewError errorKind=TypeError message="%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance" Unreachable } -function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=65 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f24 name="map" module=m2 position=5210 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=64 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything, v2: anything): Jump -> next b1() b1(): @@ -799,7 +799,7 @@ function f26 name="apply" module=m3 position=1161 kind=Method role=Library flags v10 = Call v9, v0, v1, v2 ReturnCall v10 } -function f27 name="has" module=m4 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=61 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w75}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +function f27 name="has" module=m4 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=boolean site=w75}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(v0: anything, v1: anything): Jump -> next b1() b1(): @@ -2201,9 +2201,9 @@ function f38 name="traverseArray" module=m6 position=2337 kind=Method role=Libra } runtimefunction id=4 function=f26 runtimefunction id=12 function=f25 -runtimefunction id=61 function=f27 -runtimefunction id=65 function=f24 -runtimefunction id=69 function=f23 +runtimefunction id=60 function=f27 +runtimefunction id=64 function=f24 +runtimefunction id=68 function=f23 runtimefunction id=131087 function=f31 runtimefunction id=131091 function=f38 visibility=Private # -- generated: f0 keysOf listed owns isListed written sum f10 next apply has holdsBoxedValues includesNaN clampToLength storeInNewArray joinedText finishJoin finishReduce @@ -2470,7 +2470,7 @@ runtimefunction id=131091 function=f38 visibility=Private # CHECK-NEXT: Return v4 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f57 layout=L(IteratorResult)} { +# CHECK: module=m1 kind=Method role=ResultWrapper flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=L(IteratorResult)}] capabilities=[MayBeInlined, HasOrdinaryFrame, IsHiddenInStackTraces] creator=ResultWrapper{worker=f57 layout=L(IteratorResult)} { # CHECK-NEXT: b0(v0: anything): # CHECK-NEXT: v1: undefined = CallDirect v0 function=f57 # CHECK-NEXT: v2: anything = ResultAt v1 @@ -2503,7 +2503,7 @@ runtimefunction id=131091 function=f38 visibility=Private # CHECK-NEXT: Return v12 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="has" -# CHECK: module=m4 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=61 thisType={type=anything} parameters=[{type=object flags=[IsExpected]}, {type=string|symbol flags=[IsExpected]}] results=[{type=boolean site=w75}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { +# CHECK: module=m4 position=2204 kind=Method role=Library flags=[IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=60 thisType={type=anything} parameters=[{type=object flags=[IsExpected]}, {type=string|symbol flags=[IsExpected]}] results=[{type=boolean site=w75}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { # CHECK-NEXT: b0(v0: anything ~ object, v1: anything ~ string|symbol): # CHECK-NEXT: v2: boolean ~ true = TypeTest v0 testedType=object # CHECK-NEXT: Branch v2 -> taken b1(| 0), notTaken b2() @@ -2699,7 +2699,7 @@ runtimefunction id=131091 function=f38 visibility=Private # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=69 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { +# CHECK: module=m1 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] enclosingRuntimeFunction=68 captures=[{type=f23}] thisType={type=anything} results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f23} creator=Entrypoint{target=f23 arguments=Registers} { # CHECK-NEXT: b0(v0: f23, v1: anything): # CHECK-NEXT: v2: L(IteratorResult) = CallDirect v1 function=f23 # CHECK-NEXT: ReturnCall v2 requirement=Allowed @@ -2711,7 +2711,7 @@ runtimefunction id=131091 function=f38 visibility=Private # CHECK-NEXT: ReturnCall v4 requirement=Allowed # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="has" -# CHECK: module=m4 position=2204 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 enclosingRuntimeFunction=61 captures=[{type=f27}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} inlineFrames=[{}, {callee=f27 callPosition=2204 isTailCall=true module=m4}] { +# CHECK: module=m4 position=2204 kind=Method role=GenericEntrypoint flags=[HasThis, IsChecked] length=2 enclosingRuntimeFunction=60 captures=[{type=f27}] thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[HasOrdinaryFrame, IsHiddenInStackTraces] derivation={source=f27} creator=Entrypoint{target=f27 arguments=Registers} inlineFrames=[{}, {callee=f27 callPosition=2204 isTailCall=true module=m4}] { # CHECK-NEXT: b0(v0: f27, v1: anything, v2: anything, v3: anything): # CHECK-NEXT: v4: anything ~ object = Upcast v2 castType=anything @2204 tail # CHECK-NEXT: v5: anything ~ string|symbol = Upcast v3 castType=anything @2204 tail @@ -2761,7 +2761,7 @@ runtimefunction id=131091 function=f38 visibility=Private # CHECK-NEXT: Throw v3 # CHECK-NEXT: } # CHECK-LABEL: function {{*}}name="next" -# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { +# CHECK: module=m1 kind=Method role=ResultWorker flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=ArrayIterator flags=[IsExpected]} results=[{type=anything}, {type=boolean}] capabilities=[MayChangeSignature, MayBeInlined, HasOrdinaryFrame, HasOnlyDirectCallers, IsNeverCalledByHost] derivation={source=f23 parameterMap=[{original=0}]} creator=ResultWorker{origin=f23} { # CHECK-NEXT: b0(v0: anything ~ ArrayIterator): # CHECK-NEXT: v1: boolean = HasJSType v0 first=5 last=5 # CHECK-NEXT: Branch v1 -> taken b1(), notTaken b25() diff --git a/test/aot/engine-tests/valueflow/untyped-code/non-plain-objects-read-by-key.ir b/test/aot/engine-tests/valueflow/untyped-code/non-plain-objects-read-by-key.ir index aefe2b33e8b0..6e21eaebd658 100644 --- a/test/aot/engine-tests/valueflow/untyped-code/non-plain-objects-read-by-key.ir +++ b/test/aot/engine-tests/valueflow/untyped-code/non-plain-objects-read-by-key.ir @@ -552,10 +552,10 @@ function f39 module=m1 role=Signature thisType={type=anything} results=[{type=an function f40 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f41 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] function f42 module=m1 role=Signature thisType={type=anything} results=[{type=anything}] -function f43 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f43 name="next" module=m2 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f44 name="call" module=m3 kind=Method role=Library flags=[HasThis, HasArgumentCount, HasHiddenRest, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=12 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}, {type=anything}, {type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f45 name="apply" module=m3 position=1161 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=2 enclosingRuntimeFunction=4 thisType={type=undefined|null|function flags=[IsExpected]} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f46 name="forEach" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=45 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f46 name="forEach" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] length=1 enclosingRuntimeFunction=44 thisType={type=anything} parameters=[{type=anything}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f47 name="toLocaleString" module=m5 position=1291 kind=Method role=Model flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=131086 thisType={type=anything} results=[{type=anything}] function f48 module=m6 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): @@ -678,8 +678,8 @@ function f95 name="finishReduce" module=m11 position=2116 role=Library flags=[Is function f96 name="traverseArray" module=m11 position=2337 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=6 enclosingRuntimeFunction=131091 thisType={type=anything} parameters=[{type=undefined|null|Array site=w158 flags=[OmitsNull, OmitsUndefined]}, {type=number site=w159}, {type=undefined|number site=w160}, {type=number site=w161}, {type=undefined|null|Array site=w162 flags=[OmitsNull, OmitsUndefined]}, {type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=4 function=f45 runtimefunction id=12 function=f44 -runtimefunction id=45 function=f46 -runtimefunction id=69 function=f43 +runtimefunction id=44 function=f46 +runtimefunction id=68 function=f43 runtimefunction id=65574 function=f25 runtimefunction id=65580 function=f24 runtimefunction id=131086 function=f47 diff --git a/test/aot/engine-tests/valueflow/workers/embedded-worker-path-kept-object-array.ir b/test/aot/engine-tests/valueflow/workers/embedded-worker-path-kept-object-array.ir index 1170724a6330..e9a1424fd733 100644 --- a/test/aot/engine-tests/valueflow/workers/embedded-worker-path-kept-object-array.ir +++ b/test/aot/engine-tests/valueflow/workers/embedded-worker-path-kept-object-array.ir @@ -430,18 +430,18 @@ function f43 module=m3 role=Signature thisType={type=anything} results=[{type=an function f44 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f45 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] function f46 module=m3 role=Signature thisType={type=anything} results=[{type=anything}] -function f47 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=69 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f48 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=70 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f49 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=86 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f50 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=92 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f47 name="next" module=m4 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=68 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f48 name="next" module=m5 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=69 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f49 name="return" module=m5 position=548 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=85 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f50 name="throw" module=m5 position=1077 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=91 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f51 name="iteratorGenericClose" module=m6 position=314 kind=Method role=Library flags=[IsChecked, IsHiddenInStackTraces, HasExplicitName] length=1 enclosingRuntimeFunction=131072 thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f52 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f53 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f52 name="next" module=m8 position=25 kind=Method role=Library flags=[HasThis, IsChecked, IsHiddenInStackTraces, HasExplicitName] enclosingRuntimeFunction=70 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f53 name="return" module=m8 position=326 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=86 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f54 name="Promise" module=m9 position=1836 kind=BaseConstructor role=Library flags=[HasNewTarget, IsChecked, HasExplicitName, IsNakedConstructor] length=1 enclosingRuntimeFunction=0 thisType={type=anything} parameters=[{type=anything}] results=[{type=object flags=[IsFromCompiler]}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f55 module=m9 position=2114 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f56 module=m9 position=2263 kind=Arrow role=Library flags=[IsChecked] length=1 enclosingRuntimeFunction=0 captures=[{type=anything}] thisType={type=anything} parameters=[{type=anything}] results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f57 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=72 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] -function f58 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=88 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f57 name="next" module=m10 position=1421 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=71 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] +function f58 name="return" module=m10 position=2171 kind=Method role=Library flags=[HasThis, IsChecked, HasExplicitName] enclosingRuntimeFunction=87 thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] function f59 module=m11 kind=Module role=Library flags=[IsChecked] thisType={type=anything} results=[{type=anything}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] { b0(): v0 = Data data=d0 @@ -555,14 +555,14 @@ function f99 module=m15 kind=Module role=Library flags=[IsChecked] thisType={typ } function f100 name="matchesGlob" module=m15 position=3105 role=Library flags=[IsChecked, HasExplicitName] length=3 thisType={type=anything} parameters=[{type=boolean site=w132}, {type=undefined|null|string site=w133 flags=[OmitsNull, OmitsUndefined]}, {type=undefined|null|string site=w134 flags=[OmitsNull, OmitsUndefined]}] results=[{type=boolean site=w135}] capabilities=[MayChangeSignature, MayBeCloned, MayBeInlined, HasOrdinaryFrame] runtimefunction id=0 function=f54 -runtimefunction id=69 function=f47 -runtimefunction id=70 function=f48 visibility=Private -runtimefunction id=71 function=f52 visibility=Private -runtimefunction id=72 function=f57 -runtimefunction id=86 function=f49 visibility=Private -runtimefunction id=87 function=f53 -runtimefunction id=88 function=f58 -runtimefunction id=92 function=f50 visibility=Private +runtimefunction id=68 function=f47 +runtimefunction id=69 function=f48 visibility=Private +runtimefunction id=70 function=f52 visibility=Private +runtimefunction id=71 function=f57 +runtimefunction id=85 function=f49 visibility=Private +runtimefunction id=86 function=f53 +runtimefunction id=87 function=f58 +runtimefunction id=91 function=f50 visibility=Private runtimefunction id=65574 function=f29 runtimefunction id=65580 function=f28 runtimefunction id=131072 function=f51 visibility=Private diff --git a/test/aot/parallel/arrays/searches-folds-and-flat-maps-of-a-list-bring-in-only-the-functions-that-do-them.js b/test/aot/parallel/arrays/searches-folds-and-flat-maps-of-a-list-bring-in-only-the-functions-that-do-them.js index 75fee348dd29..ce0f31b87476 100644 --- a/test/aot/parallel/arrays/searches-folds-and-flat-maps-of-a-list-bring-in-only-the-functions-that-do-them.js +++ b/test/aot/parallel/arrays/searches-folds-and-flat-maps-of-a-list-bring-in-only-the-functions-that-do-them.js @@ -1,5 +1,6 @@ // find, findLast, at, reduce, reduceRight and flatMap of a list. One function of the library runs for all calls of each. What the calls of this program hand over is all that those functions get here, so the executable holds the program, those functions and what they call. -// STATISTIC: ImageFunctionsEmitted <= 40 +// Array.from steps the iterator of whatever it gets by a call of its `next`, and closes it by a call of its `return` (WebKit 37aa2b5bd94d). So the two helpers that do that and the `next`, `return` and `throw` of the library's iterators are in the executable too. That is 18 of the 42 functions. +// STATISTIC: ImageFunctionsEmitted <= 48 const list = Array.from({ length: 16 }); console.log(list.find(value => value === undefined), list.findLast(value => value === undefined), list.at(-1)); console.log(list.reduce((count, value) => count + (value === undefined ? 1 : 0), 0), list.reduceRight(count => count + 1, 0)); diff --git a/test/bundler/bundler_bytecode_portable.test.ts b/test/bundler/bundler_bytecode_portable.test.ts index 903ce546536c..d6902c932c5c 100644 --- a/test/bundler/bundler_bytecode_portable.test.ts +++ b/test/bundler/bundler_bytecode_portable.test.ts @@ -447,7 +447,7 @@ describe("bytecode cache portability", () => { { "builtin corpus": { "bytes": 5120, - "sha256": "ea7e5025c3a46cef7c11970fd82eed71eb21b0469c62969716ee431c4cf4b734", + "sha256": "8bf5ac3a1612310beae40828db94b9ae2fd18ada3d599b28721ddb74213dbbfa", }, "builtin corpus strings": { "bytes": 1044, @@ -456,36 +456,36 @@ describe("bytecode cache portability", () => { "bun build --bytecode --minify all.js": { "js": "50b3e5192dd86a205c73583d585884c1b414467b14db54d03c77d3026bf236ff", "jsc": { - "bytes": 1730936, - "sha256": "97e60ca597e4d31f6d3baded11d25f24c42d67b1a327631001ae246d735122dd", + "bytes": 1730920, + "sha256": "99378bcb89b3fe041f25599fc41fb289625404efd8faa9f7727d0d66478b8dad", }, }, "bun build --bytecode --minify features.js": { "js": "d30a5febed53e316cc2dd2b076502079e809bb0c201ef1671e9a190ecdcf093d", "jsc": { "bytes": 41608, - "sha256": "9aa31541ef79bda2addda9732f39e0f4af682380d4169a41de8b2ec249c19774", + "sha256": "be1714ac3f96c740aa2921728b66ef638a07268e31f04d0e2ec3f3a4c41573f4", }, }, "bun build --bytecode --minify records.js": { "js": "889cbb2c9525ff69a2676a6e81d97bb87760bdee65178b836c9c1d6808ac7c6e", "jsc": { "bytes": 80112, - "sha256": "cd2806b4682b9c5a0a1a1b32a58e96b12dd1ae1b2bf286fe2b86cf877a192777", + "sha256": "f8dd9098f97e43a1cf3702235b67e8557de98de6a3db70fd6f7c68d8542d2c19", }, }, "bun build --bytecode acorn/dist/acorn.mjs": { "js": "aa22cb20382fa5d66ff2ddd90817c0899f82b346bdd1da87dc9e193d203a0ce9", "jsc": { "bytes": 236672, - "sha256": "1c0d1cc5be371716069bdf1b064700bc91365ec4af418f8af17e1a5d7bea0634", + "sha256": "928414ab7453cfd5a932c6cf0d4da7db0aff8e84fa850f17b270b8890a49cf46", }, }, "bun build --bytecode all.js": { "js": "ce4cf9db35e0aa3257f982fb756363a5686fb52a3b7cc63ac0c66bdcaf13a849", "jsc": { - "bytes": 1875232, - "sha256": "9fe49abc8dae84656cc99d9fa861179bb29ecff2959242248ffc28fb519117ed", + "bytes": 1875224, + "sha256": "886f1adea30dfe50aed4744aae8a57af5a9012f5c4c568685158c96eeb7bf54c", }, }, "bun build --bytecode big.js": { @@ -499,70 +499,70 @@ describe("bytecode cache portability", () => { "js": "2ee211924620db96d6e99e9490bfe0ee60a3bc6b003f37940c5631e6eabc2c73", "jsc": { "bytes": 43384, - "sha256": "7632ecc6236c3ae90a825c07bdd7ae35e15cacacd325706d24d5093d8dd27405", + "sha256": "e58565b9a1d777ddeb563573c6b63d9c26956e58a48143c1d8359212cb2e7f05", }, }, "bun build --bytecode happy-dom/lib/index.js": { "js": "1415a67d0da987f3bb7fc68ca431e222b3898fa14be8af88e2845813c4120f43", "jsc": { "bytes": 2218688, - "sha256": "5ce3d7541a1310ed4a60b611ab8952238a5efdf54cb3bfd8ea936a0194ccf33b", + "sha256": "3bc3af77a817dd605874f6fdc77d1988721c67713ee74d4b45681d8de24ed417", }, }, "bun build --bytecode immutable/dist/immutable.es.js": { "js": "d011b6c5105dad96f17aaf541c848b8d2be1b2e65a1de050112380352979bb6b", "jsc": { "bytes": 239072, - "sha256": "5f263eb9c8955d51f05be7a784beda1c8939bcbfb923f59f71cc531bda56cee4", + "sha256": "b60b4f9dc4c8cf398512686f205950f2cee5dd368279552d30926db446f78108", }, }, "bun build --bytecode libraries.js": { "js": "7b8ce5d1861461086be174e60797d52794328828458a2086f4d49b39a3f8b28a", "jsc": { - "bytes": 21177808, - "sha256": "62bc4de3ff1aba67c153ff59c0e42e4d999b90ef6b87067005bcff30cc9d5e2c", + "bytes": 21177768, + "sha256": "620db040f8b0f43357f79a042560fd6d58a3ece4d4627d0aff4714eb9194fced", }, }, "bun build --bytecode lodash/lodash.js": { "js": "9951d06da1bf94c69dece1b23f304c1cbf4018b894e398ac5ea10f35b5600187", "jsc": { "bytes": 303592, - "sha256": "45a743da209426bd0ed85dfdc5693d130d2d7ac935e2736c91c10bae8aa6b2c0", + "sha256": "315ae9a293faa56011113614110eb8837b3934698d5b065f62fe141e8e9c5d53", }, }, "bun build --bytecode react-dom/cjs/react-dom.development.js": { "js": "3392a38ccef2f1bb7b1c8c8cbfc8111b45f6cf6f8dec3c72a99f13a6568fd5a1", "jsc": { - "bytes": 829872, - "sha256": "062d122d01dab3b83a34eec0c35f2f196cc64f65f1d7ba97e4cfcd772cc465a7", + "bytes": 829864, + "sha256": "4dce7609cedd4861b31051e37c82d96841a66a052d27a07903a0aed4475c155b", }, }, "bun build --bytecode records.js": { "js": "c87ea35df4ad6b2063402c9901ef4775a82f12594f280db76f50695f4b0eba13", "jsc": { "bytes": 82832, - "sha256": "d6a637f796b2877431432dc5135d53f07bb6e9a46e8a749815817b8fe8e5fc75", + "sha256": "ff6704a9302e9acd60d9e17d6b9c191e71e396dcb4b63281477761560f94022e", }, }, "bun build --bytecode shapes.js": { "js": "dfcf0136de2c98f6a29d2c41477637879ccae98385a1bf30c666b85002bcae07", "jsc": { "bytes": 214224, - "sha256": "8c5ff96fe5650135bd7bf42e4220babf34370f8a358cb4cbde63f2a2a7613be3", + "sha256": "48eef2126a5b6d95b2625752bc1a77fe556522b8dc0298974e06d445bf49b862", }, }, "bun build --bytecode svelte/compiler/index.js": { "js": "17e7431a6f28a4b6b5d356fc815b0876ebd9613ae6c25a98dc4c5560004341ce", "jsc": { "bytes": 1820264, - "sha256": "bb398336b136cb21752ac77dcdc237aa4fbe51f6d3135cd350e2aea34c18a240", + "sha256": "e6393d3be3d084008d523009c89086e732925a355c9c272a624b5e9f1e0a9d60", }, }, "bun build --bytecode undici/index.js": { "js": "e1c4f1494711ecaae57a6d63dfb8ac6096629582f55cc42530ff5a156b70c9de", "jsc": { "bytes": 852224, - "sha256": "15229e57891bed61d1bd75019489463f312554df2108db792429bd0ec87ed7a3", + "sha256": "d15dc84738d815ba8940dd3eef0729474dc18b092d30856dfdac2d0a4ca735a4", }, }, "vm.Script big.js": { @@ -571,19 +571,19 @@ describe("bytecode cache portability", () => { }, "vm.Script features.js": { "bytes": 45224, - "sha256": "f3b5373c81e92b5ee32472566e0d51b48eba21d37be2d1655abe35cf9e5663a9", + "sha256": "ba0626eb7ef062b19fd1d2080c885be6bd8a81e84d60b41b03b865c39038d4f1", }, "vm.Script lodash.js": { "bytes": 342896, - "sha256": "a905dc1877322cad15c6e850c807d90ea19b476cae72d54a27fd74018fa302a5", + "sha256": "c65a8b0603ccd5075ca3cf68c8f72573b2368dccd6086e82ecd0dfa279b74aa3", }, "vm.Script records.js": { "bytes": 86616, - "sha256": "589c1db445dae649df9c68939c6f926386e3fd9af664f5b162a54c432e3a1aab", + "sha256": "1b080c2d59dd9b9ef5172d3a41ad034c89627b5997e75c37652ca33e1c73bdda", }, "vm.Script shapes.js": { "bytes": 257488, - "sha256": "2d565aa59d7dce9d1a308aae7f1f1c5a3ab40f449b167262dd1a559694fdf560", + "sha256": "8677a3d5f4ef4cb2f2e874b6e94e0da80522f621adc1a7fc34d8093bbebd2361", }, "vm.Script source-forms.js": { "bytes": 4712, @@ -591,15 +591,15 @@ describe("bytecode cache portability", () => { }, "vm.Script typescript.js": { "bytes": 11325480, - "sha256": "718ec7c8494edc35afc870ca29550879cdc9d1683d7c04f2bc5db4ab24566a37", + "sha256": "5f4306c6460d0d963efadd9bfe1d5c6b0013cade4201baec14656d461801e266", }, "vm.SourceTextModule acorn.mjs": { "bytes": 255184, - "sha256": "94badfc34fe17b3f0c9ce8ee85cb0f5bee1159f1b29e4d2ec860dc8742478147", + "sha256": "007336d87727700362a314a5d5be000c5412655c25cdb62685284ea68da2b570", }, "vm.SourceTextModule module.js": { "bytes": 9104, - "sha256": "fbae111a42d2536a4b26155699cc7d31d242ff59701faa463f3a4ea88f5f83d2", + "sha256": "56a9f33a02c56a2ffda06cff5a7a216c0934606285821ac93fb57b5d0e73327f", }, } `); diff --git a/test/bundler/compile-aot-size.test.ts b/test/bundler/compile-aot-size.test.ts index 618b5bbf287c..26f131247110 100644 --- a/test/bundler/compile-aot-size.test.ts +++ b/test/bundler/compile-aot-size.test.ts @@ -74,7 +74,8 @@ const makeAndCollect = (expression: string) => ` const countMappedBytes = (file: Buffer) => getMappedSegments(file).reduce((sum, segment) => sum + segment.length, 0); // What an executable maps whatever its program is, on Linux x64 with glibc. These bounds only go down. -const mostMappedBytes: Record = { "": 68_440_000, "--trim": 25_700_000 }; +// One exception: the engine of WebKit e8f704815e94 has 167,808 bytes more that a trimmed executable keeps, and the second bound went up with it. +const mostMappedBytes: Record = { "": 68_440_000, "--trim": 25_880_000 }; const mostBytesOfCompiler = 22_480_000; const importsItsArguments = ` diff --git a/test/js/bun/jsc/regexp-legacy-static-properties.test.ts b/test/js/bun/jsc/regexp-legacy-static-properties.test.ts new file mode 100644 index 000000000000..214783f6c14a --- /dev/null +++ b/test/js/bun/jsc/regexp-legacy-static-properties.test.ts @@ -0,0 +1,56 @@ +import { expect, test } from "bun:test"; +import { bunEnv, bunExe } from "harness"; + +// test() records where the match is. RegExp.lastMatch and the other legacy static properties run +// the match again for the captures, and that second run needs more stack than the first. When it +// fails, the read throws a RangeError. It used to end the process: "Segmentation fault at address 0x4". +// The program runs in a child, because the size of the RegExp stack is read when the process starts. +test("a legacy static property of RegExp throws when its second match runs out of stack", async () => { + const program = ` + const string = Buffer.alloc(2000, "a").toString() + "c"; + const regExp = new RegExp("(?:(?!(?:a|b)*d)a)*c" + Buffer.alloc(1600 * 4, "(x)?").toString()); + console.log("matched: " + regExp.test(string)); + for (const name of ["lastMatch", "lastParen", "$1", "leftContext", "rightContext"]) { + try { + RegExp[name]; + console.log(name + ": no error"); + } catch (error) { + console.log(name + ": " + error.constructor.name + ": " + error.message); + } + } + try { + RegExp.input = "x"; + console.log("input = x: no error"); + } catch (error) { + console.log("input = x: " + error.constructor.name + ": " + error.message); + } + console.log("input is kept: " + (RegExp.input === string)); + // The next match gives the properties their values again. + console.log("next match: " + /b(c)d/.test("abcde")); + console.log([RegExp.lastMatch, RegExp.lastParen, RegExp.$1, RegExp.leftContext, RegExp.rightContext, RegExp.input].join(" ")); + `; + await using proc = Bun.spawn({ + cmd: [bunExe(), "-e", program], + env: { ...bunEnv, BUN_JSC_maxRegExpStackSize: "65536" }, + stdout: "pipe", + stderr: "pipe", + }); + const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); + + expect({ stdout: stdout.trim().split("\n"), stderr }).toEqual({ + stdout: [ + "matched: true", + "lastMatch: RangeError: Out of memory", + "lastParen: RangeError: Out of memory", + "$1: RangeError: Out of memory", + "leftContext: RangeError: Out of memory", + "rightContext: RangeError: Out of memory", + "input = x: RangeError: Out of memory", + "input is kept: true", + "next match: true", + "bcd c c a e abcde", + ], + stderr: "", + }); + expect(exitCode).toBe(0); +}); diff --git a/test/js/bun/jsc/webkit-upgrade-e8f704815e.test.ts b/test/js/bun/jsc/webkit-upgrade-e8f704815e.test.ts new file mode 100644 index 000000000000..7d9e963d20c7 --- /dev/null +++ b/test/js/bun/jsc/webkit-upgrade-e8f704815e.test.ts @@ -0,0 +1,716 @@ +import { describe, expect, test } from "bun:test"; + +// Coverage for the WebKit e8f704815e sync. The first four cases pin an observable difference between the old and the +// new JavaScriptCore. The others pin what had to stay the same in code that the sync rewrote. +// The sources that depend on how JavaScriptCore compiles go through `new Function`, so that Bun's transpiler leaves +// them alone. + +describe.concurrent("WebKit e8f704815e upgrade", () => { + test("Math.sumPrecise does not round a negative sum away from zero (8ee560d748)", () => { + const sumPrecise: (values: Iterable) => number = (Math as any).sumPrecise; + // These were -1.0000000000000002, -0.10000000000000002, -1.0000000000000002 and -Infinity. + expect(sumPrecise([-1])).toBe(-1); + expect(sumPrecise([-0.1])).toBe(-0.1); + expect(sumPrecise([1, -1, -1])).toBe(-1); + expect(sumPrecise([-Number.MAX_VALUE])).toBe(-Number.MAX_VALUE); + // Positive sums are as they were. + expect(sumPrecise([1])).toBe(1); + expect(sumPrecise([0.1, 0.2])).toBe(0.30000000000000004); + expect(sumPrecise([1e308, 1e308, -1e308])).toBe(1e308); + expect(sumPrecise([Number.MAX_VALUE])).toBe(Number.MAX_VALUE); + expect(sumPrecise([])).toBe(-0); + }); + + test("the revoke function of Proxy.revocable is an ordinary function (fad04e2527)", () => { + const result = Proxy.revocable({ a: 1 }, {}); + const { proxy, revoke } = result; + expect(Object.getOwnPropertyDescriptors(result)).toEqual({ + proxy: { value: proxy, writable: true, enumerable: true, configurable: true }, + revoke: { value: revoke, writable: true, enumerable: true, configurable: true }, + }); + expect(Reflect.ownKeys(result)).toEqual(["proxy", "revoke"]); + expect(Object.getPrototypeOf(result)).toBe(Object.prototype); + + expect(typeof revoke).toBe("function"); + expect(Object.getPrototypeOf(revoke)).toBe(Function.prototype); + expect(Object.getOwnPropertyDescriptors(revoke)).toEqual({ + length: { value: 0, writable: false, enumerable: false, configurable: true }, + name: { value: "", writable: false, enumerable: false, configurable: true }, + }); + expect(() => new (revoke as any)()).toThrow(TypeError); + expect(Proxy.revocable({}, {}).revoke).not.toBe(revoke); + + // After `length` is deleted and defined again, the revoke function lists its keys as any other function does. + // It used to list them in another order than an arrow function. The order itself is the engine's, so no list is written here. + const arrow = () => {}; + for (const fn of [revoke, arrow]) { + delete (fn as any).length; + Object.defineProperty(fn, "length", { value: 0, configurable: true }); + } + expect(Reflect.ownKeys(revoke)).toEqual(Reflect.ownKeys(arrow)); + + expect(proxy.a).toBe(1); + expect(revoke()).toBeUndefined(); + expect(() => proxy.a).toThrow(TypeError); + // The second call does nothing. + expect(revoke()).toBeUndefined(); + }); + + // The walk over the awaiters of a promise stops when it comes back to a promise combinator (071ce01fcb). The + // frame was repeated until the trace was full. + test("an async function that awaits itself through Promise.all has one frame in a stack trace", async () => { + const { promise: captured, resolve } = Promise.withResolvers(); + async function leaf() { + await 0; + await 0; + resolve(new Error("here").stack!); + } + let self: Promise; + async function selfAwaiting() { + await 0; + // Never settles: it waits for itself. + await Promise.all([leaf(), self]); + } + self = selfAwaiting(); + const stack = await captured; + expect(stack).toContain("leaf"); + expect(stack.split("selfAwaiting").length - 1).toBe(1); + }); + + // A bound function that is inlined keeps the kind of the call it is inlined into (f274ef4c03). When a bound + // comparator left optimized code, it returned behind the call of sort: the caller got the comparator's result, + // or Array.prototype.sort itself. The program is the one of oven-sh/WebKit#885. + test("Array.prototype.sort with a bound comparator returns its array when the comparator leaves optimized code", () => { + const run = new Function(` + "use strict"; + const compare = ((a, b) => a - b).bind(null); + function sortTwo(x, y) { return [x, y].sort(compare); } + function outer(x, y) { let sum = 0; for (let i = 0; i < 1000; i++) sum += i; return [sortTwo(x, y), sum]; } + function spin() { let sum = 0; for (let i = 0; i < 100000; i++) sum += i; return sum; } + for (let i = 0; i < 300; i++) { outer(2, 1); spin(); } + // The difference of these two is not an int32, and the compiled comparator has only subtracted small ones. + const sorted = outer(2147483647, -5)[0]; + + // A tail call through a bound function is a tail call of its target. + function sum(n, total) { return n ? boundSum(n - 1, total + n) : total; } + const boundSum = sum.bind(null); + let total; + for (let i = 0; i < 2000; i++) total = sum(100, 0); + return { sorted: Array.isArray(sorted) ? sorted.join() : typeof sorted, isSort: sorted === Array.prototype.sort, total }; + `); + expect(run()).toEqual({ sorted: "-5,2147483647", isSort: false, total: 5050 }); + }); + + // `{ ...fn }` and `let { a, ...rest } = fn` read the properties off the function's Structure now (e04a6f9fae). + test("spread and rest of a function copy its enumerable own properties", () => { + const run = new Function(` + function plain() {} + plain.a = 1; + plain.b = 2; + class Klass { static x = 1; static method() {} static z = 3; static get accessor() { return 4; } } + Object.defineProperty(Klass, "shown", { get() { return 5; }, enumerable: true }); + const renamed = function () {}; + Object.defineProperty(renamed, "name", { value: "n", enumerable: true, configurable: true }); + renamed.q = 1; + const resized = function (a, b) {}; + resized.q = 1; + Object.defineProperty(resized, "length", { value: 5, enumerable: true, configurable: true }); + const withGetter = function () {}; + let getterCalls = 0; + Object.defineProperty(withGetter, "g", { get() { getterCalls++; return 7; }, enumerable: true }); + const withHidden = function () {}; + Object.defineProperty(withHidden, "hidden", { value: 1, enumerable: false }); + withHidden.shown = 2; + const symbol = Symbol("s"); + const withSymbol = function () {}; + withSymbol[symbol] = 1; + const withIndex = function () {}; + withIndex[0] = "zero"; + withIndex.named = 1; + const withProto = function () {}; + Object.defineProperty(withProto, "__proto__", { value: 1, enumerable: true, writable: true, configurable: true }); + const bound = plain.bind(null); + bound.own = 1; + const arrow = () => {}; + arrow.k = 1; + async function asyncFunction() {} + asyncFunction.k = 2; + function* generator() {} + generator.k = 3; + const native = Math.max.bind; + const spread = source => ({ ...source }); + const rest = source => { const { a, ...others } = source; return others; }; + let last; + for (let i = 0; i < 1500; i++) { + last = { + plain: spread(plain), + rest: rest(plain), + klass: spread(Klass), + renamed: Object.keys(spread(renamed)), + resized: Object.entries(spread(resized)), + withGetter: spread(withGetter), + withHidden: spread(withHidden), + symbolValue: spread(withSymbol)[symbol], + symbolKeys: Reflect.ownKeys(spread(withSymbol)).length, + withIndex: Object.entries(spread(withIndex)), + withProto: Object.getOwnPropertyDescriptor(spread(withProto), "__proto__"), + bound: spread(bound), + arrow: spread(arrow), + asyncFunction: spread(asyncFunction), + generator: spread(generator), + natives: [spread(Math.max), spread(native), spread(Object), spread(Proxy)], + prototype: Object.getPrototypeOf(spread(plain)) === Object.prototype, + }; + } + last.getterCalls = getterCalls; + return last; + `); + expect(run()).toEqual({ + plain: { a: 1, b: 2 }, + rest: { b: 2 }, + klass: { x: 1, z: 3, shown: 5 }, + renamed: ["name", "q"], + resized: [ + ["length", 5], + ["q", 1], + ], + withGetter: { g: 7 }, + withHidden: { shown: 2 }, + symbolValue: 1, + symbolKeys: 1, + withIndex: [ + ["0", "zero"], + ["named", 1], + ], + withProto: { value: 1, writable: true, enumerable: true, configurable: true }, + bound: { own: 1 }, + arrow: { k: 1 }, + asyncFunction: { k: 2 }, + generator: { k: 3 }, + natives: [{}, {}, {}, {}], + prototype: true, + getterCalls: 1500, + }); + }); + + // Array.from, %TypedArray%.from, Object.groupBy, Map.groupBy and Iterator.prototype.flatMap/some/every/find call + // `next` themselves now, where they ran a for-of loop over a wrapper object (37aa2b5bd9). + test("the builtins that take an iterable read @@iterator and next once and close the iterator", () => { + const iteratorOver = (log: string[], values: unknown[]) => { + let index = 0; + return { + __proto__: Iterator.prototype, + get next() { + log.push("get next"); + return () => { + log.push("next"); + return index < values.length ? { value: values[index++], done: false } : { value: undefined, done: true }; + }; + }, + get return() { + log.push("get return"); + return () => { + log.push("return"); + return {}; + }; + }, + } as unknown as Iterator & { [name: string]: any }; + }; + const iterableOver = (log: string[], values: unknown[]) => + ({ + get [Symbol.iterator]() { + log.push("get @@iterator"); + return () => { + log.push("call @@iterator"); + return iteratorOver(log, values); + }; + }, + }) as Iterable; + const fail = () => { + throw new Error("callback"); + }; + const run = (make: (log: string[], values: unknown[]) => Source, call: (source: Source) => unknown) => { + const log: string[] = []; + let result: unknown; + try { + result = call(make(log, [1, 2])); + } catch (error) { + result = (error as Error).message; + } + return { result, log }; + }; + const opened = ["get @@iterator", "call @@iterator", "get next"]; + const closed = ["get return", "return"]; + + expect(run(iterableOver, iterable => Array.from(iterable))).toEqual({ + result: [1, 2], + log: [...opened, "next", "next", "next"], + }); + expect(run(iterableOver, iterable => Array.from(iterable, fail))).toEqual({ + result: "callback", + log: [...opened, "next", ...closed], + }); + expect(run(iterableOver, iterable => Array.from(iterable, value => value * 2))).toEqual({ + result: [2, 4], + log: [...opened, "next", "next", "next"], + }); + expect(run(iterableOver, iterable => Object.groupBy(iterable, value => (value === 1 ? "one" : "other")))).toEqual({ + result: { one: [1], other: [2] }, + log: [...opened, "next", "next", "next"], + }); + expect(run(iterableOver, iterable => Object.groupBy(iterable, fail))).toEqual({ + result: "callback", + log: [...opened, "next", ...closed], + }); + expect(run(iterableOver, iterable => [...Map.groupBy(iterable, value => value === 1)])).toEqual({ + result: [ + [true, [1]], + [false, [2]], + ], + log: [...opened, "next", "next", "next"], + }); + expect(run(iterableOver, iterable => Map.groupBy(iterable, fail))).toEqual({ + result: "callback", + log: [...opened, "next", ...closed], + }); + + // The iterator helpers read `next` of the iterator they are called on, and close it when they stop early. + expect(run(iteratorOver, iterator => iterator.some((value: number) => value === 1))).toEqual({ + result: true, + log: ["get next", "next", ...closed], + }); + expect(run(iteratorOver, iterator => iterator.some((value: number) => value === 3))).toEqual({ + result: false, + log: ["get next", "next", "next", "next"], + }); + expect(run(iteratorOver, iterator => iterator.every((value: number) => value === 1))).toEqual({ + result: false, + log: ["get next", "next", "next", ...closed], + }); + expect(run(iteratorOver, iterator => iterator.find((value: number) => value === 2))).toEqual({ + result: 2, + log: ["get next", "next", "next", ...closed], + }); + expect(run(iteratorOver, iterator => iterator.find(fail))).toEqual({ + result: "callback", + log: ["get next", "next", ...closed], + }); + expect(run(iteratorOver, iterator => [...iterator.flatMap((value: number) => [value, value * 10])])).toEqual({ + result: [1, 10, 2, 20], + log: ["get next", "next", "next", "next"], + }); + expect(run(iteratorOver, iterator => iterator.flatMap(fail).next())).toEqual({ + result: "callback", + log: ["get next", "next", ...closed], + }); + expect( + run(iteratorOver, iterator => { + const flat = iterator.flatMap((value: number) => [value, value * 10]); + return [flat.next(), flat.return()]; + }), + ).toEqual({ + result: [ + { value: 1, done: false }, + { value: undefined, done: true }, + ], + log: ["get next", "next", ...closed], + }); + + // An iterator that is not an object is a TypeError. + for (const notAnObject of [undefined, null, 1, "s", true]) { + const iterable = { [Symbol.iterator]: () => notAnObject } as unknown as Iterable; + expect(() => Array.from(iterable)).toThrow(TypeError); + expect(() => Uint8Array.from(iterable)).toThrow(TypeError); + expect(() => Object.groupBy(iterable, value => value)).toThrow(TypeError); + expect(() => Map.groupBy(iterable, value => value)).toThrow(TypeError); + } + expect(Uint8Array.from(iterableOver([], [1, 2]))).toEqual(new Uint8Array([1, 2])); + expect(Float64Array.from(new Set([1.5, 2]), value => value * 2)).toEqual(new Float64Array([3, 4])); + }); + + test("Array.fromAsync reads a sync iterable, an async iterable and an array-like", async () => { + async function* asyncValues() { + yield 1; + yield 2; + } + expect(await Array.fromAsync([1, Promise.resolve(2), 3])).toEqual([1, 2, 3]); + expect(await Array.fromAsync(new Set([1, 2]), value => value * 2)).toEqual([2, 4]); + expect(await Array.fromAsync(asyncValues())).toEqual([1, 2]); + expect(await Array.fromAsync(asyncValues(), async value => value + 1)).toEqual([2, 3]); + expect(await Array.fromAsync({ length: 2, 0: "a", 1: Promise.resolve("b") })).toEqual(["a", "b"]); + + const log: string[] = []; + const iterable = { + [Symbol.asyncIterator]() { + return { + next() { + log.push("next"); + return Promise.resolve({ value: 1, done: false }); + }, + return() { + log.push("return"); + return Promise.resolve({}); + }, + }; + }, + }; + expect( + await Array.fromAsync(iterable, () => { + throw new Error("callback"); + }).catch(error => error.message), + ).toBe("callback"); + expect(log).toEqual(["next", "return"]); + + for (const notAnObject of [undefined, null, 1, "s"]) { + const result = await Array.fromAsync({ [Symbol.asyncIterator]: () => notAnObject } as any).catch(error => error); + expect(result).toBeInstanceOf(TypeError); + } + }); + + // Array.prototype.join keeps its exact-length path for booleans, undefined and null (e81441a5ec). + test("Array.prototype.join writes booleans, undefined and null as before", () => { + const run = new Function(` + const join = (array, separator) => array.join(separator); + const holey = [1, , true]; + const results = []; + for (let i = 0; i < 2000; i++) { + results.length = 0; + results.push( + join([true, null, undefined, false, 1, "a"]), + join([true, false], ""), + join([null, undefined], "-"), + join([undefined], ""), + join([null]), + join([true]), + join([false], ""), + join([1, 2, 3], ""), + join([1, -2, 2147483647, -2147483648], ""), + join(["a", true, "b", null, "c", undefined, 7], ""), + join(["\\u4e2d", true, null], ""), + join([true, "\\u4e2d"], "\\u00e9"), + join(holey, ""), + join([1.5, true], ""), + join([true, {}], ""), + join([[true, null], [undefined, false]], ";"), + ); + } + return results; + `); + expect(run()).toEqual([ + "true,,,false,1,a", + "truefalse", + "-", + "", + "", + "true", + "false", + "123", + "1-22147483647-2147483648", + "atruebc7", + "\u4e2dtrue", + "true\u00e9\u4e2d", + "1true", + "1.5true", + "true[object Object]", + "true,;,false", + ]); + }); + + // JSON.parse reads a key it has seen for the same shape, and a short integer or a cached string after it, in + // a loop of its own (6f5f583b55). + describe("JSON.parse of objects with the same keys", () => { + const values: unknown[] = [ + 0, + 7, + 42, + 123456789, + 999999999, + 1000000000, + 2147483647, + 2147483648, + 4294967296, + 9007199254740993, + -1, + -999999999, + 1.5, + 0.1, + 1e3, + 12e-1, + Infinity, + "", + "s", + "repeated", + "repeated", + 'with "quotes" and \\ and \n', + "\u00e9", + "\u4e2d\u6587", + true, + false, + null, + [], + [1, "s", null], + {}, + { k: 1, l: [2] }, + ]; + // How a value is written in the text. JSON.stringify would write Infinity as null. + const write = (value: unknown) => (value === Infinity ? "1e400" : JSON.stringify(value)); + type Field = [key: string, value: string]; + const layouts: [name: string, layout: (fields: Field[]) => string][] = [ + ["compact", fields => `{${fields.map(([key, value]) => `"${key}":${value}`).join(",")}}`], + ["spaced", fields => `{ ${fields.map(([key, value]) => `"${key}" : ${value}`).join(" , ")} }`], + ["indented", fields => `{\n${fields.map(([key, value]) => `\t"${key}":\r\n ${value}`).join(",\n")}\n}`], + ]; + + test.each(layouts)("%s: every kind of value after a known key", (_, layout) => { + const expected: Record[] = []; + const texts: string[] = []; + // Each object has the same three keys, and each value takes each position. + for (let i = 0; i < values.length; i++) { + const row = [values[i], values[(i + 7) % values.length], values[(i + 13) % values.length]]; + expected.push({ first: row[0], second: row[1], third: row[2] }); + texts.push( + layout([ + ["first", write(row[0])], + ["second", write(row[1])], + ["third", write(row[2])], + ]), + ); + } + for (const text of [`[${texts.join(",")}]`, `[\n${texts.join(",\n")}\n]`]) { + // Twice: the second parse finds every key and every short string in the cache. + for (let round = 0; round < 2; round++) { + const parsed = JSON.parse(text); + expect(parsed).toEqual(expected); + for (const object of parsed) expect(Object.keys(object)).toEqual(["first", "second", "third"]); + } + // The same text in a string of 16-bit characters. + expect(JSON.parse(`["\u4e2d",${text}]`)).toEqual(["\u4e2d", expected]); + } + }); + + test("-0, keys out of order, repeated keys and keys that are not plain names", () => { + const known = '{"a":1,"b":2}'; + const parse = (last: string) => JSON.parse(`[${known},${known},${last}]`)[2]; + expect(parse('{"a":-0,"b":2}').a).toBe(-0); + expect(parse('{"a":0,"b":2}').a).toBe(0); + expect(Object.entries(parse('{"b":1,"a":2}'))).toEqual([ + ["b", 1], + ["a", 2], + ]); + expect(parse('{"a":1,"a":3,"b":2}')).toEqual({ a: 3, b: 2 }); + expect(parse('{"a":1,"b":2,"a":"x"}')).toEqual({ a: "x", b: 2 }); + expect(parse('{"a":1}')).toEqual({ a: 1 }); + expect(parse('{"a":1,"b":2,"c":3}')).toEqual({ a: 1, b: 2, c: 3 }); + expect(parse("{}")).toEqual({}); + // An escape in the key is the same key. + expect(parse('{"\\u0061":5,"b":6}')).toEqual({ a: 5, b: 6 }); + expect(Object.entries(parse('{"a":1,"1":2,"0":3}'))).toEqual([ + ["0", 3], + ["1", 2], + ["a", 1], + ]); + const withProto = parse('{"a":1,"__proto__":{"x":1},"b":2}'); + expect(Object.getPrototypeOf(withProto)).toBe(Object.prototype); + expect(Object.keys(withProto)).toEqual(["a", "__proto__", "b"]); + }); + + test("what is not JSON after a known key is a SyntaxError", () => { + const known = '{"a":1,"b":2}'; + const invalid = [ + '{"a":01,"b":2}', + '{"a":00,"b":2}', + '{"a":1x,"b":2}', + '{"a":1_000,"b":2}', + '{"a":0x10,"b":2}', + '{"a":+1,"b":2}', + '{"a":-,"b":2}', + '{"a":1.,"b":2}', + '{"a":.5,"b":2}', + '{"a":1e,"b":2}', + '{"a":1e+,"b":2}', + '{"a":,"b":2}', + '{"a":1,"b":}', + '{"a":1,"b"}', + '{"a":1,"b":2,}', + '{"a":1,,"b":2}', + '{"a":1 "b":2}', + '{"a":1;"b":2}', + '{"a":1,"b":2', + '{"a":1,"b":', + '{"a":1,"b"', + '{"a":1,"', + '{"a":1,', + '{"a":1', + '{"a":', + '{"a"', + '{"a":1,"b":2]', + '{"a":1,"b":"unterminated}', + '{"a":1,"b":\'single\'}', + '{"a":1,b:2}', + '{"a":1,"b":undefined}', + '{"a":1,"b":NaN}', + '{"a":1,"b":tru}', + '{"a":123456789012345678901234567890x,"b":2}', + ]; + for (const last of invalid) { + // Alone, after two objects that make the keys known, and the same in a string of 16-bit characters. + for (const text of [last, `[${known},${known},${last}]`, `["\u4e2d",${known},${known},${last}]`]) + expect(() => JSON.parse(text), text).toThrow(SyntaxError); + } + // The valid neighbours of the above. + const parse = (last: string) => JSON.parse(`[${known},${known},${last}]`)[2]; + expect(parse('{"a":0,"b":2}')).toEqual({ a: 0, b: 2 }); + expect(parse('{"a":10,"b":2}')).toEqual({ a: 10, b: 2 }); + expect(parse('{"a":1e0,"b":2}')).toEqual({ a: 1, b: 2 }); + expect(parse('{"a":1.0,"b":2}')).toEqual({ a: 1, b: 2 }); + expect(parse('{"a":-1,"b":2}')).toEqual({ a: -1, b: 2 }); + expect(parse('{"a":1 ,"b":2 }')).toEqual({ a: 1, b: 2 }); + }); + + test("a reviver sees the same values", () => { + const text = '[{"a":1,"b":"x"},{"a":2,"b":"x"},{"a":123456789,"b":"y"}]'; + const seen: [string, unknown][] = []; + const parsed = JSON.parse(text, function (key, value) { + if (typeof value !== "object") seen.push([key, value]); + return typeof value === "number" ? value + 1 : value; + }); + expect(parsed).toEqual([ + { a: 2, b: "x" }, + { a: 3, b: "x" }, + { a: 123456790, b: "y" }, + ]); + expect(seen).toEqual([ + ["a", 1], + ["b", "x"], + ["a", 2], + ["b", "x"], + ["a", 123456789], + ["b", "y"], + ]); + }); + + // Bun.JSONL reads its lines with the same parser, and tells a value that is cut off from one that is wrong + // by where the parser stopped. + test("Bun.JSONL.parseChunk takes the whole lines of a text that is cut at any place", () => { + const line = + '{"id":1,"name":"ab","n":123456789,"big":1234567890,"neg":-5,"f":1.5,"t":true,"z":null,"s":"ab","arr":[1,2],"o":{"k":1}}'; + const lines = [line, line.replace('"id":1', '"id":2'), line.replace('"id":1', '"id":3')]; + const text = lines.join("\n") + "\n"; + const bytes = new TextEncoder().encode(text); + const failures: unknown[] = []; + for (let cut = 0; cut <= text.length; cut++) { + // The lines whose last character is before the cut, and where the last of them ends. + let whole = 0; + let end = 0; + let offset = 0; + for (const each of lines) { + if (offset + each.length <= cut) { + whole++; + end = offset + each.length; + } + offset += each.length + 1; + } + for (const input of [text.slice(0, cut), bytes.subarray(0, cut)]) { + const result = Bun.JSONL.parseChunk(input); + const ids = (result.values as { id: number }[]).map(value => value.id); + if (result.error !== null || result.read !== end || ids.length !== whole || ids.some((id, i) => id !== i + 1)) + failures.push({ cut, input: typeof input, read: result.read, end, ids, error: String(result.error) }); + } + } + expect(failures).toEqual([]); + expect(Bun.JSONL.parse(text)).toEqual(lines.map(each => JSON.parse(each))); + + const wrong = Bun.JSONL.parseChunk(`${line}\n${line.replace('"n":123456789', '"n":0123456789')}\n`); + expect(wrong.values).toEqual([JSON.parse(line)]); + expect(wrong.error).toBeInstanceOf(SyntaxError); + }); + }); + + // A null test or a negated comparison that ends a loop is one fused jump now (bd50166362). + test("loops that end in a null test or a negated comparison", () => { + const run = new Function(` + function countUntilNull(node) { let count = 0; while (node != null) { count++; node = node.next; } return count; } + function countWhileNull(array) { let i = 0; while (array[i] == null) i++; return i; } + function countUntilNullish(node) { let count = 0; do { count++; node = node.next; } while (node !== undefined && node !== null); return count; } + function countNegatedNull(node) { let count = 0; do { count++; node = node.next; } while (!(node == null)); return count; } + function untilLess(value, bound) { let steps = 0; do { value--; steps++; } while (!(value < bound) && steps < 8); return steps; } + function untilLessEq(value, bound) { let steps = 0; do { value--; steps++; } while (!(value <= bound) && steps < 8); return steps; } + function untilGreater(value, bound) { let steps = 0; do { value++; steps++; } while (!(value > bound) && steps < 8); return steps; } + function untilGreaterEq(value, bound) { let steps = 0; do { value++; steps++; } while (!(value >= bound) && steps < 8); return steps; } + function untilEq(value, bound) { let steps = 0; do { value++; steps++; } while (!(value == bound) && steps < 8); return steps; } + function untilStrictEq(value, bound) { let steps = 0; do { value++; steps++; } while (!(value === bound) && steps < 8); return steps; } + function untilNotEq(value, other) { let steps = 0; do { steps++; } while (!(value != other) && steps < 8); return steps; } + function untilNotStrictEq(value, other) { let steps = 0; do { steps++; } while (!(value !== other) && steps < 8); return steps; } + const list = { next: { next: { next: null } } }; + const open = { next: { next: {} } }; + const all = () => [ + countUntilNull(list), countUntilNull(null), countUntilNull(undefined), countUntilNull(open), + countWhileNull([null, undefined, , 0]), countWhileNull([false]), + countUntilNullish(list), countUntilNullish(open), countNegatedNull(list), countNegatedNull(open), + untilLess(10, 5), untilLess(5, 5), untilLessEq(10, 5), untilLessEq(5, 5), + untilGreater(0, 5), untilGreaterEq(0, 5), untilEq(0, 5), untilStrictEq(0, 5), + untilNotEq(1, 1), untilNotEq(1, 2), untilNotStrictEq(1, 1), untilNotStrictEq(1, 2), + ]; + let integers; + for (let i = 0; i < 3000; i++) integers = all(); + // After the loops are compiled for integers: a comparison with NaN is false whichever way it is written, + // so its negation goes around until the limit, and other types compare as they do everywhere. + const others = [ + untilLess(NaN, 5), untilLessEq(NaN, 5), untilGreater(NaN, 5), untilGreaterEq(NaN, 5), + untilLess(5, undefined), untilGreaterEq(undefined, 0), untilEq(NaN, NaN), untilStrictEq(NaN, NaN), + untilLess(7.5, 5), untilLessEq("7", "5"), untilGreater("a", "b"), untilEq("4", 5), untilStrictEq("4", 5), + untilEq(null, undefined), untilNotEq(1, "1"), untilNotStrictEq(1, "1"), untilNotEq(null, undefined), + untilNotStrictEq(null, undefined), untilNotEq(NaN, NaN), + ]; + return { integers, others, again: all() }; + `); + const integers = [3, 0, 0, 3, 3, 0, 3, 3, 3, 3, 6, 1, 5, 1, 6, 5, 5, 5, 8, 1, 8, 1]; + expect(run()).toEqual({ + integers, + others: [8, 8, 8, 8, 8, 8, 8, 8, 3, 2, 8, 1, 1, 8, 8, 1, 8, 1, 1], + again: integers, + }); + }); + + // The first-character filter of an anchored RegExp, and `switch` on a string, read a substring in place (b92d6a6bea). + test("an anchored RegExp and a switch see the characters of a substring", () => { + const run = new Function(` + const tail = "abc=1;def=2;\\u00e9=3;"; + const narrow = "xxxxxxxxxxxxxxxxxxxxxxxx" + tail; + const wide = "\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d\\u4e2d" + tail; + const kind = piece => { + switch (piece) { + case "abc=1;": return "abc"; + case "def=2;": return "def"; + case "\\u00e9=3;": return "e-acute"; + case "": return "empty"; + default: return "other"; + } + }; + const startsWithA = piece => /^a/.test(piece); + const startsWithDigitOrD = piece => /^[0-9d]/.test(piece); + const matchA = piece => piece.match(/^(a)bc/); + let last; + for (let i = 0; i < 5000; i++) { + last = []; + for (const base of [narrow, wide]) { + const pieces = [base.slice(24, 30), base.slice(30, 36), base.substring(36, 40), base.slice(24, 24), base.slice(25, 31), base.slice(0, 6)]; + for (const piece of pieces) { + const match = matchA(piece); + last.push([kind(piece), startsWithA(piece), startsWithDigitOrD(piece), match && [match[0], match[1], match.index]]); + } + } + } + return last; + `); + const half = [ + ["abc", true, false, ["abc", "a", 0]], + ["def", false, true, null], + ["e-acute", false, false, null], + ["empty", false, false, null], + ["other", false, false, null], + ["other", false, false, null], + ]; + expect(run()).toEqual([...half, ...half]); + }); +});