add compiler common function
performance optimization
add common.js of build-in compilers