OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // No custom implementation (yet): s(UC16), S(UC16). | 625 // No custom implementation (yet): s(UC16), S(UC16). |
626 default: | 626 default: |
627 return false; | 627 return false; |
628 } | 628 } |
629 } | 629 } |
630 | 630 |
631 | 631 |
632 void RegExpMacroAssemblerIA32::Fail() { | 632 void RegExpMacroAssemblerIA32::Fail() { |
633 STATIC_ASSERT(FAILURE == 0); // Return value for failure is zero. | 633 STATIC_ASSERT(FAILURE == 0); // Return value for failure is zero. |
634 if (!global()) { | 634 if (!global()) { |
635 __ Set(eax, Immediate(FAILURE)); | 635 __ Move(eax, Immediate(FAILURE)); |
636 } | 636 } |
637 __ jmp(&exit_label_); | 637 __ jmp(&exit_label_); |
638 } | 638 } |
639 | 639 |
640 | 640 |
641 Handle<HeapObject> RegExpMacroAssemblerIA32::GetCode(Handle<String> source) { | 641 Handle<HeapObject> RegExpMacroAssemblerIA32::GetCode(Handle<String> source) { |
642 Label return_eax; | 642 Label return_eax; |
643 // Finalize code - write the entry point code now we know how many | 643 // Finalize code - write the entry point code now we know how many |
644 // registers we need. | 644 // registers we need. |
645 | 645 |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 } | 1322 } |
1323 | 1323 |
1324 | 1324 |
1325 #undef __ | 1325 #undef __ |
1326 | 1326 |
1327 #endif // V8_INTERPRETED_REGEXP | 1327 #endif // V8_INTERPRETED_REGEXP |
1328 | 1328 |
1329 }} // namespace v8::internal | 1329 }} // namespace v8::internal |
1330 | 1330 |
1331 #endif // V8_TARGET_ARCH_IA32 | 1331 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |