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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 14253008: Optimize length access on all JSIndexable things. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index bd4c6fef190f129ae3dbee691a389ff4488eb42d..dd1e91137166609057be7445a31df0086649baf3 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -77,7 +77,9 @@ const String DEFAULT_INTERCEPTORSLIB = r'''
bool operator==(other) => identical(this, other);
noSuchMethod(im) { throw im; }
}
- abstract class JSIndexable {}
+ abstract class JSIndexable {
+ get length;
+ }
class JSArray extends Interceptor implements List, JSIndexable {
var length;
operator[](index) {}

Powered by Google App Engine
This is Rietveld 408576698