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: tool/input_sdk/private/js_helper.dart

Issue 1968783002: Speed up String.fromCharCodes a bit (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 | « tool/input_sdk/patch/core_patch.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/js_helper.dart
diff --git a/tool/input_sdk/private/js_helper.dart b/tool/input_sdk/private/js_helper.dart
index 00bc4b5d1be31d0aa022a1a8cd94eb33d3c26c71..bf8a87851cb0efb0324e1b0ee26ec29fbc61bfb4 100644
--- a/tool/input_sdk/private/js_helper.dart
+++ b/tool/input_sdk/private/js_helper.dart
@@ -256,7 +256,7 @@ class Primitives {
return result;
}
- static String stringFromCodePoints(codePoints) {
+ static String stringFromCodePoints(/*=JSArray<int>*/ codePoints) {
List<int> a = <int>[];
for (var i in codePoints) {
if (i is !int) throw argumentErrorValue(i);
@@ -272,7 +272,7 @@ class Primitives {
return _fromCharCodeApply(a);
}
- static String stringFromCharCodes(charCodes) {
+ static String stringFromCharCodes(/*=JSArray<int>*/ charCodes) {
for (var i in charCodes) {
if (i is !int) throw argumentErrorValue(i);
if (i < 0) throw argumentErrorValue(i);
« no previous file with comments | « tool/input_sdk/patch/core_patch.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698