Skip to content

Instantly share code, notes, and snippets.

@qmx
Created April 10, 2014 07:15
Show Gist options
  • Save qmx/10350682 to your computer and use it in GitHub Desktop.
Save qmx/10350682 to your computer and use it in GitHub Desktop.
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 13.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Volumes/v2/git/dynjs/target/test-classes:/Volumes/v2/git/dynjs/target/classes:/Users/qmx/.m2/repository/me/qmx/jitescript/jitescript/0.3.2/jitescript-0.3.2.jar:/Users/qmx/.m2/repository/org/ow2/asm/asm-all/5.0.1/asm-all-5.0.1.jar:/Users/qmx/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar:/Users/qmx/.m2/repository/org/projectodd/rephract/rephract/1.1.1/rephract-1.1.1.jar:/Users/qmx/.m2/repository/com/headius/invokebinder/1.2/invokebinder-1.2.jar:/Users/qmx/.m2/repository/org/jruby/dirgra/0.1/dirgra-0.1.jar:/Users/qmx/.m2/repository/args4j/args4j/2.0.26/args4j-2.0.26.jar:/Users/qmx/.m2/repository/org/jboss/aesh/aesh/0.38/aesh-0.38.jar:/Users/qmx/.m2/repository/org/fusesource/jansi/jansi/1.9/jansi-1.9.jar:/Users/qmx/.m2/repository/com/headius/options/1.0/options-1.0.jar:/Users/qmx/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.9/jackson-core-asl-1.9.9.jar:/Users/qmx/.m2/repository/org/jruby/joni/joni/2.1.0/joni-2.1.0.jar:/Users/qmx/.m2/repository/org/jruby/jcodings/jcodings/1.0.8/jcodings-1.0.8.jar:/Users/qmx/.m2/repository/com/github/jnr/jnr-posix/3.0.1/jnr-posix-3.0.1.jar:/Users/qmx/.m2/repository/com/github/jnr/jnr-ffi/1.0.7/jnr-ffi-1.0.7.jar:/Users/qmx/.m2/repository/com/github/jnr/jffi/1.2.7/jffi-1.2.7.jar:/Users/qmx/.m2/repository/com/github/jnr/jffi/1.2.7/jffi-1.2.7-native.jar:/Users/qmx/.m2/repository/com/github/jnr/jnr-x86asm/1.0.2/jnr-x86asm-1.0.2.jar:/Users/qmx/.m2/repository/com/github/jnr/jnr-constants/0.8.5/jnr-constants-0.8.5.jar:/Users/qmx/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar:/Users/qmx/.m2/repository/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar:/Users/qmx/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/Users/qmx/.m2/repository/org/objenesis/objenesis/1.0/objenesis-1.0.jar:/Users/qmx/.m2/repository/org/easytesting/fest-assert/1.4/fest-assert-1.4.jar:/Users/qmx/.m2/repository/org/easytesting/fest-util/1.1.6/fest-util-1.1.6.jar:/Users/qmx/.m2/repository/io/netty/netty/3.6.1.Final/netty-3.6.1.Final.jar:/Users/qmx/.m2/repository/com/github/akiellor/jasmine/jasmine-cli/0.0.12/jasmine-cli-0.0.12.jar:/Users/qmx/.m2/repository/com/github/akiellor/jasmine/jasmine-core/0.0.12/jasmine-core-0.0.12.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 org.dynjs.runtime.EvalTest,testShit
VROGRAM:
label: LBL_6
label: LBL_7
label: LBL_0
label: LBL_8
label: LBL_1
label: LBL_9
i{0} = Integer:0 (copy)
%t_0{0} = i{0} < Integer:100000000
BEQ %t_0{0}, false -> LBL_1
looking for label: LBL_1
%t_1{1} = i{0} + i{0}
%t_2{2} = %t_1{1} + i{0}
%t_3{3} = i{0} + Integer:1
i{0} = %t_3{3} (copy)
jump -> LBL_0
<init>()V
00000 MEH : : ALOAD 0
00001 MEH : MEH : INVOKESPECIAL java/lang/Object.<init> ()V
00002 MEH : : RETURN
execute()Ljava/lang/Object;
00000 . . . . . : : ICONST_0
00001 . . . . . : I : INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
00002 . . . . . : Integer : ASTORE 1
00003 . Object . . . : : L0
00004 . Object . . . : : FRAME APPEND [T java/lang/Object]
00005 . Object . . . : : ALOAD 1
00006 . Object . . . : Object : LDC 100000000
00007 . Object . . . : Object I : INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
00008 . Object . . . : Object Integer : INVOKESTATIC org/dynjs/ir/IRByteCodeCompiler.lt (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean;
00009 . Object . . . : Boolean : ASTORE 1
00010 . Boolean . . . : : ALOAD 1
00011 . Boolean . . . : Boolean : INVOKEVIRTUAL java/lang/Boolean.booleanValue ()Z
00012 . Boolean . . . : I : ICONST_0
00013 . Boolean . . . : I I : IF_ICMPEQ L1
00014 . Boolean . . . : : ALOAD 1
00015 . Boolean . . . : Boolean : ALOAD 1
00016 . Boolean . . . : Boolean Boolean : INVOKESTATIC org/dynjs/ir/IRByteCodeCompiler.add (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
00017 . Boolean . . . : Object : ASTORE 2
00018 . Boolean Object . . : : ALOAD 2
00019 . Boolean Object . . : Object : ALOAD 1
00020 . Boolean Object . . : Object Boolean : INVOKESTATIC org/dynjs/ir/IRByteCodeCompiler.add (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
00021 . Boolean Object . . : Object : ASTORE 3
00022 . Boolean Object Object . : : ALOAD 1
00023 . Boolean Object Object . : Boolean : ICONST_1
00024 . Boolean Object Object . : Boolean I : INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
00025 . Boolean Object Object . : Boolean Integer : INVOKESTATIC org/dynjs/ir/IRByteCodeCompiler.add (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
00026 . Boolean Object Object . : Object : ASTORE 4
00027 . Boolean Object Object Object : : ALOAD 4
00028 . Boolean Object Object Object : Object : ASTORE 1
00029 . Object Object Object Object : : GOTO L0
00030 . Boolean . . . : : L1
00031 . Boolean . . . : : FRAME FULL [T java/lang/Boolean] []
00032 . Boolean . . . : : ACONST_NULL
00033 . Boolean . . . : Lnull; : ARETURN
java.lang.IllegalStateException: Cannot pop ExecutionContext from empty stack
at org.dynjs.runtime.ThreadContextManager.popContext(ThreadContextManager.java:31)
at org.dynjs.runtime.ExecutionContext.eval(ExecutionContext.java:141)
at org.dynjs.runtime.Runner.evaluate(Runner.java:104)
at org.dynjs.runtime.DynJS.evaluate(DynJS.java:61)
at org.dynjs.runtime.DynJS.evaluate(DynJS.java:70)
at org.dynjs.runtime.AbstractDynJSTestSupport.eval(AbstractDynJSTestSupport.java:35)
at org.dynjs.runtime.EvalTest.testShit(EvalTest.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Process finished with exit code 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment