8322940ecd
When we tear off a method, replace the obj.foo.bind(obj) pattern with dart.tearoff(obj, 'foo'), and the dart.bind(exp, 'foo') pattern with dart.tearoff(exp, 'foo'). This helper does both the bind and attaches rtti. This CL also stops binding of static methods when they are town off, since I think this is unnecessary. BUG= R=vsm@google.com Review URL: https://codereview.chromium.org/1142293002