ruby-changes:69281
From: John <ko1@a...>
Date: Thu, 21 Oct 2021 08:23:18 +0900 (JST)
Subject: [ruby-changes:69281] 561882e96e (master): Add comment explaining argc + 2
https://git.ruby-lang.org/ruby.git/commit/?id=561882e96e From 561882e96ee5d1d7486512d566ffb6d5bf6817a1 Mon Sep 17 00:00:00 2001 From: John Hawthorn <john@h...> Date: Mon, 20 Sep 2021 11:43:37 -0700 Subject: Add comment explaining argc + 2 --- yjit_codegen.c | 2 ++ 1 file changed, 2 insertions(+) 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) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L4141 { 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) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L4179 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; } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/