mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove DEFINED_IVAR2 from enum
This version of defined? doesn't seem to be possible to emit anymore.
This commit is contained in:
parent
4c80b9d063
commit
9d0ae387c8
Notes:
git
2021-03-11 02:38:52 +09:00
3 changed files with 0 additions and 5 deletions
1
iseq.h
1
iseq.h
|
@ -289,7 +289,6 @@ enum defined_type {
|
||||||
DEFINED_FALSE,
|
DEFINED_FALSE,
|
||||||
DEFINED_ASGN,
|
DEFINED_ASGN,
|
||||||
DEFINED_EXPR,
|
DEFINED_EXPR,
|
||||||
DEFINED_IVAR2,
|
|
||||||
DEFINED_REF,
|
DEFINED_REF,
|
||||||
DEFINED_FUNC,
|
DEFINED_FUNC,
|
||||||
DEFINED_CONST_FROM
|
DEFINED_CONST_FROM
|
||||||
|
|
|
@ -20,7 +20,6 @@ leafness_of_defined(rb_num_t op_type)
|
||||||
/* see also: vm_insnhelper.c:vm_defined() */
|
/* see also: vm_insnhelper.c:vm_defined() */
|
||||||
switch (op_type) {
|
switch (op_type) {
|
||||||
case DEFINED_IVAR:
|
case DEFINED_IVAR:
|
||||||
case DEFINED_IVAR2:
|
|
||||||
case DEFINED_GVAR:
|
case DEFINED_GVAR:
|
||||||
case DEFINED_CVAR:
|
case DEFINED_CVAR:
|
||||||
case DEFINED_YIELD:
|
case DEFINED_YIELD:
|
||||||
|
|
|
@ -3998,9 +3998,6 @@ vm_defined(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, rb_num_t op_
|
||||||
expr_type = DEFINED_IVAR;
|
expr_type = DEFINED_IVAR;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DEFINED_IVAR2:
|
|
||||||
klass = vm_get_cbase(GET_EP());
|
|
||||||
break;
|
|
||||||
case DEFINED_GVAR:
|
case DEFINED_GVAR:
|
||||||
if (rb_gvar_defined(SYM2ID(obj))) {
|
if (rb_gvar_defined(SYM2ID(obj))) {
|
||||||
expr_type = DEFINED_GVAR;
|
expr_type = DEFINED_GVAR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue