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

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

Issue 2916893002: Handle int constant (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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: 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 b0547995ed172c1e4f92c7d2e916b6b43431e039..9e18fb8bf1863c9d7ec48fbf02a47373405db940 100644
--- a/tests/compiler/dart2js/mirrors_used_test.dart
+++ b/tests/compiler/dart2js/mirrors_used_test.dart
@@ -28,6 +28,8 @@ import 'package:compiler/src/js_emitter/full_emitter/emitter.dart' as full
import 'package:compiler/src/old_to_new_api.dart'
show LegacyCompilerDiagnostics;
+import 'package:compiler/src/universe/world_builder.dart';
+
void expectOnlyVerboseInfo(Uri uri, int begin, int end, String message, kind) {
if (kind.name == 'verbose info') {
print(message);
@@ -143,7 +145,9 @@ void main() {
}
int metadataCount = 0;
- Set<ConstantValue> compiledConstants = backend.constants.compiledConstants;
+ CodegenWorldBuilderImpl codegenWorldBuilder = compiler.codegenWorldBuilder;
+ Set<ConstantValue> compiledConstants =
+ codegenWorldBuilder.compiledConstants;
// Make sure that most of the metadata constants aren't included in the
// generated code.
MirrorsResolutionAnalysisImpl mirrorsResolutionAnalysis =
« no previous file with comments | « tests/compiler/dart2js/kernel/compile_from_dill_test.dart ('k') | tests/compiler/dart2js/type_representation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698