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

Issue 9979021: Fix instance compound assignment. (Closed)

Created:
8 years, 8 months ago by floitsch
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix instance compound assignment. We compiled a.y.x += 1 into a.y.x = a.y.x + 1. Similarly foo().x++ was compiled into foo().x = foo().x + 1. Now we store the receiver and reuse it on both sides. Committed: https://code.google.com/p/dart/source/detail?r=6365

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments. #

Patch Set 3 : trailing whitespace #

Patch Set 4 : More tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -64 lines) Patch
M lib/compiler/implementation/ssa/builder.dart View 1 2 5 chunks +72 lines, -47 lines 0 comments Download
M tests/language/language-leg.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/src/InstanceCompoundAssignmentOperatorTest.dart View 1 2 3 3 chunks +58 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
floitsch
8 years, 8 months ago (2012-04-04 18:42:00 UTC) #1
floitsch
Adding Lasse since Nicolas is on vacation.
8 years, 8 months ago (2012-04-10 12:13:13 UTC) #2
Lasse Reichstein Nielsen
What is the fix (i.e., what wasn't working before). Was there an issue entry? LGTM. ...
8 years, 8 months ago (2012-04-10 12:31:13 UTC) #3
floitsch
There was no issue entry. But there was a failing test. https://chromiumcodereview.appspot.com/9979021/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): ...
8 years, 8 months ago (2012-04-10 15:51:00 UTC) #4
ngeoffray
8 years, 8 months ago (2012-04-16 15:23:12 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698