Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ⚡ (export LOG=$PWD/opt.log; rm -rf ./git-repo; mkdir ./git-repo; cd git-repo; git init; cat $LOG | awk '/^after /{x=$0; i++; message[i] = $0; contents[i] = ""}{if (x) contents[i] = contents[i] "\n" $0;}END{ for (j=1;j<=i;j++) {close("out.log"); print(contents[j]) > "out.log"; system("git add out.log"); system("git commit --quiet -m \"" message[j] "\"")}}' -; git --no-pager log -p --reverse)
- /code/scala2/sandbox/git-repo
- Initialized empty Git repository in /Users/jason/code/scala2/sandbox/git-repo/.git/
- commit 46a679c05c0cb69315349e8fe3e0c73f616cc574
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after beforeMethodOpt
- diff --git a/out.log b/out.log
- new file mode 100644
- index 0000000..b7d8974
- --- /dev/null
- +++ b/out.log
- @@ -0,0 +1,99 @@
- +
- +after beforeMethodOpt
- +
- + // access flags 0x1
- + public t9(II)I
- + L0
- + LINENUMBER 2 L0
- + L1
- + NEW scala/Tuple2$mcII$sp
- + DUP
- + ILOAD 1
- + ILOAD 2
- + INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- + L2
- + ASTORE 4
- + L3
- + ALOAD 4
- + IFNONNULL L4
- + GOTO L5
- + L4
- + LINENUMBER 3 L4
- + ALOAD 4
- + INVOKEVIRTUAL scala/Tuple2._1$mcI$sp ()I
- + L6
- + ISTORE 5
- + ALOAD 4
- + INVOKEVIRTUAL scala/Tuple2._2$mcI$sp ()I
- + L7
- + ISTORE 6
- + L8
- + LINENUMBER 3 L8
- + ILOAD 5
- + ILOAD 6
- + IF_ICMPEQ L9
- + GOTO L10
- + L9
- + ICONST_0
- + ISTORE 3
- + GOTO L11
- + GOTO L12
- + L10
- + LINENUMBER 2 L10
- + GOTO L13
- + L12
- + GOTO L14
- + L5
- + GOTO L13
- + L14
- + POP
- + L13
- + ALOAD 4
- + IFNONNULL L15
- + GOTO L16
- + L15
- + LINENUMBER 4 L15
- + ALOAD 4
- + INVOKEVIRTUAL scala/Tuple2._1$mcI$sp ()I
- + L17
- + ISTORE 7
- + ALOAD 4
- + INVOKEVIRTUAL scala/Tuple2._2$mcI$sp ()I
- + L18
- + ISTORE 8
- + ILOAD 7
- + ILOAD 8
- + IADD
- + ISTORE 3
- + GOTO L11
- + L19
- + GOTO L20
- + L16
- + LINENUMBER 2 L16
- + GOTO L21
- + L20
- + POP
- + L21
- + NEW scala/MatchError
- + DUP
- + ALOAD 4
- + INVOKESPECIAL scala/MatchError.<init> (Ljava/lang/Object;)V
- + ATHROW
- + ATHROW
- + ISTORE 3
- + GOTO L11
- + L11
- + ILOAD 3
- + L22
- + IRETURN
- + L23
- + LOCALVARIABLE x I L6 L12 5
- + LOCALVARIABLE y I L7 L12 6
- + LOCALVARIABLE x I L17 L19 7
- + LOCALVARIABLE y I L18 L19 8
- + LOCALVARIABLE this LC; L1 L23 0
- + LOCALVARIABLE a I L1 L23 1
- + LOCALVARIABLE b I L1 L23 2
- + MAXSTACK = 4
- + MAXLOCALS = 9
- +
- commit 32e29f7396aa12f2519ba72120f6a00df39cc924
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after nullness
- diff --git a/out.log b/out.log
- index b7d8974..0fc3e46 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after beforeMethodOpt
- +after nullness
- // access flags 0x1
- public t9(II)I
- @@ -15,7 +15,8 @@ after beforeMethodOpt
- ASTORE 4
- L3
- ALOAD 4
- - IFNONNULL L4
- + POP
- + GOTO L4
- GOTO L5
- L4
- LINENUMBER 3 L4
- @@ -49,7 +50,8 @@ after beforeMethodOpt
- POP
- L13
- ALOAD 4
- - IFNONNULL L15
- + POP
- + GOTO L15
- GOTO L16
- L15
- LINENUMBER 4 L15
- commit a4b4d7306181c57c69d5f65da5c7dc60b81c5c2e
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after dce
- diff --git a/out.log b/out.log
- index 0fc3e46..e022a5f 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after nullness
- +after dce
- // access flags 0x1
- public t9(II)I
- @@ -17,82 +17,64 @@ after nullness
- ALOAD 4
- POP
- GOTO L4
- - GOTO L5
- L4
- LINENUMBER 3 L4
- ALOAD 4
- INVOKEVIRTUAL scala/Tuple2._1$mcI$sp ()I
- - L6
- + L5
- ISTORE 5
- ALOAD 4
- INVOKEVIRTUAL scala/Tuple2._2$mcI$sp ()I
- - L7
- + L6
- ISTORE 6
- - L8
- - LINENUMBER 3 L8
- + L7
- + LINENUMBER 3 L7
- ILOAD 5
- ILOAD 6
- - IF_ICMPEQ L9
- - GOTO L10
- - L9
- + IF_ICMPEQ L8
- + GOTO L9
- + L8
- ICONST_0
- ISTORE 3
- + GOTO L10
- + L9
- + LINENUMBER 2 L9
- GOTO L11
- - GOTO L12
- - L10
- - LINENUMBER 2 L10
- - GOTO L13
- L12
- - GOTO L14
- - L5
- - GOTO L13
- - L14
- - POP
- L13
- + L14
- + L11
- ALOAD 4
- POP
- GOTO L15
- - GOTO L16
- L15
- LINENUMBER 4 L15
- ALOAD 4
- INVOKEVIRTUAL scala/Tuple2._1$mcI$sp ()I
- - L17
- + L16
- ISTORE 7
- ALOAD 4
- INVOKEVIRTUAL scala/Tuple2._2$mcI$sp ()I
- - L18
- + L17
- ISTORE 8
- ILOAD 7
- ILOAD 8
- IADD
- ISTORE 3
- - GOTO L11
- + GOTO L10
- + L18
- L19
- - GOTO L20
- - L16
- - LINENUMBER 2 L16
- - GOTO L21
- L20
- - POP
- L21
- - NEW scala/MatchError
- - DUP
- - ALOAD 4
- - INVOKESPECIAL scala/MatchError.<init> (Ljava/lang/Object;)V
- - ATHROW
- - ATHROW
- - ISTORE 3
- - GOTO L11
- - L11
- + L10
- ILOAD 3
- L22
- IRETURN
- L23
- - LOCALVARIABLE x I L6 L12 5
- - LOCALVARIABLE y I L7 L12 6
- - LOCALVARIABLE x I L17 L19 7
- - LOCALVARIABLE y I L18 L19 8
- + LOCALVARIABLE x I L5 L12 5
- + LOCALVARIABLE y I L6 L12 6
- + LOCALVARIABLE x I L16 L18 7
- + LOCALVARIABLE y I L17 L18 8
- LOCALVARIABLE this LC; L1 L23 0
- LOCALVARIABLE a I L1 L23 1
- LOCALVARIABLE b I L1 L23 2
- commit 7f56446e9624c9f13000216f6cecacdf67e99d82
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after boxUnbox
- diff --git a/out.log b/out.log
- index e022a5f..71cc71c 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after dce
- +after boxUnbox
- // access flags 0x1
- public t9(II)I
- @@ -10,6 +10,10 @@ after dce
- DUP
- ILOAD 1
- ILOAD 2
- + ISTORE 10
- + ISTORE 9
- + ILOAD 9
- + ILOAD 10
- INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- L2
- ASTORE 4
- @@ -20,11 +24,13 @@ after dce
- L4
- LINENUMBER 3 L4
- ALOAD 4
- - INVOKEVIRTUAL scala/Tuple2._1$mcI$sp ()I
- + POP
- + ILOAD 9
- L5
- ISTORE 5
- ALOAD 4
- - INVOKEVIRTUAL scala/Tuple2._2$mcI$sp ()I
- + POP
- + ILOAD 10
- L6
- ISTORE 6
- L7
- @@ -50,11 +56,13 @@ after dce
- L15
- LINENUMBER 4 L15
- ALOAD 4
- - INVOKEVIRTUAL scala/Tuple2._1$mcI$sp ()I
- + POP
- + ILOAD 9
- L16
- ISTORE 7
- ALOAD 4
- - INVOKEVIRTUAL scala/Tuple2._2$mcI$sp ()I
- + POP
- + ILOAD 10
- L17
- ISTORE 8
- ILOAD 7
- @@ -79,5 +87,5 @@ after dce
- LOCALVARIABLE a I L1 L23 1
- LOCALVARIABLE b I L1 L23 2
- MAXSTACK = 4
- - MAXLOCALS = 9
- + MAXLOCALS = 11
- commit a8a78e3edcedee295c79dcc9e0ba9e41b8720191
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after copyProp
- diff --git a/out.log b/out.log
- index 71cc71c..6a895ce 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after boxUnbox
- +after copyProp
- // access flags 0x1
- public t9(II)I
- @@ -12,8 +12,8 @@ after boxUnbox
- ILOAD 2
- ISTORE 10
- ISTORE 9
- - ILOAD 9
- - ILOAD 10
- + ILOAD 1
- + ILOAD 2
- INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- L2
- ASTORE 4
- @@ -25,18 +25,18 @@ after boxUnbox
- LINENUMBER 3 L4
- ALOAD 4
- POP
- - ILOAD 9
- + ILOAD 1
- L5
- ISTORE 5
- ALOAD 4
- POP
- - ILOAD 10
- + ILOAD 2
- L6
- ISTORE 6
- L7
- LINENUMBER 3 L7
- - ILOAD 5
- - ILOAD 6
- + ILOAD 1
- + ILOAD 2
- IF_ICMPEQ L8
- GOTO L9
- L8
- @@ -57,16 +57,16 @@ after boxUnbox
- LINENUMBER 4 L15
- ALOAD 4
- POP
- - ILOAD 9
- + ILOAD 1
- L16
- ISTORE 7
- ALOAD 4
- POP
- - ILOAD 10
- + ILOAD 2
- L17
- ISTORE 8
- - ILOAD 7
- - ILOAD 8
- + ILOAD 1
- + ILOAD 2
- IADD
- ISTORE 3
- GOTO L10
- commit 1a12b72d9d712306e46137555edf6ed52411ba65
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after staleStores
- diff --git a/out.log b/out.log
- index 6a895ce..7404aa9 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after copyProp
- +after staleStores
- // access flags 0x1
- public t9(II)I
- @@ -10,8 +10,8 @@ after copyProp
- DUP
- ILOAD 1
- ILOAD 2
- - ISTORE 10
- - ISTORE 9
- + POP
- + POP
- ILOAD 1
- ILOAD 2
- INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- @@ -27,12 +27,12 @@ after copyProp
- POP
- ILOAD 1
- L5
- - ISTORE 5
- + POP
- ALOAD 4
- POP
- ILOAD 2
- L6
- - ISTORE 6
- + POP
- L7
- LINENUMBER 3 L7
- ILOAD 1
- @@ -59,12 +59,12 @@ after copyProp
- POP
- ILOAD 1
- L16
- - ISTORE 7
- + POP
- ALOAD 4
- POP
- ILOAD 2
- L17
- - ISTORE 8
- + POP
- ILOAD 1
- ILOAD 2
- IADD
- commit 071dfe69ddd3923176484c94a0321d7845017218
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after pushPop
- diff --git a/out.log b/out.log
- index 7404aa9..e40780a 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after staleStores
- +after pushPop
- // access flags 0x1
- public t9(II)I
- @@ -10,29 +10,15 @@ after staleStores
- DUP
- ILOAD 1
- ILOAD 2
- - POP
- - POP
- - ILOAD 1
- - ILOAD 2
- INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- L2
- ASTORE 4
- L3
- - ALOAD 4
- - POP
- GOTO L4
- L4
- LINENUMBER 3 L4
- - ALOAD 4
- - POP
- - ILOAD 1
- L5
- - POP
- - ALOAD 4
- - POP
- - ILOAD 2
- L6
- - POP
- L7
- LINENUMBER 3 L7
- ILOAD 1
- @@ -50,21 +36,11 @@ after staleStores
- L13
- L14
- L11
- - ALOAD 4
- - POP
- GOTO L15
- L15
- LINENUMBER 4 L15
- - ALOAD 4
- - POP
- - ILOAD 1
- L16
- - POP
- - ALOAD 4
- - POP
- - ILOAD 2
- L17
- - POP
- ILOAD 1
- ILOAD 2
- IADD
- commit 9b9fceb14e9ec6e552e29deaf279693c2264d338
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after simplifyJumps
- diff --git a/out.log b/out.log
- index e40780a..96be3f3 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after pushPop
- +after simplifyJumps
- // access flags 0x1
- public t9(II)I
- @@ -14,7 +14,6 @@ after pushPop
- L2
- ASTORE 4
- L3
- - GOTO L4
- L4
- LINENUMBER 3 L4
- L5
- @@ -23,29 +22,26 @@ after pushPop
- LINENUMBER 3 L7
- ILOAD 1
- ILOAD 2
- - IF_ICMPEQ L8
- - GOTO L9
- - L8
- + IF_ICMPNE L8
- + L9
- ICONST_0
- ISTORE 3
- GOTO L10
- - L9
- - LINENUMBER 2 L9
- + L8
- + LINENUMBER 2 L8
- GOTO L11
- L12
- L13
- L14
- - L11
- - GOTO L15
- L15
- - LINENUMBER 4 L15
- + L11
- + LINENUMBER 4 L11
- L16
- L17
- ILOAD 1
- ILOAD 2
- IADD
- ISTORE 3
- - GOTO L10
- L18
- L19
- L20
- commit 93251503ccaf01b4ae3204c69f36db6664fd4570
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after dce
- diff --git a/out.log b/out.log
- index 96be3f3..805cb27 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after simplifyJumps
- +after dce
- // access flags 0x1
- public t9(II)I
- @@ -59,5 +59,5 @@ after simplifyJumps
- LOCALVARIABLE a I L1 L23 1
- LOCALVARIABLE b I L1 L23 2
- MAXSTACK = 4
- - MAXLOCALS = 11
- + MAXLOCALS = 5
- commit bbd0dae234aa09fd864ef1f712f8f63edd138eb7
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after staleStores
- diff --git a/out.log b/out.log
- index 805cb27..4ba46e5 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after dce
- +after staleStores
- // access flags 0x1
- public t9(II)I
- @@ -12,7 +12,7 @@ after dce
- ILOAD 2
- INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- L2
- - ASTORE 4
- + POP
- L3
- L4
- LINENUMBER 3 L4
- commit 14615f8f0781c0e4fab16208addd05d5e827c2ae
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after pushPop
- diff --git a/out.log b/out.log
- index 4ba46e5..466b4dc 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,18 +1,12 @@
- -after staleStores
- +after pushPop
- // access flags 0x1
- public t9(II)I
- L0
- LINENUMBER 2 L0
- L1
- - NEW scala/Tuple2$mcII$sp
- - DUP
- - ILOAD 1
- - ILOAD 2
- - INVOKESPECIAL scala/Tuple2$mcII$sp.<init> (II)V
- L2
- - POP
- L3
- L4
- LINENUMBER 3 L4
- commit 30d5713f0c9652b3c55682d703f3a4038696f28c
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after simplifyJumps
- diff --git a/out.log b/out.log
- index 466b4dc..4054287 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after pushPop
- +after simplifyJumps
- // access flags 0x1
- public t9(II)I
- @@ -21,15 +21,14 @@ after pushPop
- ICONST_0
- ISTORE 3
- GOTO L10
- - L8
- - LINENUMBER 2 L8
- - GOTO L11
- + L11
- + LINENUMBER 2 L11
- L12
- L13
- L14
- L15
- - L11
- - LINENUMBER 4 L11
- + L8
- + LINENUMBER 4 L8
- L16
- L17
- ILOAD 1
- commit 9e8b9e5c06ea5337946879eea02e9da874552f8c
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after dce
- diff --git a/out.log b/out.log
- index 4054287..f2f151d 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after simplifyJumps
- +after dce
- // access flags 0x1
- public t9(II)I
- @@ -22,7 +22,6 @@ after simplifyJumps
- ISTORE 3
- GOTO L10
- L11
- - LINENUMBER 2 L11
- L12
- L13
- L14
- @@ -51,6 +50,6 @@ after simplifyJumps
- LOCALVARIABLE this LC; L1 L23 0
- LOCALVARIABLE a I L1 L23 1
- LOCALVARIABLE b I L1 L23 2
- - MAXSTACK = 4
- - MAXLOCALS = 5
- + MAXSTACK = 2
- + MAXLOCALS = 4
- commit e6c0ab34e05b2ff40dcd5e9cd821061c7a8d3509
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after localVariables
- diff --git a/out.log b/out.log
- index f2f151d..a1097dc 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,5 +1,5 @@
- -after dce
- +after localVariables
- // access flags 0x1
- public t9(II)I
- @@ -43,10 +43,6 @@ after dce
- L22
- IRETURN
- L23
- - LOCALVARIABLE x I L5 L12 5
- - LOCALVARIABLE y I L6 L12 6
- - LOCALVARIABLE x I L16 L18 7
- - LOCALVARIABLE y I L17 L18 8
- LOCALVARIABLE this LC; L1 L23 0
- LOCALVARIABLE a I L1 L23 1
- LOCALVARIABLE b I L1 L23 2
- commit d16c030af8eae9f4888a3c5ad336430df30912e5
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after lineNumbers
- diff --git a/out.log b/out.log
- index a1097dc..260a124 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,15 +1,13 @@
- -after localVariables
- +after lineNumbers
- // access flags 0x1
- public t9(II)I
- L0
- - LINENUMBER 2 L0
- L1
- L2
- L3
- L4
- - LINENUMBER 3 L4
- L5
- L6
- L7
- commit 406a4e1192f4334256549a4d05ea8deb1dfa7f4e
- Author: Jason Zaugg <jzaugg@gmail.com>
- Date: Mon Jan 25 15:13:46 2016 +1000
- after labels
- diff --git a/out.log b/out.log
- index 260a124..8477d6b 100644
- --- a/out.log
- +++ b/out.log
- @@ -1,49 +1,28 @@
- -after lineNumbers
- +after labels
- // access flags 0x1
- public t9(II)I
- L0
- - L1
- - L2
- - L3
- - L4
- - L5
- - L6
- - L7
- - LINENUMBER 3 L7
- + LINENUMBER 3 L0
- ILOAD 1
- ILOAD 2
- - IF_ICMPNE L8
- - L9
- + IF_ICMPNE L1
- ICONST_0
- ISTORE 3
- - GOTO L10
- - L11
- - L12
- - L13
- - L14
- - L15
- - L8
- - LINENUMBER 4 L8
- - L16
- - L17
- + GOTO L2
- + L1
- + LINENUMBER 4 L1
- ILOAD 1
- ILOAD 2
- IADD
- ISTORE 3
- - L18
- - L19
- - L20
- - L21
- - L10
- + L2
- ILOAD 3
- - L22
- IRETURN
- - L23
- - LOCALVARIABLE this LC; L1 L23 0
- - LOCALVARIABLE a I L1 L23 1
- - LOCALVARIABLE b I L1 L23 2
- + L3
- + LOCALVARIABLE this LC; L0 L3 0
- + LOCALVARIABLE a I L0 L3 1
- + LOCALVARIABLE b I L0 L3 2
- MAXSTACK = 2
- MAXLOCALS = 4
- -
- /code/scala2/sandbox on pr/4858
- ⚡
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement