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

Unified Diff: pkg/compiler/lib/src/js_backend/mirrors_analysis.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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
diff --git a/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart b/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
index e7be92db400da61b14d49ba284bf1b0359ee463f..0c5a4a4a08103062fce1fb8e4e3323c913b4a5a9 100644
--- a/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
@@ -79,7 +79,8 @@ class MirrorsHandler {
*/
bool _shouldIncludeElementDueToMirrors(Element element,
{bool includedEnclosing}) {
- return includedEnclosing || _backend.requiredByMirrorSystem(element);
+ return includedEnclosing ||
+ _backend.mirrorsData.requiredByMirrorSystem(element);
}
/// Enqueue the constructor [ctor] if it is required for reflection.
@@ -173,7 +174,7 @@ class MirrorsHandler {
void _enqueueReflectiveSpecialClasses() {
Iterable<ClassElement> classes = _backend.classesRequiredForReflection;
for (ClassElement cls in classes) {
- if (_backend.referencedFromMirrorSystem(cls)) {
+ if (_backend.mirrorsData.referencedFromMirrorSystem(cls)) {
_logEnqueueReflectiveAction(cls);
cls.ensureResolved(_resolution);
impactBuilder
« no previous file with comments | « pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart ('k') | pkg/compiler/lib/src/js_backend/mirrors_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698