OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 __ cmp(eax, c); | 516 __ cmp(eax, c); |
517 BranchOrBacktrack(not_equal, on_not_equal); | 517 BranchOrBacktrack(not_equal, on_not_equal); |
518 } | 518 } |
519 | 519 |
520 | 520 |
521 void RegExpMacroAssemblerIA32::CheckNotCharacterAfterMinusAnd( | 521 void RegExpMacroAssemblerIA32::CheckNotCharacterAfterMinusAnd( |
522 uc16 c, | 522 uc16 c, |
523 uc16 minus, | 523 uc16 minus, |
524 uc16 mask, | 524 uc16 mask, |
525 Label* on_not_equal) { | 525 Label* on_not_equal) { |
526 ASSERT(minus < String::kMaxUC16CharCode); | 526 ASSERT(minus < String::kMaxUtf16CodeUnit); |
527 __ lea(eax, Operand(current_character(), -minus)); | 527 __ lea(eax, Operand(current_character(), -minus)); |
528 __ and_(eax, mask); | 528 __ and_(eax, mask); |
529 __ cmp(eax, c); | 529 __ cmp(eax, c); |
530 BranchOrBacktrack(not_equal, on_not_equal); | 530 BranchOrBacktrack(not_equal, on_not_equal); |
531 } | 531 } |
532 | 532 |
533 | 533 |
534 bool RegExpMacroAssemblerIA32::CheckSpecialCharacterClass(uc16 type, | 534 bool RegExpMacroAssemblerIA32::CheckSpecialCharacterClass(uc16 type, |
535 Label* on_no_match) { | 535 Label* on_no_match) { |
536 // Range checks (c in min..max) are generally implemented by an unsigned | 536 // Range checks (c in min..max) are generally implemented by an unsigned |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 } | 1281 } |
1282 | 1282 |
1283 | 1283 |
1284 #undef __ | 1284 #undef __ |
1285 | 1285 |
1286 #endif // V8_INTERPRETED_REGEXP | 1286 #endif // V8_INTERPRETED_REGEXP |
1287 | 1287 |
1288 }} // namespace v8::internal | 1288 }} // namespace v8::internal |
1289 | 1289 |
1290 #endif // V8_TARGET_ARCH_IA32 | 1290 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |