public class IRRuntimeHelpers extends Object
Constructor and Description |
---|
IRRuntimeHelpers() |
Modifier and Type | Method and Description |
---|---|
static void |
catchUncaughtBreakInLambdas(ThreadContext context,
IRScope scope,
Object exc,
Block.Type blockType) |
static IRubyObject |
handleNonlocalReturn(IRScope scope,
Object rjExc,
Block.Type blockType) |
static IRubyObject |
handlePropagatedBreak(ThreadContext context,
IRScope scope,
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, Object rjExc, Block.Type blockType) throws RuntimeException
RuntimeException
public static IRubyObject initiateBreak(ThreadContext context, IRScope scope, int scopeIdToReturnTo, IRubyObject breakValue, Block.Type blockType) throws RuntimeException
RuntimeException
public static void catchUncaughtBreakInLambdas(ThreadContext context, IRScope scope, Object exc, Block.Type blockType) throws RuntimeException
RuntimeException
public static IRubyObject handlePropagatedBreak(ThreadContext context, IRScope scope, Object bjExc, Block.Type blockType) throws RuntimeException
RuntimeException
Copyright © 2001-2014 JRuby. All Rights Reserved.