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

Issue 1497783002: Fix optimizations on static fields in precompiled code. (Closed)

Created:
5 years ago by Florian Schneider
Modified:
5 years ago
Reviewers:
rmacnak, srdjan
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

Fix optimizations on static fields in precompiled code. Don't perform LICM / or load elimination of static fields in precompiled code since they may not be initialized and we don't record an explicit dependency between the initialization and the load of a static field. BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/eee0e6d8c34661510b328d3f80c18b4d7755c4b7

Patch Set 1 #

Patch Set 2 : updated #

Total comments: 3

Patch Set 3 : addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -23 lines) Patch
M runtime/vm/constant_propagator.cc View 2 chunks +12 lines, -8 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 7 chunks +13 lines, -7 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
A + tests/language/vm/precompiled_static_initializer_test.dart View 1 chunk +9 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Florian Schneider
5 years ago (2015-12-03 16:19:52 UTC) #2
srdjan
DBC https://codereview.chromium.org/1497783002/diff/20001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/1497783002/diff/20001/runtime/vm/flow_graph_optimizer.cc#newcode5660 runtime/vm/flow_graph_optimizer.cc:5660: && (!field().is_static() || !FLAG_fields_may_be_reset); IMO, the flag does ...
5 years ago (2015-12-03 16:57:56 UTC) #4
rmacnak
lgtm https://codereview.chromium.org/1497783002/diff/20001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/1497783002/diff/20001/runtime/vm/flow_graph_optimizer.cc#newcode5660 runtime/vm/flow_graph_optimizer.cc:5660: && (!field().is_static() || !FLAG_fields_may_be_reset); On 2015/12/03 16:57:56, srdjan ...
5 years ago (2015-12-03 21:09:11 UTC) #5
Florian Schneider
https://codereview.chromium.org/1497783002/diff/20001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/1497783002/diff/20001/runtime/vm/flow_graph_optimizer.cc#newcode5660 runtime/vm/flow_graph_optimizer.cc:5660: && (!field().is_static() || !FLAG_fields_may_be_reset); On 2015/12/03 16:57:56, srdjan wrote: ...
5 years ago (2015-12-04 11:36:54 UTC) #6
Florian Schneider
5 years ago (2015-12-04 11:42:46 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
eee0e6d8c34661510b328d3f80c18b4d7755c4b7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698