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

Unified Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 23534050: Make direct calls to _nativeIndexedGetter in "get last" "get first" "get single" instead of calling… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_sql/dartium/web_sql_dartium.dart
===================================================================
--- sdk/lib/web_sql/dartium/web_sql_dartium.dart (revision 27268)
+++ sdk/lib/web_sql/dartium/web_sql_dartium.dart (working copy)
@@ -232,7 +232,7 @@
Map get first {
if (this.length > 0) {
- return this[0];
+ return _nativeIndexedGetter(0);
}
throw new StateError("No elements");
}
@@ -240,7 +240,7 @@
Map get last {
int len = this.length;
if (len > 0) {
- return this[len - 1];
+ return _nativeIndexedGetter(len - 1);
}
throw new StateError("No elements");
}
@@ -248,7 +248,7 @@
Map get single {
int len = this.length;
if (len == 1) {
- return this[0];
+ return _nativeIndexedGetter(0);
}
if (len == 0) throw new StateError("No elements");
throw new StateError("More than one element");
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698