Chromium Code Reviews| Index: src/jsregexp.cc |
| =================================================================== |
| --- src/jsregexp.cc (revision 4906) |
| +++ src/jsregexp.cc (working copy) |
| @@ -1750,6 +1750,8 @@ |
| // For 2-character preloads in ASCII mode we also use a 16 bit load with |
|
Søren Thygesen Gjesse
2010/06/21 21:39:26
This comment should maybe cover both the ASCII and
|
| // zero extend. |
| if (details->characters() == 2 && compiler->ascii()) { |
| + if ((mask & 0x7f7f) == 0x7f7f) need_mask = false; |
| + } else if (details->characters() == 1 && !compiler->ascii()) { |
| if ((mask & 0xffff) == 0xffff) need_mask = false; |
| } else { |
| if (mask == 0xffffffff) need_mask = false; |