aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-14 11:19:16 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-14 11:22:07 -0700
commit661927a4c55232bd070992d47670a7d411820111 (patch)
treeffae82f9d9ebeb977d6a4958fdffed7182e8f99b /insns.def
parent6ac6de84ac3a5bc4fae8e04d03084696080e1ab2 (diff)
downloadruby-661927a4c55232bd070992d47670a7d411820111.tar.gz
Switch to using a VM stack argument instead of 2nd operand for getconstant
Some tooling depends on the current bytecode, and adding an operand changes the bytecode. While tooling can be updated for new bytecode, this support doesn't warrant such a change.
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def6
1 files changed, 3 insertions, 3 deletions
diff --git a/insns.def b/insns.def
index 77ffa81abf..02330147c4 100644
--- a/insns.def
+++ b/insns.def
@@ -252,14 +252,14 @@ setclassvariable
rb_cvar_set(vm_get_cvar_base(vm_get_cref(GET_EP()), GET_CFP()), id, val);
}
-/* Get constant variable id. If klass is Qnil and allow_nil is true, constants
+/* Get constant variable id. If klass is Qnil and allow_nil is Qtrue, constants
are searched in the current scope. Otherwise, get constant under klass
class or module.
*/
DEFINE_INSN
getconstant
-(ID id, VALUE allow_nil)
-(VALUE klass)
+(ID id)
+(VALUE klass, VALUE allow_nil)
(VALUE val)
/* getconstant can kick autoload */
// attr bool leaf = false; /* has rb_autoload_load() */