ruby-changes:54759
From: shyouhei <ko1@a...>
Date: Fri, 1 Feb 2019 13:39:52 +0900 (JST)
Subject: [ruby-changes:54759] shyouhei:r66976 (trunk): _leaf_helpers.erb: some functions are not leaf
shyouhei 2019-02-01 13:39:47 +0900 (Fri, 01 Feb 2019) New Revision: 66976 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66976 Log: _leaf_helpers.erb: some functions are not leaf If a function has rb_warning() that is not a leaf because warning ultimately is a method call of Warning#warn. If a function has rb_name_error() that is not a leaf because NameError is allocated, then initialized. This of course involves calling NameError#initialize. Modified files: trunk/tool/ruby_vm/views/_leaf_helpers.erb Index: tool/ruby_vm/views/_leaf_helpers.erb =================================================================== --- tool/ruby_vm/views/_leaf_helpers.erb (revision 66975) +++ tool/ruby_vm/views/_leaf_helpers.erb (revision 66976) @@ -22,7 +22,7 @@ leafness_of_getglobal(VALUE gentry) https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_leaf_helpers.erb#L22 static rb_gvar_getter_t *const allowlist[] = { rb_gvar_val_getter, rb_gvar_var_getter, - rb_gvar_undef_getter, + /* rb_gvar_undef_getter issues rb_warning() */ }; rb_gvar_getter_t *f = rb_gvar_getter_function_of(e); int i; @@ -49,7 +49,7 @@ leafness_of_setglobal(VALUE gentry) https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_leaf_helpers.erb#L49 * case label cannot be a function pointer. */ static rb_gvar_setter_t *const allowlist[] = { rb_gvar_val_setter, - rb_gvar_readonly_setter, + /* rb_gvar_readonly_setter issues rb_name_error() */ rb_gvar_var_setter, rb_gvar_undef_setter, }; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/