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

Issue 10113007: We must use the original element and not the default implementation element when checking if the co… (Closed)

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

Description

We must use the original element and not the default implementation element when checking if the constructor is the List constructor. Committed: https://code.google.com/p/dart/source/detail?r=6748

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M frog/tests/leg/src/BuiltinInterceptorTest.dart View 2 chunks +9 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ngeoffray
8 years, 8 months ago (2012-04-19 09:15:11 UTC) #1
floitsch
LGTM. https://chromiumcodereview.appspot.com/10113007/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/10113007/diff/1/lib/compiler/implementation/ssa/builder.dart#newcode2158 lib/compiler/implementation/ssa/builder.dart:2158: } else if (element.isFactoryConstructor() Since we need to ...
8 years, 8 months ago (2012-04-19 10:50:32 UTC) #2
ngeoffray
8 years, 8 months ago (2012-04-19 16:17:52 UTC) #3
https://chromiumcodereview.appspot.com/10113007/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/builder.dart (right):

https://chromiumcodereview.appspot.com/10113007/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/builder.dart:2158: } else if
(element.isFactoryConstructor()
On 2012/04/19 10:50:32, floitsch wrote:
> Since we need to look at the original non-forwarded element anyways, let's
only
> look at that one.
> Add a comment why.
> And I don't think we shouldn't care if it is a constructor or a factory. In
the
> test-mockup it would be a factory, and in the actual implementation it would
> probably be a constructor (since that's the kind in the interface).

Done.

Powered by Google App Engine
This is Rietveld 408576698