fold extended scope free into no parent pointer case
This commit is contained in:
parent
eca92b6a5d
commit
d9c0e38c12
6
src/vm.h
6
src/vm.h
@ -10,6 +10,9 @@
|
||||
#undef JIT_START
|
||||
#define JIT_START -1
|
||||
#endif
|
||||
#ifndef EXT_ONLY_GLOBAL
|
||||
#define EXT_ONLY_GLOBAL 1
|
||||
#endif
|
||||
|
||||
enum {
|
||||
PUSH = 0x00, // N; push object from objs[N]
|
||||
@ -235,6 +238,9 @@ usz getPageSize(void);
|
||||
DEF_FREE(scope) {
|
||||
Scope* c = (Scope*)x;
|
||||
if (LIKELY(c->psc!=NULL)) ptr_decR(c->psc);
|
||||
#if EXT_ONLY_GLOBAL
|
||||
else
|
||||
#endif
|
||||
if (RARE(c->ext!=NULL)) ptr_decR(c->ext);
|
||||
ptr_decR(c->body);
|
||||
u16 am = c->varAm;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user