toplevel expression can be considered tail expresssion
This commit is contained in:
parent
ae2cae8a47
commit
2d544ffa01
|
@ -659,7 +659,7 @@ pic_analyze(pic_state *pic, pic_value obj)
|
||||||
|
|
||||||
state = new_analyze_state(pic);
|
state = new_analyze_state(pic);
|
||||||
|
|
||||||
obj = analyze(state, obj, false);
|
obj = analyze(state, obj, true);
|
||||||
|
|
||||||
destroy_analyze_state(state);
|
destroy_analyze_state(state);
|
||||||
return obj;
|
return obj;
|
||||||
|
@ -1350,8 +1350,6 @@ pic_codegen(pic_state *pic, pic_value obj)
|
||||||
state = new_codegen_state(pic);
|
state = new_codegen_state(pic);
|
||||||
|
|
||||||
codegen(state, obj);
|
codegen(state, obj);
|
||||||
state->cxt->code[state->cxt->clen].insn = OP_RET;
|
|
||||||
state->cxt->clen++;
|
|
||||||
|
|
||||||
return destroy_codegen_state(state);
|
return destroy_codegen_state(state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue