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

Issue 8680010: Add external strings support to regexp in generated code. (Closed)

Created:
9 years, 1 month ago by Yang
Modified:
9 years ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Add external strings support to regexp in generated code. TEST=test/mjsunit/string-external-cached.js Committed: http://code.google.com/p/v8/source/detail?r=10070

Patch Set 1 #

Patch Set 2 : Fixing small mistakes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -104 lines) Patch
M src/arm/code-stubs-arm.cc View 1 4 chunks +29 lines, -5 lines 3 comments Download
M src/ia32/code-stubs-ia32.cc View 1 3 chunks +29 lines, -4 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 3 chunks +29 lines, -4 lines 0 comments Download
A + test/mjsunit/string-external-cached.js View 1 2 chunks +26 lines, -61 lines 0 comments Download
M test/mjsunit/string-externalize.js View 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Yang
Please take a look. This replaces http://codereview.chromium.org/8584003/
9 years, 1 month ago (2011-11-23 15:19:10 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/8680010/diff/3001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/8680010/diff/3001/src/arm/code-stubs-arm.cc#newcode4563 src/arm/code-stubs-arm.cc:4563: __ and_(r1, r0, Operand(kIsNotStringMask | kStringRepresentationMask), SetCC); Could ...
9 years ago (2011-11-25 12:56:50 UTC) #2
Yang
9 years ago (2011-11-25 14:19:25 UTC) #3
Landed.

http://codereview.chromium.org/8680010/diff/3001/src/arm/code-stubs-arm.cc
File src/arm/code-stubs-arm.cc (right):

http://codereview.chromium.org/8680010/diff/3001/src/arm/code-stubs-arm.cc#ne...
src/arm/code-stubs-arm.cc:4563: __ and_(r1, r0, Operand(kIsNotStringMask |
kStringRepresentationMask), SetCC);
On 2011/11/25 12:56:50, Lasse Reichstein wrote:
> Could you add kShortStringMask here?
> That would make r1 have the 0x10 bit set if it's short, just as it has the
0x80
> bit set if it's not a string.
> Any value above kStringRepresentationMask would make it go to runtime (with
the
> test for being not-a-string that was introduced here?)

Great idea!

Powered by Google App Engine
This is Rietveld 408576698