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

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

Issue 7400023: fix -Wunused-but-set-variable for gcc-4.6 on x64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: without valgrind changes Created 9 years, 5 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/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.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 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 return true; 654 return true;
655 } 655 }
656 case 'w': { 656 case 'w': {
657 if (mode_ != ASCII) { 657 if (mode_ != ASCII) {
658 // Table is 128 entries, so all ASCII characters can be tested. 658 // Table is 128 entries, so all ASCII characters can be tested.
659 __ cmpl(current_character(), Immediate('z')); 659 __ cmpl(current_character(), Immediate('z'));
660 BranchOrBacktrack(above, on_no_match); 660 BranchOrBacktrack(above, on_no_match);
661 } 661 }
662 __ movq(rbx, ExternalReference::re_word_character_map()); 662 __ movq(rbx, ExternalReference::re_word_character_map());
663 ASSERT_EQ(0, word_character_map[0]); // Character '\0' is not a word char. 663 ASSERT_EQ(0, word_character_map[0]); // Character '\0' is not a word char.
664 ExternalReference word_map = ExternalReference::re_word_character_map();
665 __ testb(Operand(rbx, current_character(), times_1, 0), 664 __ testb(Operand(rbx, current_character(), times_1, 0),
666 current_character()); 665 current_character());
667 BranchOrBacktrack(zero, on_no_match); 666 BranchOrBacktrack(zero, on_no_match);
668 return true; 667 return true;
669 } 668 }
670 case 'W': { 669 case 'W': {
671 Label done; 670 Label done;
672 if (mode_ != ASCII) { 671 if (mode_ != ASCII) {
673 // Table is 128 entries, so all ASCII characters can be tested. 672 // Table is 128 entries, so all ASCII characters can be tested.
674 __ cmpl(current_character(), Immediate('z')); 673 __ cmpl(current_character(), Immediate('z'));
675 __ j(above, &done); 674 __ j(above, &done);
676 } 675 }
677 __ movq(rbx, ExternalReference::re_word_character_map()); 676 __ movq(rbx, ExternalReference::re_word_character_map());
678 ASSERT_EQ(0, word_character_map[0]); // Character '\0' is not a word char. 677 ASSERT_EQ(0, word_character_map[0]); // Character '\0' is not a word char.
679 ExternalReference word_map = ExternalReference::re_word_character_map();
680 __ testb(Operand(rbx, current_character(), times_1, 0), 678 __ testb(Operand(rbx, current_character(), times_1, 0),
681 current_character()); 679 current_character());
682 BranchOrBacktrack(not_zero, on_no_match); 680 BranchOrBacktrack(not_zero, on_no_match);
683 if (mode_ != ASCII) { 681 if (mode_ != ASCII) {
684 __ bind(&done); 682 __ bind(&done);
685 } 683 }
686 return true; 684 return true;
687 } 685 }
688 686
689 case '*': 687 case '*':
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 } 1387 }
1390 } 1388 }
1391 1389
1392 #undef __ 1390 #undef __
1393 1391
1394 #endif // V8_INTERPRETED_REGEXP 1392 #endif // V8_INTERPRETED_REGEXP
1395 1393
1396 }} // namespace v8::internal 1394 }} // namespace v8::internal
1397 1395
1398 #endif // V8_TARGET_ARCH_X64 1396 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698