From c5c156a6dd57eddc87e2162172b202233e45ad70 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 21 Jan 2021 21:11:32 +0900 Subject: Reduce size of `mrb_callinfo` by rearranging members. From 48 bytes to 40 bytes on 64 bit platforms (unchanged on 32 bit). --- include/mruby.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/mruby.h') 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; -- cgit v1.2.3