Index: src/jsregexp.cc |
=================================================================== |
--- src/jsregexp.cc (revision 829) |
+++ src/jsregexp.cc (working copy) |
@@ -1474,7 +1474,12 @@ |
macro->IfRegisterLT(start_reg_, 0, on_success()->label()); |
macro->IfRegisterLT(end_reg_, 0, on_success()->label()); |
ASSERT_EQ(start_reg_ + 1, end_reg_); |
- macro->CheckNotBackReference(start_reg_, on_failure_->label()); |
+ if (!compiler->is_case_independent()) { |
Christian Plesner Hansen
2008/11/25 08:18:45
Why negate the condition?
|
+ macro->CheckNotBackReference(start_reg_, on_failure_->label()); |
+ } else { |
+ macro->CheckNotBackReferenceCaseIndependent(start_reg_, |
+ on_failure_->label()); |
+ } |
return on_success()->GoTo(compiler); |
} |