Skip to content

Commit

Permalink
1.0 tag for real
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/tags/jruby-1_0@3855 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
enebo committed Jun 7, 2007
2 parents ca6f5a3 + 8370009 commit 59ffbb4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/org/jruby/internal/runtime/methods/DefaultMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import java.util.ArrayList;
import org.jruby.Ruby;
import org.jruby.RubyArray;
import org.jruby.RubyBinding;
import org.jruby.RubyModule;
import org.jruby.RubyProc;
import org.jruby.ast.ArgsNode;
Expand Down Expand Up @@ -158,11 +157,10 @@ private void runJIT(Ruby runtime, ThreadContext context, String name) {
}

try {
NodeCompilerFactory.confirmNodeIsSafe(argsNode);

callCount++;

if (callCount >= runtime.getInstanceConfig().getJitThreshold()) {
NodeCompilerFactory.confirmNodeIsSafe(argsNode);
// FIXME: Total duplication from DefnNodeCompiler...need to refactor this
final ArrayCallback evalOptionalValue = new ArrayCallback() {
public void nextValue(Compiler context, Object object, int index) {
Expand Down Expand Up @@ -215,10 +213,10 @@ public void compile(Compiler context) {
jitCompiledScript = (Script)sourceClass.newInstance();

if (runtime.getInstanceConfig().isJitLogging()) System.err.println("compiled: " + className + "." + name);
callCount = -1;
}
} catch (Exception e) {
if (runtime.getInstanceConfig().isJitLoggingVerbose()) System.err.println("could not compile: " + className + "." + name + " because of: \"" + e.getMessage() + '"');
} finally {
callCount = -1;
}
}
Expand Down

0 comments on commit 59ffbb4

Please sign in to comment.