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_compiler.dart

Issue 12528008: Implement CHA through type mask and TypedSelector in the simple type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
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 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:uri'; 8 import 'dart:uri';
9 9
10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 setRuntimeTypeInfo(a, b) {} 48 setRuntimeTypeInfo(a, b) {}
49 getRuntimeTypeInfo(a) {} 49 getRuntimeTypeInfo(a) {}
50 stringTypeCheck(x) {} 50 stringTypeCheck(x) {}
51 boolConversionCheck(x) {} 51 boolConversionCheck(x) {}
52 abstract class JavaScriptIndexingBehavior {} 52 abstract class JavaScriptIndexingBehavior {}
53 class JSInvocationMirror {} 53 class JSInvocationMirror {}
54 class Closure {} 54 class Closure {}
55 class Null {} 55 class Null {}
56 class Dynamic_ {} 56 class Dynamic_ {}
57 class LinkedHashMap {} 57 class LinkedHashMap {}
58 class ConstantMap {}
59 class TypeImpl {}
58 S() {} 60 S() {}
59 unwrapException(e) {} 61 unwrapException(e) {}
60 assertHelper(a){} 62 assertHelper(a){}
61 createRuntimeType(a) {} 63 createRuntimeType(a) {}
62 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} 64 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}
63 throwAbstractClassInstantiationError(className) {}'''; 65 throwAbstractClassInstantiationError(className) {}''';
64 66
65 const String FOREIGN_LIBRARY = r''' 67 const String FOREIGN_LIBRARY = r'''
66 dynamic JS(String typeDescription, String codeTemplate, 68 dynamic JS(String typeDescription, String codeTemplate,
67 [var arg0, var arg1, var arg2, var arg3, var arg4, var arg5, var arg6, 69 [var arg0, var arg1, var arg2, var arg3, var arg4, var arg5, var arg6,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 374 }
373 } 375 }
374 376
375 class MockDeferredLoadTask extends DeferredLoadTask { 377 class MockDeferredLoadTask extends DeferredLoadTask {
376 MockDeferredLoadTask(Compiler compiler) : super(compiler); 378 MockDeferredLoadTask(Compiler compiler) : super(compiler);
377 379
378 void registerMainApp(LibraryElement mainApp) { 380 void registerMainApp(LibraryElement mainApp) {
379 // Do nothing. 381 // Do nothing.
380 } 382 }
381 } 383 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698