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

Issue 173567: ARM native regexps. (Closed)

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

Description

ARM native regexps.

Patch Set 1 #

Total comments: 65
Unified diffs Side-by-side diffs Delta from patch set Stats (+1963 lines, -229 lines) Patch
M SConstruct View 1 chunk +0 lines, -5 lines 0 comments Download
M src/SConscript View 1 chunk +16 lines, -26 lines 0 comments Download
M src/arm/assembler-arm.h View 3 chunks +9 lines, -2 lines 3 comments Download
M src/arm/assembler-arm.cc View 4 chunks +64 lines, -34 lines 8 comments Download
M src/arm/codegen-arm.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm/constants-arm.h View 1 chunk +2 lines, -0 lines 2 comments Download
M src/arm/disasm-arm.cc View 3 chunks +63 lines, -1 line 0 comments Download
M src/arm/regexp-macro-assembler-arm.h View 1 chunk +223 lines, -0 lines 0 comments Download
M src/arm/regexp-macro-assembler-arm.cc View 2 chunks +1184 lines, -5 lines 45 comments Download
M src/arm/simulator-arm.h View 5 chunks +19 lines, -8 lines 0 comments Download
M src/arm/simulator-arm.cc View 9 chunks +124 lines, -31 lines 0 comments Download
M src/assembler.h View 1 chunk +13 lines, -0 lines 0 comments Download
M src/assembler.cc View 2 chunks +42 lines, -0 lines 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/execution.h View 1 chunk +2 lines, -0 lines 1 comment Download
M src/heap.h View 3 chunks +11 lines, -1 line 4 comments Download
M src/heap.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.h View 3 chunks +8 lines, -15 lines 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 6 chunks +14 lines, -22 lines 0 comments Download
M src/ia32/simulator-ia32.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/jsregexp.cc View 5 chunks +10 lines, -14 lines 0 comments Download
M src/regexp-macro-assembler.h View 2 chunks +25 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler.cc View 4 chunks +33 lines, -7 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-irregexp-inl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/serialize.cc View 3 chunks +24 lines, -0 lines 2 comments Download
M src/x64/regexp-macro-assembler-x64.h View 5 chunks +12 lines, -15 lines 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 7 chunks +20 lines, -24 lines 0 comments Download
M src/x64/simulator-x64.h View 1 chunk +5 lines, -0 lines 0 comments Download
M test/cctest/test-assembler-arm.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-regexp.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M tools/gyp/v8.gyp View 2 chunks +4 lines, -12 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
Pretty large review.
11 years, 3 months ago (2009-08-27 12:14:05 UTC) #1
Erik Corry
Here are the comments so far http://codereview.chromium.org/173567/diff/1/4 File src/arm/assembler-arm.cc (right): http://codereview.chromium.org/173567/diff/1/4#newcode342 Line 342: return pos ...
11 years, 3 months ago (2009-08-27 14:43:05 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/173567/diff/1/4 File src/arm/assembler-arm.cc (right): http://codereview.chromium.org/173567/diff/1/4#newcode342 Line 342: return pos + 8 + imm26; Changed to ...
11 years, 3 months ago (2009-08-28 09:15:17 UTC) #3
Erik Corry
LGTM though some of the comments seem to indicate that it's not quite done... http://codereview.chromium.org/173567/diff/1/9 ...
11 years, 3 months ago (2009-08-28 09:47:02 UTC) #4
Lasse Reichstein
11 years, 3 months ago (2009-08-28 11:43:15 UTC) #5
http://codereview.chromium.org/173567/diff/1/9
File src/arm/regexp-macro-assembler-arm.cc (right):

http://codereview.chromium.org/173567/diff/1/9#newcode809
Line 809: __ mov(r0, Operand(target + Code::kHeaderSize));
It's an interesting idea, but I'll prefer to look at the code before doing a
complex rewrite to achieve this.

http://codereview.chromium.org/173567/diff/1/9#newcode933
Line 933: UNIMPLEMENTED();  // TODO(ARM): Can't handle moving code yet.
Fixed. Removed the UNIMPLEMENTED and comment. It should work.

http://codereview.chromium.org/173567/diff/1/9#newcode1026
Line 1026: __ add(lr, lr, Operand(masm_->CodeObject()));
Should work. Done.

http://codereview.chromium.org/173567/diff/1/9#newcode1056
Line 1056: __ mov(r0, Operand(stack_guard_limit));
If this still works, I'll leave it for a second patch.

http://codereview.chromium.org/173567/diff/1/9#newcode1106
Line 1106: // Make this work!
Comment removed.

http://codereview.chromium.org/173567/diff/1/9#newcode1132
Line 1132: if (OS::ActivationFrameAlignment() != 0) {
Done

http://codereview.chromium.org/173567/diff/1/9#newcode1163
Line 1163: if (characters == 4) {
I'll assert that characters is 1, and hope the calling code knows how to handle
it.

http://codereview.chromium.org/173567/diff/1/18
File src/heap.h (right):

http://codereview.chromium.org/173567/diff/1/18#newcode138
Line 138: #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP
Agree, but it still seems better than having an unused strong root in the other
cases.

http://codereview.chromium.org/173567/diff/1/18#newcode1034
Line 1034: #if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP
Sure. We still won't implement the function unless we are using native regexps
on ARM.

http://codereview.chromium.org/173567/diff/1/28
File src/serialize.cc (right):

http://codereview.chromium.org/173567/diff/1/28#newcode740
Line 740: 17,
Whoops.

Powered by Google App Engine
This is Rietveld 408576698