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

Issue 155085: Separate native and interpreted regexp by compile time flag, not runtime. (Closed)

Created:
11 years, 5 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
bak, Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Separate native and interpreted regexp by compile time flag, not runtime. Clean-up of RegExp code.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed review comments. Adapted builds scripts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -173 lines) Patch
M SConstruct View 3 chunks +13 lines, -1 line 0 comments Download
M src/flag-definitions.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/jsregexp.h View 1 2 chunks +8 lines, -5 lines 0 comments Download
M src/jsregexp.cc View 1 9 chunks +114 lines, -128 lines 0 comments Download
M src/messages.js View 3 chunks +8 lines, -0 lines 0 comments Download
M src/objects.h View 2 chunks +10 lines, -5 lines 0 comments Download
M src/objects.cc View 4 chunks +18 lines, -14 lines 0 comments Download
M src/objects-debug.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M test/cctest/test-debug.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/test-regexp.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M tools/gyp/v8.gyp View 5 chunks +10 lines, -5 lines 0 comments Download
M tools/v8.xcodeproj/project.pbxproj View 4 chunks +4 lines, -0 lines 0 comments Download
M tools/visual_studio/ia32.vsprops View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
Review of suggested changes. Erik: This breaks running of irregexp interpreter benchmarks. You'll need an ...
11 years, 5 months ago (2009-07-06 12:52:18 UTC) #1
bak
LGTM, Lars http://codereview.chromium.org/155085/diff/1/4 File src/jsregexp.cc (right): http://codereview.chromium.org/155085/diff/1/4#newcode277 Line 277: // If it's a JS value, ...
11 years, 5 months ago (2009-07-06 13:44:18 UTC) #2
Lasse Reichstein
11 years, 5 months ago (2009-07-07 08:09:36 UTC) #3
Moved the inline EnsureCompiledIrregexp definition to jsregexp.cc.
Abstracted out the code index computation.
Fixed xcode, visual studio and gyp build scripts to include V8_NATIVE_REGEXP
flag for ia32 builds.

http://codereview.chromium.org/155085/diff/1/4
File src/jsregexp.cc (right):

http://codereview.chromium.org/155085/diff/1/4#newcode277
Line 277: // If it's a JS value, it's an error from a previous compilation.
Done. Now uses JSObject about the value.

http://codereview.chromium.org/155085/diff/1/4#newcode418
Line 418: Handle<FixedArray> array;
Done.

http://codereview.chromium.org/155085/diff/1/4#newcode449
Line 449: if (!rc) return Factory::null_value();
Done.

http://codereview.chromium.org/155085/diff/1/4#newcode477
Line 477: rc = IrregexpInterpreter::Match(byte_codes,
On 2009/07/06 13:44:18, bak wrote:
> if (!Irr...) return Factory::null_value();

Done.

http://codereview.chromium.org/155085/diff/1/5
File src/jsregexp.h (left):

http://codereview.chromium.org/155085/diff/1/5#oldcode40
Line 40: static inline bool UseNativeRegexp() {
On 2009/07/06 13:44:18, bak wrote:
> You might want to keep: bool UsesNativeRegexp();
> 

Done.

http://codereview.chromium.org/155085/diff/1/6
File src/objects-debug.cc (right):

http://codereview.chromium.org/155085/diff/1/6#newcode717
Line 717: #ifdef V8_NATIVE_REGEXP
UsesNativeRegexp reinstated and used.

Powered by Google App Engine
This is Rietveld 408576698