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

Issue 61893018: Tweak minus zero detect of HChange (Closed)

Created:
7 years, 1 month ago by Weiliang
Modified:
7 years ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Tweak minus zero detect of HChange Eliminate some useless minus zero check BUG=

Patch Set 1 #

Patch Set 2 : fixed bug #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M src/hydrogen-instructions.cc View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M test/mjsunit/compiler/minus-zero.js View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Weiliang
7 years, 1 month ago (2013-11-12 01:47:33 UTC) #1
Jakob Kummerow
Nope. var double_one = Math.cos(0); function add(a, b) { return a + b; } assertEquals(1, ...
7 years, 1 month ago (2013-11-12 09:02:02 UTC) #2
Yang
On 2013/11/12 09:02:02, Jakob wrote: > Nope. > > var double_one = Math.cos(0); > > ...
7 years, 1 month ago (2013-11-12 10:14:56 UTC) #3
Weiliang
On 2013/11/12 10:14:56, Yang wrote: > On 2013/11/12 09:02:02, Jakob wrote: > > Nope. > ...
7 years, 1 month ago (2013-11-12 15:32:10 UTC) #4
Jakob Kummerow
On 2013/11/12 15:32:10, Weiliang wrote: > On 2013/11/12 10:14:56, Yang wrote: > > On 2013/11/12 ...
7 years, 1 month ago (2013-11-12 16:12:35 UTC) #5
Weiliang
On 2013/11/12 16:12:35, Jakob wrote: > On 2013/11/12 15:32:10, Weiliang wrote: > > On 2013/11/12 ...
7 years, 1 month ago (2013-11-13 06:42:40 UTC) #6
Weiliang
rebase
7 years, 1 month ago (2013-11-15 03:21:49 UTC) #7
Jakob Kummerow
7 years, 1 month ago (2013-11-18 14:06:15 UTC) #8
As I said before, there's no fundamental difference between Smi and Integer
representation when it comes to -0: Both can't encode it directly, so we need
(or at least currently have) a flag indicating that the real value could indeed
have been -0, and in situations where the difference becomes observable must be
checked accordingly.
Just because Lithium code generation currently happens to make it hard
(impossible? not sure...) to write a test that would fail with this patch
doesn't mean that baking such assumptions into Hydrogen phases is acceptable.

To put it bluntly: I don't think this patch is a good idea.

Powered by Google App Engine
This is Rietveld 408576698