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

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

Issue 2711783006: Remove HRuntimeType scheme for function types. (Closed)
Patch Set: fix mock library Created 3 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
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 const DEFAULT_PLATFORM_CONFIG = """ 9 const DEFAULT_PLATFORM_CONFIG = """
10 [libraries] 10 [libraries]
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 'doubleTypeCheck': 'doubleTypeCheck(value) {}', 176 'doubleTypeCheck': 'doubleTypeCheck(value) {}',
177 'functionSubtypeCast': 177 'functionSubtypeCast':
178 r'''functionSubtypeCast(Object object, String signatureName, 178 r'''functionSubtypeCast(Object object, String signatureName,
179 String contextName, var context) {}''', 179 String contextName, var context) {}''',
180 'functionTypeTestMetaHelper': r''' 180 'functionTypeTestMetaHelper': r'''
181 functionTypeTestMetaHelper() { 181 functionTypeTestMetaHelper() {
182 buildFunctionType(null, null, null); 182 buildFunctionType(null, null, null);
183 buildNamedFunctionType(null, null, null); 183 buildNamedFunctionType(null, null, null);
184 buildInterfaceType(null, null); 184 buildInterfaceType(null, null);
185 }''', 185 }''',
186 'functionTypeTest': r'functionTypeTest(f, t) {}',
187 'functionTypeCast': r'functionTypeCast(f, t) { return f; }',
188 'functionTypeCheck': r'functionTypeCheck(f, t) { return f; }',
186 'getFallThroughError': 'getFallThroughError() {}', 189 'getFallThroughError': 'getFallThroughError() {}',
187 'getIsolateAffinityTag': 'getIsolateAffinityTag(_) {}', 190 'getIsolateAffinityTag': 'getIsolateAffinityTag(_) {}',
188 'getRuntimeTypeArgument': 191 'getRuntimeTypeArgument':
189 'getRuntimeTypeArgument(target, substitutionName, index) {}', 192 'getRuntimeTypeArgument(target, substitutionName, index) {}',
190 'getRuntimeTypeArguments': 193 'getRuntimeTypeArguments':
191 'getRuntimeTypeArguments(target, substitutionName) {}', 194 'getRuntimeTypeArguments(target, substitutionName) {}',
192 'getRuntimeTypeInfo': 'getRuntimeTypeInfo(a) {}', 195 'getRuntimeTypeInfo': 'getRuntimeTypeInfo(a) {}',
193 'getTraceFromException': 'getTraceFromException(exception) {}', 196 'getTraceFromException': 'getTraceFromException(exception) {}',
194 'getTypeArgumentByIndex': 'getTypeArgumentByIndex(target, index) {}', 197 'getTypeArgumentByIndex': 'getTypeArgumentByIndex(target, index) {}',
195 'GeneralConstantMap': 'class GeneralConstantMap {}', 198 'GeneralConstantMap': 'class GeneralConstantMap {}',
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 462
460 const LookupMap(this._entries, [this._nestedMaps = const []]) 463 const LookupMap(this._entries, [this._nestedMaps = const []])
461 : _key = null, _value = null; 464 : _key = null, _value = null;
462 465
463 const LookupMap.pair(this._key, this._value) 466 const LookupMap.pair(this._key, this._value)
464 : _entries = const [], _nestedMaps = const []; 467 : _entries = const [], _nestedMaps = const [];
465 V operator[](K k) => null; 468 V operator[](K k) => null;
466 }''', 469 }''',
467 '_version': 'const _version = "0.0.1+1";', 470 '_version': 'const _version = "0.0.1+1";',
468 }; 471 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698