Chromium Code Reviews
DescriptionUse dart.tearoff helper at tearoff sites.
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
Committed: https://github.com/dart-lang/dev_compiler/commit/3f47a80af77a37420e5e5907685a2497cb23c996
Patch Set 1 #Patch Set 2 : Clean up conditional #
Total comments: 7
Patch Set 3 : Use dart.bind instead of dart.tearoff #
Messages
Total messages: 8 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||