code generator, currently only targeting spidermonkey