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

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

Issue 1087973002: Rewrite for-in loop as indexing loop for JavaScript indexable arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: retry Created 5 years, 8 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 | « sdk/lib/_internal/compiler/js_lib/js_helper.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 for creating mock versions of platform and internal libraries. 5 // Library for creating mock versions of platform and internal libraries.
6 6
7 library mock_libraries; 7 library mock_libraries;
8 8
9 String buildLibrarySource( 9 String buildLibrarySource(
10 Map<String, String> elementMap, 10 Map<String, String> elementMap,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', 208 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}',
209 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}', 209 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}',
210 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}', 210 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}',
211 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}', 211 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}',
212 'stringTypeCast': 'stringTypeCast(x) {}', 212 'stringTypeCast': 'stringTypeCast(x) {}',
213 'stringTypeCheck': 'stringTypeCheck(x) {}', 213 'stringTypeCheck': 'stringTypeCheck(x) {}',
214 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}', 214 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}',
215 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}', 215 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}',
216 'throwAbstractClassInstantiationError': 216 'throwAbstractClassInstantiationError':
217 'throwAbstractClassInstantiationError(className) {}', 217 'throwAbstractClassInstantiationError(className) {}',
218 'checkConcurrentModificationError':
219 'checkConcurrentModificationError(collection) {}',
220 'throwConcurrentModificationError':
221 'throwConcurrentModificationError(collection) {}',
218 'throwCyclicInit': 'throwCyclicInit(staticName) {}', 222 'throwCyclicInit': 'throwCyclicInit(staticName) {}',
219 'throwExpression': 'throwExpression(e) {}', 223 'throwExpression': 'throwExpression(e) {}',
220 'throwNoSuchMethod': 224 'throwNoSuchMethod':
221 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', 225 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}',
222 'throwRuntimeError': 'throwRuntimeError(message) {}', 226 'throwRuntimeError': 'throwRuntimeError(message) {}',
223 'throwTypeError': 'throwTypeError(message) {}', 227 'throwTypeError': 'throwTypeError(message) {}',
224 'TypeImpl': 'class TypeImpl {}', 228 'TypeImpl': 'class TypeImpl {}',
225 'TypeVariable': 'class TypeVariable {}', 229 'TypeVariable': 'class TypeVariable {}',
226 'unwrapException': 'unwrapException(e) {}', 230 'unwrapException': 'unwrapException(e) {}',
227 'voidTypeCheck': 'voidTypeCheck(value) {}', 231 'voidTypeCheck': 'voidTypeCheck(value) {}',
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 'Stream': 'class Stream<T> {}', 381 'Stream': 'class Stream<T> {}',
378 'Completer': 'class Completer<T> {}', 382 'Completer': 'class Completer<T> {}',
379 'StreamIterator': 'class StreamIterator<T> {}', 383 'StreamIterator': 'class StreamIterator<T> {}',
380 }; 384 };
381 385
382 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 386 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
383 'Comment': 'class Comment {}', 387 'Comment': 'class Comment {}',
384 'MirrorSystem': 'class MirrorSystem {}', 388 'MirrorSystem': 'class MirrorSystem {}',
385 'MirrorsUsed': 'class MirrorsUsed {}', 389 'MirrorsUsed': 'class MirrorsUsed {}',
386 }; 390 };
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698