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

Issue 11267027: More fixes for super[] (Closed)

Created:
8 years, 1 month ago by hausner
Modified:
8 years, 1 month ago
Reviewers:
regis
CC:
reviews_dartlang.org
Visibility:
Public.

Description

More fixes for super[] Extend the LoadIndexedNode to also handle super[] and super[]= Make sure super []= returns the value. Handle side effects in index expression correctly. Defer operator function resolution to the flow graph build phase. Committed: https://code.google.com/p/dart/source/detail?r=14157

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 16

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -108 lines) Patch
M runtime/vm/ast.h View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -4 lines 0 comments Download
M runtime/vm/ast.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/ast_printer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 6 7 8 9 5 chunks +146 lines, -24 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 7 8 9 5 chunks +22 lines, -73 lines 0 comments Download
tests/co19/co19-dart2dart.status View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hausner
Finally a simple solution that works in all cases.
8 years, 1 month ago (2012-10-26 18:41:10 UTC) #1
hausner
8 years, 1 month ago (2012-10-26 19:00:51 UTC) #2
regis
LGTM http://codereview.chromium.org/11267027/diff/11002/runtime/vm/ast.h File runtime/vm/ast.h (right): http://codereview.chromium.org/11267027/diff/11002/runtime/vm/ast.h#newcode1126 runtime/vm/ast.h:1126: ASSERT(index_expr_ != NULL); ASSERT(super_class_.IsZoneHandle()); http://codereview.chromium.org/11267027/diff/11002/runtime/vm/ast.h#newcode1165 runtime/vm/ast.h:1165: ASSERT(value_ != ...
8 years, 1 month ago (2012-10-26 22:04:37 UTC) #3
hausner
Thank you for the review. http://codereview.chromium.org/11267027/diff/11002/runtime/vm/ast.h File runtime/vm/ast.h (right): http://codereview.chromium.org/11267027/diff/11002/runtime/vm/ast.h#newcode1126 runtime/vm/ast.h:1126: ASSERT(index_expr_ != NULL); On ...
8 years, 1 month ago (2012-10-26 22:25:14 UTC) #4
regis
http://codereview.chromium.org/11267027/diff/11002/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): http://codereview.chromium.org/11267027/diff/11002/runtime/vm/flow_graph_builder.cc#newcode2672 runtime/vm/flow_graph_builder.cc:2672: const Class& target_class, On 2012/10/26 22:25:14, hausner wrote: > ...
8 years, 1 month ago (2012-10-26 22:31:57 UTC) #5
hausner
8 years, 1 month ago (2012-10-26 22:39:59 UTC) #6
http://codereview.chromium.org/11267027/diff/11002/runtime/vm/flow_graph_buil...
File runtime/vm/flow_graph_builder.cc (right):

http://codereview.chromium.org/11267027/diff/11002/runtime/vm/flow_graph_buil...
runtime/vm/flow_graph_builder.cc:2672: const Class& target_class,
Will fix in a future checkin.

On 2012/10/26 22:31:57, regis wrote:
> On 2012/10/26 22:25:14, hausner wrote:
> > On 2012/10/26 22:04:37, regis wrote:
> > > indentation
> > Better?
> 
> I think we use 4 spaces for continuation lines. You have 6 now :-)

Powered by Google App Engine
This is Rietveld 408576698