Commit de169b7d authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Port regexp microoptimizations to MIPS. Also fix some formatting. This...

Port regexp microoptimizations to MIPS.  Also fix some formatting.  This includes http://codereview.chromium.org/9965107/ from Daniel Kalmar

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11281 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bd58fddb
......@@ -461,7 +461,8 @@ void RegExpMacroAssemblerMIPS::CheckCharacterAfterAnd(uint32_t c,
uint32_t mask,
Label* on_equal) {
__ And(a0, current_character(), Operand(mask));
BranchOrBacktrack(on_equal, eq, a0, Operand(c));
Operand rhs = (c == 0) ? Operand(zero_reg) : Operand(c);
BranchOrBacktrack(on_equal, eq, a0, rhs);
}
......@@ -469,7 +470,8 @@ void RegExpMacroAssemblerMIPS::CheckNotCharacterAfterAnd(uint32_t c,
uint32_t mask,
Label* on_not_equal) {
__ And(a0, current_character(), Operand(mask));
BranchOrBacktrack(on_not_equal, ne, a0, Operand(c));
Operand rhs = (c == 0) ? Operand(zero_reg) : Operand(c);
BranchOrBacktrack(on_not_equal, ne, a0, rhs);
}
......@@ -1198,7 +1200,9 @@ void RegExpMacroAssemblerMIPS::BranchOrBacktrack(Label* to,
}
void RegExpMacroAssemblerMIPS::SafeCall(Label* to, Condition cond, Register rs,
void RegExpMacroAssemblerMIPS::SafeCall(Label* to,
Condition cond,
Register rs,
const Operand& rt) {
__ BranchAndLink(to, cond, rs, rt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment