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

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

Issue 10447008: Fix lint check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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 __ sw(a1, MemOperand(frame_pointer(), kNumOutputRegisters)); 826 __ sw(a1, MemOperand(frame_pointer(), kNumOutputRegisters));
827 // Advance the location for output. 827 // Advance the location for output.
828 __ Addu(a2, a2, num_saved_registers_ * kPointerSize); 828 __ Addu(a2, a2, num_saved_registers_ * kPointerSize);
829 __ sw(a2, MemOperand(frame_pointer(), kRegisterOutput)); 829 __ sw(a2, MemOperand(frame_pointer(), kRegisterOutput));
830 830
831 // Prepare a0 to initialize registers with its value in the next run. 831 // Prepare a0 to initialize registers with its value in the next run.
832 __ lw(a0, MemOperand(frame_pointer(), kInputStartMinusOne)); 832 __ lw(a0, MemOperand(frame_pointer(), kInputStartMinusOne));
833 // Special case for zero-length matches. 833 // Special case for zero-length matches.
834 // t7: capture start index 834 // t7: capture start index
835 // Not a zero-length match, restart. 835 // Not a zero-length match, restart.
836 __ Branch(&load_char_start_regexp, ne, current_input_offset(), Operand(t 7)); 836 __ Branch(
837 &load_char_start_regexp, ne, current_input_offset(), Operand(t7));
837 // Offset from the end is zero if we already reached the end. 838 // Offset from the end is zero if we already reached the end.
838 __ Branch(&exit_label_, eq, current_input_offset(), Operand(zero_reg)); 839 __ Branch(&exit_label_, eq, current_input_offset(), Operand(zero_reg));
839 // Advance current position after a zero-length match. 840 // Advance current position after a zero-length match.
840 __ Addu(current_input_offset(), 841 __ Addu(current_input_offset(),
841 current_input_offset(), 842 current_input_offset(),
842 Operand((mode_ == UC16) ? 2 : 1)); 843 Operand((mode_ == UC16) ? 2 : 1));
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