Class: RubyVM
Defined Under Namespace
Classes: Env, InstructionSequence
Constant Summary collapse
- 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
-
.NSDR ⇒ Object
:nodoc:.
-
.SDR ⇒ Object
:nodoc:.
Class Method Details
.NSDR ⇒ Object
:nodoc:
|
# File 'vm.c'
/* :nodoc: */
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();
}
for (i=0; i<n; i++) {
rb_ary_push(ary, rb_str_new2(syms[i]));
}
free(syms); /* OK */
#endif
return ary;
}
|
.SDR ⇒ Object
:nodoc:
|
# File 'vm.c'
/* :nodoc: */
static VALUE
sdr(void)
{
rb_vm_bugreport();
return Qnil;
}
|