76f5627abd
This saves space in unoptimized code for implicit closures. In optimized code the original method's code will often be inlined into the implicit closure dispatcher so that there won't be a performance impact. The static case just calls the original method. For implicit instance closures, the this-parameter is loaded from the context and passed to the original method. The coverage test is affected since the dispatcher has the original method's token position associated with it. This means that the line with the method declaration is considered to have executable code. Setting the token position to 0 (Scanner::kNoSourcePos) does not work because it coincides with the first line (and first token) in the script. R=hausner@google.com Review URL: https://codereview.chromium.org//1024563004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44655 260f80e4-7a28-3924-810f-c04153c831b5