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

Issue 19798002: Faster to number conversion (Closed)

Created:
7 years, 5 months ago by oliv
Modified:
7 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Avoid tagged values for Instructions that truncate the operands with ToNumber. I case the ToNumber is applied to a non numeric value but its not observable (some constants and oddballs) we should already do it in hydrogen... BUG= R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15818

Patch Set 1 : #

Patch Set 2 : fix typefeedback on constant replacement #

Total comments: 17

Patch Set 3 : address reviews #

Total comments: 1

Patch Set 4 : addr comments & remove bogus condition #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -20 lines) Patch
M src/hydrogen.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 chunks +45 lines, -3 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 4 1 chunk +29 lines, -11 lines 0 comments Download
M src/hydrogen-representation-changes.cc View 1 2 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
oliv
This part of the split up of https://codereview.chromium.org/19271008/
7 years, 5 months ago (2013-07-19 12:20:17 UTC) #1
Sven Panne
DBC https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h#newcode411 src/hydrogen-instructions.h:411: if (IsTaggedPrimitive() || IsSmi() || IsHeapNumber() || o_O ...
7 years, 5 months ago (2013-07-22 07:06:36 UTC) #2
oliv
https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h#newcode411 src/hydrogen-instructions.h:411: if (IsTaggedPrimitive() || IsSmi() || IsHeapNumber() || On 2013/07/22 ...
7 years, 5 months ago (2013-07-22 07:34:30 UTC) #3
Jakob Kummerow
https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h#newcode3362 src/hydrogen-instructions.h:3362: HConstant* CopyToTruncatedNumber(Zone* zone); This sounds more generic than it ...
7 years, 5 months ago (2013-07-22 07:43:47 UTC) #4
Toon Verwaest
Looking good. Some comments. https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.h#newcode410 src/hydrogen-instructions.h:410: bool IsNoString() const { Can ...
7 years, 5 months ago (2013-07-22 08:30:20 UTC) #5
Toon Verwaest
One more comment. https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.cc#newcode2331 src/hydrogen-instructions.cc:2331: HConstant* HConstant::CopyToTruncatedNumber(Zone* zone) { Shouldn't we ...
7 years, 5 months ago (2013-07-22 08:31:44 UTC) #6
oliv
PTAL https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/19798002/diff/16001/src/hydrogen-instructions.cc#newcode2331 src/hydrogen-instructions.cc:2331: HConstant* HConstant::CopyToTruncatedNumber(Zone* zone) { On 2013/07/22 08:31:44, Toon ...
7 years, 5 months ago (2013-07-22 13:56:43 UTC) #7
Toon Verwaest
lgtm with nit https://codereview.chromium.org/19798002/diff/41001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/19798002/diff/41001/src/hydrogen-instructions.h#newcode411 src/hydrogen-instructions.h:411: return (IsTaggedPrimitive() || IsSmi() || IsHeapNumber() ...
7 years, 5 months ago (2013-07-22 16:46:45 UTC) #8
oliv
7 years, 5 months ago (2013-07-23 09:14:05 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r15818 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698