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

Issue 1275653002: Tree-shaking: use a hash set for tracking live selectors, drop uncompiled functions. (Closed)

Created:
5 years, 4 months ago by rmacnak
Modified:
5 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Tree-shaking: use a hash set for tracking live selectors; drop uncompiled functions. hello_world 8.8 -> 7.4MB heap R=srdjan@google.com Committed: https://github.com/dart-lang/sdk/commit/edf288280e2b2213974bdc1d816e785a0815d134

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -34 lines) Patch
M runtime/vm/hash_map.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/precompiler.h View 4 chunks +63 lines, -1 line 1 comment Download
M runtime/vm/precompiler.cc View 1 13 chunks +79 lines, -33 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
rmacnak
https://codereview.chromium.org/1275653002/diff/1/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (left): https://codereview.chromium.org/1275653002/diff/1/runtime/vm/precompiler.cc#oldcode484 runtime/vm/precompiler.cc:484: // TODO(rmacnak): Do not create the symbol if it ...
5 years, 4 months ago (2015-08-05 18:11:55 UTC) #2
srdjan
lgtm https://codereview.chromium.org/1275653002/diff/1/runtime/vm/hash_map.h File runtime/vm/hash_map.h (right): https://codereview.chromium.org/1275653002/diff/1/runtime/vm/hash_map.h#newcode8 runtime/vm/hash_map.h:8: #include "vm/zone.h" Why is this include needed? https://codereview.chromium.org/1275653002/diff/1/runtime/vm/precompiler.cc ...
5 years, 4 months ago (2015-08-05 18:20:08 UTC) #3
Cutch
https://codereview.chromium.org/1275653002/diff/1/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (right): https://codereview.chromium.org/1275653002/diff/1/runtime/vm/precompiler.cc#newcode87 runtime/vm/precompiler.cc:87: dropped_function_count_); On 2015/08/05 18:20:08, srdjan wrote: > ISL_Print DBC: ...
5 years, 4 months ago (2015-08-05 18:25:05 UTC) #5
rmacnak
https://codereview.chromium.org/1275653002/diff/1/runtime/vm/hash_map.h File runtime/vm/hash_map.h (right): https://codereview.chromium.org/1275653002/diff/1/runtime/vm/hash_map.h#newcode8 runtime/vm/hash_map.h:8: #include "vm/zone.h" On 2015/08/05 18:20:08, srdjan wrote: > Why ...
5 years, 4 months ago (2015-08-05 19:51:51 UTC) #6
rmacnak
Committed patchset #2 (id:20001) manually as edf288280e2b2213974bdc1d816e785a0815d134 (presubmit successful).
5 years, 4 months ago (2015-08-05 20:21:46 UTC) #7
Florian Schneider
5 years, 4 months ago (2015-08-06 08:21:19 UTC) #8
Message was sent while issue was closed.
dbc:

https://codereview.chromium.org/1275653002/diff/20001/runtime/vm/precompiler.h
File runtime/vm/precompiler.h (right):

https://codereview.chromium.org/1275653002/diff/20001/runtime/vm/precompiler....
runtime/vm/precompiler.h:27: typedef bool Value;
I think you can do something simpler:

typedef String* Key;
typedef String* Value;
typedef String* Pair;

See PointerLeyValueTrait in hash_map.h.

NULL means non-existent in this case.

Powered by Google App Engine
This is Rietveld 408576698