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

Issue 269273002: Remove optimization in unoptimized code that leave the graph in bad state (type test). (Closed)

Created:
6 years, 7 months ago by srdjan
Modified:
6 years, 7 months ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fixes crash (issue 18662). Prevent EffectGraphVisitor from emitting constants as they have no effect and will cause SSA builder to crash. Remove one optimization in graph buidler, but left the one that eliminates type tests against dynamic and Object as that is a frequent case in checked mode and reduces generated code. R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=35855

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -29 lines) Patch
M runtime/vm/flow_graph_builder.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 2 chunks +0 lines, -27 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
srdjan
6 years, 7 months ago (2014-05-06 23:30:11 UTC) #1
regis
LGTM Thanks for the fix! https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc#newcode1423 runtime/vm/flow_graph_builder.cc:1423: ReturnDefinition(new ConstantInstr(Bool::Get(!negate_result))); Will this ...
6 years, 7 months ago (2014-05-06 23:36:56 UTC) #2
srdjan
https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc#newcode1423 runtime/vm/flow_graph_builder.cc:1423: ReturnDefinition(new ConstantInstr(Bool::Get(!negate_result))); On 2014/05/06 23:36:57, regis wrote: > Will ...
6 years, 7 months ago (2014-05-06 23:51:56 UTC) #3
regis
On 2014/05/06 23:51:56, srdjan wrote: > https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc > File runtime/vm/flow_graph_builder.cc (right): > > https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc#newcode1423 > ...
6 years, 7 months ago (2014-05-07 01:26:26 UTC) #4
srdjan
On 2014/05/07 01:26:26, regis wrote: > On 2014/05/06 23:51:56, srdjan wrote: > > > https://codereview.chromium.org/269273002/diff/1/runtime/vm/flow_graph_builder.cc ...
6 years, 7 months ago (2014-05-07 16:01:51 UTC) #5
srdjan
On 2014/05/07 16:01:51, srdjan wrote: > On 2014/05/07 01:26:26, regis wrote: > > On 2014/05/06 ...
6 years, 7 months ago (2014-05-07 17:27:01 UTC) #6
srdjan
6 years, 7 months ago (2014-05-07 17:40:25 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r35855 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698