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

Side by Side Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 1160763002: dart2js cps: 'is'-check directly against type variables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
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 code_generator_dependencies; 5 library code_generator_dependencies;
6 6
7 import '../js_backend.dart'; 7 import '../js_backend.dart';
8 import '../../dart2jslib.dart'; 8 import '../../dart2jslib.dart';
9 import '../../js_emitter/js_emitter.dart'; 9 import '../../js_emitter/js_emitter.dart';
10 import '../../js/js.dart' as js; 10 import '../../js/js.dart' as js;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 169
170 FunctionElement getAddRuntimeTypeInformation() { 170 FunctionElement getAddRuntimeTypeInformation() {
171 return _backend.getSetRuntimeTypeInfo(); 171 return _backend.getSetRuntimeTypeInfo();
172 } 172 }
173 173
174 FunctionElement getCheckSubtype() { 174 FunctionElement getCheckSubtype() {
175 return _backend.getCheckSubtype(); 175 return _backend.getCheckSubtype();
176 } 176 }
177 177
178 FunctionElement getCheckSubtypeOfRuntime() {
179 return _backend.getCheckSubtypeOfRuntimeType();
180 }
181
178 js.Expression getRuntimeTypeName(ClassElement cls) { 182 js.Expression getRuntimeTypeName(ClassElement cls) {
179 return js.string(_namer.runtimeTypeName(cls)); 183 return js.string(_namer.runtimeTypeName(cls));
180 } 184 }
181 185
182 int getTypeVariableIndex(TypeVariableType variable) { 186 int getTypeVariableIndex(TypeVariableType variable) {
183 return RuntimeTypes.getTypeVariableIndex(variable.element); 187 return RuntimeTypes.getTypeVariableIndex(variable.element);
184 } 188 }
185 189
186 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { 190 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) {
187 ClassWorld classWorld = _compiler.world; 191 ClassWorld classWorld = _compiler.world;
(...skipping 29 matching lines...) Expand all
217 } 221 }
218 222
219 bool operatorEqHandlesNullArgument(FunctionElement element) { 223 bool operatorEqHandlesNullArgument(FunctionElement element) {
220 return _backend.operatorEqHandlesNullArgument(element); 224 return _backend.operatorEqHandlesNullArgument(element);
221 } 225 }
222 226
223 bool hasStrictSubtype(ClassElement element) { 227 bool hasStrictSubtype(ClassElement element) {
224 return _compiler.world.hasAnyStrictSubtype(element); 228 return _compiler.world.hasAnyStrictSubtype(element);
225 } 229 }
226 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698