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

Issue 12843043: When attempting to to inline a field getter we use the incoming cid. That type may differ between v… (Closed)

Created:
7 years, 9 months ago by srdjan
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

When attempting to to inline a field getter we use the incoming cid. That type may differ between value()->Type() and value->definition()->Type() if the definition is a load field with a guarded cid. Therefore, if value's type is dynamic we check definition's type as well. Committed: https://code.google.com/p/dart/source/detail?r=20548

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
srdjan
7 years, 9 months ago (2013-03-26 18:43:17 UTC) #1
Vyacheslav Egorov (Google)
LGTM but consider alternative approach that keeps reaching types attached to Values in sync with ...
7 years, 9 months ago (2013-03-26 18:56:13 UTC) #2
srdjan
PTAL https://codereview.chromium.org/12843043/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/12843043/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode90 runtime/vm/flow_graph_optimizer.cc:90: if (cid == kDynamicCid) { On 2013/03/26 18:56:13, ...
7 years, 9 months ago (2013-03-26 20:34:52 UTC) #3
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/12843043/diff/9001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/12843043/diff/9001/runtime/vm/intermediate_language.cc#newcode531 runtime/vm/intermediate_language.cc:531: current->SetReachingType(NULL); I think guarding it with if (current->Type() ...
7 years, 9 months ago (2013-03-26 20:46:12 UTC) #4
srdjan
https://codereview.chromium.org/12843043/diff/9001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/12843043/diff/9001/runtime/vm/intermediate_language.cc#newcode531 runtime/vm/intermediate_language.cc:531: current->SetReachingType(NULL); On 2013/03/26 20:46:12, Vyacheslav Egorov (Google) wrote: > ...
7 years, 9 months ago (2013-03-26 21:23:34 UTC) #5
srdjan
7 years, 9 months ago (2013-03-26 22:02:14 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r20548 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698