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

Issue 27674002: Inline number to string conversion for string addition into BinaryOp(Stub). (Closed)

Created:
7 years, 2 months ago by Benedikt Meurer
Modified:
7 years, 2 months ago
Reviewers:
oliv, rossberg
CC:
v8-dev
Visibility:
Public.

Description

Inline number to string conversion for string addition into BinaryOp(Stub). This fixes a performance regression that was caused by converting the BinaryOpStub to a Hydrogen code stub. It also fixes a leftover TODO wrt. the handling of Number*String or String*Number versions of the stub. R=rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=17290

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments. #

Patch Set 3 : Avoid the round-trip via StringAddStub when invoking the STRING_ADD_* builtins in the fallback case. #

Total comments: 4

Patch Set 4 : Addressed nits. #

Patch Set 5 : Improve string-check in BuildBinaryOperation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -143 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/code-stubs.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 2 2 chunks +40 lines, -23 lines 0 comments Download
M src/hydrogen.h View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 8 chunks +112 lines, -101 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/isolate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Benedikt Meurer
Hey Andreas, This fixes one of Oli's leftover TODOs. PTAL CC'ed Oli for additional feedback. ...
7 years, 2 months ago (2013-10-17 07:51:34 UTC) #1
oliv
https://codereview.chromium.org/27674002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/27674002/diff/1/src/hydrogen.cc#newcode1362 src/hydrogen.cc:1362: { Please find a way to share the code ...
7 years, 2 months ago (2013-10-17 10:56:30 UTC) #2
rossberg
Looks good, except for the code duplication. Can we perhaps merge both functions into one ...
7 years, 2 months ago (2013-10-17 11:02:18 UTC) #3
Benedikt Meurer
PTAL https://codereview.chromium.org/27674002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/27674002/diff/1/src/hydrogen.cc#newcode1287 src/hydrogen.cc:1287: // Everything in here is safe wrt. observable ...
7 years, 2 months ago (2013-10-18 06:53:05 UTC) #4
rossberg
LGTM with nits https://codereview.chromium.org/27674002/diff/77001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/27674002/diff/77001/src/hydrogen.cc#newcode7849 src/hydrogen.cc:7849: right_type->Is(Type::String()))) { Nit: should fit on ...
7 years, 2 months ago (2013-10-21 12:06:17 UTC) #5
Benedikt Meurer
https://codereview.chromium.org/27674002/diff/77001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/27674002/diff/77001/src/hydrogen.cc#newcode7849 src/hydrogen.cc:7849: right_type->Is(Type::String()))) { On 2013/10/21 12:06:17, rossberg wrote: > Nit: ...
7 years, 2 months ago (2013-10-21 12:09:42 UTC) #6
Benedikt Meurer
7 years, 2 months ago (2013-10-21 12:42:16 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r17290 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698