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

Issue 22835003: Put constants in 'C', not '$'. (Closed)

Created:
7 years, 4 months ago by ahe
Modified:
7 years, 4 months ago
Reviewers:
ngeoffray, sra1
CC:
reviews_dartlang.org, karlklose, zarah
Visibility:
Public.

Description

Put constants in 'C', not '$'. Currently, dart2js puts all static/top-level elements and constants in one object ($). For large applications, this means that this object may exceed a limit in V8 which turns of the "hidden class" optimization. The effect of this is that all static/top-level method calls get slow. The solution to this problem appears to have multiple global objects. This CL takes the first step in that direction. R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=26119

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart View 1 chunk +1 line, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 3 chunks +7 lines, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
ahe
7 years, 4 months ago (2013-08-13 08:04:49 UTC) #1
ngeoffray
LGTM!
7 years, 4 months ago (2013-08-13 13:06:08 UTC) #2
sra1
Perhaps you could change the Description to say why? Do you intent to change the ...
7 years, 4 months ago (2013-08-13 22:14:50 UTC) #3
ahe
On 2013/08/13 22:14:50, sra1 wrote: > Perhaps you could change the Description to say why? ...
7 years, 4 months ago (2013-08-13 22:19:44 UTC) #4
ahe
On 2013/08/13 22:14:50, sra1 wrote: > Do you intent to change the namer and minifier ...
7 years, 4 months ago (2013-08-14 12:03:58 UTC) #5
ahe
7 years, 4 months ago (2013-08-14 13:28:36 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 manually as r26119 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698