use const to help optimize.

compiler.newconst, getvar generate const by default.