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

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

Issue 10105026: Version 3.10.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 8 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 | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 Operand rhs = (c == 0) ? Operand(zero_reg) : Operand(c); 473 Operand rhs = (c == 0) ? Operand(zero_reg) : Operand(c);
474 BranchOrBacktrack(on_not_equal, ne, a0, rhs); 474 BranchOrBacktrack(on_not_equal, ne, a0, rhs);
475 } 475 }
476 476
477 477
478 void RegExpMacroAssemblerMIPS::CheckNotCharacterAfterMinusAnd( 478 void RegExpMacroAssemblerMIPS::CheckNotCharacterAfterMinusAnd(
479 uc16 c, 479 uc16 c,
480 uc16 minus, 480 uc16 minus,
481 uc16 mask, 481 uc16 mask,
482 Label* on_not_equal) { 482 Label* on_not_equal) {
483 UNIMPLEMENTED_MIPS(); 483 ASSERT(minus < String::kMaxUtf16CodeUnit);
484 __ Subu(a0, current_character(), Operand(minus));
485 __ And(a0, a0, Operand(mask));
486 BranchOrBacktrack(on_not_equal, ne, a0, Operand(c));
484 } 487 }
485 488
486 489
487 void RegExpMacroAssemblerMIPS::CheckCharacterInRange( 490 void RegExpMacroAssemblerMIPS::CheckCharacterInRange(
488 uc16 from, 491 uc16 from,
489 uc16 to, 492 uc16 to,
490 Label* on_in_range) { 493 Label* on_in_range) {
491 __ Subu(a0, current_character(), Operand(from)); 494 __ Subu(a0, current_character(), Operand(from));
492 // Unsigned lower-or-same condition. 495 // Unsigned lower-or-same condition.
493 BranchOrBacktrack(on_in_range, ls, a0, Operand(to - from)); 496 BranchOrBacktrack(on_in_range, ls, a0, Operand(to - from));
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 } 1313 }
1311 1314
1312 1315
1313 #undef __ 1316 #undef __
1314 1317
1315 #endif // V8_INTERPRETED_REGEXP 1318 #endif // V8_INTERPRETED_REGEXP
1316 1319
1317 }} // namespace v8::internal 1320 }} // namespace v8::internal
1318 1321
1319 #endif // V8_TARGET_ARCH_MIPS 1322 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698