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

Issue 1573243009: [builtins] Migrate Number constructor similar to String constructor. (Closed)

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

[builtins] Migrate Number constructor similar to String constructor. Also migrate the Number constructor to a native builtin, using the same mechanism already used by the String constructor. Otherwise just parsing and compiling the Number constructor to optimized code already eats 2ms on desktop for no good reason, and the resulting optimized code is not even close to awesome. Drive-by-fix: Use correct context for the [[Construct]] case of the String constructor as well, and share some code with it. R=jarin@chromium.org Committed: https://crrev.com/322ffda30dfefd7101a2bd93e33563cf19fbb022 Cr-Commit-Position: refs/heads/master@{#33265}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+865 lines, -170 lines) Patch
M src/arm/builtins-arm.cc View 4 chunks +110 lines, -24 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 4 chunks +111 lines, -24 lines 0 comments Download
M src/arm64/macro-assembler-arm64.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M src/builtins.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 4 chunks +117 lines, -24 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 2 chunks +8 lines, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M src/js/v8natives.js View 2 chunks +0 lines, -13 lines 0 comments Download
M src/mips/builtins-mips.cc View 5 chunks +113 lines, -25 lines 0 comments Download
M src/mips/macro-assembler-mips.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 5 chunks +113 lines, -26 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 4 chunks +119 lines, -23 lines 1 comment Download
M src/x64/macro-assembler-x64.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M test/mjsunit/stack-traces.js View 1 chunk +0 lines, -2 lines 0 comments Download
M test/mjsunit/stack-traces-2.js View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Benedikt Meurer
4 years, 11 months ago (2016-01-13 11:32:59 UTC) #1
Benedikt Meurer
Jaro: PTAL Toon: FYI, as discussed offline
4 years, 11 months ago (2016-01-13 11:33:30 UTC) #3
Jarin
the code lgtm, but it surely is quite a lot of native code. Adding Michi, ...
4 years, 11 months ago (2016-01-13 12:05:19 UTC) #6
Michael Starzinger
LGTM. As discussed offline: I am still not a huge fan of the amount of ...
4 years, 11 months ago (2016-01-13 13:50:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1573243009/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1573243009/1
4 years, 11 months ago (2016-01-13 14:10:29 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-13 15:14:21 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-13 15:15:19 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/322ffda30dfefd7101a2bd93e33563cf19fbb022
Cr-Commit-Position: refs/heads/master@{#33265}

Powered by Google App Engine
This is Rietveld 408576698