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

Issue 6880276: Use type info for count operation in Crankshaft. (Closed)

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

Description

Use type info for count operation in Crankshaft. BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=7717

Patch Set 1 #

Total comments: 4

Patch Set 2 : Switch back to generating Integer32 code for tagged case, instead of bailing out of compilation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -6 lines) Patch
M src/hydrogen.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/hydrogen.cc View 1 4 chunks +11 lines, -5 lines 0 comments Download
M src/type-info.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/type-info.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
9 years, 8 months ago (2011-04-28 15:21:10 UTC) #1
fschneider
LGTM. http://codereview.chromium.org/6880276/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/6880276/diff/1/src/hydrogen.cc#newcode4664 src/hydrogen.cc:4664: if (rep.Equals(Representation::Tagged())) { you can write if (rep.IsTagged()) ...
9 years, 7 months ago (2011-04-29 08:56:22 UTC) #2
William Hesse
9 years, 7 months ago (2011-04-29 09:20:34 UTC) #3
http://codereview.chromium.org/6880276/diff/1/src/hydrogen.cc
File src/hydrogen.cc (right):

http://codereview.chromium.org/6880276/diff/1/src/hydrogen.cc#newcode4664
src/hydrogen.cc:4664: if (rep.Equals(Representation::Tagged())) {
Done both.  We generate the int32 representation.

On 2011/04/29 08:56:22, fschneider wrote:
> you can write 
> 
> if (rep.IsTagged())
> 
> Until we support generic binary operations here, you could also just generate
an
> integer32-add (like we did before)

http://codereview.chromium.org/6880276/diff/1/src/type-info.cc
File src/type-info.cc (right):

http://codereview.chromium.org/6880276/diff/1/src/type-info.cc#newcode342
src/type-info.cc:342: UNREACHABLE();
On 2011/04/29 08:56:22, fschneider wrote:
> Maybe no need for UNREACHABLE() and the following return since there is a
> default-clause at the switch.

I think there is a MacOS compiler that can't handle the truth that our switch
statement returns unconditionally.

Powered by Google App Engine
This is Rietveld 408576698