| --- A. | |
| B0 = EntryBlock() | |
| v8 = Constant(null) | |
| v1 = Parameter(this) | |
| v2 = Parameter(f) | |
| StoreInstanceField(A.f, v1, v2) | |
| DirectCall Object.(v1) | |
| Return(v8) | |
| --- getter A.f | |
| B0 = EntryBlock() | |
| v1 = Parameter(this) | |
| v3 = LoadInstanceField(A.f, v1) | |
| Return(v3) | |
| --- foo | |
| B0 = EntryBlock() | |
| v1 = Constant(null) | |
| Return(v1) | |
| --- unusedPureInstructions | |
| B0 = EntryBlock() | |
| v1 = Parameter(x) | |
| Return(v1) | |
| --- unusedThrowingInstructions | |
| B0 = EntryBlock() | |
| v20 = Constant(null) | |
| v1 = Parameter(x) | |
| v2 = Parameter(y) | |
| v3 = Parameter(obj) | |
| v4 = Parameter(list) | |
| BinaryIntOp ~/(v1, v2) | |
| NullCheck(v3) | |
| v13 = TypeCast(v3, Object, unchecked) | |
| TypeCast(v13, String) | |
| InterfaceCall List.[](v4, v1) | |
| Return(v20) | |
| --- unusedSideEffects | |
| B0 = EntryBlock() | |
| v9 = Constant(null) | |
| v1 = Parameter(obj) | |
| InterfaceCall getter A.f(v1) | |
| StringInterpolation(v1) | |
| DirectCall foo() | |
| Return(v9) | |
| --- unusedAllocations | |
| B0 = EntryBlock() | |
| v21 = Constant(null) | |
| Return(v21) | |
| --- closure FunctionDeclaration(void localFunction() {}) at unusedAllocations | |
| B0 = EntryBlock() | |
| v2 = Constant(null) | |
| Return(v2) | |
| --- closure FunctionExpression(int () => 42) at unusedAllocations | |
| B0 = EntryBlock() | |
| v2 = Constant(42) | |
| Return(v2) | |
| --- closure FunctionDeclaration(S% id<S extends Object?>(S% v) => v;) at unusedAllocations | |
| B0 = EntryBlock() dominates:(B5, B8, B4) | |
| v10 = Constant(#unset-type-args) | |
| v1 = Parameter(#functionTypeParameters) | |
| v2 = Parameter(#closure) | |
| v3 = Parameter(v) | |
| v11 = Comparison ==(v1, v10) | |
| Branch(v11, true: B4, false: B5) | |
| B4 = TargetBlock() idom:B0 | |
| v14 = LoadInstanceField(#closure-field[0], v2) | |
| Comparison ==(v14, v10) | |
| Goto(B8) | |
| B5 = TargetBlock() idom:B0 | |
| Goto(B8) | |
| B8 = JoinBlock(B5, B4) idom:B0 | |
| Return(v3) | |
| --- unusedAllocationsWithStores | |
| B0 = EntryBlock() | |
| v15 = Constant(null) | |
| v1 = Parameter(#functionTypeParameters) | |
| v2 = Parameter(x) | |
| v4 = TypeParameters(v1) | |
| v5 = AllocateContext() | |
| StoreInstanceField(#context-field:x, v5, v2) | |
| v8 = AllocateClosure(fun:0, len:2) | |
| StoreInstanceField(#closure-field[0], v8, v4) | |
| StoreInstanceField(#closure-field[1], v8, v5) | |
| v12 = AllocateClosure(fun:0, len:1) | |
| StoreInstanceField(#closure-field[0], v12, v4) | |
| Return(v15) | |
| --- closure FunctionExpression(int () => x) at unusedAllocationsWithStores | |
| B0 = EntryBlock() | |
| v1 = Parameter(#closure) | |
| v6 = LoadInstanceField(#closure-field[1], v1) | |
| v7 = LoadInstanceField(#context-field:x, v6) | |
| Return(v7) | |
| --- closure FunctionExpression(Type () => unusedAllocationsWithStores.T%) at unusedAllocationsWithStores | |
| B0 = EntryBlock() | |
| v5 = Constant(null) | |
| v1 = Parameter(#closure) | |
| v3 = LoadInstanceField(#closure-field[0], v1) | |
| v4 = TypeParameters(v3) | |
| v6 = TypeLiteral(unusedAllocationsWithStores.T%, v5, v4) | |
| Return(v6) | |
| --- usedAllocation | |
| B0 = EntryBlock() | |
| v8 = Constant(1) | |
| v1 = Parameter(x) | |
| v9 = BinaryIntOp +(v1, v8) | |
| v10 = AllocateRecordLiteral(v1, v9) | |
| Return(v10) | |
| --- deadPhiCycle | |
| B0 = EntryBlock() dominates:(B5) | |
| v2 = Constant(0) | |
| v14 = Constant(1) | |
| v1 = Parameter(n) | |
| Goto(B5) | |
| B5 = JoinBlock(B0, B10) idom:B0 dominates:(B11, B10) loop-header (depth:1 body:(B5, B10) back-edges:(B10)) | |
| v24 = Phi(v2, v18) | |
| v9 = Comparison int <(v24, v1) | |
| Branch(v9, true: B10, false: B11) | |
| B10 = TargetBlock() idom:B5 in-loop:B5 | |
| v18 = BinaryIntOp +(v24, v14) | |
| Goto(B5) | |
| B11 = TargetBlock() idom:B5 | |
| Return(v24) | |
| --- deadNestedPhiCycle | |
| B0 = EntryBlock() dominates:(B6) | |
| v3 = Constant(0) | |
| v30 = Constant(1) | |
| v40 = Constant(null) | |
| v1 = Parameter(n) | |
| v2 = Parameter(m) | |
| Goto(B6) | |
| B6 = JoinBlock(B0, B21) idom:B0 dominates:(B12, B11) loop-header (depth:1 body:(B6, B11, B15, B21, B20) back-edges:(B21)) | |
| v44 = Phi(v3, v37) | |
| v10 = Comparison int <(v44, v1) | |
| Branch(v10, true: B11, false: B12) | |
| B11 = TargetBlock() idom:B6 dominates:(B15) in-loop:B6 | |
| Goto(B15) | |
| B15 = JoinBlock(B11, B20) idom:B11 dominates:(B21, B20) loop-header (depth:2 body:(B15, B20) back-edges:(B20)) | |
| v45 = Phi(v3, v31) | |
| v19 = Comparison int <(v45, v2) | |
| Branch(v19, true: B20, false: B21) | |
| B20 = TargetBlock() idom:B15 in-loop:B15 | |
| v31 = BinaryIntOp +(v45, v30) | |
| Goto(B15) | |
| B21 = TargetBlock() idom:B15 in-loop:B6 | |
| DirectCall print(v44) | |
| v37 = BinaryIntOp +(v44, v30) | |
| Goto(B6) | |
| B12 = TargetBlock() idom:B6 | |
| Return(v40) | |
| --- unusedInCatch | |
| B0 = EntryBlock() dominates:(B5, B13, B4) | |
| v19 = Constant("error") | |
| v22 = Constant(null) | |
| TryEntry(try-body: B4, catch-block: B5) | |
| B4 = TargetBlock() exception-handler:B5 idom:B0 | |
| DirectCall foo() | |
| DirectCall foo() | |
| Goto(B13) | |
| B5 = CatchBlock() idom:B0 | |
| DirectCall print(v19) | |
| Goto(B13) | |
| B13 = JoinBlock(B5, B4) idom:B0 | |
| Return(v22) | |
| --- usedInOuterCatch | |
| B0 = EntryBlock() dominates:(B6, B27, B5) | |
| v3 = Constant(0) | |
| v23 = Constant("inner") | |
| v36 = Constant(null) | |
| v1 = Parameter(a) | |
| v2 = Parameter(b) | |
| TryEntry(try-body: B5, catch-block: B6) | |
| B5 = TargetBlock() exception-handler:B6 idom:B0 dominates:(B11, B17, B10) | |
| ExceptionalInput(x, v3) | |
| ExceptionalInput(x, v1) | |
| TryEntry(try-body: B10, catch-block: B11) | |
| B10 = TargetBlock() exception-handler:B11 idom:B5 | |
| ExceptionalInput(x, v1) | |
| DirectCall foo() | |
| ExceptionalInput(x, v2) | |
| DirectCall foo() | |
| Goto(B17) | |
| B11 = CatchBlock() exception-handler:B6 idom:B5 | |
| DirectCall print(v23) | |
| Goto(B17) | |
| B17 = JoinBlock(B11, B10) exception-handler:B6 idom:B5 | |
| DirectCall foo() | |
| Goto(B27) | |
| B6 = CatchBlock() idom:B0 | |
| v40 = Parameter(x) | |
| DirectCall print(v40) | |
| Goto(B27) | |
| B27 = JoinBlock(B6, B17) idom:B0 | |
| Return(v36) | |
| --- usedInInnerCatch | |
| B0 = EntryBlock() dominates:(B6, B31, B5) | |
| v37 = Constant("outer") | |
| v40 = Constant(null) | |
| v1 = Parameter(a) | |
| v2 = Parameter(b) | |
| TryEntry(try-body: B5, catch-block: B6) | |
| B5 = TargetBlock() exception-handler:B6 idom:B0 dominates:(B11, B17, B10) | |
| TryEntry(try-body: B10, catch-block: B11) | |
| B10 = TargetBlock() exception-handler:B11 idom:B5 | |
| ExceptionalInput(x, v1) | |
| DirectCall foo() | |
| ExceptionalInput(x, v2) | |
| DirectCall foo() | |
| Goto(B17) | |
| B11 = CatchBlock() exception-handler:B6 idom:B5 | |
| v42 = Parameter(x) | |
| DirectCall print(v42) | |
| Goto(B17) | |
| B17 = JoinBlock(B11, B10) exception-handler:B6 idom:B5 | |
| DirectCall foo() | |
| Goto(B31) | |
| B6 = CatchBlock() idom:B0 | |
| DirectCall print(v37) | |
| Goto(B31) | |
| B31 = JoinBlock(B6, B17) idom:B0 | |
| Return(v40) | |
| --- main | |
| B0 = EntryBlock() | |
| v1 = Constant(null) | |
| Return(v1) | |