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

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

Issue 2775283002: Use Entity in native_data. (Closed)
Patch Set: Fix. Created 3 years, 9 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 | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/backend_usage.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 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 } 882 }
883 // No native behavior for this call. 883 // No native behavior for this call.
884 return null; 884 return null;
885 } 885 }
886 886
887 bool isComplexNoSuchMethod(FunctionElement element) => 887 bool isComplexNoSuchMethod(FunctionElement element) =>
888 noSuchMethodRegistry.isComplex(element); 888 noSuchMethodRegistry.isComplex(element);
889 889
890 ResolutionEnqueuer createResolutionEnqueuer( 890 ResolutionEnqueuer createResolutionEnqueuer(
891 CompilerTask task, Compiler compiler) { 891 CompilerTask task, Compiler compiler) {
892 _nativeBasicData = nativeBasicDataBuilder.close(); 892 _nativeBasicData =
893 nativeBasicDataBuilder.close(compiler.elementEnvironment);
893 _nativeData = new NativeDataImpl(nativeBasicData); 894 _nativeData = new NativeDataImpl(nativeBasicData);
894 _backendClasses = new JavaScriptBackendClasses( 895 _backendClasses = new JavaScriptBackendClasses(
895 compiler.elementEnvironment, helpers, nativeBasicData); 896 compiler.elementEnvironment, helpers, nativeBasicData);
896 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis( 897 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis(
897 compiler.resolution, 898 compiler.resolution,
898 constantSystem, 899 constantSystem,
899 commonElements, 900 commonElements,
900 backendClasses, 901 backendClasses,
901 helpers, 902 helpers,
902 nativeBasicData, 903 nativeBasicData,
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 return _backend.defaultSuperclass(element); 1615 return _backend.defaultSuperclass(element);
1615 } 1616 }
1616 1617
1617 @override 1618 @override
1618 bool isNativeClass(ClassEntity element) => 1619 bool isNativeClass(ClassEntity element) =>
1619 _backend.nativeBasicData.isNativeClass(element); 1620 _backend.nativeBasicData.isNativeClass(element);
1620 1621
1621 @override 1622 @override
1622 bool isForeign(Element element) => _backend.isForeign(element); 1623 bool isForeign(Element element) => _backend.isForeign(element);
1623 } 1624 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/backend_usage.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698