[前][次][番号順一覧][スレッド一覧]

ruby-changes:70028

From: Adam <ko1@a...>
Date: Fri, 3 Dec 2021 02:01:54 +0900 (JST)
Subject: [ruby-changes:70028] fbc1615761 (master): YJIT: Fix side-exit typo in comments [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=fbc1615761

From fbc16157615570ca5abc66a3ecfc30a0de7e9d49 Mon Sep 17 00:00:00 2001
From: Adam Hess <adamhess1991@g...>
Date: Thu, 2 Dec 2021 09:01:42 -0800
Subject: YJIT: Fix side-exit typo in comments [ci skip]

---
 yjit_codegen.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/yjit_codegen.c b/yjit_codegen.c
index 96f895b9346..ed2d7bbcdc9 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -1401,7 +1401,7 @@ gen_setlocal_wc0(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L1401
     x86opnd_t flags_opnd = mem_opnd(64, REG0, sizeof(VALUE) * VM_ENV_DATA_INDEX_FLAGS);
     test(cb, flags_opnd, imm_opnd(VM_ENV_FLAG_WB_REQUIRED));
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     // if (flags & VM_ENV_FLAG_WB_REQUIRED) != 0
@@ -1471,7 +1471,7 @@ gen_setlocal_generic(jitstate_t *jit, ctx_t *ctx, uint32_t local_idx, uint32_t l https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L1471
     x86opnd_t flags_opnd = mem_opnd(64, REG0, sizeof(VALUE) * VM_ENV_DATA_INDEX_FLAGS);
     test(cb, flags_opnd, imm_opnd(VM_ENV_FLAG_WB_REQUIRED));
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     // if (flags & VM_ENV_FLAG_WB_REQUIRED) != 0
@@ -2030,7 +2030,7 @@ gen_fixnum_cmp(jitstate_t *jit, ctx_t *ctx, cmov_fn cmov_op) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2030
     VALUE comptime_b = jit_peek_at_stack(jit, ctx, 0);
 
     if (FIXNUM_P(comptime_a) && FIXNUM_P(comptime_b)) {
-        // Create a size-exit to fall back to the interpreter
+        // Create a side-exit to fall back to the interpreter
         // Note: we generate the side-exit before popping operands from the stack
         uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
@@ -2175,7 +2175,7 @@ gen_opt_eq(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2175
         return YJIT_END_BLOCK;
     }
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     if (gen_equality_specialized(jit, ctx, side_exit)) {
@@ -2223,7 +2223,7 @@ gen_opt_aref(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2223
     VALUE comptime_idx = jit_peek_at_stack(jit, ctx, 0);
     VALUE comptime_recv = jit_peek_at_stack(jit, ctx, 1);
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     if (CLASS_OF(comptime_recv) == rb_cArray && RB_FIXNUM_P(comptime_idx)) {
@@ -2406,7 +2406,7 @@ gen_opt_and(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2406
     VALUE comptime_b = jit_peek_at_stack(jit, ctx, 0);
 
     if (FIXNUM_P(comptime_a) && FIXNUM_P(comptime_b)) {
-        // Create a size-exit to fall back to the interpreter
+        // Create a side-exit to fall back to the interpreter
         // Note: we generate the side-exit before popping operands from the stack
         uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
@@ -2450,7 +2450,7 @@ gen_opt_or(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2450
     VALUE comptime_b = jit_peek_at_stack(jit, ctx, 0);
 
     if (FIXNUM_P(comptime_a) && FIXNUM_P(comptime_b)) {
-        // Create a size-exit to fall back to the interpreter
+        // Create a side-exit to fall back to the interpreter
         // Note: we generate the side-exit before popping operands from the stack
         uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
@@ -2494,7 +2494,7 @@ gen_opt_minus(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2494
     VALUE comptime_b = jit_peek_at_stack(jit, ctx, 0);
 
     if (FIXNUM_P(comptime_a) && FIXNUM_P(comptime_b)) {
-        // Create a size-exit to fall back to the interpreter
+        // Create a side-exit to fall back to the interpreter
         // Note: we generate the side-exit before popping operands from the stack
         uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
@@ -2540,7 +2540,7 @@ gen_opt_plus(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2540
     VALUE comptime_b = jit_peek_at_stack(jit, ctx, 0);
 
     if (FIXNUM_P(comptime_a) && FIXNUM_P(comptime_b)) {
-        // Create a size-exit to fall back to the interpreter
+        // Create a side-exit to fall back to the interpreter
         // Note: we generate the side-exit before popping operands from the stack
         uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
@@ -3286,7 +3286,7 @@ gen_send_cfunc(jitstate_t *jit, ctx_t *ctx, const struct rb_callinfo *ci, const https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L3286
     //print_str(cb, "recv");
     //print_ptr(cb, recv);
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     // Check for interrupts
@@ -3658,7 +3658,7 @@ gen_send_iseq(jitstate_t *jit, ctx_t *ctx, const struct rb_callinfo *ci, const r https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L3658
     // Number of locals that are not parameters
     const int num_locals = iseq->body->local_table_size - num_params;
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     // Check for interrupts
@@ -4371,7 +4371,7 @@ gen_leave(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L4371
     // Only the return value should be on the stack
     RUBY_ASSERT(ctx->stack_size == 1);
 
-    // Create a size-exit to fall back to the interpreter
+    // Create a side-exit to fall back to the interpreter
     uint8_t *side_exit = yjit_side_exit(jit, ctx);
 
     // Load environment pointer EP from CFP
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]