package org.jruby.runtime;
The number of calls after which to do a thread event poll
public final boolean is19;
int length = stack.length;
for (int i = 0; i < length; i++) {
int length2 = stack2.length;
for (int i = 0; i < length2; i++) {
Retrieve the runtime associated with this context.
Note that there's no reason to call this method rather than accessing the
runtime field directly.
- Returns:
- the runtime associated with this context
- See also:
runtime
Returns the lastCallStatus.
newFrameStack[i] = new Frame();
if (index + 1 == stack.length) {
if (newSize == 0) newSize = 1;
Find the active Continuation for the given tag. Must be called with an
interned string.
- Parameters:
tag
The interned string to search for- Returns:
- The continuation associated with this tag
if (c.tag == tag) return c;
if (c.tag.equals(tag)) return c;
Frame currentFrame = stack[index - 1];
if (index + 1 == stack.length) {
if (index + 1 == stack.length) {
if (index + 1 == stack.length) {
if (index + 1 == stack.length) {
if (index + 1 == stack.length) {
if (index + 1 == stack.length) {
if (index + 1 == stack.length) {
for (int i = 0; i <= top; i++) {
int newSize = context.backtrace.length * 2;
System.arraycopy(context.backtrace, 0, newBacktrace, 0, context.backtrace.length);
for (int i = context.backtrace.length; i < newSize; i++) {
int index = ++context.backtraceIndex;
BacktraceElement.update(stack[index], method, position);
if (index + 1 == stack.length) {
int index = ++context.backtraceIndex;
BacktraceElement.update(stack[index], method, file, line);
if (index + 1 == stack.length) {
context.backtraceIndex--;
Search the frame stack for the given JumpTarget. Return true if it is
found and false otherwise. Skip the given number of frames before
beginning the search.
- Parameters:
target
The JumpTarget to search forskipFrames
The number of frames to skip before searching- Returns:
for (int i = frameIndex - skipFrames; i >= 0; i--) {
Check if a static scope is present on the call stack.
This is the IR equivalent of isJumpTargetAlive
- Parameters:
s
the static scope to look for- Returns:
- true if it exists
false if not
stack[index] = currentModule;
if (index + 1 == stack.length) {
assert parentIndex != -1 : "Trying to get RubyClass from empty stack";
assert parentIndex != 0 : "Trying to get RubyClass from too-shallow stack";
Used by the evaluator and the compiler to look up a constant by name
Used by the evaluator and the compiler to set a constant by name
This is for a null const decl
Used by the evaluator and the compiler to set a constant by name.
This is for a Colon2 const decl
Used by the evaluator and the compiler to set a constant by name
This is for a Colon2 const decl
Create an Array with backtrace information for Kernel#caller
- Parameters:
runtime
level
- Returns:
- an Array with the backtrace
for (int i = level; i < trace.length; i++) {
Create an Array with backtrace information for a built-in warning
- Parameters:
runtime
- Returns:
- an Array with the backtrace
Create an Array with backtrace information.
- Parameters:
level
nativeException
- Returns:
- an Array with the backtrace
if (traceSize <= 0) return null;
traceFrames = new Frame[traceSize + 1];
traceFrames = new Frame[traceSize];
Create an Array with backtrace information.
- Parameters:
level
nativeException
- Returns:
- an Array with the backtrace
if (javaStackTrace != null && javaStackTrace.length > 0) {
for (int i = 1; i < javaStackTrace.length; i++) {
element = javaStackTrace[i];
if (i + 1 < javaStackTrace.length) buffer.append("\n");
for (int i = 0; i < stackTrace.length; i++) {
if (ssModule == null) ssModule = implClass;
if (implementationClass == null) {
implementationClass = clazz;
if (implementationClass == null) {
implementationClass = clazz;
if (implementationClass == null) {
implementationClass = clazz;
if (implementationClass == null) {
implementationClass = clazz;
if (implementationClass == null) {
implementationClass = clazz;