Class: RubyVM

Inherits:
Object show all
Defined in:
vm.c

Defined Under Namespace

Classes: Env, InstructionSequence

Constant Summary

USAGE_ANALYSIS_INSN =

USAGE_ANALYSIS_*

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

InsnNameArray

rb_insns_name_array()

Class Method Summary (collapse)

Class Method Details

+ (Object) NSDR

: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();
}

+ (Object) SDR

:nodoc:



# File 'vm.c'

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