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

ruby-changes:52850

From: k0kubun <ko1@a...>
Date: Sat, 13 Oct 2018 23:49:47 +0900 (JST)
Subject: [ruby-changes:52850] k0kubun:r65062 (trunk): vm_insinhelper.c: prefer using inlinable function

k0kubun	2018-10-13 23:49:41 +0900 (Sat, 13 Oct 2018)

  New Revision: 65062

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65062

  Log:
    vm_insinhelper.c: prefer using inlinable function
    
    No major performance impact, but just in case for some platform
    that matters.

  Modified files:
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 65061)
+++ vm_insnhelper.c	(revision 65062)
@@ -1013,7 +1013,7 @@ static inline VALUE https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1013
 vm_setivar(VALUE obj, ID id, VALUE val, IC ic, struct rb_call_cache *cc, int is_attr)
 {
 #if USE_IC_FOR_IVAR
-    rb_check_frozen(obj);
+    rb_check_frozen_internal(obj);
 
     if (LIKELY(RB_TYPE_P(obj, T_OBJECT))) {
 	VALUE klass = RBASIC(obj)->klass;

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

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