Chromium Code Reviews
DescriptionDummy receiver optimization
When we replace an interceptor with the intercepted object (a 'self-interceptor')
m = getInterceptor(a);
m.method(a)
-->
a.method(a)
we can replace the receiver with a dummy value:
-->
a.method(0)
provided the method never accesses the explicit interceptor argument. This condition is satisfied for methods that are not mixed into native classes.
We create a DummyReceiverConstant to ensure the dummy receiver argument has the correct type.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=31250
Patch Set 1 #Patch Set 2 : Add DummyReceiverConstant #
Total comments: 8
Patch Set 3 : #Patch Set 4 : #Messages
Total messages: 4 (0 generated)
|