Chromium Code Reviews
Help | Chromium Project | Sign in
(700)

Issue 524059: Speed up compares with characters ie single-character strings.... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 3 months ago by Erik Corry
Modified:
2 years, 11 months ago
Reviewers:
Kasper Lund
CC:
v8-dev_googlegroups.com
Visibility:
Public.

Description

Speed up compares with characters ie single-character strings.
Make use of it when we know that something can't be a NaN.

Committed: http://code.google.com/p/v8/source/detail?r=3566

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -182 lines) Lint Patch
M src/arm/codegen-arm.cc View 1 6 chunks +129 lines, -74 lines 0 comments 2 errors Download
M src/codegen.h View 2 chunks +16 lines, -1 line 0 comments 0 errors Download
M src/ia32/codegen-ia32.cc View 1 2 7 chunks +245 lines, -42 lines 0 comments 2 errors Download
M src/ia32/ic-ia32.cc View 1 chunk +1 line, -0 lines 0 comments 0 errors Download
M src/ia32/virtual-frame-ia32.h View 1 chunk +2 lines, -0 lines 0 comments 0 errors Download
M src/objects.h View 1 1 chunk +5 lines, -4 lines 0 comments 0 errors Download
M src/objects-inl.h View 2 chunks +8 lines, -3 lines 0 comments 0 errors Download
M src/runtime.cc View 2 chunks +1 line, -2 lines 0 comments 0 errors Download
M src/x64/codegen-x64.cc View 1 3 chunks +82 lines, -32 lines 0 comments 1 errors Download
M src/x64/ic-x64.cc View 1 chunk +1 line, -0 lines 0 comments 0 errors Download
M test/mjsunit/bit-not.js View 1 chunk +24 lines, -24 lines 0 comments 0 errors Download
A test/mjsunit/compare-character.js View 1 1 chunk +50 lines, -0 lines 0 comments 0 errors Download
M test/mjsunit/compare-nan.js View 1 1 chunk +22 lines, -0 lines 0 comments 0 errors Download
Trybot results:
Commit:

Messages

Total messages: 3
Erik Corry
4 years, 3 months ago #1
Kasper Lund
Comments: http://codereview.chromium.org/524059/diff/1/11 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/524059/diff/1/11#newcode4630 src/arm/codegen-arm.cc:4630: // special: (undefined == undefined) == true, but ...
4 years, 3 months ago #2
Kasper Lund
4 years, 3 months ago #3
One more thing:

http://codereview.chromium.org/524059/diff/1/7
File src/codegen.h (right):

http://codereview.chromium.org/524059/diff/1/7#newcode320
src/codegen.h:320: enum NaNInformation { BothCouldBeNaN, CantBothBeNaN };
Split on multiple lines. Fix naming. Should be either BOTH_COULD_BE_NAN or
kBothCouldBeNaN.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1280:2d3e6564b7b6