[PATCH v2 3/4] jscript: Factor out compiler statement push and pop functions.