Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: src/mips/regexp-macro-assembler-mips.cc

Issue 10539102: Presubmit fix. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 // Prepare a0 to initialize registers with its value in the next run. 826 // Prepare a0 to initialize registers with its value in the next run.
827 __ lw(a0, MemOperand(frame_pointer(), kInputStartMinusOne)); 827 __ lw(a0, MemOperand(frame_pointer(), kInputStartMinusOne));
828 828
829 if (global_with_zero_length_check()) { 829 if (global_with_zero_length_check()) {
830 // Special case for zero-length matches. 830 // Special case for zero-length matches.
831 // t7: capture start index 831 // t7: capture start index
832 // Not a zero-length match, restart. 832 // Not a zero-length match, restart.
833 __ Branch( 833 __ Branch(
834 &load_char_start_regexp, ne, current_input_offset(), Operand(t7)); 834 &load_char_start_regexp, ne, current_input_offset(), Operand(t7));
835 // Offset from the end is zero if we already reached the end. 835 // Offset from the end is zero if we already reached the end.
836 __ Branch(&exit_label_, eq, current_input_offset(), Operand(zero_reg)) ; 836 __ Branch(&exit_label_, eq, current_input_offset(),
837 Operand(zero_reg));
837 // Advance current position after a zero-length match. 838 // Advance current position after a zero-length match.
838 __ Addu(current_input_offset(), 839 __ Addu(current_input_offset(),
839 current_input_offset(), 840 current_input_offset(),
840 Operand((mode_ == UC16) ? 2 : 1)); 841 Operand((mode_ == UC16) ? 2 : 1));
841 } 842 }
842 843
843 __ Branch(&load_char_start_regexp); 844 __ Branch(&load_char_start_regexp);
844 } else { 845 } else {
845 __ li(v0, Operand(SUCCESS)); 846 __ li(v0, Operand(SUCCESS));
846 } 847 }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 } 1373 }
1373 1374
1374 1375
1375 #undef __ 1376 #undef __
1376 1377
1377 #endif // V8_INTERPRETED_REGEXP 1378 #endif // V8_INTERPRETED_REGEXP
1378 1379
1379 }} // namespace v8::internal 1380 }} // namespace v8::internal
1380 1381
1381 #endif // V8_TARGET_ARCH_MIPS 1382 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698