Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13553)

Issue 13816046: Implement `String.prototype.codePointAt` and `String.fromCodePoint`

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by mathias
Modified:
9 years, 9 months ago
Reviewers:
arv, rossberg, rossberg, yangguo
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Implement `String.prototype.codePointAt` and `String.fromCodePoint` Contributed by Mathias Bynens <mathiasb@opera.com>. TEST=mjsunit/harmony BUG=v8:2840 LOG=Y

Patch Set 1 #

Patch Set 2 : Implement `String.prototype.codePointAt` and `String.fromCodePoint` #

Patch Set 3 : Implement `String.prototype.codePointAt` and `String.fromCodePoint` #

Patch Set 4 : Implement `String.prototype.codePointAt` and `String.fromCodePoint` #

Patch Set 5 : Update per the new ES6 draft #

Patch Set 6 : Avoid `RangeError`s due to maximum call stack size #

Patch Set 7 : Rebase and update to use the new `CHECK_OBJECT_COERCIBLE` macro #

Patch Set 8 : Use short license header for new files #

Total comments: 8

Patch Set 9 : Updated as per Erik’s feedback #

Total comments: 1

Patch Set 10 : Assert `tmp` #

Total comments: 1

Patch Set 11 : Remove outdated `ArrayPushBuiltin` comment #

Total comments: 2

Patch Set 12 : Updated as per Yang’s feedback #

Total comments: 2

Patch Set 13 : Updated as per Erik’s feedback #

Total comments: 4

