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

Unified Diff: src/harmony-string.js

Issue 390173004: Small improvement to String.fromCodePoint. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-string.js
diff --git a/src/harmony-string.js b/src/harmony-string.js
index a8ef1ddb1246842e8bbb3336551c8e26428e6f22..ae13745cdbf55989ad78b288843396ee5fab36e9 100644
--- a/src/harmony-string.js
+++ b/src/harmony-string.js
@@ -160,10 +160,8 @@ function StringFromCodePoint(_) { // length = 1
result += %_StringCharFromCode(code);
} else {
code -= 0x10000;
- result += StringFromCharCode(
- code >>> 10 & 0x3FF | 0xD800,
- 0xDC00 | code & 0x3FF
- );
+ result += %_StringCharFromCode((code >>> 10) & 0x3FF | 0xD800);
+ result += %_StringCharFromCode(code & 0x3FF | 0xDC00);
}
}
return result;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698