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

Unified Diff: src/ia32/regexp-macro-assembler-ia32.cc

Issue 9965010: Regexp: Improve the speed that we scan for an initial point where a non-anchored (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/ia32/regexp-macro-assembler-ia32.cc
===================================================================
--- src/ia32/regexp-macro-assembler-ia32.cc (revision 11190)
+++ src/ia32/regexp-macro-assembler-ia32.cc (working copy)
@@ -504,8 +504,8 @@
if (c == 0) {
__ test(current_character(), Immediate(mask));
} else {
- __ mov(eax, current_character());
- __ and_(eax, mask);
+ __ mov(eax, mask);
+ __ and_(eax, current_character());
__ cmp(eax, c);
}
BranchOrBacktrack(equal, on_equal);
@@ -518,8 +518,8 @@
if (c == 0) {
__ test(current_character(), Immediate(mask));
} else {
- __ mov(eax, current_character());
- __ and_(eax, mask);
+ __ mov(eax, mask);
+ __ and_(eax, current_character());
__ cmp(eax, c);
}
BranchOrBacktrack(not_equal, on_not_equal);
@@ -569,8 +569,8 @@
__ mov(eax, Immediate(table));
Register index = current_character();
if (mode_ != ASCII || kTableMask != String::kMaxAsciiCharCode) {
- __ mov(ebx, current_character());
- __ and_(ebx, kTableSize - 1);
+ __ mov(ebx, kTableSize - 1);
+ __ and_(ebx, current_character());
index = ebx;
}
__ cmpb(FieldOperand(eax, index, times_1, ByteArray::kHeaderSize), 0);
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/jsregexp.h » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698