Ruby  2.0.0p247(2013-06-27revision41674)
Defines | Functions
vm_insnhelper.c File Reference
#include "insns.inc"
#include <math.h>
#include "constant.h"
#include "internal.h"
#include "probes.h"
#include "probes_helper.h"

Go to the source code of this file.

Defines

#define INLINE   inline
#define USE_IC_FOR_IVAR   1
#define CHECK_CMP_NAN(a, b)   /* do nothing */
#define SAVE_RESTORE_CI(expr, ci)
#define VM_CALLEE_SETUP_ARG(th, ci, iseq, argv, is_lambda)
#define VM_PROFILE   0
#define VM_PROFILE_UP(x)
#define VM_PROFILE_ATEXIT()

Functions

static rb_control_frame_tvm_get_ruby_level_caller_cfp (rb_thread_t *th, rb_control_frame_t *cfp)
static void vm_stackoverflow (void)
static rb_control_frame_tvm_push_frame (rb_thread_t *th, const rb_iseq_t *iseq, VALUE type, VALUE self, VALUE klass, VALUE specval, const VALUE *pc, VALUE *sp, int local_size, const rb_method_entry_t *me)
static void vm_pop_frame (rb_thread_t *th)
static VALUE rb_arg_error_new (int argc, int min, int max)
 NORETURN (static void argument_error(const rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc))
static void argument_error (const rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc)
 NORETURN (static void unknown_keyword_error(const rb_iseq_t *iseq, VALUE hash))