Patch Set 14 : Updated as per Yang’s feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -3 lines) Patch
M src/harmony-string.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +59 lines, -3 lines 0 comments Download
M src/messages.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/harmony/string-codepointat.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +91 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/string-fromcodepoint.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 27
mathias
test/mjsunit/string-fromcodepoint.js is a completely new file. I’m not sure why the diff shows up like ...
10 years, 7 months ago (2013-09-23 18:01:43 UTC) #1
mathias
On 2013/09/23 18:01:43, mathias wrote: > test/mjsunit/string-fromcodepoint.js is a completely new file. I’m not sure ...
10 years, 7 months ago (2013-09-23 19:25:48 UTC) #2
mstarzinger
One high level comment: This needs to go behind the --harmony flag since it is ...
10 years, 7 months ago (2013-09-24 08:03:53 UTC) #3
mathias
On 2013/09/24 08:03:53, mstarzinger wrote: > One high level comment: This needs to go behind ...
10 years, 7 months ago (2013-09-24 08:58:22 UTC) #4
dslomov
On 2013/09/24 08:58:22, mathias wrote: > On 2013/09/24 08:03:53, mstarzinger wrote: > > One high ...
10 years, 7 months ago (2013-09-24 09:37:38 UTC) #5
mathias
On 2013/09/24 09:37:38, dslomov wrote: > Before we get to land this, please follow the ...
10 years, 7 months ago (2013-09-24 10:21:24 UTC) #6
Erik Arvidsson
From http://esdiscuss.org/topic/code-points-vs-unicode-scalar-values it is not clear that there was a consensus that it was the ...
10 years, 7 months ago (2013-09-24 15:47:17 UTC) #7
mathias
On 2013/09/24 15:47:17, Erik Arvidsson wrote: > […] Mathias, would you mind starting a new ...
10 years, 6 months ago (2013-09-26 13:32:41 UTC) #8
mathias
Rebased and updated to use the new `CHECK_OBJECT_COERCIBLE` macro.
10 years, 2 months ago (2014-01-28 11:16:57 UTC) #9
arv
I wanted to bring this back to life. I feel that this is stable enough ...
9 years, 10 months ago (2014-06-19 15:29:56 UTC) #10
mathias
On 2014/06/19 15:29:56, arv wrote: > I wanted to bring this back to life. > ...
9 years, 10 months ago (2014-06-19 21:48:57 UTC) #11
arv
https://codereview.appspot.com/13816046/diff/83001/test/mjsunit/harmony/string-fromcodepoint.js File test/mjsunit/harmony/string-fromcodepoint.js (right): https://codereview.appspot.com/13816046/diff/83001/test/mjsunit/harmony/string-fromcodepoint.js#newcode47 test/mjsunit/harmony/string-fromcodepoint.js:47: }), "a"); Assert tmp here too (and in the ...
9 years, 10 months ago (2014-06-19 22:24:44 UTC) #12
mathias
On 2014/06/19 22:24:44, arv wrote: > Assert tmp here too (and in the other file) ...
9 years, 10 months ago (2014-06-20 05:23:59 UTC) #13
mathias
https://codereview.appspot.com/13816046/diff/103001/src/harmony-string.js File src/harmony-string.js (right): https://codereview.appspot.com/13816046/diff/103001/src/harmony-string.js#newcode12 src/harmony-string.js:12: // var ArrayPushBuiltin = $Array.prototype.push; This can be removed ...
9 years, 10 months ago (2014-06-20 05:25:28 UTC) #14
mathias
On 2014/06/20 05:25:28, mathias wrote: > This can be removed now that we no longer ...
9 years, 10 months ago (2014-06-20 05:28:12 UTC) #15
arv
LGTM Michael, can you look at this too?
9 years, 10 months ago (2014-06-20 13:57:41 UTC) #16
arv
Dmitry, Andreas. Care to take a look?
9 years, 9 months ago (2014-07-09 14:12:05 UTC) #17
rossberg
On 2014/07/09 14:12:05, arv wrote: > Dmitry, Andreas. Care to take a look? yangguo@ should ...
9 years, 9 months ago (2014-07-09 14:16:17 UTC) #18
arv
Yang, PTAL
9 years, 9 months ago (2014-07-09 14:19:04 UTC) #19
yangguo
Haven't had much time to go over the spec yet, but first thing I noticed... ...
9 years, 9 months ago (2014-07-15 14:52:42 UTC) #20
mathias
Updated as per Yang’s feedback. PTAL
9 years, 9 months ago (2014-07-15 15:04:39 UTC) #21
arv
FYI https://codereview.appspot.com/13816046/diff/133001/src/harmony-string.js File src/harmony-string.js (right): https://codereview.appspot.com/13816046/diff/133001/src/harmony-string.js#newcode146 src/harmony-string.js:146: function StringFromCodePoint(_) { // length == 1 Use ...
9 years, 9 months ago (2014-07-15 15:47:42 UTC) #22
mathias
On 2014/07/15 at 15:47:42, arv wrote: > https://codereview.appspot.com/13816046/diff/133001/src/harmony-string.js#newcode146 > src/harmony-string.js:146: function StringFromCodePoint(_) { // length ...
9 years, 9 months ago (2014-07-15 16:08:08 UTC) #23
yangguo
Some comments. Otherwise LGTM. https://codereview.appspot.com/13816046/diff/153001/src/harmony-string.js File src/harmony-string.js (right): https://codereview.appspot.com/13816046/diff/153001/src/harmony-string.js#newcode141 src/harmony-string.js:141: return (first - 0xD800) * ...
9 years, 9 months ago (2014-07-16 13:06:31 UTC) #24
rossberg_google.com
On 16 July 2014 15:06, <yangguo@chromium.org> wrote: > https://codereview.appspot.com/13816046/diff/153001/src/harmony-string.js > File src/harmony-string.js (right): > > ...
9 years, 9 months ago (2014-07-16 13:32:11 UTC) #25
mathias
On 2014/07/16 at 13:06:31, yangguo wrote: > Some comments. Otherwise LGTM. Thanks for the review! ...
9 years, 9 months ago (2014-07-17 21:10:48 UTC) #26
yangguo
9 years, 9 months ago (2014-07-21 08:34:33 UTC) #27
On 2014/07/17 21:10:48, mathias wrote:
> On 2014/07/16 at 13:06:31, yangguo wrote:
> > Some comments. Otherwise LGTM.
> 
> Thanks for the review! Patch updated.

I created a copy of this CL here: https://codereview.chromium.org/406863003/

Please use codereview.chromium.org for the future, and use
https://v8.googlecode.com/svn/branches/bleeding_edge as base url.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b