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

Unified Diff: tools/dom/templates/immutable_list_mixin.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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 | « tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/immutable_list_mixin.darttemplate
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
index 02b0b4e0683e267de4a32e4d26317d35547b495e..68d938f006657ad63ab5d3b2a806fa8b6af3f985 100644
--- a/tools/dom/templates/immutable_list_mixin.darttemplate
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate
@@ -14,14 +14,11 @@ $endif
$E get first {
if (this.length > 0) {
-$if DART2JS
return JS('$EJS', '#[0]', this);
-$else
$if USE_NATIVE_INDEXED_GETTER
return $GETTER(0);
$else
return this[0];
-$endif
$endif
}
throw new StateError("No elements");
@@ -30,14 +27,11 @@ $endif
$E get last {
int len = this.length;
if (len > 0) {
-$if DART2JS
return JS('$EJS', '#[#]', this, len - 1);
-$else
$if USE_NATIVE_INDEXED_GETTER
return $GETTER(len - 1);
$else
return this[len - 1];
-$endif
$endif
}
throw new StateError("No elements");
@@ -46,14 +40,11 @@ $endif
$E get single {
int len = this.length;
if (len == 1) {
-$if DART2JS
return JS('$EJS', '#[0]', this);
-$else
$if USE_NATIVE_INDEXED_GETTER
return $GETTER(0);
$else
return this[0];
-$endif
$endif
}
if (len == 0) throw new StateError("No elements");
« no previous file with comments | « tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698