ruby-changes:25203
From: ko1 <ko1@a...>
Date: Thu, 18 Oct 2012 15:15:25 +0900 (JST)
Subject: [ruby-changes:25203] ko1:r37255 (trunk): * vm_insnhelper.c: add `inline' keyword to several functions.
ko1 2012-10-18 15:14:39 +0900 (Thu, 18 Oct 2012) New Revision: 37255 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37255 Log: * vm_insnhelper.c: add `inline' keyword to several functions. Compilers (gcc) are conservative than I expected. Modified files: trunk/ChangeLog trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37254) +++ ChangeLog (revision 37255) @@ -1,3 +1,8 @@ +Thu Oct 18 15:11:31 2012 Koichi Sasada <ko1@a...> + + * vm_insnhelper.c: add `inline' keyword to several functions. + Compilers (gcc) are conservative than I expected. + Thu Oct 18 15:01:15 2012 Koichi Sasada <ko1@a...> * include/ruby/ruby.h: add a decl. of Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 37254) +++ vm_insnhelper.c (revision 37255) @@ -1090,7 +1090,7 @@ } } -static int +static inline int vm_callee_setup_arg_complex(rb_thread_t *th, rb_call_info_t *ci, const rb_iseq_t *iseq, VALUE *orig_argv) { const int m = iseq->argc; @@ -1233,7 +1233,7 @@ } } -static VALUE +static inline VALUE vm_call_iseq_setup_normal(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) { int i; @@ -1256,7 +1256,7 @@ return Qundef; } -static VALUE +static inline VALUE vm_call_iseq_setup_tailcall(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) { int i; @@ -1422,7 +1422,7 @@ return Qnil; } -static VALUE +static inline VALUE vm_call_bmethod_body(rb_thread_t *th, rb_call_info_t *ci, const VALUE *argv) { rb_proc_t *proc; @@ -1545,7 +1545,7 @@ return vm_call_method(th, reg_cfp, &ci_entry); } -static VALUE +static inline VALUE vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) { int enable_fastpath = 1; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/