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

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

Issue 2577423002: Further reduce use of Compiler.closedWorld. (Closed)
Patch Set: Created 4 years 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) 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 js_backend.backend; 5 library js_backend.backend;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
10 10
(...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after
3227 ClassElement get nullImplementation => helpers.jsNullClass; 3227 ClassElement get nullImplementation => helpers.jsNullClass;
3228 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable; 3228 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable;
3229 ClassElement get asyncFutureImplementation => helpers.futureImplementation; 3229 ClassElement get asyncFutureImplementation => helpers.futureImplementation;
3230 ClassElement get asyncStarStreamImplementation => helpers.controllerStream; 3230 ClassElement get asyncStarStreamImplementation => helpers.controllerStream;
3231 ClassElement get functionImplementation => helpers.coreClasses.functionClass; 3231 ClassElement get functionImplementation => helpers.coreClasses.functionClass;
3232 ClassElement get indexableImplementation => helpers.jsIndexableClass; 3232 ClassElement get indexableImplementation => helpers.jsIndexableClass;
3233 ClassElement get mutableIndexableImplementation => 3233 ClassElement get mutableIndexableImplementation =>
3234 helpers.jsMutableIndexableClass; 3234 helpers.jsMutableIndexableClass;
3235 ClassElement get indexingBehaviorImplementation => 3235 ClassElement get indexingBehaviorImplementation =>
3236 helpers.jsIndexingBehaviorInterface; 3236 helpers.jsIndexingBehaviorInterface;
3237 ClassElement get interceptorImplementation => helpers.jsInterceptorClass;
3237 3238
3238 bool isDefaultEqualityImplementation(Element element) { 3239 bool isDefaultEqualityImplementation(Element element) {
3239 assert(element.name == '=='); 3240 assert(element.name == '==');
3240 ClassElement classElement = element.enclosingClass; 3241 ClassElement classElement = element.enclosingClass;
3241 return classElement == helpers.coreClasses.objectClass || 3242 return classElement == helpers.coreClasses.objectClass ||
3242 classElement == helpers.jsInterceptorClass || 3243 classElement == helpers.jsInterceptorClass ||
3243 classElement == helpers.jsNullClass; 3244 classElement == helpers.jsNullClass;
3244 } 3245 }
3245 3246
3246 @override 3247 @override
3247 bool isInterceptorClass(ClassElement cls) { 3248 bool isInterceptorClass(ClassElement cls) {
3248 return helpers.backend.isInterceptorClass(cls); 3249 return helpers.backend.isInterceptorClass(cls);
3249 } 3250 }
3250 3251
3251 @override 3252 @override
3252 bool isNative(Element element) { 3253 bool isNative(Element element) {
3253 return helpers.backend.isNative(element); 3254 return helpers.backend.isNative(element);
3254 } 3255 }
3255 } 3256 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698