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

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

Issue 833623003: dart2js: Merge intercepted names map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: replace TODO with comment. Created 5 years, 11 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/shared/embedded_names.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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 }; 234 };
235 235
236 const Map<String, String> DEFAULT_INTERCEPTORS_LIBRARY = const <String, String>{ 236 const Map<String, String> DEFAULT_INTERCEPTORS_LIBRARY = const <String, String>{
237 'findIndexForNativeSubclassType': 237 'findIndexForNativeSubclassType':
238 'findIndexForNativeSubclassType(type) {}', 238 'findIndexForNativeSubclassType(type) {}',
239 'getDispatchProperty': 'getDispatchProperty(o) {}', 239 'getDispatchProperty': 'getDispatchProperty(o) {}',
240 'getInterceptor': 'getInterceptor(x) {}', 240 'getInterceptor': 'getInterceptor(x) {}',
241 'getNativeInterceptor': 'getNativeInterceptor(x) {}', 241 'getNativeInterceptor': 'getNativeInterceptor(x) {}',
242 'initializeDispatchProperty': 'initializeDispatchProperty(f,p,i) {}', 242 'initializeDispatchProperty': 'initializeDispatchProperty(f,p,i) {}',
243 'initializeDispatchPropertyCSP': 'initializeDispatchPropertyCSP(f,p,i) {}', 243 'initializeDispatchPropertyCSP': 'initializeDispatchPropertyCSP(f,p,i) {}',
244 'interceptedNames': 'var interceptedNames;',
245 'Interceptor': r''' 244 'Interceptor': r'''
246 class Interceptor { 245 class Interceptor {
247 toString() {} 246 toString() {}
248 bool operator==(other) => identical(this, other); 247 bool operator==(other) => identical(this, other);
249 get hashCode => throw "Interceptor.hashCode not implemented."; 248 get hashCode => throw "Interceptor.hashCode not implemented.";
250 noSuchMethod(im) { throw im; } 249 noSuchMethod(im) { throw im; }
251 }''', 250 }''',
252 'JSArray': r''' 251 'JSArray': r'''
253 class JSArray<E> extends Interceptor implements List<E>, JSIndexable { 252 class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
254 JSArray(); 253 JSArray();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{ 362 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{
364 'Future': 'class Future<T> {}', 363 'Future': 'class Future<T> {}',
365 'Stream': 'class Stream<T> {}', 364 'Stream': 'class Stream<T> {}',
366 }; 365 };
367 366
368 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 367 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
369 'Comment': 'class Comment {}', 368 'Comment': 'class Comment {}',
370 'MirrorSystem': 'class MirrorSystem {}', 369 'MirrorSystem': 'class MirrorSystem {}',
371 'MirrorsUsed': 'class MirrorsUsed {}', 370 'MirrorsUsed': 'class MirrorsUsed {}',
372 }; 371 };
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698