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

Issue 1335193002: [builtins] Simplify String constructor code. (Closed)

Created:
5 years, 3 months ago by Benedikt Meurer
Modified:
5 years, 3 months ago
Reviewers:
Jarin
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] Simplify String constructor code. The String constructor was somewhat complex with a lot of micro optimizations that are not relevant or even misguided. It would be really hard to port that code to ES6, which requires String to be subclassable. So as a first step we reduced the necessary complexity to the bare minimum (also removing the last user of the fairly complex MacroAssembler::LookupNumberStringCache method). This also removes the counters for the String constructor, which were not properly exposed anymore (and not kept in sync with inlined versions of the String constructor anyway). R=jarin@chromium.org Committed: https://crrev.com/eadfd666318c1dd959d7fac7c27538ef478a8b72 Cr-Commit-Position: refs/heads/master@{#30706}

Patch Set 1 : #

Patch Set 2 : Fix mips64 compile error. #

Total comments: 4

Patch Set 3 : Address Jaro's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -1200 lines) Patch
M src/arm/builtins-arm.cc View 1 2 1 chunk +61 lines, -107 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 2 chunks +1 line, -12 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 chunk +0 lines, -82 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 1 chunk +59 lines, -104 lines 0 comments Download
M src/arm64/macro-assembler-arm64.h View 1 chunk +0 lines, -12 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 chunk +0 lines, -73 lines 0 comments Download
M src/counters.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 1 chunk +63 lines, -106 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +0 lines, -11 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +0 lines, -75 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 1 chunk +63 lines, -108 lines 0 comments Download
M src/mips/macro-assembler-mips.h View 2 chunks +2 lines, -12 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 chunk +0 lines, -80 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 1 chunk +63 lines, -108 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 1 2 chunks +2 lines, -12 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 chunk +0 lines, -82 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 1 chunk +63 lines, -107 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +0 lines, -11 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +0 lines, -84 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335193002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335193002/20001
5 years, 3 months ago (2015-09-14 05:46:32 UTC) #4
Benedikt Meurer
Hey Jaro, Removing another ~800 lines of unnecessary complex native code. Please take a look. ...
5 years, 3 months ago (2015-09-14 05:46:50 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_mips64el_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mips64el_compile_rel/builds/4598)
5 years, 3 months ago (2015-09-14 05:54:14 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335193002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335193002/40001
5 years, 3 months ago (2015-09-14 06:15:56 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-14 06:40:12 UTC) #11
Jarin
lgtm with nits. https://codereview.chromium.org/1335193002/diff/40001/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (right): https://codereview.chromium.org/1335193002/diff/40001/src/arm/builtins-arm.cc#newcode178 src/arm/builtins-arm.cc:178: __ LoadGlobalFunction(Context::STRING_FUNCTION_INDEX, r1); Maybe some comment ...
5 years, 3 months ago (2015-09-14 07:11:41 UTC) #12
Benedikt Meurer
https://codereview.chromium.org/1335193002/diff/40001/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (right): https://codereview.chromium.org/1335193002/diff/40001/src/arm/builtins-arm.cc#newcode178 src/arm/builtins-arm.cc:178: __ LoadGlobalFunction(Context::STRING_FUNCTION_INDEX, r1); On 2015/09/14 07:11:40, Jarin wrote: > ...
5 years, 3 months ago (2015-09-14 07:26:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335193002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335193002/60001
5 years, 3 months ago (2015-09-14 07:26:44 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 3 months ago (2015-09-14 07:51:12 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-09-14 07:51:32 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eadfd666318c1dd959d7fac7c27538ef478a8b72
Cr-Commit-Position: refs/heads/master@{#30706}

Powered by Google App Engine
This is Rietveld 408576698