diff options
author | Alan Wu <[email protected]> | 2021-04-09 12:16:56 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:33 -0400 |
commit | 4442029ec496754fcad38fa05c3d03553a38107e (patch) | |
tree | 45cb8167de03dc0cd19c41acc3201f10e7a2da7e /yjit_codegen.c | |
parent | 4ea2e753f65e1e7f4c62330abda256b3b56e72d4 (diff) |
move assert. opnd.idx doesn't make sense for OPND_SELF
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r-- | yjit_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index 57efe6d3a8..5b95cc6ce5 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -726,7 +726,7 @@ enum { // Preconditions: // - receiver is in REG0 // - receiver has the same class as CLASS_OF(comptime_receiver) -// - ctx has not been modified since entry to the codegen of the instruction being compiled +// - no stack push or pops to ctx since the entry to the codegen of the instruction being compiled static codegen_status_t gen_get_ivar(jitstate_t *jit, ctx_t *ctx, const int max_chain_depth, VALUE comptime_receiver, ID ivar_name, bool pop_receiver, uint8_t *side_exit) { @@ -781,7 +781,7 @@ gen_get_ivar(jitstate_t *jit, ctx_t *ctx, const int max_chain_depth, VALUE compt mov(cb, out_opnd, REG1); } else { - // Compile value is *not* embeded. + // Compile time value is *not* embeded. // Guard that value is *not* embedded // See ROBJECT_IVPTR() from include/ruby/internal/core/robject.h |