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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.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/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index c217b5a763239a6b315719a0374dd55493b9f5fe..290fb11a6982ec47dd505739f5d5be74144fe6f2 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -650,11 +650,10 @@ class CodeEmitterTask extends CompilerTask {
// The parameters that this stub takes.
List<jsAst.Parameter> parametersBuffer =
- new List<jsAst.Parameter>.fixedLength(
- selector.argumentCount + extraArgumentCount);
+ new List<jsAst.Parameter>(selector.argumentCount + extraArgumentCount);
// The arguments that will be passed to the real method.
List<jsAst.Expression> argumentsBuffer =
- new List<jsAst.Expression>.fixedLength(
+ new List<jsAst.Expression>(
parameters.parameterCount + extraArgumentCount);
int count = 0;

Powered by Google App Engine
This is Rietveld 408576698