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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart

Issue 177963002: Use List instead of Link in the type system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart b/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
index 154f0df08e38201b45c7f875885e5e0dccac47fb..9ed094be68718094acf5ecab3261efe666ab9320 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
@@ -267,8 +267,7 @@ class JavaScriptConstantSystem extends ConstantSystem {
if (sourceType.treatAsRaw) {
keysType = compiler.listClass.rawType;
} else {
- Link<DartType> arguments =
- new Link<DartType>.fromList([sourceType.typeArguments.head]);
+ List<DartType> arguments = <DartType>[sourceType.typeArguments.first];
keysType = new InterfaceType(compiler.listClass, arguments);
}
ListConstant keysList = new ListConstant(keysType, keys);
@@ -278,7 +277,7 @@ class JavaScriptConstantSystem extends ConstantSystem {
: JavaScriptMapConstant.DART_GENERAL_CLASS;
ClassElement classElement = backend.jsHelperLibrary.find(className);
classElement.ensureResolved(compiler);
- Link<DartType> typeArgument = sourceType.typeArguments;
+ List<DartType> typeArgument = sourceType.typeArguments;
InterfaceType type;
if (sourceType.treatAsRaw) {
type = classElement.rawType;

Powered by Google App Engine
This is Rietveld 408576698