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

Issue 1973553003: VM precompiler: Compute and use result type of static initializers of final fields. (Closed)

Created:
4 years, 7 months ago by Florian Schneider
Modified:
4 years, 7 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

VM precompiler: Compute and use result type of static initializers of final fields. Perform a preprocessing pass to record the result type of static initializers of static final fields. The following round of precompilation benefits from result types for all loads from final static fields. BUG= R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/f0a4c407099b6f8d0eaea815f0fccc8584abf7ee

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 2

Patch Set 3 : rollback #

Patch Set 4 : preprocess initializers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -36 lines) Patch
M runtime/vm/compiler.h View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/compiler.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 chunk +12 lines, -7 lines 0 comments Download
M runtime/vm/precompiler.h View 1 2 3 2 chunks +12 lines, -5 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 19 chunks +122 lines, -18 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Florian Schneider
4 years, 7 months ago (2016-05-12 11:09:26 UTC) #3
Vyacheslav Egorov (Google)
LGTM my main concern is negative impact on the compilation time this is going to ...
4 years, 7 months ago (2016-05-12 11:18:55 UTC) #4
Florian Schneider
https://codereview.chromium.org/1973553003/diff/20001/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (right): https://codereview.chromium.org/1973553003/diff/20001/runtime/vm/precompiler.cc#newcode57 runtime/vm/precompiler.cc:57: DEFINE_FLAG(int, precompiler_rounds, 2, "Number of precompiler iterations"); On 2016/05/12 ...
4 years, 7 months ago (2016-05-12 11:37:17 UTC) #5
Florian Schneider
Ptal. Instead of doing two full iterations, I added a preprocessing step for static initializers.
4 years, 7 months ago (2016-05-13 11:12:12 UTC) #9
Vyacheslav Egorov (Google)
lgtm
4 years, 7 months ago (2016-05-13 12:09:14 UTC) #10
Florian Schneider
4 years, 7 months ago (2016-05-13 13:43:46 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:100001) manually as
f0a4c407099b6f8d0eaea815f0fccc8584abf7ee (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698