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

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 17334003: Do not treat elements of lists allocated through new List() and new List.filled() as potentially nu… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/compiler/dart2js/list_tracer_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 class bool {} 161 class bool {}
162 class String implements Pattern {} 162 class String implements Pattern {}
163 class Object { 163 class Object {
164 operator ==(other) { return true; } 164 operator ==(other) { return true; }
165 String toString() { return null; } 165 String toString() { return null; }
166 noSuchMethod(im) { throw im; } 166 noSuchMethod(im) { throw im; }
167 } 167 }
168 abstract class StackTrace {} 168 abstract class StackTrace {}
169 class Type {} 169 class Type {}
170 class Function {} 170 class Function {}
171 class List<E> { List([length]); } 171 class List<E> {
172 List([length]);
173 List.filled(length, element);
174 }
172 abstract class Map<K,V> {} 175 abstract class Map<K,V> {}
173 class DateTime { 176 class DateTime {
174 DateTime(year); 177 DateTime(year);
175 DateTime.utc(year); 178 DateTime.utc(year);
176 } 179 }
177 abstract class Pattern {} 180 abstract class Pattern {}
178 bool identical(Object a, Object b) { return true; }'''; 181 bool identical(Object a, Object b) { return true; }''';
179 182
180 const String DEFAULT_ISOLATE_HELPERLIB = r''' 183 const String DEFAULT_ISOLATE_HELPERLIB = r'''
181 class _WorkerBase {}'''; 184 class _WorkerBase {}''';
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 } 434 }
432 } 435 }
433 436
434 class MockDeferredLoadTask extends DeferredLoadTask { 437 class MockDeferredLoadTask extends DeferredLoadTask {
435 MockDeferredLoadTask(Compiler compiler) : super(compiler); 438 MockDeferredLoadTask(Compiler compiler) : super(compiler);
436 439
437 void registerMainApp(LibraryElement mainApp) { 440 void registerMainApp(LibraryElement mainApp) {
438 // Do nothing. 441 // Do nothing.
439 } 442 }
440 } 443 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/list_tracer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698