OLD | NEW |
1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 __ sll(t5, a1, (mode_ == UC16) ? 1 : 0); | 671 __ sll(t5, a1, (mode_ == UC16) ? 1 : 0); |
672 __ Subu(a0, a0, t5); | 672 __ Subu(a0, a0, t5); |
673 // Store this value in a local variable, for use when clearing | 673 // Store this value in a local variable, for use when clearing |
674 // position registers. | 674 // position registers. |
675 __ sw(a0, MemOperand(frame_pointer(), kInputStartMinusOne)); | 675 __ sw(a0, MemOperand(frame_pointer(), kInputStartMinusOne)); |
676 | 676 |
677 // Determine whether the start index is zero, that is at the start of the | 677 // Determine whether the start index is zero, that is at the start of the |
678 // string, and store that value in a local variable. | 678 // string, and store that value in a local variable. |
679 __ mov(t5, a1); | 679 __ mov(t5, a1); |
680 __ li(a1, Operand(1)); | 680 __ li(a1, Operand(1)); |
681 __ movn(a1, zero_reg, t5); | 681 __ Movn(a1, zero_reg, t5); |
682 __ sw(a1, MemOperand(frame_pointer(), kAtStart)); | 682 __ sw(a1, MemOperand(frame_pointer(), kAtStart)); |
683 | 683 |
684 if (num_saved_registers_ > 0) { // Always is, if generated from a regexp. | 684 if (num_saved_registers_ > 0) { // Always is, if generated from a regexp. |
685 // Fill saved registers with initial value = start offset - 1. | 685 // Fill saved registers with initial value = start offset - 1. |
686 | 686 |
687 // Address of register 0. | 687 // Address of register 0. |
688 __ Addu(a1, frame_pointer(), Operand(kRegisterZero)); | 688 __ Addu(a1, frame_pointer(), Operand(kRegisterZero)); |
689 __ li(a2, Operand(num_saved_registers_)); | 689 __ li(a2, Operand(num_saved_registers_)); |
690 Label init_loop; | 690 Label init_loop; |
691 __ bind(&init_loop); | 691 __ bind(&init_loop); |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 } | 1270 } |
1271 | 1271 |
1272 | 1272 |
1273 #undef __ | 1273 #undef __ |
1274 | 1274 |
1275 #endif // V8_INTERPRETED_REGEXP | 1275 #endif // V8_INTERPRETED_REGEXP |
1276 | 1276 |
1277 }} // namespace v8::internal | 1277 }} // namespace v8::internal |
1278 | 1278 |
1279 #endif // V8_TARGET_ARCH_MIPS | 1279 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |