summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-09-14 14:16:21 -0400
committerGitHub <noreply@github.com>2023-09-14 14:16:21 -0400
commit533c4072a9e4cc30c744a2ca0f0ce034d589482f (patch)
tree76deb42cfe3c2211ca3c1a23f60068da755f2d01
parentfcc16991623653e72298b97ea0d5000ce6aa31c7 (diff)
[YARP] Fix up alias and true node (#8423)
* [YARP] Use ALIAS_METHOD as opposed to ALIAS * [YARP] Use YP_TRUE_NODE instead of YP_NODE_TRUE_NODE
Notes
Notes: Merged-By: jemmaissroff
-rw-r--r--yarp/yarp_compiler.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/yarp/yarp_compiler.c b/yarp/yarp_compiler.c
index 1e9f9086ca..bec47053ce 100644
--- a/yarp/yarp_compiler.c
+++ b/yarp/yarp_compiler.c
@@ -157,7 +157,7 @@ yp_static_node_literal_p(yp_node_t *node)
case YP_SOURCE_FILE_NODE:
case YP_SOURCE_LINE_NODE:
case YP_SYMBOL_NODE:
- case YP_NODE_TRUE_NODE:
+ case YP_TRUE_NODE:
return true;
default:
return false;
@@ -170,7 +170,7 @@ yp_static_literal_value(yp_node_t *node)
switch (YP_NODE_TYPE(node)) {
case YP_NIL_NODE:
return Qnil;
- case YP_NODE_TRUE_NODE:
+ case YP_TRUE_NODE:
return Qtrue;
case YP_FALSE_NODE:
return Qfalse;
@@ -254,7 +254,7 @@ again:
case YP_REGULAR_EXPRESSION_NODE:
case YP_STRING_NODE:
case YP_SYMBOL_NODE:
- case YP_NODE_TRUE_NODE:
+ case YP_TRUE_NODE:
ADD_INSNL(ret, &dummy_line_node, jump, then_label);
return;
// TODO: Several more nodes in this case statement
@@ -534,8 +534,8 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
NODE dummy_line_node = generate_dummy_line_node(lineno, lineno);
switch (YP_NODE_TYPE(node)) {
- case YP_ALIAS_NODE: {
- yp_alias_node_t *alias_node = (yp_alias_node_t *) node;
+ case YP_ALIAS_METHOD_NODE: {
+ yp_alias_method_node_t *alias_node = (yp_alias_method_node_t *) node;
ADD_INSN1(ret, &dummy_line_node, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
ADD_INSN1(ret, &dummy_line_node, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_CBASE));
@@ -1985,7 +1985,7 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
}
return;
}
- case YP_NODE_TRUE_NODE:
+ case YP_TRUE_NODE:
if (!popped) {
ADD_INSN1(ret, &dummy_line_node, putobject, Qtrue);
}