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

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

Issue 1146813009: Introduce WorldImpact (Closed) Base URL: https://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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 List<js.Expression> arguments) { 203 List<js.Expression> arguments) {
204 int variableIndex = 0; 204 int variableIndex = 0;
205 js.Expression representation = _backend.rti.getTypeRepresentation( 205 js.Expression representation = _backend.rti.getTypeRepresentation(
206 dartType, 206 dartType,
207 (_) => arguments[variableIndex++]); 207 (_) => arguments[variableIndex++]);
208 assert(variableIndex == arguments.length); 208 assert(variableIndex == arguments.length);
209 return representation; 209 return representation;
210 } 210 }
211 211
212 void registerIsCheck(DartType type, Registry registry) { 212 void registerIsCheck(DartType type, Registry registry) {
213 _enqueuer.registerIsCheck(type, registry); 213 _enqueuer.registerIsCheck(type);
214 _backend.registerIsCheckForCodegen(type, _enqueuer, registry); 214 _backend.registerIsCheckForCodegen(type, _enqueuer, registry);
215 } 215 }
216 216
217 String getTypeTestTag(DartType type) { 217 String getTypeTestTag(DartType type) {
218 return _backend.namer.operatorIsType(type); 218 return _backend.namer.operatorIsType(type);
219 } 219 }
220 220
221 String getTypeSubstitutionTag(ClassElement element) { 221 String getTypeSubstitutionTag(ClassElement element) {
222 return _backend.namer.substitutionName(element); 222 return _backend.namer.substitutionName(element);
223 } 223 }
224 224
225 bool operatorEqHandlesNullArgument(FunctionElement element) { 225 bool operatorEqHandlesNullArgument(FunctionElement element) {
226 return _backend.operatorEqHandlesNullArgument(element); 226 return _backend.operatorEqHandlesNullArgument(element);
227 } 227 }
228 228
229 bool hasStrictSubtype(ClassElement element) { 229 bool hasStrictSubtype(ClassElement element) {
230 return _compiler.world.hasAnyStrictSubtype(element); 230 return _compiler.world.hasAnyStrictSubtype(element);
231 } 231 }
232 } 232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698