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

Issue 20241005: Fix IsDeletable() for HStringAdd, HStringCharCodeAt, HStringCharFromCode. (Closed)

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

Description

Fix IsDeletable() for HStringAdd, HStringCharCodeAt, HStringCharFromCode. BUG= R=mstarzinger@chromium.org, svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15934

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix predicate for ToStringCanBeObserved() and private-ness of IsDeletable() #

Total comments: 4

Patch Set 3 : Add test cases and simplify conditions for removal of checks. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -205 lines) Patch
M src/hydrogen-instructions.h View 1 2 12 chunks +53 lines, -22 lines 3 comments Download
M src/hydrogen-instructions.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
A + test/mjsunit/compiler/dead-string-add.js View 1 2 2 chunks +25 lines, -38 lines 0 comments Download
A + test/mjsunit/compiler/dead-string-add-warm.js View 1 2 2 chunks +38 lines, -35 lines 1 comment Download
A + test/mjsunit/compiler/dead-string-char-code-at.js View 1 2 2 chunks +43 lines, -35 lines 0 comments Download
A + test/mjsunit/compiler/dead-string-char-code-at2.js View 1 2 2 chunks +43 lines, -35 lines 0 comments Download
A + test/mjsunit/compiler/dead-string-char-from-code.js View 1 2 2 chunks +38 lines, -35 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
titzer
7 years, 5 months ago (2013-07-25 14:35:23 UTC) #1
Michael Starzinger
https://codereview.chromium.org/20241005/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/20241005/diff/1/src/hydrogen-instructions.h#newcode1154 src/hydrogen-instructions.h:1154: return !type().IsString() && representation().IsTagged(); This predicate looks broken. Shouldn't ...
7 years, 5 months ago (2013-07-25 14:43:18 UTC) #2
titzer
Jakob, can you confirm or deny that an instruction's representation can change from Smi, Integer32, ...
7 years, 5 months ago (2013-07-25 15:31:44 UTC) #3
titzer
https://codereview.chromium.org/20241005/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/20241005/diff/1/src/hydrogen-instructions.h#newcode6481 src/hydrogen-instructions.h:6481: virtual bool IsDeletable() const { On 2013/07/25 14:43:18, Michael ...
7 years, 5 months ago (2013-07-25 15:32:55 UTC) #4
Jakob Kummerow
On 2013/07/25 15:31:44, titzer wrote: > Jakob, can you confirm or deny that an instruction's ...
7 years, 5 months ago (2013-07-25 16:41:08 UTC) #5
Michael Starzinger
This is an itsy-bitsy fragile, I must say. :D https://codereview.chromium.org/20241005/diff/5001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/20241005/diff/5001/src/hydrogen-instructions.h#newcode1150 src/hydrogen-instructions.h:1150: ...
7 years, 5 months ago (2013-07-26 08:03:03 UTC) #6
Sven Panne
... and the usual plea: Add some tests! :-)
7 years, 5 months ago (2013-07-26 08:07:46 UTC) #7
titzer
On 2013/07/26 08:07:46, Sven Panne wrote: > ... and the usual plea: Add some tests! ...
7 years, 4 months ago (2013-07-29 11:34:55 UTC) #8
Sven Panne
LGTM with nits. https://codereview.chromium.org/20241005/diff/13001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/20241005/diff/13001/src/hydrogen-instructions.h#newcode427 src/hydrogen-instructions.h:427: switch (type_) { The usual pattern ...
7 years, 4 months ago (2013-07-29 11:48:08 UTC) #9
titzer
On 2013/07/29 11:48:08, Sven Panne wrote: > LGTM with nits. > > https://codereview.chromium.org/20241005/diff/13001/src/hydrogen-instructions.h > File ...
7 years, 4 months ago (2013-07-29 12:26:30 UTC) #10
Michael Starzinger
LGTM (with one comment). https://codereview.chromium.org/20241005/diff/13001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/20241005/diff/13001/src/hydrogen-instructions.h#newcode427 src/hydrogen-instructions.h:427: switch (type_) { On 2013/07/29 ...
7 years, 4 months ago (2013-07-29 12:30:03 UTC) #11
titzer
7 years, 4 months ago (2013-07-29 12:35:53 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 manually as r15934 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698