Created
January 25, 2016 04:47
-
-
Save retronym/0efa5cea463aced52fae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⚡ (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 546b7986212dcf798f6909b91945836e9d6ce41c | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after beforeMethodOpt | |
diff --git a/out.log b/out.log | |
new file mode 100644 | |
index 0000000..91d1b34 | |
--- /dev/null | |
+++ b/out.log | |
@@ -0,0 +1,38 @@ | |
+ | |
+after beforeMethodOpt | |
+ | |
+ // access flags 0x1 | |
+ public t(Ljava/lang/Object;)I | |
+ L0 | |
+ LINENUMBER 2 L0 | |
+ L1 | |
+ LINENUMBER 3 L1 | |
+ ALOAD 1 | |
+ IFNULL L2 | |
+ GOTO L3 | |
+ L2 | |
+ ICONST_1 | |
+ GOTO L4 | |
+ L3 | |
+ ICONST_0 | |
+ L4 | |
+ ISTORE 2 | |
+ L5 | |
+ LINENUMBER 4 L5 | |
+ ALOAD 1 | |
+ IFNULL L6 | |
+ GOTO L7 | |
+ L7 | |
+ ICONST_1 | |
+ GOTO L8 | |
+ L6 | |
+ ICONST_0 | |
+ L8 | |
+ IRETURN | |
+ L9 | |
+ LOCALVARIABLE bool Z L4 L8 2 | |
+ LOCALVARIABLE this LC; L1 L9 0 | |
+ LOCALVARIABLE x Ljava/lang/Object; L1 L9 1 | |
+ MAXSTACK = 1 | |
+ MAXLOCALS = 3 | |
+ | |
commit b01828066a83e2f6ba0d6cb7eb1dab4a720e42ae | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after staleStores | |
diff --git a/out.log b/out.log | |
index 91d1b34..63babb5 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after beforeMethodOpt | |
+after staleStores | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -16,7 +16,7 @@ after beforeMethodOpt | |
L3 | |
ICONST_0 | |
L4 | |
- ISTORE 2 | |
+ POP | |
L5 | |
LINENUMBER 4 L5 | |
ALOAD 1 | |
commit 095e618d86f7f9a87f9bb9b13feae5234838d77b | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after pushPop | |
diff --git a/out.log b/out.log | |
index 63babb5..a1dd195 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after staleStores | |
+after pushPop | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -11,12 +11,9 @@ after staleStores | |
IFNULL L2 | |
GOTO L3 | |
L2 | |
- ICONST_1 | |
GOTO L4 | |
L3 | |
- ICONST_0 | |
L4 | |
- POP | |
L5 | |
LINENUMBER 4 L5 | |
ALOAD 1 | |
commit f5781a3455d51e62a04df36e1716e260397646ca | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after simplifyJumps | |
diff --git a/out.log b/out.log | |
index a1dd195..76179a1 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after pushPop | |
+after simplifyJumps | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -10,24 +10,22 @@ after pushPop | |
ALOAD 1 | |
IFNULL L2 | |
GOTO L3 | |
- L2 | |
- GOTO L4 | |
- L3 | |
L4 | |
+ L3 | |
+ L2 | |
L5 | |
LINENUMBER 4 L5 | |
ALOAD 1 | |
IFNULL L6 | |
- GOTO L7 | |
L7 | |
ICONST_1 | |
- GOTO L8 | |
+ IRETURN | |
L6 | |
ICONST_0 | |
L8 | |
IRETURN | |
L9 | |
- LOCALVARIABLE bool Z L4 L8 2 | |
+ LOCALVARIABLE bool Z L2 L8 2 | |
LOCALVARIABLE this LC; L1 L9 0 | |
LOCALVARIABLE x Ljava/lang/Object; L1 L9 1 | |
MAXSTACK = 1 | |
commit 090f5fd3c4ba1fb398a30ca8ff98a05af38bcf71 | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after dce | |
diff --git a/out.log b/out.log | |
index 76179a1..bf0be77 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after simplifyJumps | |
+after dce | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -29,5 +29,5 @@ after simplifyJumps | |
LOCALVARIABLE this LC; L1 L9 0 | |
LOCALVARIABLE x Ljava/lang/Object; L1 L9 1 | |
MAXSTACK = 1 | |
- MAXLOCALS = 3 | |
+ MAXLOCALS = 2 | |
commit c124fea2dc077b663b8f182c7f82f16153836b9e | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after simplifyJumps | |
diff --git a/out.log b/out.log | |
index bf0be77..a54767d 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after dce | |
+after simplifyJumps | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -8,11 +8,10 @@ after dce | |
L1 | |
LINENUMBER 3 L1 | |
ALOAD 1 | |
- IFNULL L2 | |
- GOTO L3 | |
- L4 | |
- L3 | |
+ POP | |
L2 | |
+ L3 | |
+ L4 | |
L5 | |
LINENUMBER 4 L5 | |
ALOAD 1 | |
@@ -25,7 +24,7 @@ after dce | |
L8 | |
IRETURN | |
L9 | |
- LOCALVARIABLE bool Z L2 L8 2 | |
+ LOCALVARIABLE bool Z L4 L8 2 | |
LOCALVARIABLE this LC; L1 L9 0 | |
LOCALVARIABLE x Ljava/lang/Object; L1 L9 1 | |
MAXSTACK = 1 | |
commit 24c262b0dc8532f237d9e4d26093708694f0a06b | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after pushPop | |
diff --git a/out.log b/out.log | |
index a54767d..07892d2 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after simplifyJumps | |
+after pushPop | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -7,8 +7,6 @@ after simplifyJumps | |
LINENUMBER 2 L0 | |
L1 | |
LINENUMBER 3 L1 | |
- ALOAD 1 | |
- POP | |
L2 | |
L3 | |
L4 | |
commit 03d3ca98fc53ea19a52122f028024663fb1aedbd | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after localVariables | |
diff --git a/out.log b/out.log | |
index 07892d2..9f67af5 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,5 +1,5 @@ | |
-after pushPop | |
+after localVariables | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
@@ -22,7 +22,6 @@ after pushPop | |
L8 | |
IRETURN | |
L9 | |
- LOCALVARIABLE bool Z L4 L8 2 | |
LOCALVARIABLE this LC; L1 L9 0 | |
LOCALVARIABLE x Ljava/lang/Object; L1 L9 1 | |
MAXSTACK = 1 | |
commit 059544111bf3150764455ff8f97c6bcdafd17b58 | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after lineNumbers | |
diff --git a/out.log b/out.log | |
index 9f67af5..68eed55 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,12 +1,10 @@ | |
-after localVariables | |
+after lineNumbers | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
L0 | |
- LINENUMBER 2 L0 | |
L1 | |
- LINENUMBER 3 L1 | |
L2 | |
L3 | |
L4 | |
commit 5acfcb99f7439f3b3a47276289e6ea8d4aaae9ba | |
Author: Jason Zaugg <jzaugg@gmail.com> | |
Date: Mon Jan 25 14:47:17 2016 +1000 | |
after labels | |
diff --git a/out.log b/out.log | |
index 68eed55..ad8ab9e 100644 | |
--- a/out.log | |
+++ b/out.log | |
@@ -1,27 +1,19 @@ | |
-after lineNumbers | |
+after labels | |
// access flags 0x1 | |
public t(Ljava/lang/Object;)I | |
L0 | |
- L1 | |
- L2 | |
- L3 | |
- L4 | |
- L5 | |
- LINENUMBER 4 L5 | |
+ LINENUMBER 4 L0 | |
ALOAD 1 | |
- IFNULL L6 | |
- L7 | |
+ IFNULL L1 | |
ICONST_1 | |
IRETURN | |
- L6 | |
+ L1 | |
ICONST_0 | |
- L8 | |
IRETURN | |
- L9 | |
- LOCALVARIABLE this LC; L1 L9 0 | |
- LOCALVARIABLE x Ljava/lang/Object; L1 L9 1 | |
+ L2 | |
+ LOCALVARIABLE this LC; L0 L2 0 | |
+ LOCALVARIABLE x Ljava/lang/Object; L0 L2 1 | |
MAXSTACK = 1 | |
MAXLOCALS = 2 | |
- | |
/code/scala2/sandbox on pr/4858 | |
⚡ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment