|
|
Created:
4 years, 3 months ago by petermarshall Modified:
4 years, 3 months ago CC:
v8-reviews_googlegroups.com Target Ref:
refs/pending/heads/master Project:
v8 Visibility:
Public. |
Description[builtins] Move StringNormalize to a cpp builtin.
CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_noi18n_rel_ng
BUG=v8:5364
Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34
Committed: https://crrev.com/e7b7ba8edd9cccd963940ac4b3e03b1e639a6418
Cr-Original-Commit-Position: refs/heads/master@{#39331}
Cr-Commit-Position: refs/heads/master@{#39342}
Patch Set 1 #Patch Set 2 : take 2 #
Total comments: 3
Patch Set 3 : Watch out for null values coming out of ToString #Patch Set 4 : Apply noi18n bot fixes so we can actually cover these changes #Patch Set 5 : Set function length for normalize to 0 #Patch Set 6 : Clean up string comparisons a bit #Patch Set 7 : Clean up string comparisons a bit #Patch Set 8 : Fix incorrect function name in error message #
Total comments: 4
Patch Set 9 : fix up some comments and var naming #
Total comments: 1
Patch Set 10 : Fix comment style #Patch Set 11 : Fix crash caused by ToString on unassigned var #
Dependent Patchsets: Messages
Total messages: 59 (35 generated)
The CQ bit was checked by petermarshall@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
bmeurer@chromium.org changed reviewers: + bmeurer@chromium.org
https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... src/builtins/builtins-string.cc:494: MaybeHandle<String> maybe_form(Object::ToString(isolate, args.at<Object>(1))); This is not correct, as the ToString can throw and thus the MaybeHandle may be null, and form would also be null then. You need to use soemthing along the lines of Handle<Object> form = args.atOrUndefined(isolate, 1); if (form->IsUndefined(isolate)) return *string; Handle<String> form_string; ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, form_string, Object::ToString(isolate, form));
The CQ bit was checked by petermarshall@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by petermarshall@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by petermarshall@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by petermarshall@chromium.org
The CQ bit was checked by petermarshall@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== [builtins] Move StringNormalize to a cpp builtin. BUG= ========== to ========== [builtins] Move StringNormalize to a cpp builtin. BUG=v8:5364 ==========
petermarshall@chromium.org changed reviewers: + franzih@chromium.org
The CQ bit was checked by petermarshall@chromium.org
https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... src/builtins/builtins-string.cc:494: MaybeHandle<String> maybe_form(Object::ToString(isolate, args.at<Object>(1))); On 2016/09/08 04:41:30, Benedikt Meurer wrote: > This is not correct, as the ToString can throw and thus the MaybeHandle may be > null, and form would also be null then. You need to use soemthing along the > lines of > > Handle<Object> form = args.atOrUndefined(isolate, 1); > if (form->IsUndefined(isolate)) return *string; > Handle<String> form_string; > ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, form_string, > Object::ToString(isolate, form)); Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full committers or once the patch has received an L-G-T-M from a full committer. Even if an L-G-T-M may have been provided, it was from a non-committer, _not_ a full super star committer. Committers are members of the group "project-v8-committers". Note that this has nothing to do with OWNERS files.
https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... src/builtins/builtins-string.cc:487: TO_THIS_STRING(string, "String.prototype.trim"); trim? https://codereview.chromium.org/2315343002/diff/140001/src/builtins/builtins-... File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2315343002/diff/140001/src/builtins/builtins-... src/builtins/builtins-string.cc:483: // If Intl is enabled, then i18n.js will override it and provide the the There's a double "the" in there. Can we change the comment? Maybe point out that this is only a fallback? I'd prefer to write out Intl. https://codereview.chromium.org/2315343002/diff/140001/src/builtins/builtins-... src/builtins/builtins-string.cc:492: Handle<String> form_string; I usually try to avoid variable names that indicate its type. You can assign to the same variable name, similar to builtins-symbol.cc:18.
On 2016/09/09 at 12:51:04, Franzi wrote: > https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... > File src/builtins/builtins-string.cc (right): > > https://codereview.chromium.org/2315343002/diff/20001/src/builtins/builtins-s... > src/builtins/builtins-string.cc:487: TO_THIS_STRING(string, "String.prototype.trim"); > trim? > Ignore this, comment refers to an older patch. Sorry!
https://codereview.chromium.org/2315343002/diff/140001/src/builtins/builtins-... File src/builtins/builtins-string.cc (right): https://codereview.chromium.org/2315343002/diff/140001/src/builtins/builtins-... src/builtins/builtins-string.cc:483: // If Intl is enabled, then i18n.js will override it and provide the the On 2016/09/09 at 12:51:04, Franzi wrote: > There's a double "the" in there. > > Can we change the comment? Maybe point out that this is only a fallback? > I'd prefer to write out Intl. Done https://codereview.chromium.org/2315343002/diff/140001/src/builtins/builtins-... src/builtins/builtins-string.cc:492: Handle<String> form_string; On 2016/09/09 at 12:51:04, Franzi wrote: > I usually try to avoid variable names that indicate its type. You can assign to the same variable name, similar to builtins-symbol.cc:18. Hmm String::Equals complains because it needs String handles specifically, maybe it makes sense to call the first one form_input or something?
LGTM once nit is addressed. https://codereview.chromium.org/2315343002/diff/160001/src/builtins/builtins.h File src/builtins/builtins.h (right): https://codereview.chromium.org/2315343002/diff/160001/src/builtins/builtins.... src/builtins/builtins.h:537: /* ECMA-262 v6, section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ Nit: for consistency use /* ES6 section ... */
LGTM
The CQ bit was checked by petermarshall@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from bmeurer@chromium.org, franzih@chromium.org Link to the patchset: https://codereview.chromium.org/2315343002/#ps180001 (title: "Fix comment style")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #10 (id:180001)
Message was sent while issue was closed.
Description was changed from ========== [builtins] Move StringNormalize to a cpp builtin. BUG=v8:5364 ========== to ========== [builtins] Move StringNormalize to a cpp builtin. BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ==========
Message was sent while issue was closed.
Patchset 10 (id:??) landed as https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331}
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2335553002/ by petermarshall@chromium.org. The reason for reverting is: Tests fail when i18n is switched off, trybots do not run this configuration.
The CQ bit was checked by petermarshall@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
machenbach@chromium.org changed reviewers: + machenbach@chromium.org
Hint: if you suspect a CL might break something that's not on CQ by default, you can make CQ add it by adding to your CL description e.g.: CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng
Description was changed from ========== [builtins] Move StringNormalize to a cpp builtin. BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ========== to ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ==========
On 2016/09/12 at 09:05:44, machenbach wrote: > Hint: if you suspect a CL might break something that's not on CQ by default, you can make CQ add it by adding to your CL description e.g.: > > CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng Thanks :)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Your CL was about to rely on recently removed CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of description without "master." prefix is no longer supported: tryserver.v8 For more details, see http://crbug.com/617627.
Description was changed from ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ========== to ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ==========
PTAL, missed a bug in the last change because the i18n bot didn't run, it's green now
nit: Please add another linebreak after the commit title.
Description was changed from ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ========== to ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ==========
On 2016/09/12 at 10:05:00, machenbach wrote: > nit: Please add another linebreak after the commit title. Done
lgtm
LGTM
lgtm
The CQ bit was checked by petermarshall@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #11 (id:200001)
Message was sent while issue was closed.
Description was changed from ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Cr-Commit-Position: refs/heads/master@{#39331} ========== to ========== [builtins] Move StringNormalize to a cpp builtin. CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_noi18n_rel_ng BUG=v8:5364 Committed: https://crrev.com/7f84a6a2e7000bebba49354b4648346ff606ca34 Committed: https://crrev.com/e7b7ba8edd9cccd963940ac4b3e03b1e639a6418 Cr-Original-Commit-Position: refs/heads/master@{#39331} Cr-Commit-Position: refs/heads/master@{#39342} ==========
Message was sent while issue was closed.
Patchset 11 (id:??) landed as https://crrev.com/e7b7ba8edd9cccd963940ac4b3e03b1e639a6418 Cr-Commit-Position: refs/heads/master@{#39342} |