Class: RubyVM
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
-
.NSDR ⇒ Object
:nodoc:.
-
.SDR ⇒ Object
:nodoc:.
Class Method Details
.NSDR ⇒ Object
: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();
}
|