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

Issue 10578018: Fix type test elimination using static type propagation in new compiler. (Closed)

Created:
8 years, 6 months ago by regis
Modified:
8 years, 6 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix type test elimination using static type propagation in new compiler. Committed: https://code.google.com/p/dart/source/detail?r=8868

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -51 lines) Patch
M runtime/vm/flow_graph_builder.cc View 1 3 chunks +14 lines, -13 lines 0 comments Download
M runtime/vm/object.h View 1 6 chunks +67 lines, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 9 chunks +59 lines, -35 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
regis
Srdjan, I ended up implementing a cleaner solution than what I proposed yesterday. I now ...
8 years, 6 months ago (2012-06-19 19:12:10 UTC) #1
srdjan
LGTM https://chromiumcodereview.appspot.com/10578018/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/10578018/diff/1/runtime/vm/object.cc#newcode1749 runtime/vm/object.cc:1749: TypeTestKind test, MO, it would be more readable ...
8 years, 6 months ago (2012-06-19 20:08:21 UTC) #2
regis
8 years, 6 months ago (2012-06-19 20:31:47 UTC) #3
Thanks!

The spec does not define 'is more specific than' for function types and I did
not implement it in this cl (I use a subtype test for functions). However, I
realized that we need to support this test for correctness. I will do it in a
following cl.

-- Regis

https://chromiumcodereview.appspot.com/10578018/diff/1/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://chromiumcodereview.appspot.com/10578018/diff/1/runtime/vm/object.cc#n...
runtime/vm/object.cc:1749: TypeTestKind test,
On 2012/06/19 20:08:21, srdjan wrote:
> MO, it would be more readable if you call this argument test_kind.

Done.

https://chromiumcodereview.appspot.com/10578018/diff/1/runtime/vm/object.cc#n...
runtime/vm/object.cc:3206: bool AbstractTypeArguments::TypeTest(TypeTestKind
test,
On 2012/06/19 20:08:21, srdjan wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698