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

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

Issue 10066009: Remove CheckNotRegistersEqual regexp-masm function from all architectures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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/ia32/regexp-macro-assembler-ia32.h ('k') | src/mips/regexp-macro-assembler-mips.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 // Move current character position to position after match. 475 // Move current character position to position after match.
476 __ mov(edi, ecx); 476 __ mov(edi, ecx);
477 __ sub(edi, esi); 477 __ sub(edi, esi);
478 // Restore backtrack stackpointer. 478 // Restore backtrack stackpointer.
479 __ pop(backtrack_stackpointer()); 479 __ pop(backtrack_stackpointer());
480 480
481 __ bind(&fallthrough); 481 __ bind(&fallthrough);
482 } 482 }
483 483
484 484
485 void RegExpMacroAssemblerIA32::CheckNotRegistersEqual(int reg1,
486 int reg2,
487 Label* on_not_equal) {
488 __ mov(eax, register_location(reg1));
489 __ cmp(eax, register_location(reg2));
490 BranchOrBacktrack(not_equal, on_not_equal);
491 }
492
493
494 void RegExpMacroAssemblerIA32::CheckNotCharacter(uint32_t c, 485 void RegExpMacroAssemblerIA32::CheckNotCharacter(uint32_t c,
495 Label* on_not_equal) { 486 Label* on_not_equal) {
496 __ cmp(current_character(), c); 487 __ cmp(current_character(), c);
497 BranchOrBacktrack(not_equal, on_not_equal); 488 BranchOrBacktrack(not_equal, on_not_equal);
498 } 489 }
499 490
500 491
501 void RegExpMacroAssemblerIA32::CheckCharacterAfterAnd(uint32_t c, 492 void RegExpMacroAssemblerIA32::CheckCharacterAfterAnd(uint32_t c,
502 uint32_t mask, 493 uint32_t mask,
503 Label* on_equal) { 494 Label* on_equal) {
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 } 1319 }
1329 1320
1330 1321
1331 #undef __ 1322 #undef __
1332 1323
1333 #endif // V8_INTERPRETED_REGEXP 1324 #endif // V8_INTERPRETED_REGEXP
1334 1325
1335 }} // namespace v8::internal 1326 }} // namespace v8::internal
1336 1327
1337 #endif // V8_TARGET_ARCH_IA32 1328 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/regexp-macro-assembler-ia32.h ('k') | src/mips/regexp-macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698