Browse Source

Bump normal/func count bits in RAM initdata

pull/1150/head
Sami Vaarala 8 years ago
parent
commit
98d03d9a40
  1. 4
      src-input/duk_hthread_builtins.c
  2. 4
      tools/genbuiltins.py

4
src-input/duk_hthread_builtins.c

@ -14,8 +14,8 @@
#define DUK__BIDX_BITS 7 #define DUK__BIDX_BITS 7
#define DUK__STRIDX_BITS 9 /* XXX: try to optimize to 8 (would now be possible, <200 used) */ #define DUK__STRIDX_BITS 9 /* XXX: try to optimize to 8 (would now be possible, <200 used) */
#define DUK__NATIDX_BITS 8 #define DUK__NATIDX_BITS 8
#define DUK__NUM_NORMAL_PROPS_BITS 6 #define DUK__NUM_NORMAL_PROPS_BITS 8
#define DUK__NUM_FUNC_PROPS_BITS 6 #define DUK__NUM_FUNC_PROPS_BITS 8
#define DUK__PROP_FLAGS_BITS 3 #define DUK__PROP_FLAGS_BITS 3
#define DUK__LENGTH_PROP_BITS 3 #define DUK__LENGTH_PROP_BITS 3
#define DUK__NARGS_BITS 3 #define DUK__NARGS_BITS 3

4
tools/genbuiltins.py

@ -1350,8 +1350,8 @@ CLASS_BITS = 5
BIDX_BITS = 7 BIDX_BITS = 7
STRIDX_BITS = 9 # would be nice to optimize to 8 STRIDX_BITS = 9 # would be nice to optimize to 8
NATIDX_BITS = 8 NATIDX_BITS = 8
NUM_NORMAL_PROPS_BITS = 6 NUM_NORMAL_PROPS_BITS = 8
NUM_FUNC_PROPS_BITS = 6 NUM_FUNC_PROPS_BITS = 8
PROP_FLAGS_BITS = 3 PROP_FLAGS_BITS = 3
LENGTH_PROP_BITS = 3 LENGTH_PROP_BITS = 3
NARGS_BITS = 3 NARGS_BITS = 3

Loading…
Cancel
Save