1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm_core.h (struct rb_call_info_struct): improve packing

* vm_core.h (struct rb_call_info_struct): improve packing
  On x86-64, it goes from 112 to 104 bytes.  This results in
  ~20K of savings from just "./ruby -e exit"

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-07-13 07:46:46 +00:00
parent f0a698300a
commit c7fbc29605
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Jul 13 16:44:56 2014 Eric Wong <e@80x24.org>
* vm_core.h (struct rb_call_info_struct): improve packing
Sun Jul 13 15:53:25 2014 Eric Wong <e@80x24.org>
* vm_core.h (struct rb_iseq_struct): stack_max is uint32_t

View file

@ -141,8 +141,10 @@ typedef struct rb_call_info_struct {
/* fixed at compile time */
ID mid;
VALUE flag;
int orig_argc;
rb_iseq_t *blockiseq;
int orig_argc;
int argc; /* temporary for method calling */
/* inline cache: keys */
rb_serial_t method_state;
@ -154,7 +156,6 @@ typedef struct rb_call_info_struct {
VALUE defined_class;
/* temporary values for method calling */
int argc;
struct rb_block_struct *blockptr;
VALUE recv;
union {