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

Issue 11417005: Do not canonicalize Type instances. (Closed)

Created:
8 years, 1 month ago by karlklose
Modified:
8 years, 1 month ago
Reviewers:
ngeoffray, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Do not canonicalize Type instances. Committed: https://code.google.com/p/dart/source/detail?r=15000

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -45 lines) Patch
M sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/interceptors.dart View 2 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 2 chunks +12 lines, -17 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/runtime_types.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/first_class_types_libraries_test.dart View 1 chunk +2 lines, -4 lines 0 comments Download
M tests/language/first_class_types_literals_test.dart View 1 chunk +8 lines, -8 lines 2 comments Download
M tests/language/generic_creation_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
karlklose
8 years, 1 month ago (2012-11-15 12:23:56 UTC) #1
ngeoffray
Code looks good, but what motivated this change?
8 years, 1 month ago (2012-11-15 12:28:12 UTC) #2
karlklose
We don't need to canonicalize the results from runtimeType. By removing the cache and using ...
8 years, 1 month ago (2012-11-15 12:49:01 UTC) #3
ngeoffray
On 2012/11/15 12:49:01, karlklose wrote: > We don't need to canonicalize the results from runtimeType. ...
8 years, 1 month ago (2012-11-15 12:50:24 UTC) #4
sra1
lgtm https://codereview.chromium.org/11417005/diff/1/tests/language/first_class_types_literals_test.dart File tests/language/first_class_types_literals_test.dart (right): https://codereview.chromium.org/11417005/diff/1/tests/language/first_class_types_literals_test.dart#newcode17 tests/language/first_class_types_literals_test.dart:17: Expect.equals(int, int); Since class literals are compile-time constants, ...
8 years, 1 month ago (2012-11-16 08:43:45 UTC) #5
sra1
lgtm lgtm
8 years, 1 month ago (2012-11-16 08:43:46 UTC) #6
sra1
lgtm lgtm
8 years, 1 month ago (2012-11-16 08:43:49 UTC) #7
karlklose
8 years, 1 month ago (2012-11-16 13:42:43 UTC) #8
https://codereview.chromium.org/11417005/diff/1/tests/language/first_class_ty...
File tests/language/first_class_types_literals_test.dart (right):

https://codereview.chromium.org/11417005/diff/1/tests/language/first_class_ty...
tests/language/first_class_types_literals_test.dart:17: Expect.equals(int, int);
They are not yet constants. I have a CL to make literals compile-time constants
and that CL contains tests for this.

Powered by Google App Engine
This is Rietveld 408576698