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

Unified Diff: tools/dom/templates/html/impl/impl_Crypto.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
Index: tools/dom/templates/html/impl/impl_Crypto.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Crypto.darttemplate b/tools/dom/templates/html/impl/impl_Crypto.darttemplate
index 1da09bb0eafb1512c5924a1f1a23d1b137e40181..2bebc5371ea633b5a3c9638efbaf87026dcbce9a 100644
--- a/tools/dom/templates/html/impl/impl_Crypto.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Crypto.darttemplate
@@ -7,19 +7,7 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
TypedData getRandomValues(TypedData array) {
-$if DART2JS
return _getRandomValues(array);
-$else
- var random = _getRandomValues(array);
- // The semantics of the operation are that it modifies the argument, but we
- // have no way of making a Dart typed data created initially in Dart reference
- // externalized storage. So we copy the values back from the returned copy.
- // TODO(alanknight): Make this less ridiculously slow.
- for (var i = 0; i < random.length; i++) {
- array[i] = random[i];
- }
- return array;
-$endif
}
$!MEMBERS

Powered by Google App Engine
This is Rietveld 408576698