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

Issue 10828319: Cleanup handling of NullType in type propagation. (Closed)

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

Description

Cleanup handling of NullType in type propagation. Remove AssertAssignable type checks from graph (when possible), rather than just marking them as eliminated. Committed: https://code.google.com/p/dart/source/detail?r=10782

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -20 lines) Patch
M runtime/vm/compiler.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.h View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 chunks +92 lines, -6 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 5 chunks +26 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 chunks +38 lines, -6 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
regis
Instruction removal is not working yet. Thanks, Regis
8 years, 4 months ago (2012-08-15 00:40:39 UTC) #1
srdjan
https://chromiumcodereview.appspot.com/10828319/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10828319/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode615 runtime/vm/flow_graph_optimizer.cc:615: #endif Removed dead code before submitting https://chromiumcodereview.appspot.com/10828319/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode673 runtime/vm/flow_graph_optimizer.cc:673: /* ...
8 years, 4 months ago (2012-08-15 02:07:31 UTC) #2
Kevin Millikin (Google)
https://chromiumcodereview.appspot.com/10828319/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10828319/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode601 runtime/vm/flow_graph_optimizer.cc:601: // Remove the definition of the input as well, ...
8 years, 4 months ago (2012-08-15 09:04:24 UTC) #3
regis
Thanks! Please, have another look. Instruction removal is now working. -- Regis https://chromiumcodereview.appspot.com/10828319/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc ...
8 years, 4 months ago (2012-08-15 17:25:27 UTC) #4
srdjan
https://chromiumcodereview.appspot.com/10828319/diff/10001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10828319/diff/10001/runtime/vm/flow_graph_optimizer.cc#newcode604 runtime/vm/flow_graph_optimizer.cc:604: // TODO(regis): Handle constant input value (not a definition). ...
8 years, 4 months ago (2012-08-15 17:49:56 UTC) #5
srdjan
LGTM https://chromiumcodereview.appspot.com/10828319/diff/10001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10828319/diff/10001/runtime/vm/flow_graph_optimizer.cc#newcode645 runtime/vm/flow_graph_optimizer.cc:645: // TODO(regis): Remove is_eliminated_ field and support. On ...
8 years, 4 months ago (2012-08-15 19:55:56 UTC) #6
regis
Next iteration. Thanks, Regis https://chromiumcodereview.appspot.com/10828319/diff/10001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10828319/diff/10001/runtime/vm/flow_graph_optimizer.cc#newcode604 runtime/vm/flow_graph_optimizer.cc:604: // TODO(regis): Handle constant input ...
8 years, 4 months ago (2012-08-15 22:49:17 UTC) #7
srdjan
LGTM https://chromiumcodereview.appspot.com/10828319/diff/4003/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10828319/diff/4003/runtime/vm/flow_graph_optimizer.cc#newcode751 runtime/vm/flow_graph_optimizer.cc:751: if (current_iterator()->Current()->AsBind() == bind) { No need for ...
8 years, 4 months ago (2012-08-15 23:41:24 UTC) #8
regis
8 years, 4 months ago (2012-08-15 23:46:06 UTC) #9
Thanks!

https://chromiumcodereview.appspot.com/10828319/diff/4003/runtime/vm/flow_gra...
File runtime/vm/flow_graph_optimizer.cc (right):

https://chromiumcodereview.appspot.com/10828319/diff/4003/runtime/vm/flow_gra...
runtime/vm/flow_graph_optimizer.cc:751: if
(current_iterator()->Current()->AsBind() == bind) {
On 2012/08/15 23:41:25, srdjan wrote:
> No need for AsBind():
> current_iterator()->Current() == bind

Done here and at the other locations.

Powered by Google App Engine
This is Rietveld 408576698