Remove closure allocation in resource methods

Seems to gives a slight performance increase and may enable VM/dart2js to more
easily get rid of unneeded code.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//507343002