diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-21 21:11:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-21 21:11:32 +0900 |
| commit | c5c156a6dd57eddc87e2162172b202233e45ad70 (patch) | |
| tree | 001d3d68331f9e20292f3eb605cbbc3603865074 /include/mruby.h | |
| parent | 33deeae9ebd7d6d33a8f985299a0e16090cfbf62 (diff) | |
| download | mruby-c5c156a6dd57eddc87e2162172b202233e45ad70.tar.gz mruby-c5c156a6dd57eddc87e2162172b202233e45ad70.zip | |
Reduce size of `mrb_callinfo` by rearranging members.
From 48 bytes to 40 bytes on 64 bit platforms (unchanged on 32 bit).
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index 6ac5a1a24..aa6d2ab65 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -150,11 +150,11 @@ typedef void* (*mrb_allocf) (struct mrb_state *mrb, void*, size_t, void *ud); typedef struct { mrb_sym mid; + int16_t argc; + int16_t acc; const struct RProc *proc; mrb_value *stack; const mrb_code *pc; /* current address on iseq of this proc */ - int16_t argc; - int16_t acc; union { struct REnv *env; struct RClass *target_class; |
