| 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 | 516 |
| 517 // Success. | 517 // Success. |
| 518 // Set current character position to position after match. | 518 // Set current character position to position after match. |
| 519 __ movq(rdi, rbx); | 519 __ movq(rdi, rbx); |
| 520 __ subq(rdi, rsi); | 520 __ subq(rdi, rsi); |
| 521 | 521 |
| 522 __ bind(&fallthrough); | 522 __ bind(&fallthrough); |
| 523 } | 523 } |
| 524 | 524 |
| 525 | 525 |
| 526 void RegExpMacroAssemblerX64::CheckNotRegistersEqual(int reg1, | |
| 527 int reg2, | |
| 528 Label* on_not_equal) { | |
| 529 __ movq(rax, register_location(reg1)); | |
| 530 __ cmpq(rax, register_location(reg2)); | |
| 531 BranchOrBacktrack(not_equal, on_not_equal); | |
| 532 } | |
| 533 | |
| 534 | |
| 535 void RegExpMacroAssemblerX64::CheckNotCharacter(uint32_t c, | 526 void RegExpMacroAssemblerX64::CheckNotCharacter(uint32_t c, |
| 536 Label* on_not_equal) { | 527 Label* on_not_equal) { |
| 537 __ cmpl(current_character(), Immediate(c)); | 528 __ cmpl(current_character(), Immediate(c)); |
| 538 BranchOrBacktrack(not_equal, on_not_equal); | 529 BranchOrBacktrack(not_equal, on_not_equal); |
| 539 } | 530 } |
| 540 | 531 |
| 541 | 532 |
| 542 void RegExpMacroAssemblerX64::CheckCharacterAfterAnd(uint32_t c, | 533 void RegExpMacroAssemblerX64::CheckCharacterAfterAnd(uint32_t c, |
| 543 uint32_t mask, | 534 uint32_t mask, |
| 544 Label* on_equal) { | 535 Label* on_equal) { |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 } | 1451 } |
| 1461 } | 1452 } |
| 1462 | 1453 |
| 1463 #undef __ | 1454 #undef __ |
| 1464 | 1455 |
| 1465 #endif // V8_INTERPRETED_REGEXP | 1456 #endif // V8_INTERPRETED_REGEXP |
| 1466 | 1457 |
| 1467 }} // namespace v8::internal | 1458 }} // namespace v8::internal |
| 1468 | 1459 |
| 1469 #endif // V8_TARGET_ARCH_X64 | 1460 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |