Ruby
1.9.3p551(2014-11-13revision48407)
|
Go to the source code of this file.
Enumerations | |
enum | { BOP_PLUS, BOP_MINUS, BOP_MULT, BOP_DIV, BOP_MOD, BOP_EQ, BOP_EQQ, BOP_LT, BOP_LE, BOP_LTLT, BOP_AREF, BOP_ASET, BOP_LENGTH, BOP_SIZE, BOP_SUCC, BOP_GT, BOP_GE, BOP_NOT, BOP_NEQ, BOP_LAST_ } |
Functions | |
static void | vm_clear_all_cache (void) |
Variables | |
char | ruby_vm_redefined_flag [BOP_LAST_] |
VALUE | ruby_vm_const_missing_count |
static VALUE | ruby_vm_global_state_version = 1 |
#define BASIC_OP_UNREDEFINED_P | ( | op | ) | (LIKELY(ruby_vm_redefined_flag[(op)] == 0)) |
Definition at line 188 of file vm_insnhelper.h.
Referenced by opt_eq_func().
Definition at line 162 of file vm_insnhelper.h.
#define CALL_SIMPLE_METHOD | ( | num, | |
id, | |||
recv | |||
) |
Definition at line 197 of file vm_insnhelper.h.
#define COPY_CREF | ( | c1, | |
c2 | |||
) |
Definition at line 152 of file vm_insnhelper.h.
Referenced by vm_define_method().
#define DEC_SP | ( | x | ) | (REG_SP -= (USAGE_ANALYSIS_REGISTER_HELPER(1, 1, (x)))) |
Definition at line 122 of file vm_insnhelper.h.
Referenced by vm_call_method().
Definition at line 187 of file vm_insnhelper.h.
Referenced by opt_eq_func().
#define GET_BLOCK_PTR | ( | ) |
Definition at line 173 of file vm_insnhelper.h.
Referenced by vm_invoke_block().
#define GET_CFP | ( | ) | (USAGE_ANALYSIS_REGISTER_HELPER(2, 0, REG_CFP)) |
Definition at line 112 of file vm_insnhelper.h.
Referenced by vm_invoke_block(), vm_search_superclass(), and vm_throw().
Definition at line 140 of file vm_insnhelper.h.
#define GET_CURRENT_INSN | ( | ) | (*GET_PC()) |
Definition at line 104 of file vm_insnhelper.h.
#define GET_DFP | ( | ) | (USAGE_ANALYSIS_REGISTER_HELPER(4, 0, REG_DFP)) |
Definition at line 115 of file vm_insnhelper.h.
Referenced by vm_throw().
#define GET_GLOBAL | ( | entry | ) | rb_gvar_get((struct rb_global_entry*)(entry)) |
Definition at line 137 of file vm_insnhelper.h.
#define GET_ISEQ | ( | ) | (GET_CFP()->iseq) |
Definition at line 129 of file vm_insnhelper.h.
Referenced by vm_invoke_block(), and vm_throw().
#define GET_LFP | ( | ) | (USAGE_ANALYSIS_REGISTER_HELPER(3, 0, REG_LFP)) |
Definition at line 113 of file vm_insnhelper.h.
Referenced by vm_throw().
Definition at line 105 of file vm_insnhelper.h.
#define GET_PC | ( | ) | (USAGE_ANALYSIS_REGISTER_HELPER(0, 0, REG_PC)) |
Definition at line 102 of file vm_insnhelper.h.
Definition at line 108 of file vm_insnhelper.h.
#define GET_PREV_DFP | ( | dfp | ) | ((VALUE *)((dfp)[0] & ~0x03)) |
Definition at line 135 of file vm_insnhelper.h.
Referenced by vm_get_cref0(), and vm_search_superclass().
#define GET_SELF | ( | ) | (USAGE_ANALYSIS_REGISTER_HELPER(5, 0, GET_CFP()->self)) |
Definition at line 146 of file vm_insnhelper.h.
#define GET_SP | ( | ) | (USAGE_ANALYSIS_REGISTER_HELPER(1, 0, REG_SP)) |
Definition at line 119 of file vm_insnhelper.h.
Referenced by vm_invoke_block().
Definition at line 126 of file vm_insnhelper.h.
#define GET_TOS | ( | ) | (tos) /* dummy */ |
Definition at line 75 of file vm_insnhelper.h.
#define GET_VM_STATE_VERSION | ( | ) | (ruby_vm_global_state_version) |
Definition at line 213 of file vm_insnhelper.h.
Referenced by rb_method_entry(), rb_method_entry_get_without_cache(), vm_getivar(), vm_method_search(), and vm_setivar().
Definition at line 189 of file vm_insnhelper.h.
Referenced by opt_eq_func().
#define INC_SP | ( | x | ) | (REG_SP += (USAGE_ANALYSIS_REGISTER_HELPER(1, 1, (x)))) |
Definition at line 121 of file vm_insnhelper.h.
#define INC_VM_STATE_VERSION | ( | ) |
Definition at line 214 of file vm_insnhelper.h.
Referenced by m_core_undef_method(), rb_vm_change_state(), and vm_define_method().
Definition at line 109 of file vm_insnhelper.h.
#define POP | ( | ) | (DEC_SP(1)) |
Definition at line 72 of file vm_insnhelper.h.
Definition at line 71 of file vm_insnhelper.h.
Referenced by vm_invoke_block(), and vm_method_missing_args().
Definition at line 69 of file vm_insnhelper.h.
#define REG_A reg_a |
Definition at line 91 of file vm_insnhelper.h.
#define REG_B reg_b |
Definition at line 92 of file vm_insnhelper.h.
#define REG_CFP (reg_cfp) |
Definition at line 81 of file vm_insnhelper.h.
#define REG_DFP (REG_CFP->dfp) |
Definition at line 85 of file vm_insnhelper.h.
#define REG_LFP (REG_CFP->lfp) |
Definition at line 84 of file vm_insnhelper.h.
#define REG_PC (REG_CFP->pc) |
Definition at line 82 of file vm_insnhelper.h.
#define REG_SP (REG_CFP->sp) |
Definition at line 83 of file vm_insnhelper.h.
#define RESTORE_REGS | ( | ) |
Definition at line 87 of file vm_insnhelper.h.
#define SET_DFP | ( | x | ) | (REG_DFP = (USAGE_ANALYSIS_REGISTER_HELPER(4, 1, (x)))) |
Definition at line 116 of file vm_insnhelper.h.
#define SET_GLOBAL | ( | entry, | |
val | |||
) | rb_gvar_set((struct rb_global_entry*)(entry), (val)) |
Definition at line 138 of file vm_insnhelper.h.
#define SET_LFP | ( | x | ) | (REG_LFP = (USAGE_ANALYSIS_REGISTER_HELPER(3, 1, (x)))) |
Definition at line 114 of file vm_insnhelper.h.
#define SET_PC | ( | x | ) | (REG_PC = (USAGE_ANALYSIS_REGISTER_HELPER(0, 1, (x)))) |
Definition at line 103 of file vm_insnhelper.h.
#define SET_SP | ( | x | ) | (REG_SP = (USAGE_ANALYSIS_REGISTER_HELPER(1, 1, (x)))) |
Definition at line 120 of file vm_insnhelper.h.
Referenced by vm_invoke_block().
#define SET_SV | ( | x | ) | (*GET_SP() = (x)) |
Definition at line 123 of file vm_insnhelper.h.
Definition at line 73 of file vm_insnhelper.h.
Referenced by vm_invoke_block(), and vm_method_missing_args().
Definition at line 70 of file vm_insnhelper.h.
Referenced by vm_call_method().
Definition at line 98 of file vm_insnhelper.h.
#define USE_IC_FOR_SPECIALIZED_METHOD 1 |
Definition at line 192 of file vm_insnhelper.h.
#define VMDEBUG 0 |
VM Debug Level.
debug level: 0: no debug output 1: show instruction name 2: show stack frame when control stack frame is changed 3: show stack status 4: show register 5: 10: gc check
Definition at line 29 of file vm_insnhelper.h.
Referenced by rb_vm_make_proc(), vm_pop_frame(), and vm_push_frame().
anonymous enum |
Enumerator | |
---|---|
BOP_PLUS | |
BOP_MINUS | |
BOP_MULT | |
BOP_DIV | |
BOP_MOD | |
BOP_EQ | |
BOP_EQQ | |
BOP_LT | |
BOP_LE | |
BOP_LTLT | |
BOP_AREF | |
BOP_ASET | |
BOP_LENGTH | |
BOP_SIZE | |
BOP_SUCC | |
BOP_GT | |
BOP_GE | |
BOP_NOT | |
BOP_NEQ | |
BOP_LAST_ |
Definition at line 37 of file vm_insnhelper.h.
VALUE ruby_vm_const_missing_count |
Definition at line 40 of file vm.c.
Referenced by rb_vm_inc_const_missing_count().
|
static |
Definition at line 211 of file vm_insnhelper.h.
Referenced by vm_clear_all_cache().
char ruby_vm_redefined_flag[BOP_LAST_] |
Definition at line 42 of file vm.c.
Referenced by rb_vm_check_redefinition_opt_method().