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

Issue 1968953002: [runtime] Implement encodeURI as single runtime function. (Closed)

Created:
4 years, 7 months ago by Franzi
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Implement encodeURI as single runtime function. Rewrite encodeURI as runtime function. We well probably repackage runtime_URIEncode as a C++ builtin. BUG=v8:4912 R=yangguo@chromium.org Committed: https://crrev.com/6502a1bfb36476810b6be2a9271db05fd8e0fb7a Cr-Commit-Position: refs/heads/master@{#36257}

Patch Set 1 #

Patch Set 2 : Trying to get value < 256 #

Patch Set 3 : Fix issue with encodeURI(x) when x is an object #

Patch Set 4 : Add debug statements to find error on linux systems #

Patch Set 5 : Fix isalnum() bug #

Total comments: 54

Patch Set 6 : Use char instead of uint16_t where possible #

Patch Set 7 : Working on review comments #

Patch Set 8 : Working on more review comments #

Patch Set 9 : Simplify NewURIError() #

Patch Set 10 : Use existing HexCharOfValue #

Patch Set 11 : Use FlatContent and call into templatized helper function #

Patch Set 12 : Delete buffer in case of exception #

Patch Set 13 : Use String::FlatContent.Get() instead of getting one- or two-byte vector #

Patch Set 14 : No changes #

Patch Set 15 : Remove code duplication #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -142 lines) Patch
M src/bignum.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -7 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/js/uri.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -135 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-strings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +127 lines, -0 lines 0 comments Download
M src/utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Yang
First round of comments. I see you have a new patch set uploaded, but I ...
4 years, 7 months ago (2016-05-12 07:39:22 UTC) #1
Franzi
Re-wrote encodeURI as runtime function, worked in Yang's comments. https://codereview.chromium.org/1968953002/diff/80001/src/factory.h File src/factory.h (right): https://codereview.chromium.org/1968953002/diff/80001/src/factory.h#newcode563 src/factory.h:563: ...
4 years, 7 months ago (2016-05-13 09:42:03 UTC) #7
Yang
LGTM with comments. Do we have some performance numbers on this btw? https://codereview.chromium.org/1968953002/diff/300001/src/runtime/runtime-strings.cc File src/runtime/runtime-strings.cc ...
4 years, 7 months ago (2016-05-13 13:25:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1968953002/330007 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1968953002/330007
4 years, 7 months ago (2016-05-14 07:13:24 UTC) #12
commit-bot: I haz the power
Committed patchset #15 (id:330007)
4 years, 7 months ago (2016-05-14 07:15:26 UTC) #14
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/6502a1bfb36476810b6be2a9271db05fd8e0fb7a Cr-Commit-Position: refs/heads/master@{#36257}
4 years, 7 months ago (2016-05-14 07:17:08 UTC) #16
Benedikt Meurer (Google)
4 years, 7 months ago (2016-05-15 13:21:06 UTC) #18
Message was sent while issue was closed.
Very nice, LGTM. Thanks.

Powered by Google App Engine
This is Rietveld 408576698