compiler: refactor, split into inliner and jailer