Esempio n. 1
0
  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_;
  }
Esempio n. 2
0
 void Resolver::visit(AsyncExpr& expr, int dummy)
 {
   resolve(compiler_, module_, this, &expr.resolved(), false, NULL, NULL,
           NULL, expr.body());
 }