diff options
author | John Hawthorn <[email protected]> | 2021-09-20 11:43:37 -0700 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:41 -0400 |
commit | 561882e96ee5d1d7486512d566ffb6d5bf6817a1 (patch) | |
tree | 7a6e3d5e3dec8a6316b4179931971d4f5bf948a7 /yjit_codegen.c | |
parent | 9951a9a8ece77ad8aa2a8871b009e2f1fb776987 (diff) |
Add comment explaining argc + 2
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r-- | yjit_codegen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index c056b1c216..fed7714cc9 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -4141,6 +4141,7 @@ gen_invokebuiltin(jitstate_t *jit, ctx_t *ctx) { const struct rb_builtin_function *bf = (struct rb_builtin_function *)jit_get_arg(jit, 0); + // ec, self, and arguments if (bf->argc + 2 > NUM_C_ARG_REGS) { return YJIT_CANT_COMPILE; } @@ -4178,6 +4179,7 @@ gen_opt_invokebuiltin_delegate(jitstate_t *jit, ctx_t *ctx) const struct rb_builtin_function *bf = (struct rb_builtin_function *)jit_get_arg(jit, 0); int32_t start_index = (int32_t)jit_get_arg(jit, 1); + // ec, self, and arguments if (bf->argc + 2 > NUM_C_ARG_REGS) { return YJIT_CANT_COMPILE; } |