42f82d1d21
A new AST node 'ClosureCreation' is added. It takes a name of a top-level function, a context, and a closure function type and creates a closure of the given type. The effect of this closure invocation is the same as of the invocation of the given top-level function with the contexts as the first argument. In order to use 'ClosureCreation', the closure conversion pass now transforms closures into top-level functions, not closure classes. These functions receive the context as the first argument. The type of the expression represented by 'ClosureCreation' is its third parameter. It its the responsibility of closure conversion pass to create the correct types for 'ClosureCreation' nodes based on types of closures transformed into top-level functions. R=asgerf@google.com Review-Url: https://codereview.chromium.org/2778223002 .