Created
May 2, 2011 02:18
-
-
Save cocoatomo/951105 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
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: hello.rb | |
package ruby.jit; | |
import org.jruby.Ruby; | |
import org.jruby.RubyInstanceConfig; | |
import org.jruby.ast.executable.AbstractScript; | |
import org.jruby.ast.executable.RuntimeCache; | |
import org.jruby.javasupport.util.RuntimeHelpers; | |
import org.jruby.runtime.*; | |
import org.jruby.runtime.builtin.IRubyObject; | |
public class FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7 extends AbstractScript | |
{ | |
private static void setPosition(ThreadContext threadcontext, int i) | |
{ | |
threadcontext.setFileAndLine("hello.rb", i); | |
} | |
public FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7() | |
{ | |
filename = "hello.rb"; | |
super.runtimeCache = new RuntimeCache(); | |
initFromDescriptor("print\uFFFFF\uFFFF\000\000\000\000\000\000\000\000\000\000\000\001\001"); | |
setEncoding(0, "ASCII-8BIT"); | |
setByteList(0, "hello world\n", getEncoding0()); | |
} | |
public static IRubyObject __file__(FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7 file_99bfdcc637dfd684eaa0570495146bbf23b567f7, ThreadContext threadcontext, IRubyObject irubyobject, IRubyObject airubyobject[], Block block) | |
{ | |
return file_99bfdcc637dfd684eaa0570495146bbf23b567f7.getCallSite0().call(threadcontext, irubyobject, irubyobject, file_99bfdcc637dfd684eaa0570495146bbf23b567f7.getString0(threadcontext.runtime, 32)); | |
} | |
public IRubyObject __file__(ThreadContext threadcontext, IRubyObject irubyobject, IRubyObject airubyobject[], Block block) | |
{ | |
return __file__(this, threadcontext, irubyobject, airubyobject, block); | |
} | |
public IRubyObject load(ThreadContext threadcontext, IRubyObject irubyobject, IRubyObject airubyobject[], Block block) | |
{ | |
RuntimeHelpers.preLoad(threadcontext, ",0,0,-2"); | |
RuntimeHelpers.postLoad(threadcontext); | |
return __file__(this, threadcontext, irubyobject, airubyobject, block); | |
RuntimeHelpers.postLoad(threadcontext); | |
throw ; | |
} | |
public static void main(String args[]) | |
{ | |
FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7 file_99bfdcc637dfd684eaa0570495146bbf23b567f7; | |
RubyInstanceConfig rubyinstanceconfig; | |
file_99bfdcc637dfd684eaa0570495146bbf23b567f7 = new FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7(); | |
String s; | |
file_99bfdcc637dfd684eaa0570495146bbf23b567f7.setFilename(s = ruby/jit/FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7.getClassLoader().getResource("ruby/jit/FILE_99BFDCC637DFD684EAA0570495146BBF23B567F7.class").toString()); | |
rubyinstanceconfig = new RubyInstanceConfig(); | |
rubyinstanceconfig.setArgv(args); | |
rubyinstanceconfig.setScriptFileName(s); | |
Ruby ruby; | |
file_99bfdcc637dfd684eaa0570495146bbf23b567f7.load((ruby = Ruby.newInstance(rubyinstanceconfig)).getCurrentContext(), ruby.getTopSelf(), IRubyObject.NULL_ARRAY, Block.NULL_BLOCK); | |
} | |
} |
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
print "hello world\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment