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

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

Issue 1355873003: Throw Error on unreachable code rather than a String. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/ssa/builder.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 5d779a05ebfb8e5bf4586ef55f507dd675c2ba17..82b4fe514f2299e074c2c087b308b2fc70c0a5c5 100644
--- a/pkg/compiler/lib/src/js_backend/type_variable_handler.dart
+++ b/pkg/compiler/lib/src/js_backend/type_variable_handler.dart
@@ -43,8 +43,7 @@ class TypeVariableHandler {
// On first encounter, we have to ensure that the support classes get
// resolved.
if (!_seenClassesWithTypeVariables) {
- _backend.enqueueClass(
- enqueuer, _typeVariableClass, registry);
+ _backend.enqueueClass(enqueuer, _typeVariableClass, registry);
_typeVariableClass.ensureResolved(_compiler);
Link constructors = _typeVariableClass.constructors;
if (constructors.isEmpty && constructors.tail.isEmpty) {
@@ -53,9 +52,9 @@ class TypeVariableHandler {
}
_typeVariableConstructor = _typeVariableClass.constructors.head;
_backend.enqueueInResolution(_typeVariableConstructor, registry);
- enqueuer.registerInstantiatedType(_typeVariableClass.rawType,
- registry);
- enqueuer.registerStaticUse(_backend.getCreateRuntimeType());
+ enqueuer.registerInstantiatedType(_typeVariableClass.rawType, registry);
+ enqueuer.registerStaticUse(
+ _backend.registerBackendUse(_backend.getCreateRuntimeType()));
_seenClassesWithTypeVariables = true;
}
} else {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698