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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/js_array.dart

Issue 2926613003: Generate better code for '=='. (Closed)
Patch Set: Address comments Created 3 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: pkg/dev_compiler/tool/input_sdk/private/js_array.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/js_array.dart b/pkg/dev_compiler/tool/input_sdk/private/js_array.dart
index 260f58d79819ec38525a6180cb72b3fb9d81586c..1068fd30a46af02c6b5dea349fcf0fe745308c75 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/js_array.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/js_array.dart
@@ -541,6 +541,8 @@ class JSArray<E> implements List<E>, JSIndexable<E> {
int get hashCode => Primitives.objectHashCode(this);
+ bool operator ==(other) => identical(this, other);
+
int get length => JS('int', r'#.length', this);
void set length(int newLength) {
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart ('k') | tests/lib_strong/html/debugger_test_golden.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698