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

Issue 1066303002: Fix order of parameters in intercepted generative constructor body. (Closed)

Created:
5 years, 8 months ago by sra1
Modified:
5 years, 8 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Fix order of parameters in intercepted generative constructor body. When the receiver parameter is inserted at the front of the parameter list, some parameters may have already been inserted and others will be inserted later. If none have already been inserted, then the subsequent parameters were being inserted in front of the receiver parameter. This is fixed by marking the receiver as the lastAddedParameter if it is the only one. This did not seem to affect 'this', presumably because the position of 'this' is immaterial since it is always removed from the JS function parameters. R=sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=45048

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -4 lines) Patch
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 chunks +7 lines, -2 lines 0 comments Download
A tests/html/custom_elements_23127_test.dart View 1 1 chunk +126 lines, -0 lines 0 comments Download
A + tests/html/custom_elements_23127_test.html View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
sra1
5 years, 8 months ago (2015-04-08 02:21:50 UTC) #3
Siggi Cherem (dart-lang)
could we add a test too? Maybe just use the code in https://code.google.com/p/dart/issues/detail?id=23127 ? https://codereview.chromium.org/1066303002/diff/20001/pkg/compiler/lib/src/ssa/builder.dart ...
5 years, 8 months ago (2015-04-08 17:52:42 UTC) #4
sra1
PTAL As explained before, no other combination of kinds of argument tickle the bug. https://codereview.chromium.org/1066303002/diff/20001/pkg/compiler/lib/src/ssa/builder.dart ...
5 years, 8 months ago (2015-04-09 04:37:09 UTC) #5
Siggi Cherem (dart-lang)
lgtm! Fantastic, thanks Stephen!
5 years, 8 months ago (2015-04-09 16:15:19 UTC) #6
sra1
5 years, 8 months ago (2015-04-10 03:18:12 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as 45048 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698