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

Issue 12317013: Strengthen type assertions post-dominated by checks during type propagation. (Closed)

Created:
7 years, 10 months ago by Vyacheslav Egorov (Google)
Modified:
7 years, 10 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Strengthen type assertions post-dominated by checks during type propagation. If a type assertion for a value is post-dominated by a class or smi check over the same value then raise the check over the assertion. This allows to eliminate type assertions in the cases like: AssertAssignable(x, int) CheckSmi(x) Currently post-domination is computed within a single block because post-dominators are not available. R=fschneider@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=18777

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -2 lines) Patch
M runtime/vm/flow_graph_compiler_ia32.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.h View 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 3 chunks +97 lines, -1 line 6 comments Download
M runtime/vm/intermediate_language.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-02-20 16:52:58 UTC) #1
Florian Schneider
lgtm https://codereview.chromium.org/12317013/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/12317013/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode233 runtime/vm/flow_graph_type_propagator.cc:233: static AssertAssignableInstr* kStrengthenedAssertMarker = does it need to ...
7 years, 10 months ago (2013-02-20 17:57:38 UTC) #2
Vyacheslav Egorov (Google)
https://codereview.chromium.org/12317013/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/12317013/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode233 runtime/vm/flow_graph_type_propagator.cc:233: static AssertAssignableInstr* kStrengthenedAssertMarker = On 2013/02/20 17:57:38, Florian Schneider ...
7 years, 10 months ago (2013-02-20 19:35:10 UTC) #3
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-02-20 19:40:41 UTC) #4
Message was sent while issue was closed.
Committed manually as r18777 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698