resize register number in LVAR section from 32bits to 16bits

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-05-14 17:32:30 +09:00
parent 7a5d8a40fe
commit 9184d254e2
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -66,8 +66,8 @@ typedef struct scope {
size_t scapa;
size_t rcapa;
int nlocals;
int nregs;
uint16_t nlocals;
uint16_t nregs;
int ai;
int debug_start_pos;
@@ -2505,7 +2505,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *lv)
p->irep->lv[i].name = lv_name(n);
p->irep->lv[i].r = lv_idx(p, lv_name(n));
}
mrb_assert(i == (p->nlocals - 1));
mrb_assert(i + 1 == p->nlocals);
}
p->ai = mrb_gc_arena_save(mrb);