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

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

Issue 1229923005: dart2js: support tear-offs in the startup emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix bad assert. Created 5 years, 4 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
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/core_patch.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 'numberOrStringSuperNativeTypeCheck': 189 'numberOrStringSuperNativeTypeCheck':
190 'numberOrStringSuperNativeTypeCheck(value) {}', 190 'numberOrStringSuperNativeTypeCheck(value) {}',
191 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}', 191 'numberOrStringSuperTypeCast': 'numberOrStringSuperTypeCast(value) {}',
192 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}', 192 'numberOrStringSuperTypeCheck': 'numberOrStringSuperTypeCheck(value) {}',
193 'numTypeCast': 'numTypeCast(value) {}', 193 'numTypeCast': 'numTypeCast(value) {}',
194 'numTypeCheck': 'numTypeCheck(value) {}', 194 'numTypeCheck': 'numTypeCheck(value) {}',
195 '_Patch': 'class _Patch { final tag; const _Patch(this.tag); }', 195 '_Patch': 'class _Patch { final tag; const _Patch(this.tag); }',
196 'patch': 'const patch = const _Patch(null);', 196 'patch': 'const patch = const _Patch(null);',
197 'patch_full': 'const patch_full = const _Patch("full");', 197 'patch_full': 'const patch_full = const _Patch("full");',
198 'patch_lazy': 'const patch_lazy = const _Patch("lazy");', 198 'patch_lazy': 'const patch_lazy = const _Patch("lazy");',
199 'patch_startup': 'const patch_startup = const _Patch("startup");',
199 'propertyTypeCast': 'propertyTypeCast(x) {}', 200 'propertyTypeCast': 'propertyTypeCast(x) {}',
200 'propertyTypeCheck': 'propertyTypeCheck(value, property) {}', 201 'propertyTypeCheck': 'propertyTypeCheck(value, property) {}',
201 'requiresPreamble': 'requiresPreamble() {}', 202 'requiresPreamble': 'requiresPreamble() {}',
202 'RuntimeFunctionType': 'class RuntimeFunctionType {}', 203 'RuntimeFunctionType': 'class RuntimeFunctionType {}',
203 'RuntimeTypeGeneric': 'class RuntimeTypeGeneric {}', 204 'RuntimeTypeGeneric': 'class RuntimeTypeGeneric {}',
204 'RuntimeTypePlain': 'class RuntimeTypePlain {}', 205 'RuntimeTypePlain': 'class RuntimeTypePlain {}',
205 'runtimeTypeToString': 'runtimeTypeToString(type, {onTypeVariable(i)}) {}', 206 'runtimeTypeToString': 'runtimeTypeToString(type, {onTypeVariable(i)}) {}',
206 'S': 'S() {}', 207 'S': 'S() {}',
207 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', 208 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}',
208 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', 209 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}',
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 'Stream': 'class Stream<T> {}', 384 'Stream': 'class Stream<T> {}',
384 'Completer': 'class Completer<T> {}', 385 'Completer': 'class Completer<T> {}',
385 'StreamIterator': 'class StreamIterator<T> {}', 386 'StreamIterator': 'class StreamIterator<T> {}',
386 }; 387 };
387 388
388 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 389 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
389 'Comment': 'class Comment {}', 390 'Comment': 'class Comment {}',
390 'MirrorSystem': 'class MirrorSystem {}', 391 'MirrorSystem': 'class MirrorSystem {}',
391 'MirrorsUsed': 'class MirrorsUsed {}', 392 'MirrorsUsed': 'class MirrorsUsed {}',
392 }; 393 };
OLDNEW
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/core_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698