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

Issue 543583002: Add a whitelist for functions that we always want to inline. (Closed)

Created:
6 years, 3 months ago by karlklose
Modified:
6 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a whitelist for functions that we always want to inline. R=johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=39869

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Johnni's comments. #

Patch Set 3 : Remove optimizations for ListIterator.moveNext for now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -4 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 4 chunks +42 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 4 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
karlklose
6 years, 3 months ago (2014-09-04 07:19:56 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/543583002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/543583002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode86 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:86: /// List if [FunctionElement]s that we want to ...
6 years, 3 months ago (2014-09-04 07:33:40 UTC) #4
karlklose
Thanks, Johnni. https://codereview.chromium.org/543583002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/543583002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode86 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:86: /// List if [FunctionElement]s that we want ...
6 years, 3 months ago (2014-09-04 07:54:05 UTC) #5
karlklose
On 2014/09/04 07:54:05, karlklose wrote: > Thanks, Johnni. > > https://codereview.chromium.org/543583002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart > File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): ...
6 years, 3 months ago (2014-09-04 12:55:24 UTC) #6
Johnni Winther
lgtm
6 years, 3 months ago (2014-09-04 12:57:15 UTC) #7
karlklose
Committed patchset #3 (id:40001) manually as 39869 (presubmit successful).
6 years, 3 months ago (2014-09-04 13:35:25 UTC) #8
sra1
We already have a NoInline annotation available to the internal libraries. Could this CL be ...
6 years ago (2014-12-16 02:05:41 UTC) #10
sra1
We already have a NoInline annotation available to the internal libraries. Could this CL be ...
6 years ago (2014-12-16 02:05:50 UTC) #11
karlklose
We could use an annotation, but I did not want to introduce a new annotation ...
6 years ago (2014-12-16 07:43:03 UTC) #12
floitsch
On 2014/12/16 07:43:03, karlklose wrote: > We could use an annotation, but I did not ...
6 years ago (2014-12-16 11:49:46 UTC) #13
karlklose
6 years ago (2014-12-16 12:09:21 UTC) #14
Message was sent while issue was closed.
On 2014/12/16 11:49:46, floitsch wrote:
> On 2014/12/16 07:43:03, karlklose wrote:
> > We could use an annotation, but I did not want to introduce a new annotation
> to
> > non-dart2js libraries.
> 
> I'm torn.
> I agree with Karl that adding dart2js specific annotations to non-dart2js
> libraries feels wrong.
> However, the current approach is brittle: changes to the core-libraries might
> make the list go stale without us really noticing. For example, the
> IterableMixinWorkaround class is phased out, and there are fewer and fewer
> users.

When the target of this list cannot be found, there will be an exception. That
means that we will not silently ignore these changes. However, if the
implementation changes in a way that makes inlining not desirable, we will not
notice.

Powered by Google App Engine
This is Rietveld 408576698