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

Issue 15141004: Fix crash with --no-use-cha: the optimizer expects a concrete type for array creation, not dynamic … (Closed)

Created:
7 years, 7 months ago by srdjan
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix crash with --no-use-cha: the optimizer expects a concrete type for array creation, not dynamic as is the result because we cannot determine without CHA if a class is guaranteed to have no sublcasses and has not been implemented. Regardless of use_cha, always rely on known information for internal classes that are not subtype or implemented by other clases. R=asiva@google.com, vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=22655

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -6 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 2 2 chunks +23 lines, -4 lines 0 comments Download
M runtime/vm/object.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
srdjan
7 years, 7 months ago (2013-05-13 19:51:01 UTC) #1
Vyacheslav Egorov (Google)
lgtm
7 years, 7 months ago (2013-05-13 20:07:29 UTC) #2
siva
https://codereview.chromium.org/15141004/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/15141004/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode508 runtime/vm/flow_graph_type_propagator.cc:508: case kTypedDataFloat32x4ArrayCid: This list doesn't seem to be complete ...
7 years, 7 months ago (2013-05-13 20:26:28 UTC) #3
srdjan
Modified as discussed, Siva could you please take a look.
7 years, 7 months ago (2013-05-13 22:47:10 UTC) #4
Vyacheslav Egorov (Google)
Alternatively you could probably just amend CreateArrayInstr::ComputeType to create a fully specialized CompileType with both ...
7 years, 7 months ago (2013-05-13 22:59:53 UTC) #5
siva
lgtm https://codereview.chromium.org/15141004/diff/6001/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/15141004/diff/6001/runtime/vm/flow_graph_type_propagator.cc#newcode476 runtime/vm/flow_graph_type_propagator.cc:476: // Return true if the class is private ...
7 years, 7 months ago (2013-05-13 23:04:00 UTC) #6
srdjan
https://codereview.chromium.org/15141004/diff/6001/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/15141004/diff/6001/runtime/vm/flow_graph_type_propagator.cc#newcode476 runtime/vm/flow_graph_type_propagator.cc:476: // Return true if the class is private to ...
7 years, 7 months ago (2013-05-13 23:16:51 UTC) #7
srdjan
7 years, 7 months ago (2013-05-13 23:19:24 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r22655 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698