This file contains hidden or 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
{method} | |
- klass: {other class} | |
- method holder: 'bench/language/bench_method_dispatch_only' | |
- constants: 0x06b82a64{constant pool} | |
- access: 0xc1000001 public | |
- name: 'method__1$RUBY$invoking' | |
- signature: '(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;' | |
- max stack: 8 | |
- max locals: 14 | |
- size of params: 4 |
This file contains hidden or 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
ALOAD 0 | |
INVOKEVIRTUAL ruby/__dash_e__.getCallSite0 ()Lorg/jruby/runtime/CallSite; | |
CHECKCAST org/jruby/runtime/callsite/CachingCallSite | |
ALOAD 1 | |
ALOAD 11 | |
INVOKESTATIC org/jruby/runtime/callsite/CachingCallSite.getMethod (Lorg/jruby/runtime/callsite/CachingCallSite;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;)Lorg/jruby/internal/runtime/methods/DynamicMethod; | |
ALOAD 1 | |
ALOAD 2 | |
ALOAD 11 | |
LDC "foo" |
This file contains hidden or 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
diff --git a/bin/jruby b/bin/jruby | |
index 750f752..ef24cdd 100755 | |
--- a/bin/jruby | |
+++ b/bin/jruby | |
@@ -207,6 +207,11 @@ do | |
shift | |
done | |
+# Force file.encoding to UTF-8 when on Mac, since Apple JDK defaults to MacRoman (JRUBY-3576) | |
+if [ `uname -s` = "Darwin" ]; then |
This file contains hidden or 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
~ ➔ gem maven itext itext 1.3.1 | |
Successfully installed itext-1.3.1-java | |
1 gem installed | |
~ ➔ cat hello_pdf.rb | |
require 'rubygems' | |
require 'itext' | |
import com.lowagie.text.pdf.PdfWriter | |
import com.lowagie.text.Document |
This file contains hidden or 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
~/projects/RailsConf2009 ➔ gem install --source http://gems.github.com jruby-rcov | |
Successfully installed jruby-rcov-0.8.2.2-java | |
1 gem installed | |
Installing ri documentation for jruby-rcov-0.8.2.2-java... | |
Installing RDoc documentation for jruby-rcov-0.8.2.2-java... |
This file contains hidden or 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
package org.jruby.runtime.invokedynamic; | |
import java.dyn.CallSite; | |
import java.dyn.Linkage; | |
import java.dyn.MethodHandle; | |
import java.dyn.MethodHandles; | |
import java.dyn.MethodType; | |
import org.jruby.compiler.impl.SkinnyMethodAdapter; | |
import org.jruby.runtime.ThreadContext; | |
import org.jruby.runtime.builtin.IRubyObject; |
This file contains hidden or 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
diff --git a/src/org/jruby/runtime/invokedynamic/InvokeDynamicSupport.java b/src/org/jruby/runtime/invokedynamic/InvokeDynamicSupport.java | |
index 332d1c1..a83ebfe 100644 | |
--- a/src/org/jruby/runtime/invokedynamic/InvokeDynamicSupport.java | |
+++ b/src/org/jruby/runtime/invokedynamic/InvokeDynamicSupport.java | |
@@ -72,7 +72,7 @@ public class InvokeDynamicSupport { | |
return MethodHandles.convertArguments(guardWithTest, site.type()); | |
} | |
- public static boolean test(CacheEntry entry, ThreadContext context, IRubyObject caller, IRubyObject self, String name) { | |
+ public static boolean test(CacheEntry entry, IRubyObject self) { |
This file contains hidden or 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
public class InvokeDynamicSupport { | |
// Subclass of CallSite to hold the "call type" for Ruby purposes | |
public static class JRubyCallSite extends CallSite { | |
private final CallType callType; | |
public JRubyCallSite(Class caller, String name, MethodType type, CallType callType) { | |
super(caller, name, type); | |
this.callType = callType; | |
} |
This file contains hidden or 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
public class WhileNode extends Node { | |
private final Node conditionNode; | |
private final Node bodyNode; | |
private final boolean evaluateAtStart; | |
public boolean containsNonlocalFlow = false; | |
public WhileNode(ISourcePosition position, Node conditionNode, Node bodyNode) { | |
this(position, conditionNode, bodyNode, true); | |
} |
This file contains hidden or 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
[exec] cc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -DNDEBUG -W -Werror -Wall -Wno-unused -Wno-parentheses -Wundef -I"/Users/headius/projects/jffi/build/jni" -I"/Users/headius/projects/jffi/jni/jffi" -I"/Users/headius/projects/jffi/build/jni/libffi-darwin/include" -I"/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/include" -I"/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/include/darwin" -D_REENTRANT -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DTARGET_RT_MAC_CFM=0 -arch i386 -arch x86_64 -arch ppc -c /Users/headius/projects/jffi/jni/jffi/Array.c -o /Users/headius/projects/jffi/build/jni/jffi/Array.o | |
[exec] In file included from /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/include/jni.h:27, | |
[exec] from /Users/headius/projects/jffi/jni/jffi/Array.c:23: | |
[exec] /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/include/jni_md.h:15:5: error: "__LP64__" is not defined | |
OlderNewer