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

ruby-changes:58635

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 8 Nov 2019 12:09:18 +0900 (JST)
Subject: [ruby-changes:58635] 90fc555258 (master): name the result of calccall

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

From 90fc5552580b8d6223a513dfa6ee5d0f8532b22a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Fri, 8 Nov 2019 12:07:03 +0900
Subject: name the result of calccall

This is a pure refactoring for better understanding of what is
happening here.  Should change nothing but readability.

diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 6548233..890cbf6 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1422,14 +1422,15 @@ rb_vm_search_method_slowpath(struct rb_call_data *cd, VALUE klass) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1422
     struct rb_call_cache *cc = &cd->cc;
     const rb_callable_method_entry_t *me =
         rb_callable_method_entry(klass, ci->mid);
+    const vm_call_handler call = calccall(cd, me);
     struct rb_call_cache buf = {
         GET_GLOBAL_METHOD_STATE(),
         { RCLASS_SERIAL(klass) },
         me,
         me ? me->def : NULL,
-        calccall(cd, me),
+        call,
     };
-    if (buf.call != vm_call_general) {
+    if (call != vm_call_general) {
         for (int i = 0; i < numberof(cc->class_serial) - 1; i++) {
             buf.class_serial[i + 1] = cc->class_serial[i];
         }
-- 
cgit v0.10.2


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

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