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

Unified Diff: tests/compiler/dart2js/serialization/model_test.dart

Issue 2023863002: Register deserialized lazy statics. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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/serialization/model_test.dart
diff --git a/tests/compiler/dart2js/serialization/model_test.dart b/tests/compiler/dart2js/serialization/model_test.dart
index 20caea10cc3ceed7acaeff57f4a57ef64adbdf73..0a387616f433a3e733abb38e343daafb5cd1a05d 100644
--- a/tests/compiler/dart2js/serialization/model_test.dart
+++ b/tests/compiler/dart2js/serialization/model_test.dart
@@ -13,6 +13,7 @@ import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/compiler.dart';
import 'package:compiler/src/elements/elements.dart';
import 'package:compiler/src/filenames.dart';
+import 'package:compiler/src/js_backend/js_backend.dart';
import 'package:compiler/src/serialization/equivalence.dart';
import 'package:compiler/src/tree/nodes.dart';
import 'package:compiler/src/universe/class_set.dart';
@@ -117,6 +118,16 @@ Future checkModels(
compilerDeserialized.world.getClassHierarchyNode(
compilerDeserialized.coreClasses.objectClass),
verbose: verbose);
+
+ JavaScriptBackend backend1 = compilerNormal.backend;
+ JavaScriptBackend backend2 = compilerDeserialized.backend;
+ checkSets(
+ backend1.constants.lazyStatics,
+ backend2.constants.lazyStatics,
+ "Lazy statics",
+ areElementsEquivalent,
+ verbose: verbose);
+
}
void checkElements(

Powered by Google App Engine
This is Rietveld 408576698