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

Unified Diff: pkg/compiler/lib/src/constants/expressions.dart

Issue 2034973003: Handle deferred access of unserialized code. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 6 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/compiler.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/expressions.dart
diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart
index 3b4317f11c62ce31fe9813c428d7ae8bcbdfcc9b..2deb866175d19f5a9d5adf3fd87a243db8db4a12 100644
--- a/pkg/compiler/lib/src/constants/expressions.dart
+++ b/pkg/compiler/lib/src/constants/expressions.dart
@@ -549,7 +549,7 @@ class ConstructedConstantExpression extends ConstantExpression {
@override
void _createStructuredText(StringBuffer sb) {
- sb.write('Constructored(type=$type,constructor=$target,'
+ sb.write('Constructed(type=$type,constructor=$target,'
'callStructure=$callStructure,arguments=[');
String delimiter = '';
for (ConstantExpression value in arguments) {
@@ -561,6 +561,8 @@ class ConstructedConstantExpression extends ConstantExpression {
}
Map<FieldElement, ConstantExpression> computeInstanceFields() {
+ assert(invariant(target, target.constantConstructor != null,
+ message: "No constant constructor computed for $target."));
return target.constantConstructor
.computeInstanceFields(arguments, callStructure);
}
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698