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

Issue 1040002: Fix bug in the count operation where we statically know the input is a smi. (Closed)

Created:
10 years, 9 months ago by fschneider
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Fix bug in the count operation where we statically know the input is a smi. Even if we know that the input to a count operation is a smi we still need to check if the result overflowed (and becomes a heap number). Also fix the smi loop analysis to take two border cases correctly into account. Committed: http://code.google.com/p/v8/source/detail?r=4147

Patch Set 1 #

Patch Set 2 : Rearranged comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -29 lines) Patch
M src/data-flow.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 chunks +34 lines, -29 lines 0 comments Download
A test/mjsunit/compiler/loopcount.js View 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
fschneider
10 years, 9 months ago (2010-03-16 15:01:51 UTC) #1
Erik Corry
10 years, 9 months ago (2010-03-16 15:58:11 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698