summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2021-01-27 20:47:10 +0900
committerKOBAYASHI Shuji <[email protected]>2021-01-27 20:47:10 +0900
commit3104aed8c67754f14093ea73b2df4f995e4242d3 (patch)
tree92370cd2eae6b40a1aaccd13559eb52cdafe04f9 /include
parent251fd743151bb66cde3a3879d3b4b4b8c4ee7356 (diff)
downloadmruby-3104aed8c67754f14093ea73b2df4f995e4242d3.tar.gz
mruby-3104aed8c67754f14093ea73b2df4f995e4242d3.zip
Split `presym_table` for reduced program size
Because a structure that is an element of `presym_table` has padding, split it into individual arrays for name and length. #### Result (64-bit CPU with full-core gembox) | | mruby | libmruby.a | |--------|------------|------------| | Before | 1,087,444B | 1,476,872B | | After | 1,079,340B | 1,469,784B |
Diffstat (limited to 'include')
-rw-r--r--include/mruby/presym/enable.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/mruby/presym/enable.h b/include/mruby/presym/enable.h
index f4e413532..c70c86659 100644
--- a/include/mruby/presym/enable.h
+++ b/include/mruby/presym/enable.h
@@ -7,16 +7,7 @@
#ifndef MRUBY_PRESYM_ENABLE_H
#define MRUBY_PRESYM_ENABLE_H
-#undef MRB_PRESYM_MAX
-#define MRB_PRESYM_NAMED(lit, num, type, name) MRB_##type##__##name = (num),
-#define MRB_PRESYM_UNNAMED(lit, num)
-
-enum mruby_presym {
-# include <mruby/presym.inc>
-};
-
-#undef MRB_PRESYM_NAMED
-#undef MRB_PRESYM_UNNAMED
+#include <mruby/presym/id.h>
#define MRB_OPSYM(name) MRB_OPSYM__##name
#define MRB_CVSYM(name) MRB_CVSYM__##name