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

Side by Side Diff: lib/compiler/implementation/runtime_types.dart

Issue 11088022: Move RuntimeTypeInformation to its own library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « no previous file | lib/compiler/implementation/ssa/ssa.dart » ('j') | 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) 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('ssa'); 5 #library('runtime_types');
6 6
7 #import('../closure.dart'); 7 #import('leg.dart');
8 #import('../js/js.dart', prefix: 'js'); 8 #import('elements/elements.dart');
9 #import('../leg.dart'); 9 #import('tree/tree.dart');
10 #import('../source_file.dart'); 10 #import('universe/universe.dart');
11 #import('../source_map_builder.dart'); 11 #import('util/util.dart');
12 #import('../elements/elements.dart');
13 #import('../js_backend/js_backend.dart');
14 #import('../native_handler.dart', prefix: 'native');
15 #import('../scanner/scannerlib.dart');
16 #import('../tree/tree.dart');
17 #import('../universe/universe.dart');
18 #import('../util/util.dart');
19 #import('../util/characters.dart');
20
21 #source('bailout.dart');
22 #source('builder.dart');
23 #source('codegen.dart');
24 #source('codegen_helpers.dart');
25 #source('js_names.dart');
26 #source('nodes.dart');
27 #source('optimize.dart');
28 #source('types.dart');
29 #source('types_propagation.dart');
30 #source('validate.dart');
31 #source('variable_allocator.dart');
32 #source('value_range_analyzer.dart');
33 #source('value_set.dart');
34 12
35 class RuntimeTypeInformation { 13 class RuntimeTypeInformation {
36 bool hasTypeArguments(DartType type) { 14 bool hasTypeArguments(DartType type) {
37 if (type is InterfaceType) { 15 if (type is InterfaceType) {
38 InterfaceType interfaceType = type; 16 InterfaceType interfaceType = type;
39 return !interfaceType.arguments.isEmpty(); 17 return !interfaceType.arguments.isEmpty();
40 } 18 }
41 return false; 19 return false;
42 } 20 }
43 21
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 */ 67 */
90 static String generateTypeVariableString(ClassElement element, 68 static String generateTypeVariableString(ClassElement element,
91 int numberOfInputs) { 69 int numberOfInputs) {
92 String stringify(TypeVariableType variable, bool hasValue) { 70 String stringify(TypeVariableType variable, bool hasValue) {
93 return "'${variable.name.slowToString()}': #"; 71 return "'${variable.name.slowToString()}': #";
94 } 72 }
95 return stringifyTypeVariables(element.typeVariables, numberOfInputs, 73 return stringifyTypeVariables(element.typeVariables, numberOfInputs,
96 stringify); 74 stringify);
97 } 75 }
98 } 76 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698