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

Issue 966773002: VM: Better type propagation for string objects. (Closed)

Created:
5 years, 9 months ago by Florian Schneider
Modified:
5 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

VM: Better type propagation for string objects. For strings we can't propagate the class-id because of externalization, but we still can record the compile-type (String). This is for example useful for eliminating number-checks with identical-comparisons. R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=44133

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comment and fixed MaybeNumber #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M runtime/vm/flow_graph_type_propagator.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/vm/optimized_identical_test.dart View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Florian Schneider
5 years, 9 months ago (2015-03-02 10:46:28 UTC) #2
Vyacheslav Egorov (Google)
LGTM with MaybeNumber fixed. Condition in MaybeNumber in intermediate_language.cc needs to take Object into account. ...
5 years, 9 months ago (2015-03-02 12:52:53 UTC) #3
Florian Schneider
https://codereview.chromium.org/966773002/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/966773002/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode185 runtime/vm/flow_graph_type_propagator.cc:185: if (cid == kOneByteStringCid || cid == kTwoByteStringCid) { ...
5 years, 9 months ago (2015-03-02 13:16:13 UTC) #4
Florian Schneider
5 years, 9 months ago (2015-03-02 16:10:36 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as r44133 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698