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

Issue 7044100: Constant-fold !<number> (Closed)

Created:
9 years, 6 months ago by sra1
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Constant-fold !<number> The closure compiler reduces program size by replacing true with !0 and false with !1. Unfortunately, the code generated for !0 and !1 contains unnecessary jumps and deoptimization support. Constant folding directly improves code quality.

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/parser.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Kasper Lund
LGTM, but maybe it could be even better: http://codereview.chromium.org/7044100/diff/1/src/parser.cc File src/parser.cc (right): http://codereview.chromium.org/7044100/diff/1/src/parser.cc#newcode2559 src/parser.cc:2559: if ...
9 years, 6 months ago (2011-06-10 09:20:08 UTC) #1
Kevin Millikin (Chromium)
http://codereview.chromium.org/7044100/diff/1/src/parser.cc File src/parser.cc (right): http://codereview.chromium.org/7044100/diff/1/src/parser.cc#newcode2559 src/parser.cc:2559: if (value == 0) { On 2011/06/10 09:20:08, Kasper ...
9 years, 6 months ago (2011-06-10 10:05:14 UTC) #2
Kevin Millikin (Chromium)
http://codereview.chromium.org/7044100/diff/6001/src/parser.cc File src/parser.cc (right): http://codereview.chromium.org/7044100/diff/6001/src/parser.cc#newcode2559 src/parser.cc:2559: if (!isnan(value)) { Does: bool cond = isnan(value) || ...
9 years, 6 months ago (2011-06-14 08:40:35 UTC) #3
Kevin Millikin (Chromium)
9 years, 3 months ago (2011-09-15 09:47:05 UTC) #4
A modified version of this was landed a few months ago.  Closing the issue.

Powered by Google App Engine
This is Rietveld 408576698