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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 1180973003: dart2js cps: Support function types in 'is' and 'as' operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update doc comment for TypeCast Created 5 years, 6 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 | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder.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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void registerCompileTimeConstant(ConstantValue constant) { 128 void registerCompileTimeConstant(ConstantValue constant) {
129 backend.registerCompileTimeConstant(constant, this); 129 backend.registerCompileTimeConstant(constant, this);
130 backend.constants.addCompileTimeConstantForEmission(constant); 130 backend.constants.addCompileTimeConstantForEmission(constant);
131 } 131 }
132 132
133 void registerTypeVariableBoundsSubtypeCheck(DartType subtype, 133 void registerTypeVariableBoundsSubtypeCheck(DartType subtype,
134 DartType supertype) { 134 DartType supertype) {
135 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); 135 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype);
136 } 136 }
137 137
138 void registerClosureWithFreeTypeVariables(FunctionElement element) { 138 void registerInstantiatedClosure(LocalFunctionElement element) {
139 backend.registerClosureWithFreeTypeVariables(element, world, this); 139 backend.registerInstantiatedClosure(element, this);
140 } 140 }
141 141
142 void registerGetOfStaticFunction(FunctionElement element) { 142 void registerGetOfStaticFunction(FunctionElement element) {
143 world.registerGetOfStaticFunction(element); 143 world.registerGetOfStaticFunction(element);
144 } 144 }
145 145
146 void registerSelectorUse(Selector selector) { 146 void registerSelectorUse(Selector selector) {
147 world.registerSelectorUse(selector); 147 world.registerSelectorUse(selector);
148 } 148 }
149 149
(...skipping 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 InterfaceType streamType([DartType elementType]) { 2508 InterfaceType streamType([DartType elementType]) {
2509 InterfaceType type = streamClass.computeType(compiler); 2509 InterfaceType type = streamClass.computeType(compiler);
2510 if (elementType == null) { 2510 if (elementType == null) {
2511 return streamClass.rawType; 2511 return streamClass.rawType;
2512 } 2512 }
2513 return type.createInstantiation([elementType]); 2513 return type.createInstantiation([elementType]);
2514 } 2514 }
2515 } 2515 }
2516 2516
2517 typedef void InternalErrorFunction(Spannable location, String message); 2517 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698