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

Issue 23190035: Distinguish between malformed and malbounded types (fix issues 12552 and 12554). (Closed)

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

Description

Distinguish between malformed and malbounded types (fix issues 12552 and 12554). Add test. Update status files. Explanation of change: A malbounded type argument should not be mapped to dynamic, as is a malformed type argument. This change also adds a bunch of TODOs related to the encounter of malbounded types in unexpected places. A follow-up change will address these TODOs, add more tests, and may simplify code that is still handling malformed types where they cannot occur anymore after the spec simplified their handling. R=hausner@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=26665

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -67 lines) Patch
M runtime/vm/ast.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/object.h View 1 2 5 chunks +10 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 15 chunks +69 lines, -16 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 6 chunks +37 lines, -16 lines 0 comments Download
A tests/language/f_bounded_quantification5_test.dart View 1 chunk +35 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
regis
7 years, 4 months ago (2013-08-22 23:04:46 UTC) #1
hausner
LGTM. https://codereview.chromium.org/23190035/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23190035/diff/1/runtime/vm/object.cc#newcode10878 runtime/vm/object.cc:10878: if (type_arguments.IsNull()) { You could avoid this handle ...
7 years, 4 months ago (2013-08-23 16:55:23 UTC) #2
srdjan
lgtm https://codereview.chromium.org/23190035/diff/1/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/23190035/diff/1/runtime/vm/object.h#newcode3764 runtime/vm/object.h:3764: virtual bool IsMalbounded(Error* bound_error) const; I think it ...
7 years, 4 months ago (2013-08-23 23:47:02 UTC) #3
regis
Thanks! https://codereview.chromium.org/23190035/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23190035/diff/1/runtime/vm/object.cc#newcode10878 runtime/vm/object.cc:10878: if (type_arguments.IsNull()) { On 2013/08/23 16:55:23, hausner wrote: ...
7 years, 3 months ago (2013-08-26 17:44:56 UTC) #4
regis
7 years, 3 months ago (2013-08-26 17:56:11 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r26665 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698