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

Unified Diff: pkg/compiler/lib/src/js_backend/type_variable_handler.dart

Issue 2494093002: Refactor enqueuers (Closed)
Patch Set: Updated cf. comments. Created 4 years, 1 month 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 | « pkg/compiler/lib/src/js_backend/mirrors_analysis.dart ('k') | pkg/compiler/lib/src/native/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/type_variable_handler.dart
diff --git a/pkg/compiler/lib/src/js_backend/type_variable_handler.dart b/pkg/compiler/lib/src/js_backend/type_variable_handler.dart
index 595da954243379ce6dc6ad47bcb2554fcb369cbe..97c6011a0c3dc4ef5ff1d7a462506fcbc5fe85d5 100644
--- a/pkg/compiler/lib/src/js_backend/type_variable_handler.dart
+++ b/pkg/compiler/lib/src/js_backend/type_variable_handler.dart
@@ -64,13 +64,12 @@ class TypeVariableHandler {
return impactBuilder.flush();
}
- void registerClassWithTypeVariables(
- ClassElement cls, Enqueuer enqueuer, Registry registry) {
+ void registerClassWithTypeVariables(ClassElement cls, Enqueuer enqueuer) {
if (enqueuer.isResolutionQueue) {
// On first encounter, we have to ensure that the support classes get
// resolved.
if (!_seenClassesWithTypeVariables) {
- _backend.enqueueClass(enqueuer, _typeVariableClass, registry);
+ _backend.enqueueClass(enqueuer, _typeVariableClass);
_typeVariableClass.ensureResolved(_compiler.resolution);
Link constructors = _typeVariableClass.constructors;
if (constructors.isEmpty && constructors.tail.isEmpty) {
@@ -78,9 +77,8 @@ class TypeVariableHandler {
"Class '$_typeVariableClass' should only have one constructor");
}
_typeVariableConstructor = _typeVariableClass.constructors.head;
- _backend.enqueueInResolution(_typeVariableConstructor, registry);
- _backend.registerInstantiatedType(
- _typeVariableClass.rawType, enqueuer, registry);
+ _backend.enqueue(enqueuer, _typeVariableConstructor);
+ enqueuer.registerInstantiatedType(_typeVariableClass.rawType);
enqueuer.registerStaticUse(new StaticUse.staticInvoke(
_backend.registerBackendUse(_backend.helpers.createRuntimeType),
CallStructure.ONE_ARG));
« no previous file with comments | « pkg/compiler/lib/src/js_backend/mirrors_analysis.dart ('k') | pkg/compiler/lib/src/native/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698