Class: RubyVM

Inherits:
Object show all
Defined in:
vm.c

Defined Under Namespace

Classes: Env, InstructionSequence

Constant Summary collapse

USAGE_ANALYSIS_INSN =

VM::USAGE_ANALYSIS_*

:
USAGE_ANALYSIS_REGS =
rb_hash_new()
USAGE_ANALYSIS_INSN_BIGRAM =
rb_hash_new()
OPTS =
opts = rb_ary_new()
INSTRUCTION_NAMES =

VM::InsnNameArray

:

Class Method Summary collapse

Class Method Details

.NSDRObject

:nodoc:



# File 'vm.c'

static VALUE
nsdr(void)
{
VALUE ary = rb_ary_new();
#if HAVE_BACKTRACE
#include <execinfo.h>
#define MAX_NATIVE_TRACE 1024
static void *trace[MAX_NATIVE_TRACE];
int n = backtrace(trace, MAX_NATIVE_TRACE);
char **syms = backtrace_symbols(trace, n);
int i;

if (syms == 0) {
rb_memerror();
}

.SDRObject

:nodoc:



# File 'vm.c'

static VALUE
sdr(void)
{
    rb_vm_bugreport();
    return Qnil;
}