Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Enumerations | |
enum | vm_regan_regtype { VM_REGAN_PC = 0, VM_REGAN_SP = 1, VM_REGAN_EP = 2, VM_REGAN_CFP = 3, VM_REGAN_SELF = 4, VM_REGAN_ISEQ = 5 } |
enum | vm_regan_acttype { VM_REGAN_ACT_GET = 0, VM_REGAN_ACT_SET = 1 } |
Variables | |
RUBY_SYMBOL_EXPORT_BEGIN VALUE | ruby_vm_const_missing_count |
rb_serial_t | ruby_vm_global_method_state |
rb_serial_t | ruby_vm_global_constant_state |
rb_serial_t | ruby_vm_class_serial |
Definition at line 88 of file vm_insnhelper.h.
#define CALL_METHOD | ( | calling, | |
ci, | |||
cc | |||
) |
Definition at line 131 of file vm_insnhelper.h.
#define CALL_SIMPLE_METHOD | ( | recv_ | ) |
Definition at line 183 of file vm_insnhelper.h.
#define CI_SET_FASTPATH | ( | cc, | |
func, | |||
enabled | |||
) |
Definition at line 151 of file vm_insnhelper.h.
#define COLLECT_USAGE_INSN | ( | insn | ) | /* none */ |
Definition at line 30 of file vm_insnhelper.h.
#define COLLECT_USAGE_OPERAND | ( | insn, | |
n, | |||
op | |||
) | /* none */ |
Definition at line 31 of file vm_insnhelper.h.
#define COLLECT_USAGE_REGISTER | ( | reg, | |
s | |||
) | /* none */ |
Definition at line 32 of file vm_insnhelper.h.
#define COLLECT_USAGE_REGISTER_HELPER | ( | a, | |
b, | |||
v | |||
) | (v) |
Definition at line 80 of file vm_insnhelper.h.
#define DEC_SP | ( | x | ) | (VM_REG_SP -= (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x)))) |
Definition at line 101 of file vm_insnhelper.h.
#define FIXNUM_2_P | ( | a, | |
b | |||
) | ((a) & (b) & 1) |
Definition at line 170 of file vm_insnhelper.h.
#define FLOAT_HEAP_P | ( | x | ) | (!SPECIAL_CONST_P(x) && RBASIC_CLASS(x) == rb_cFloat) |
Definition at line 176 of file vm_insnhelper.h.
#define FLOAT_INSTANCE_P | ( | x | ) | (FLONUM_P(x) || FLOAT_HEAP_P(x)) |
Definition at line 177 of file vm_insnhelper.h.
#define FLONUM_2_P | ( | a, | |
b | |||
) | 0 |
Definition at line 174 of file vm_insnhelper.h.
#define GET_BLOCK_HANDLER | ( | ) | (GET_LEP()[VM_ENV_DATA_INDEX_SPECVAL]) |
Definition at line 158 of file vm_insnhelper.h.
#define GET_CFP | ( | ) | (COLLECT_USAGE_REGISTER_HELPER(CFP, GET, VM_REG_CFP)) |
Definition at line 92 of file vm_insnhelper.h.
Definition at line 119 of file vm_insnhelper.h.
#define GET_CURRENT_INSN | ( | ) | (*GET_PC()) |
Definition at line 86 of file vm_insnhelper.h.
#define GET_EP | ( | ) | (COLLECT_USAGE_REGISTER_HELPER(EP, GET, VM_REG_EP)) |
Definition at line 93 of file vm_insnhelper.h.
#define GET_GLOBAL | ( | entry | ) | rb_gvar_get((struct rb_global_entry*)(entry)) |
Definition at line 116 of file vm_insnhelper.h.
#define GET_GLOBAL_CONSTANT_STATE | ( | ) | (ruby_vm_global_constant_state) |
Definition at line 194 of file vm_insnhelper.h.
#define GET_GLOBAL_METHOD_STATE | ( | ) | (ruby_vm_global_method_state) |
Definition at line 192 of file vm_insnhelper.h.
#define GET_ISEQ | ( | ) | (GET_CFP()->iseq) |
Definition at line 108 of file vm_insnhelper.h.
#define GET_LEP | ( | ) | (VM_EP_LEP(GET_EP())) |
Definition at line 95 of file vm_insnhelper.h.
#define GET_OPERAND | ( | n | ) | (GET_PC()[(n)]) |
Definition at line 87 of file vm_insnhelper.h.
#define GET_PC | ( | ) | (COLLECT_USAGE_REGISTER_HELPER(PC, GET, VM_REG_PC)) |
Definition at line 84 of file vm_insnhelper.h.
#define GET_PREV_EP | ( | ep | ) | ((VALUE *)((ep)[VM_ENV_DATA_INDEX_SPECVAL] & ~0x03)) |
Definition at line 114 of file vm_insnhelper.h.
#define GET_SELF | ( | ) | (COLLECT_USAGE_REGISTER_HELPER(SELF, GET, GET_CFP()->self)) |
Definition at line 125 of file vm_insnhelper.h.
Referenced by rb_vm_opt_struct_aref(), and rb_vm_opt_struct_aset().
#define GET_SP | ( | ) | (COLLECT_USAGE_REGISTER_HELPER(SP, GET, VM_REG_SP)) |
Definition at line 98 of file vm_insnhelper.h.
#define GET_SP_COUNT | ( | ) | (VM_REG_SP - th->ec.vm_stack) |
Definition at line 105 of file vm_insnhelper.h.
#define GET_TOS | ( | ) | (tos) /* dummy */ |
Definition at line 45 of file vm_insnhelper.h.
#define INC_GLOBAL_CONSTANT_STATE | ( | ) | (++ruby_vm_global_constant_state) |
Definition at line 195 of file vm_insnhelper.h.
Referenced by rb_clear_constant_cache().
#define INC_GLOBAL_METHOD_STATE | ( | ) | (++ruby_vm_global_method_state) |
Definition at line 193 of file vm_insnhelper.h.
Referenced by rb_clear_method_cache_by_class().
#define INC_SP | ( | x | ) | (VM_REG_SP += (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x)))) |
Definition at line 100 of file vm_insnhelper.h.
#define JUMP | ( | dst | ) | (VM_REG_PC += (dst)) |
Definition at line 89 of file vm_insnhelper.h.
#define NEXT_CLASS_SERIAL | ( | ) | (++ruby_vm_class_serial) |
Definition at line 191 of file vm_insnhelper.h.
Referenced by rb_next_class_serial().
#define OPT_CALL_FASTPATH 1 |
Definition at line 147 of file vm_insnhelper.h.
#define POP | ( | ) | (DEC_SP(1)) |
Definition at line 42 of file vm_insnhelper.h.
#define POPN | ( | n | ) | (DEC_SP(n)) |
Definition at line 41 of file vm_insnhelper.h.
Definition at line 39 of file vm_insnhelper.h.
#define REG_A reg_a |
Definition at line 60 of file vm_insnhelper.h.
#define REG_B reg_b |
Definition at line 61 of file vm_insnhelper.h.
#define RESTORE_REGS | ( | ) |
Definition at line 56 of file vm_insnhelper.h.
#define SET_EP | ( | x | ) | (VM_REG_EP = (COLLECT_USAGE_REGISTER_HELPER(EP, SET, (x)))) |
Definition at line 94 of file vm_insnhelper.h.
#define SET_GLOBAL | ( | entry, | |
val | |||
) | rb_gvar_set((struct rb_global_entry*)(entry), (val)) |
Definition at line 117 of file vm_insnhelper.h.
#define SET_PC | ( | x | ) | (VM_REG_PC = (COLLECT_USAGE_REGISTER_HELPER(PC, SET, (x)))) |
Definition at line 85 of file vm_insnhelper.h.
#define SET_SP | ( | x | ) | (VM_REG_SP = (COLLECT_USAGE_REGISTER_HELPER(SP, SET, (x)))) |
Definition at line 99 of file vm_insnhelper.h.
#define SET_SV | ( | x | ) | (*GET_SP() = (x)) |
Definition at line 102 of file vm_insnhelper.h.
#define STACK_ADDR_FROM_TOP | ( | n | ) | (GET_SP()-(n)) |
Definition at line 43 of file vm_insnhelper.h.
#define TOPN | ( | n | ) | (*(GET_SP()-(n)-1)) |
Definition at line 40 of file vm_insnhelper.h.
Referenced by rb_vm_opt_struct_aref(), and rb_vm_opt_struct_aset().
#define USE_IC_FOR_SPECIALIZED_METHOD 1 |
Definition at line 180 of file vm_insnhelper.h.
#define VM_REG_CFP (reg_cfp) |
Definition at line 51 of file vm_insnhelper.h.
#define VM_REG_EP (VM_REG_CFP->ep) |
Definition at line 54 of file vm_insnhelper.h.
#define VM_REG_PC (VM_REG_CFP->pc) |
Definition at line 52 of file vm_insnhelper.h.
#define VM_REG_SP (VM_REG_CFP->sp) |
Definition at line 53 of file vm_insnhelper.h.
enum vm_regan_acttype |
Enumerator | |
---|---|
VM_REGAN_ACT_GET | |
VM_REGAN_ACT_SET |
Definition at line 71 of file vm_insnhelper.h.
enum vm_regan_regtype |
Enumerator | |
---|---|
VM_REGAN_PC | |
VM_REGAN_SP | |
VM_REGAN_EP | |
VM_REGAN_CFP | |
VM_REGAN_SELF | |
VM_REGAN_ISEQ |
Definition at line 63 of file vm_insnhelper.h.
rb_serial_t ruby_vm_class_serial |
RUBY_SYMBOL_EXPORT_BEGIN VALUE ruby_vm_const_missing_count |
rb_serial_t ruby_vm_global_constant_state |
rb_serial_t ruby_vm_global_method_state |