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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart

Issue 1458703007: dart2js cps: Refactor CallExpressions into Primitives. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
Index: pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
index dedfbadc60474ac8c557021890280d11993abcae..a2959025b8358e2af077f2134e37a00c74a6c348 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
@@ -154,6 +154,9 @@ class CheckCpsIntegrity extends TrampolineRecursiveVisitor {
if (inScope[def] == ScopeType.NotInScope) {
error('Referenced out of scope: $def', ref);
}
+ if (ref.previous == ref) {
+ error('Shared Reference object to $def', ref);
+ }
if (ref.previous == null && def.firstRef != ref ||
ref.previous != null && ref.previous.next != ref) {
error('Broken .previous link in reference to $def', def);

Powered by Google App Engine
This is Rietveld 408576698