Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Issue 108553006: Dummy receiver optimization (Closed)

Created:
7 years ago by sra1
Modified:
7 years ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Dummy 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)
sra1
7 years ago (2013-12-18 17:36:25 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/108553006/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/108553006/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode171 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:171: // explicit receiver. https://code.google.com/p/dart/issues/detail?id=8942 Update comment. https://codereview.chromium.org/108553006/diff/20001/sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart File ...
7 years ago (2013-12-18 19:20:11 UTC) #2
sra1
https://codereview.chromium.org/108553006/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/108553006/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode171 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:171: // explicit receiver. https://code.google.com/p/dart/issues/detail?id=8942 On 2013/12/18 19:20:12, floitsch wrote: ...
7 years ago (2013-12-19 03:28:15 UTC) #3
sra1
7 years ago (2013-12-19 03:55:34 UTC) #4
Message was sent while issue was closed.
Committed patchset #4 manually as r31250 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698