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

Issue 1983593002: [builtins] Move EncodeURI from runtime to builtins. (Closed)

Created:
4 years, 7 months ago by Franzi
Modified:
4 years, 7 months ago
Reviewers:
Benedikt Meurer, Yang
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

[builtins] Move EncodeURI from runtime to builtins. Repackage encodeURI and encodeURIComponent as builtin functions and install them in the bootstrapper. Crude benchmark on 351 encodeURI and encodeURIComponent tests averaged over five runs: * builtin functions real 0m8.01s user 0m18.00s sys 0m7.37s * JS functions calling into the runtime e.g., for %NewString real 0m8.44s user 0m19.52s sys 0m7.49s By running: $ time tools/run-tests.py --arch=x64 --mode=Release --buildbot mjsunit/uri test262/built-ins/encodeURI* >>> Running tests for x64.Release BUG=v8:4912 R=yangguo@chromium.org Committed: https://crrev.com/c60cb90c4f60cdfc80422044ead64e431dbe7ce9 Cr-Commit-Position: refs/heads/master@{#36273}

Patch Set 1 #

Patch Set 2 : Remove encodeURI from list of internalized strings #

Patch Set 3 : Rename variables with underscores #

Total comments: 4

Patch Set 4 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -187 lines) Patch
M BUILD.gn View 1 2 3 14 chunks +16 lines, -40 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 2 chunks +15 lines, -5 lines 0 comments Download
M src/builtins.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/builtins.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M src/js/uri.js View 2 chunks +1 line, -15 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-strings.cc View 2 chunks +0 lines, -126 lines 0 comments Download
A src/uri.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A src/uri.cc View 1 2 3 1 chunk +135 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Franzi
4 years, 7 months ago (2016-05-16 10:08:13 UTC) #3
Yang
https://codereview.chromium.org/1983593002/diff/40001/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1983593002/diff/40001/src/builtins.cc#newcode2238 src/builtins.cc:2238: return EncodeUri(isolate, uri, true); builtins.cc is already bloated from ...
4 years, 7 months ago (2016-05-17 05:15:38 UTC) #5
Franzi
HI Yang, Could you have another look please. I moved the code out of builtins.cc ...
4 years, 7 months ago (2016-05-17 10:25:31 UTC) #6
Yang
lgtm
4 years, 7 months ago (2016-05-17 10:40:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983593002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983593002/60001
4 years, 7 months ago (2016-05-17 10:52:37 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-17 10:54:21 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 10:56:39 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c60cb90c4f60cdfc80422044ead64e431dbe7ce9
Cr-Commit-Position: refs/heads/master@{#36273}

Powered by Google App Engine
This is Rietveld 408576698