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

Unified Diff: tests/compiler/dart2js/mirrors_used_test.dart

Issue 2748383003: Split MirrorsAnalysis (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mirror_tree_shaking_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mirrors_used_test.dart
diff --git a/tests/compiler/dart2js/mirrors_used_test.dart b/tests/compiler/dart2js/mirrors_used_test.dart
index d9cedb4d1cab0ef7df08520d8f6d038b8c197802..f7ba582be6965c8f97ac146b82274cce4644e274 100644
--- a/tests/compiler/dart2js/mirrors_used_test.dart
+++ b/tests/compiler/dart2js/mirrors_used_test.dart
@@ -19,6 +19,7 @@ import 'package:compiler/src/constants/values.dart'
import 'package:compiler/src/elements/elements.dart' show Element, Elements;
import 'package:compiler/src/js_backend/js_backend.dart' show JavaScriptBackend;
+import 'package:compiler/src/js_backend/mirrors_analysis.dart';
import 'package:compiler/src/js_emitter/full_emitter/emitter.dart' as full
show Emitter;
@@ -129,7 +130,9 @@ void main() {
Set<ConstantValue> compiledConstants = backend.constants.compiledConstants;
// Make sure that most of the metadata constants aren't included in the
// generated code.
- backend.mirrorsAnalysis.processMetadata(
+ MirrorsResolutionAnalysisImpl mirrorsResolutionAnalysis =
+ backend.mirrorsResolutionAnalysis;
+ mirrorsResolutionAnalysis.processMetadata(
compiler.enqueuer.resolution.processedEntities, (metadata) {
ConstantValue constant =
backend.constants.getConstantValueForMetadata(metadata);
« no previous file with comments | « tests/compiler/dart2js/mirror_tree_shaking_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698