gc<Chunk> ExprCompiler::compile(Module* module, AsyncExpr& expr)
  {
    compile(module, expr.resolved().maxLocals(),
            NULL, NULL, NULL, expr.body());

    chunk_->bind(maxSlots_, expr.resolved().closures().count());
    return chunk_;
  }
Exemple #2
0
 void Resolver::visit(AsyncExpr& expr, int dummy)
 {
   resolve(compiler_, module_, this, &expr.resolved(), false, NULL, NULL,
           NULL, expr.body());
 }