static void unknown_keyword_error (const rb_iseq_t *iseq, VALUE hash)
void rb_error_arity (int argc, int min, int max)
static NODElep_svar_place (rb_thread_t *th, VALUE *lep)
static VALUE lep_svar_get (rb_thread_t *th, VALUE *lep, rb_num_t key)
static void lep_svar_set (rb_thread_t *th, VALUE *lep, rb_num_t key, VALUE val)
static VALUE vm_getspecial (rb_thread_t *th, VALUE *lep, rb_num_t key, rb_num_t type)
static NODEvm_get_cref0 (const rb_iseq_t *iseq, const VALUE *ep)
NODErb_vm_get_cref (const rb_iseq_t *iseq, const VALUE *ep)
static NODEvm_cref_push (rb_thread_t *th, VALUE klass, int noex, rb_block_t *blockptr)
static VALUE vm_get_cbase (const rb_iseq_t *iseq, const VALUE *ep)
static VALUE vm_get_const_base (const rb_iseq_t *iseq, const VALUE *ep)
static void vm_check_if_namespace (VALUE klass)
static VALUE vm_get_iclass (rb_control_frame_t *cfp, VALUE klass)
static VALUE vm_get_ev_const (rb_thread_t *th, const rb_iseq_t *iseq, VALUE orig_klass, ID id, int is_defined)
static VALUE vm_get_cvar_base (NODE *cref, rb_control_frame_t *cfp)
static VALUE vm_search_const_defined_class (const VALUE cbase, ID id)
static VALUE vm_getivar (VALUE obj, ID id, IC ic, rb_call_info_t *ci, int is_attr)
static VALUE vm_setivar (VALUE obj, ID id, VALUE val, IC ic, rb_call_info_t *ci, int is_attr)
static VALUE vm_getinstancevariable (VALUE obj, ID id, IC ic)
static void vm_setinstancevariable (VALUE obj, ID id, VALUE val, IC ic)
static VALUE vm_throw (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_num_t throw_state, VALUE throwobj)
static void vm_expandarray (rb_control_frame_t *cfp, VALUE ary, rb_num_t num, int flag)
static VALUE vm_call_general (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static void vm_search_method (rb_call_info_t *ci, VALUE recv)
static int check_cfunc (const rb_method_entry_t *me, VALUE(*func)())
static VALUE opt_eq_func (VALUE recv, VALUE obj, CALL_INFO ci)
static VALUE check_match (VALUE pattern, VALUE target, enum vm_check_match_type type)
static VALUE double_cmp_lt (double a, double b)
static VALUE double_cmp_le (double a, double b)
static VALUE double_cmp_gt (double a, double b)
static VALUE double_cmp_ge (double a, double b)
static VALUEvm_base_ptr (rb_control_frame_t *cfp)
static void vm_caller_setup_args (const rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static int separate_symbol (st_data_t key, st_data_t value, st_data_t arg)
static VALUE extract_keywords (VALUE *orighash)
static int vm_callee_setup_keyword_arg (const rb_iseq_t *iseq, int argc, int m, VALUE *orig_argv, VALUE *kwd)
static int vm_callee_setup_arg_complex (rb_thread_t *th, rb_call_info_t *ci, const rb_iseq_t *iseq, VALUE *orig_argv)
static VALUE vm_call_iseq_setup_2 (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_iseq_setup_normal (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_iseq_setup_tailcall (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_iseq_setup (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE call_cfunc_m2 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_m1 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_0 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_1 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_2 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_3 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_4 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_5 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_6 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_7 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_8 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_9 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_10 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_11 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_12 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_13 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_14 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE call_cfunc_15 (VALUE(*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv)
static VALUE vm_call_cfunc_with_frame (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static VALUE vm_call_cfunc (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static VALUE vm_call_ivar (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_attrset (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_bmethod_body (rb_thread_t *th, rb_call_info_t *ci, const VALUE *argv)
static VALUE vm_call_bmethod (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_method (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_opt_send (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static VALUE vm_call_opt_call (rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
static VALUE vm_call_method_missing (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static VALUE find_refinement (VALUE refinements, VALUE klass)
static int rb_method_definition_eq (const rb_method_definition_t *d1, const rb_method_definition_t *d2)
static VALUE vm_call_super_method (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static rb_control_frame_tcurrent_method_entry (rb_thread_t *th, rb_control_frame_t *cfp)
static VALUE vm_search_normal_superclass (VALUE klass)
static void vm_super_outside (void)
static int vm_search_superclass (rb_control_frame_t *reg_cfp, rb_iseq_t *iseq, VALUE sigval, rb_call_info_t *ci)
static void vm_search_super_method (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)
static int block_proc_is_lambda (const VALUE procval)
static VALUE vm_yield_with_cfunc (rb_thread_t *th, const rb_block_t *block, VALUE self, int argc, const VALUE *argv, const rb_block_t *blockargptr)
static int vm_yield_setup_block_args_complex (rb_thread_t *th, const rb_iseq_t *iseq, int argc, VALUE *argv)
static int vm_yield_setup_block_args (rb_thread_t *th, const rb_iseq_t *iseq, int orig_argc, VALUE *argv, const rb_block_t *blockptr)
static int vm_yield_setup_args (rb_thread_t *const th, const rb_iseq_t *iseq, int argc, VALUE *argv, const rb_block_t *blockptr, int lambda)
static VALUE vm_invoke_block (rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci)

Define Documentation

#define CHECK_CMP_NAN (   a,
 
)    /* do nothing */

Definition at line 944 of file vm_insnhelper.c.

Referenced by double_cmp_ge(), double_cmp_gt(), double_cmp_le(), and double_cmp_lt().

#define INLINE   inline

Definition at line 22 of file vm_insnhelper.c.

#define SAVE_RESTORE_CI (   expr,
  ci 
)
Value:
do { \
    int saved_argc = (ci)->argc; rb_block_t *saved_blockptr = (ci)->blockptr; /* save */ \
    expr; \
    (ci)->argc = saved_argc; (ci)->blockptr = saved_blockptr; /* restore */ \
} while (0)

Referenced by vm_caller_setup_args().

#define USE_IC_FOR_IVAR   1

Definition at line 496 of file vm_insnhelper.c.

#define VM_CALLEE_SETUP_ARG (   th,
  ci,
  iseq,
  argv,
  is_lambda 
)
Value:
if (LIKELY((iseq)->arg_simple & 0x01)) { \
        /* simple check */ \
        if ((ci)->argc != (iseq)->argc) { \
            argument_error((iseq), ((ci)->argc), (iseq)->argc, (iseq)->argc); \
        } \
        (ci)->aux.opt_pc = 0; \
        CI_SET_FASTPATH((ci), UNLIKELY((ci)->flag & VM_CALL_TAILCALL) ? vm_call_iseq_setup_tailcall : vm_call_iseq_setup_normal, !(is_lambda) && !((ci)->me->flag & NOEX_PROTECTED)); \
    } \
    else { \
        (ci)->aux.opt_pc = vm_callee_setup_arg_complex((th), (ci), (iseq), (argv)); \
    }

Definition at line 1223 of file vm_insnhelper.c.

Referenced by vm_call_iseq_setup(), and vm_yield_setup_args().

#define VM_PROFILE   0

Definition at line 1425 of file vm_insnhelper.c.

#define VM_PROFILE_ATEXIT ( )

Definition at line 1442 of file vm_insnhelper.c.

Referenced by Init_VM().

#define VM_PROFILE_UP (   x)

Definition at line 1441 of file vm_insnhelper.c.

Referenced by vm_call0_cfunc_with_frame(), and vm_call_cfunc_with_frame().


Function Documentation

static void argument_error ( const rb_iseq_t iseq,
int  miss_argc,
int  min_argc,
int  max_argc 
) [static]
static int block_proc_is_lambda ( const VALUE  procval) [inline, static]

Definition at line 2035 of file vm_insnhelper.c.

References GetProcPtr, and rb_proc_t::is_lambda.

Referenced by invoke_block_from_c(), vm_invoke_block(), and vm_yield_with_cfunc().

static VALUE call_cfunc_0 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1329 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_1 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1335 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_10 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1389 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_11 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1395 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_12 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1401 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_13 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1407 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_14 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1413 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_15 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1419 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_2 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1341 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_3 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1347 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_4 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1353 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_5 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1359 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_6 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1365 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_7 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1371 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_8 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1377 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_9 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1383 of file vm_insnhelper.c.

References func.

static VALUE call_cfunc_m1 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1323 of file vm_insnhelper.c.

References argc, argv, and func.

static VALUE call_cfunc_m2 ( VALUE(*)(ANYARGS func,
VALUE  recv,
int  argc,
const VALUE argv 
) [static]

Definition at line 1317 of file vm_insnhelper.c.

References func, and rb_ary_new4().

static int check_cfunc ( const rb_method_entry_t me,
VALUE(*)()  func 
) [inline, static]
static VALUE check_match ( VALUE  pattern,
VALUE  target,
enum vm_check_match_type  type 
) [static]
static VALUE double_cmp_ge ( double  a,
double  b 
) [inline, static]

Definition at line 969 of file vm_insnhelper.c.

References CHECK_CMP_NAN, Qfalse, and Qtrue.

static VALUE double_cmp_gt ( double  a,
double  b 
) [inline, static]

Definition at line 962 of file vm_insnhelper.c.

References CHECK_CMP_NAN, Qfalse, and Qtrue.

static VALUE double_cmp_le ( double  a,
double  b 
) [inline, static]

Definition at line 955 of file vm_insnhelper.c.

References CHECK_CMP_NAN, Qfalse, and Qtrue.

static VALUE double_cmp_lt ( double  a,
double  b 
) [inline, static]

Definition at line 948 of file vm_insnhelper.c.

References CHECK_CMP_NAN, Qfalse, and Qtrue.

static VALUE extract_keywords ( VALUE orighash) [static]

Definition at line 1079 of file vm_insnhelper.c.

References hash(), RHASH_EMPTY_P, RHASH_TBL, separate_symbol(), and st_foreach().

Referenced by vm_callee_setup_keyword_arg().

static VALUE find_refinement ( VALUE  refinements,
VALUE  klass 
) [inline, static]

Definition at line 1698 of file vm_insnhelper.c.

References NIL_P, Qnil, and rb_hash_lookup.

Referenced by rb_resolve_refined_method(), and vm_call_method().

static VALUE lep_svar_get ( rb_thread_t th,
VALUE lep,
rb_num_t  key 
) [static]
static NODE* lep_svar_place ( rb_thread_t th,
VALUE lep 
) [inline, static]

Definition at line 172 of file vm_insnhelper.c.

References NEW_IF, NIL_P, Qnil, rb_thread_struct::root_lep, and rb_thread_struct::root_svar.

Referenced by lep_svar_get(), and lep_svar_set().

static void lep_svar_set ( rb_thread_t th,
VALUE lep,
rb_num_t  key,
VALUE  val 
) [static]
NORETURN ( static void   argument_errorconst rb_iseq_t *iseq, int miss_argc, int min_argc, int max_argc)
NORETURN ( static void   unknown_keyword_errorconst rb_iseq_t *iseq, VALUE hash)
static VALUE opt_eq_func ( VALUE  recv,
VALUE  obj,
CALL_INFO  ci 
) [inline, static]
static VALUE rb_arg_error_new ( int  argc,
int  min,
int  max 
) [inline, static]

Definition at line 110 of file vm_insnhelper.c.

References rb_eArgError, rb_exc_new3(), rb_sprintf(), and UNLIMITED_ARGUMENTS.

Referenced by argument_error(), and rb_error_arity().

void rb_error_arity ( int  argc,
int  min,
int  max 
)

Referenced by vm_call_method().

NODE* rb_vm_get_cref ( const rb_iseq_t iseq,
const VALUE ep 
)
static int separate_symbol ( st_data_t  key,
st_data_t  value,
st_data_t  arg 
) [static]

Definition at line 1068 of file vm_insnhelper.c.

References rb_hash_aset(), rb_hash_new(), ST_CONTINUE, and SYMBOL_P.

Referenced by extract_keywords().

static void unknown_keyword_error ( const rb_iseq_t iseq,
VALUE  hash 
) [static]
static VALUE* vm_base_ptr ( rb_control_frame_t cfp) [static]
static VALUE vm_call_attrset ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_bmethod ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_bmethod_body ( rb_thread_t th,
rb_call_info_t ci,
const VALUE argv 
) [inline, static]
static VALUE vm_call_cfunc ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]

Definition at line 1557 of file vm_insnhelper.c.

References vm_call_cfunc_with_frame().

Referenced by vm_call_method().

static VALUE vm_call_cfunc_with_frame ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_general ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]

Definition at line 1900 of file vm_insnhelper.c.

References vm_call_method().

Referenced by vm_search_method().

static VALUE vm_call_iseq_setup ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_iseq_setup_2 ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_iseq_setup_normal ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [inline, static]
static VALUE vm_call_iseq_setup_tailcall ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [inline, static]
static VALUE vm_call_ivar ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_method ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [inline, static]

Definition at line 1734 of file vm_insnhelper.c.

References rb_call_info_struct::argc, rb_call_info_struct::aux, rb_method_definition_struct::body, rb_call_info_struct::call, CI_SET_FASTPATH, current_method_entry(), rb_method_entry_struct::def, rb_call_info_struct::defined_class, rb_control_frame_struct::ep, find_refinement(), rb_method_entry_struct::flag, rb_call_info_struct::flag, rb_call_info_struct::index, rb_control_frame_struct::iseq, rb_method_entry_struct::klass, rb_call_info_struct::me, rb_control_frame_struct::me, rb_call_info_struct::mid, rb_call_info_struct::missing_reason, NIL_P, NOEX_MASK, NOEX_PRIVATE, NOEX_PROTECTED, NOEX_SAFE, NOEX_SUPER, NOEX_VCALL, rb_method_definition_struct::optimize_type, rb_method_definition_struct::orig_me, Qnil, rb_bug(), rb_check_arity, rb_eSecurityError, rb_id2name(), rb_method_definition_eq(), rb_method_entry(), rb_obj_is_kind_of(), rb_raise(), rb_raise_method_missing(), rb_vm_get_cref(), RCLASS_SUPER, rb_call_info_struct::recv, rb_thread_struct::safe_level, rb_control_frame_struct::self, STACK_ADDR_FROM_TOP, stat, rb_method_definition_struct::type, VM_CALL_ARGS_SPLAT, vm_call_attrset(), vm_call_bmethod(), vm_call_cfunc(), VM_CALL_FCALL, vm_call_iseq_setup(), vm_call_ivar(), vm_call_method_missing(), vm_call_opt_call(), VM_CALL_OPT_SEND, vm_call_opt_send(), VM_CALL_SUPER, vm_call_super_method(), VM_CALL_VCALL, VM_METHOD_TYPE_ATTRSET, VM_METHOD_TYPE_BMETHOD, VM_METHOD_TYPE_CFUNC, VM_METHOD_TYPE_ISEQ, VM_METHOD_TYPE_IVAR, VM_METHOD_TYPE_MISSING, VM_METHOD_TYPE_NOTIMPLEMENTED, VM_METHOD_TYPE_OPTIMIZED, VM_METHOD_TYPE_REFINED, VM_METHOD_TYPE_UNDEF, and VM_METHOD_TYPE_ZSUPER.

Referenced by vm_call_general(), vm_call_method_missing(), vm_call_opt_send(), and vm_call_super_method().

static VALUE vm_call_method_missing ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_opt_call ( rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_opt_send ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]
static VALUE vm_call_super_method ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]

Definition at line 1906 of file vm_insnhelper.c.

References vm_call_method().

Referenced by vm_call_method(), and vm_search_super_method().

static int vm_callee_setup_arg_complex ( rb_thread_t th,
rb_call_info_t ci,
const rb_iseq_t iseq,
VALUE orig_argv 
) [inline, static]
static int vm_callee_setup_keyword_arg ( const rb_iseq_t iseq,
int  argc,
int  m,
VALUE orig_argv,
VALUE kwd 
) [inline, static]
static void vm_caller_setup_args ( const rb_thread_t th,
rb_control_frame_t cfp,
rb_call_info_t ci 
) [static]
static void vm_check_if_namespace ( VALUE  klass) [inline, static]

Definition at line 353 of file vm_insnhelper.c.

References rb_eTypeError, rb_inspect(), rb_raise(), RB_TYPE_P, StringValuePtr, T_CLASS, and T_MODULE.

Referenced by vm_get_ev_const().

static NODE* vm_cref_push ( rb_thread_t th,
VALUE  klass,
int  noex,
rb_block_t blockptr 
) [static]
static void vm_expandarray ( rb_control_frame_t cfp,
VALUE  ary,
rb_num_t  num,
int  flag 
) [inline, static]
static VALUE vm_get_cbase ( const rb_iseq_t iseq,
const VALUE ep 
) [inline, static]

Definition at line 320 of file vm_insnhelper.c.

References Qundef, and rb_vm_get_cref().

Referenced by rb_vm_cbase().

static VALUE vm_get_const_base ( const rb_iseq_t iseq,
const VALUE ep 
) [inline, static]

Definition at line 336 of file vm_insnhelper.c.

References RNode::flags, NODE_FL_CREF_PUSHED_BY_EVAL, Qundef, and rb_vm_get_cref().

static NODE* vm_get_cref0 ( const rb_iseq_t iseq,
const VALUE ep 
) [static]
static VALUE vm_get_cvar_base ( NODE cref,
rb_control_frame_t cfp 
) [inline, static]
static VALUE vm_get_ev_const ( rb_thread_t th,
const rb_iseq_t iseq,
VALUE  orig_klass,
ID  id,
int  is_defined 
) [inline, static]
static VALUE vm_get_iclass ( rb_control_frame_t cfp,
VALUE  klass 
) [inline, static]

Referenced by vm_cref_push().

static VALUE vm_getinstancevariable ( VALUE  obj,
ID  id,
IC  ic 
) [static]

Definition at line 599 of file vm_insnhelper.c.

References vm_getivar().

static VALUE vm_getivar ( VALUE  obj,
ID  id,
IC  ic,
rb_call_info_t ci,
int  is_attr 
) [inline, static]
static VALUE vm_getspecial ( rb_thread_t th,
VALUE lep,
rb_num_t  key,
rb_num_t  type 
) [inline, static]
static VALUE vm_invoke_block ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]
static void vm_pop_frame ( rb_thread_t th) [inline, static]
static rb_control_frame_t* vm_push_frame ( rb_thread_t th,
const rb_iseq_t iseq,
VALUE  type,
VALUE  self,
VALUE  klass,
VALUE  specval,
const VALUE pc,
VALUE sp,
int  local_size,
const rb_method_entry_t me 
) [inline, static]
static VALUE vm_search_const_defined_class ( const VALUE  cbase,
ID  id 
) [static]

Definition at line 482 of file vm_insnhelper.c.

References rb_cObject, rb_const_defined_at(), and RCLASS_SUPER.

static void vm_search_method ( rb_call_info_t ci,
VALUE  recv 
) [static]
static VALUE vm_search_normal_superclass ( VALUE  klass) [inline, static]
static void vm_search_super_method ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_call_info_t ci 
) [static]
static int vm_search_superclass ( rb_control_frame_t reg_cfp,
rb_iseq_t iseq,
VALUE  sigval,
rb_call_info_t ci 
) [static]
static void vm_setinstancevariable ( VALUE  obj,
ID  id,
VALUE  val,
IC  ic 
) [static]

Definition at line 605 of file vm_insnhelper.c.

References vm_setivar().

static VALUE vm_setivar ( VALUE  obj,
ID  id,
VALUE  val,
IC  ic,
rb_call_info_t ci,
int  is_attr 
) [inline, static]
static void vm_stackoverflow ( void  ) [static]

Definition at line 28 of file vm_insnhelper.c.

References rb_exc_raise(), and sysstack_error.

Referenced by vm_push_frame().

static void vm_super_outside ( void  ) [static]

Definition at line 1925 of file vm_insnhelper.c.

References rb_eNoMethodError, and rb_raise().

Referenced by vm_search_super_method().

static VALUE vm_throw ( rb_thread_t th,
rb_control_frame_t reg_cfp,
rb_num_t  throw_state,
VALUE  throwobj 
) [static]
static int vm_yield_setup_args ( rb_thread_t *const  th,
const rb_iseq_t iseq,
int  argc,
VALUE argv,
const rb_block_t blockptr,
int  lambda 
) [inline, static]
static int vm_yield_setup_block_args ( rb_thread_t th,
const rb_iseq_t iseq,
int  orig_argc,
VALUE argv,
const rb_block_t blockptr 
) [inline, static]
static int vm_yield_setup_block_args_complex ( rb_thread_t th,
const rb_iseq_t iseq,
int  argc,
VALUE argv 
) [inline, static]
static VALUE vm_yield_with_cfunc ( rb_thread_t th,
const rb_block_t block,
VALUE  self,
int  argc,
const VALUE argv,
const rb_block_t blockargptr 
) [inline, static]