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

Issue 1249002: Add primitive type and string type to the number info.... (Closed)

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

Description

Add primitive type and string type to the number info. This change adds two new type attributes to the lattice defined in the class NumberInfo. Currently the new types are not used yet. I plan to rename NumberInfo into TypeInfo as a separate change. Committed: http://code.google.com/p/v8/source/detail?r=4250

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -21 lines) Patch
M src/frame-element.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/number-info.h View 1 8 chunks +43 lines, -16 lines 0 comments Download
M src/register-allocator.h View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
10 years, 9 months ago (2010-03-24 12:02:36 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/1249002/diff/1/3 File src/number-info.h (right): http://codereview.chromium.org/1249002/diff/1/3#newcode51 src/number-info.h:51: // We know is's a primitive type. is's ...
10 years, 9 months ago (2010-03-24 12:18:10 UTC) #2
fschneider
10 years, 9 months ago (2010-03-24 12:32:43 UTC) #3
http://codereview.chromium.org/1249002/diff/1/3
File src/number-info.h (right):

http://codereview.chromium.org/1249002/diff/1/3#newcode51
src/number-info.h:51: // We know is's a primitive type.
On 2010/03/24 12:18:15, Erik Corry wrote:
> is's -> it is

Done.

http://codereview.chromium.org/1249002/diff/1/3#newcode71
src/number-info.h:71: int answer = type_ & 15;
On 2010/03/24 12:18:15, Erik Corry wrote:
> Please use hex for things that are bit-oriented.

Done.

http://codereview.chromium.org/1249002/diff/1/3#newcode83
src/number-info.h:83: t = (t != kUnknownType) ? static_cast<Type>(t | 16) : t;
On 2010/03/24 12:18:15, Erik Corry wrote:
> Can we use kPrimitiveType here instead of 16.  Also I think it's clearer to
have
> (x == y) ? ... : ...
> instead of (x != y) ? ... : ...

Done.

http://codereview.chromium.org/1249002/diff/1/3#newcode161
src/number-info.h:161: kPrimitiveType = 16,
On 2010/03/24 12:18:15, Erik Corry wrote:
> Hex.

Done. (for all enum values)

Powered by Google App Engine
This is Rietveld 408576698