typedef struct Local_ {
Type type;
m_uint offset;
- uint skip;
+ bool skip;
} Local;
static inline void emit_pop(const Emitter emit, const m_uint scope) { env_pop(emit->env, scope); }
return local;
}
-ANN static m_uint frame_local(MemPool p, Frame* frame, const Type t, const uint skip) {
+ANN static m_uint frame_local(MemPool p, Frame* frame, const Type t, const bool skip) {
Local* local = new_local(p, t);
local->offset = frame->curr_offset;
local->skip = skip;
}
ANN m_uint emit_local(const Emitter emit, const Type t) {
- return frame_local(emit->gwion->mp, emit->code->frame, t, 0);
+ return frame_local(emit->gwion->mp, emit->code->frame, t, false);
}
ANN m_uint emit_localn(const Emitter emit, const Type t) {
- return frame_local(emit->gwion->mp, emit->code->frame, t, 1);
+ return frame_local(emit->gwion->mp, emit->code->frame, t, true);
}
ANN void emit_ext_ctor(const Emitter emit, const Type t);