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

Issue 2300873002: VM: Compute static guarded cid for final instance fields. (Closed)

Created:
4 years, 3 months ago by Florian Schneider
Modified:
4 years, 3 months ago
Reviewers:
rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Compute static guarded cid for final instance fields. Before the tree-shaking pass, iterate over final field initializers and try to compute the static type. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/c9e1c3dd057048e8d7ce401f411bd21b35fbeb43

Patch Set 1 #

Patch Set 2 : use hash map to store types #

Patch Set 3 : Clean up #

Total comments: 2

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -24 lines) Patch
M runtime/vm/compiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 4 chunks +6 lines, -2 lines 0 comments Download
M runtime/vm/handles_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/hash_map.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download
M runtime/vm/precompiler.h View 1 2 4 chunks +37 lines, -2 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 9 chunks +107 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Florian Schneider
4 years, 3 months ago (2016-09-06 19:29:51 UTC) #2
rmacnak
lgtm https://codereview.chromium.org/2300873002/diff/40001/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (right): https://codereview.chromium.org/2300873002/diff/40001/runtime/vm/precompiler.cc#newcode403 runtime/vm/precompiler.cc:403: if (function.HasCode()) return; This should only happen for ...
4 years, 3 months ago (2016-09-06 20:38:41 UTC) #3
Florian Schneider
https://codereview.chromium.org/2300873002/diff/40001/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (right): https://codereview.chromium.org/2300873002/diff/40001/runtime/vm/precompiler.cc#newcode403 runtime/vm/precompiler.cc:403: if (function.HasCode()) return; On 2016/09/06 20:38:41, rmacnak wrote: > ...
4 years, 3 months ago (2016-09-06 21:00:32 UTC) #4
Florian Schneider
4 years, 3 months ago (2016-09-06 21:59:58 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
c9e1c3dd057048e8d7ce401f411bd21b35fbeb43 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698