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

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

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index a1cc770d9a8706802c12fced27c2fca48e682229..d11702f907f83b9fd5949bf4007c3467cc009224 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -42,8 +42,8 @@ class OptionalParameterTypes {
final List<HType> types;
OptionalParameterTypes(int optionalArgumentsCount)
- : names = new List<SourceString>.fixedLength(optionalArgumentsCount),
- types = new List<HType>.fixedLength(optionalArgumentsCount);
+ : names = new List<SourceString>(optionalArgumentsCount),
+ types = new List<HType>(optionalArgumentsCount);
int get length => names.length;
SourceString name(int index) => names[index];
@@ -69,10 +69,10 @@ class HTypeList {
final List<SourceString> namedArguments;
HTypeList(int length)
- : types = new List<HType>.fixedLength(length),
+ : types = new List<HType>(length),
namedArguments = null;
HTypeList.withNamedArguments(int length, this.namedArguments)
- : types = new List<HType>.fixedLength(length);
+ : types = new List<HType>(length);
const HTypeList.withAllUnknown()
: types = null,
namedArguments = null;

Powered by Google App Engine
This is Rietveld 408576698