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

Unified Diff: pkg/compiler/lib/src/serialization/constant_serialization.dart

Issue 1559233002: WIP: Compute constant expressions in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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/resolution/resolution.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/serialization/constant_serialization.dart
diff --git a/pkg/compiler/lib/src/serialization/constant_serialization.dart b/pkg/compiler/lib/src/serialization/constant_serialization.dart
index 3af1b4fa998fa42c7a3634227106c2b20051d1f1..afb9c3f5c59784f14a050c5616f037e2cefe275e 100644
--- a/pkg/compiler/lib/src/serialization/constant_serialization.dart
+++ b/pkg/compiler/lib/src/serialization/constant_serialization.dart
@@ -358,6 +358,11 @@ class ConstantConstructorSerializer
encoder.setConstant(Key.CONSTRUCTOR,
constructor.thisConstructorInvocation);
}
+
+ @override
+ visitErroneous(ErroneousConstantConstructor constructor, ObjectEncoder arg) {
+ // Nothing to add; the kind has been serialized.
+ }
}
/// Utility class for deserializing [ConstantConstructor]s.
///
@@ -428,6 +433,8 @@ class ConstantConstructorDeserializer {
case ConstantConstructorKind.REDIRECTING_FACTORY:
return new RedirectingFactoryConstantConstructor(
readConstructorInvocation());
+ case ConstantConstructorKind.ERRONEOUS:
+ return const ErroneousConstantConstructor();
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698