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

Unified Diff: sdk/lib/_internal/compiler/implementation/util/util.dart

Issue 177963002: Use List instead of Link in the type system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and some algorithmic bugs fixed. Created 6 years, 9 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
Index: sdk/lib/_internal/compiler/implementation/util/util.dart
diff --git a/sdk/lib/_internal/compiler/implementation/util/util.dart b/sdk/lib/_internal/compiler/implementation/util/util.dart
index dc4474ea1843e9e361d32b577a37f1466a457cad..3dfd5b825c703313700c5f1eb1d7a7a28fc56cbf 100644
--- a/sdk/lib/_internal/compiler/implementation/util/util.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/util.dart
@@ -41,6 +41,16 @@ class SpannableAssertionFailure {
'${message != null ? ': $message' : ''}';
}
+bool equalElements(List a, List b) {
+ if (a.length != b.length) return false;
+ for (int index = 0; index < a.length; index++) {
+ if (a[index] != b[index]) {
+ return false;
+ }
+ }
+ return true;
+}
+
/**
* Helper method for printing stack traces for debugging.
*

Powered by Google App Engine
This is Rietveld 408576698