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

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: Address comments. Created 6 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
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 8b195d6a6191439b361eace2c74ea557d1a603d3..ea90a2db1ccc83a9762059f225c1d1e67bf4fe7a 100644
--- a/sdk/lib/_internal/compiler/implementation/util/util.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/util.dart
@@ -47,6 +47,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;
+}
+
/**
* File name prefix used to shorten the file name in stack traces printed by
* [trace].
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/util/link.dart ('k') | tests/compiler/dart2js/compiler_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698