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

Issue 9183002: Remove the type token used to pass element information to arrays. (Closed)

Created:
8 years, 11 months ago by mmendez
Modified:
8 years, 11 months ago
Reviewers:
floitsch, codefu, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove TypeToken as means for assigning type arguments to arrays. For native, classes with a bodyless constructor, pass the constructor arguments to the native constructor in the generated factory method. The generated factory method will handle setting the runtime type information if necessary. Committed: https://code.google.com/p/dart/source/detail?r=3356

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address floitsch's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -24 lines) Patch
M compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java View 1 2 chunks +12 lines, -0 lines 0 comments Download
M compiler/lib/corelib_impl.dart View 1 chunk +0 lines, -1 line 0 comments Download
M compiler/lib/implementation/array.dart View 2 chunks +4 lines, -6 lines 0 comments Download
M compiler/lib/implementation/array.js View 1 chunk +0 lines, -6 lines 0 comments Download
D compiler/lib/implementation/type_token.dart View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mmendez
Previously we always created a TypeToken instance to pass type arguments to ListImplementation instances. Because ...
8 years, 11 months ago (2012-01-13 16:28:00 UTC) #1
floitsch
With the exception of the part that I don't understand lgtm. Please clarify and I ...
8 years, 11 months ago (2012-01-16 13:23:26 UTC) #2
mmendez
PTAL http://codereview.chromium.org/9183002/diff/1/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java File compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (right): http://codereview.chromium.org/9183002/diff/1/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java#newcode1063 compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java:1063: if (classElement.getNativeName() != null && x.getFunction().getBody() == null) ...
8 years, 11 months ago (2012-01-17 12:48:04 UTC) #3
floitsch
8 years, 11 months ago (2012-01-17 14:25:18 UTC) #4
LGTM.

Powered by Google App Engine
This is Rietveld 408576698