public class IRRuntimeHelpers
extends java.lang.Object
Constructor and Description |
---|
IRRuntimeHelpers() |
Modifier and Type | Method and Description |
---|---|
static void |
catchUncaughtBreakInLambdas(ThreadContext context,
IRScope scope,
java.lang.Object exc,
Block.Type blockType) |
static IRubyObject |
handleNonlocalReturn(IRScope scope,
java.lang.Object rjExc,
Block.Type blockType) |
static IRubyObject |
handlePropagatedBreak(ThreadContext context,
IRScope scope,
java.lang.Object bjExc,
Block.Type blockType) |
static IRubyObject |
initiateBreak(ThreadContext context,
IRScope scope,
int scopeIdToReturnTo,
IRubyObject breakValue,
Block.Type blockType) |
static void |
initiateNonLocalReturn(ThreadContext context,
IRScope scope,
IRMethod methodToReturnFrom,
IRubyObject returnValue) |
static boolean |
inLambda(Block.Type blockType) |
static boolean |
inNonMethodBodyLambda(IRScope scope,
Block.Type blockType) |
static boolean |
inProc(Block.Type blockType) |
static boolean |
inProfileMode() |
static boolean |
isDebug() |
public static boolean inProfileMode()
public static boolean isDebug()
public static boolean inNonMethodBodyLambda(IRScope scope, Block.Type blockType)
public static boolean inLambda(Block.Type blockType)
public static boolean inProc(Block.Type blockType)
public static void initiateNonLocalReturn(ThreadContext context, IRScope scope, IRMethod methodToReturnFrom, IRubyObject returnValue)
public static IRubyObject handleNonlocalReturn(IRScope scope, java.lang.Object rjExc, Block.Type blockType) throws java.lang.RuntimeException
java.lang.RuntimeException
public static IRubyObject initiateBreak(ThreadContext context, IRScope scope, int scopeIdToReturnTo, IRubyObject breakValue, Block.Type blockType) throws java.lang.RuntimeException
java.lang.RuntimeException
public static void catchUncaughtBreakInLambdas(ThreadContext context, IRScope scope, java.lang.Object exc, Block.Type blockType) throws java.lang.RuntimeException
java.lang.RuntimeException
public static IRubyObject handlePropagatedBreak(ThreadContext context, IRScope scope, java.lang.Object bjExc, Block.Type blockType) throws java.lang.RuntimeException
java.lang.RuntimeException
Copyright © 2002-2009 JRuby Team. All Rights Reserved.