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

Issue 965001: Add static analysis to AST expressions that records whether a negative zero w... (Closed)

Created:
10 years, 9 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
fschneider
CC:
v8-dev
Visibility:
Public.

Description

Add static analysis to AST expressions that records whether a negative zero will be treated identically to a positive zero in the expression's context. Use this flag to avoid some tests in inlined smi code. Committed: http://code.google.com/p/v8/source/detail?r=4130

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -43 lines) Patch
M src/ast.h View 2 chunks +10 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.h View 3 chunks +6 lines, -3 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 17 chunks +56 lines, -39 lines 0 comments Download
M src/rewriter.cc View 1 2 9 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
A later change will change all the CodeGenerator:: binary operation implementations to take an AST ...
10 years, 9 months ago (2010-03-15 11:43:19 UTC) #1
fschneider
LGTM otherwise. http://codereview.chromium.org/965001/diff/1/2 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/965001/diff/1/2#newcode1927 src/ia32/codegen-ia32.cc:1927: overwrite_mode, false); Why pass false here? Should ...
10 years, 9 months ago (2010-03-15 13:51:29 UTC) #2
William Hesse
10 years, 9 months ago (2010-03-15 14:01:49 UTC) #3
All comments fixed.

On 2010/03/15 13:51:29, fschneider wrote:
> LGTM otherwise.
> 
> http://codereview.chromium.org/965001/diff/1/2
> File src/ia32/codegen-ia32.cc (right):
> 
> http://codereview.chromium.org/965001/diff/1/2#newcode1927
> src/ia32/codegen-ia32.cc:1927: overwrite_mode, false);
> Why pass false here? Should it be no_negative_zero as well?
> 
> http://codereview.chromium.org/965001/diff/1/2#newcode1963
> src/ia32/codegen-ia32.cc:1963: overwrite_mode, false);
> Why pass false here? Should it be no_negative_zero as well?
> 
> http://codereview.chromium.org/965001/diff/1/5
> File src/rewriter.cc (right):
> 
> http://codereview.chromium.org/965001/diff/1/5#newcode580
> src/rewriter.cc:580: node->right()->set_no_negative_zero(true);  // Only
> [[HasIntance]] gets it.
> Typo in comment ->HasInstance

Powered by Google App Engine
This is Rietveld 408576698