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

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

Issue 2688413003: Extract BackendUsage, MirrorsData, and CheckedModeHelpers from Backend. (Closed)
Patch Set: Cleanup Created 3 years, 10 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.js_backend.helpers; 5 library dart2js.js_backend.helpers;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers, Uris; 8 import '../common/names.dart' show Identifiers, Uris;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../core_types.dart' show CommonElements, ElementEnvironment; 10 import '../core_types.dart' show CommonElements, ElementEnvironment;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 ClassEntity _findInterceptorsClass(String name) => 49 ClassEntity _findInterceptorsClass(String name) =>
50 _findClass(interceptorsLibrary, name); 50 _findClass(interceptorsLibrary, name);
51 51
52 FunctionEntity _findInterceptorsFunction(String name) => 52 FunctionEntity _findInterceptorsFunction(String name) =>
53 _findLibraryMember(interceptorsLibrary, name); 53 _findLibraryMember(interceptorsLibrary, name);
54 54
55 ClassEntity _findHelperClass(String name) => 55 ClassEntity _findHelperClass(String name) =>
56 _findClass(jsHelperLibrary, name); 56 _findClass(jsHelperLibrary, name);
57 57
58 // TODO(johnniwinther): Avoid the need for this (from [CheckedModeHelper]).
59 FunctionEntity findHelperFunction(String name) => _findHelperFunction(name);
60
58 FunctionEntity _findHelperFunction(String name) => 61 FunctionEntity _findHelperFunction(String name) =>
59 _findLibraryMember(jsHelperLibrary, name); 62 _findLibraryMember(jsHelperLibrary, name);
60 63
61 ClassEntity _findAsyncHelperClass(String name) => 64 ClassEntity _findAsyncHelperClass(String name) =>
62 _findClass(asyncLibrary, name); 65 _findClass(asyncLibrary, name);
63 66
64 FunctionEntity _findAsyncHelperFunction(String name) => 67 FunctionEntity _findAsyncHelperFunction(String name) =>
65 _findLibraryMember(asyncLibrary, name); 68 _findLibraryMember(asyncLibrary, name);
66 69
67 FunctionEntity _findMirrorsFunction(String name) { 70 FunctionEntity _findMirrorsFunction(String name) {
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 /// The class for patch annotations defined in dart:_js_helper. 800 /// The class for patch annotations defined in dart:_js_helper.
798 ClassEntity get patchAnnotationClass => 801 ClassEntity get patchAnnotationClass =>
799 _patchAnnotationClass ??= _findHelperClass('_Patch'); 802 _patchAnnotationClass ??= _findHelperClass('_Patch');
800 803
801 ClassEntity _nativeAnnotationClass; 804 ClassEntity _nativeAnnotationClass;
802 805
803 /// The class for native annotations defined in dart:_js_helper. 806 /// The class for native annotations defined in dart:_js_helper.
804 ClassEntity get nativeAnnotationClass => 807 ClassEntity get nativeAnnotationClass =>
805 _nativeAnnotationClass ??= _findHelperClass('Native'); 808 _nativeAnnotationClass ??= _findHelperClass('Native');
806 } 809 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.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