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

Issue 10824276: Register toString dynamic invocation in the presence of string interpolation. (Closed)

Created:
8 years, 4 months ago by Anton Muhin
Modified:
8 years, 4 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Register toString dynamic invocation in the presence of string interpolation. Committed: https://code.google.com/p/dart/source/detail?r=10584

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -16 lines) Patch
M lib/compiler/implementation/resolver.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/call_site_type_inferer_test.dart View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/compiler_helper.dart View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/concrete_type_inference_test.dart View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/resolver_test.dart View 1 2 3 4 5 3 chunks +19 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 3 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ahe
LGTM if you add a dart2js test. Cheers, Peter
8 years, 4 months ago (2012-08-13 10:27:06 UTC) #1
Anton Muhin
Peter, PTAL
8 years, 4 months ago (2012-08-13 13:13:15 UTC) #2
ahe
https://chromiumcodereview.appspot.com/10824276/diff/3001/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10824276/diff/3001/lib/compiler/implementation/resolver.dart#newcode1447 lib/compiler/implementation/resolver.dart:1447: world.registerDynamicInvocation(const SourceString('toString'), Selector.INVOCATION_0); Long line. https://chromiumcodereview.appspot.com/10824276/diff/3001/tests/compiler/dart2js/resolver_test.dart File tests/compiler/dart2js/resolver_test.dart (right): ...
8 years, 4 months ago (2012-08-13 13:26:55 UTC) #3
Anton Muhin
https://chromiumcodereview.appspot.com/10824276/diff/3001/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10824276/diff/3001/lib/compiler/implementation/resolver.dart#newcode1447 lib/compiler/implementation/resolver.dart:1447: world.registerDynamicInvocation(const SourceString('toString'), Selector.INVOCATION_0); On 2012/08/13 13:26:55, ahe wrote: > ...
8 years, 4 months ago (2012-08-13 13:49:42 UTC) #4
ahe
https://chromiumcodereview.appspot.com/10824276/diff/3001/tests/compiler/dart2js/resolver_test.dart File tests/compiler/dart2js/resolver_test.dart (right): https://chromiumcodereview.appspot.com/10824276/diff/3001/tests/compiler/dart2js/resolver_test.dart#newcode731 tests/compiler/dart2js/resolver_test.dart:731: @"class C { toString() => 'C'; } main() { ...
8 years, 4 months ago (2012-08-13 15:05:56 UTC) #5
Anton Muhin
Peter, parseScript didn't help as it apparently doesn't populate the necessary queue and tree elements ...
8 years, 4 months ago (2012-08-13 15:38:56 UTC) #6
ahe
LGTM! https://chromiumcodereview.appspot.com/10824276/diff/8007/tests/compiler/dart2js/resolver_test.dart File tests/compiler/dart2js/resolver_test.dart (right): https://chromiumcodereview.appspot.com/10824276/diff/8007/tests/compiler/dart2js/resolver_test.dart#newcode737 tests/compiler/dart2js/resolver_test.dart:737: final resolvedElements = compiler.enqueuer.resolution.resolvedElements; Please use: Expect.isNotNull(compiler.enqueuer.resolution.getCachedElements(toStringMethod));
8 years, 4 months ago (2012-08-13 15:55:53 UTC) #7
Anton Muhin
8 years, 4 months ago (2012-08-13 16:09:14 UTC) #8
Thanks a lot for review, Peter, submitting.

https://chromiumcodereview.appspot.com/10824276/diff/8007/tests/compiler/dart...
File tests/compiler/dart2js/resolver_test.dart (right):

https://chromiumcodereview.appspot.com/10824276/diff/8007/tests/compiler/dart...
tests/compiler/dart2js/resolver_test.dart:737: final resolvedElements =
compiler.enqueuer.resolution.resolvedElements;
On 2012/08/13 15:55:53, ahe wrote:
> Please use:
> 
>
Expect.isNotNull(compiler.enqueuer.resolution.getCachedElements(toStringMethod));

Done.

Powered by Google App Engine
This is Rietveld 408576698