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

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

Issue 147443008: Revert "Fix inconsistencies wrt whitespaces." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/scanner.h ('k') | test/cctest/test-regexp.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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // One byte space characters are '\t'..'\r', ' ' and \u00a0. 545 // One byte space characters are '\t'..'\r', ' ' and \u00a0.
546 Label success; 546 Label success;
547 __ cmpl(current_character(), Immediate(' ')); 547 __ cmpl(current_character(), Immediate(' '));
548 __ j(equal, &success, Label::kNear); 548 __ j(equal, &success, Label::kNear);
549 // Check range 0x09..0x0d 549 // Check range 0x09..0x0d
550 __ lea(rax, Operand(current_character(), -'\t')); 550 __ lea(rax, Operand(current_character(), -'\t'));
551 __ cmpl(rax, Immediate('\r' - '\t')); 551 __ cmpl(rax, Immediate('\r' - '\t'));
552 __ j(below_equal, &success, Label::kNear); 552 __ j(below_equal, &success, Label::kNear);
553 // \u00a0 (NBSP). 553 // \u00a0 (NBSP).
554 __ cmpl(rax, Immediate(0x00a0 - '\t')); 554 __ cmpl(rax, Immediate(0x00a0 - '\t'));
555 __ j(equal, &success, Label::kNear);
556 // \u0085 (NEL).
557 __ cmpl(rax, Immediate(0x0085 - '\t'));
558 BranchOrBacktrack(not_equal, on_no_match); 555 BranchOrBacktrack(not_equal, on_no_match);
559 __ bind(&success); 556 __ bind(&success);
560 return true; 557 return true;
561 } 558 }
562 return false; 559 return false;
563 case 'S': 560 case 'S':
564 // The emitted code for generic character classes is good enough. 561 // The emitted code for generic character classes is good enough.
565 return false; 562 return false;
566 case 'd': 563 case 'd':
567 // Match ASCII digits ('0'..'9') 564 // Match ASCII digits ('0'..'9')
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 } 1439 }
1443 } 1440 }
1444 1441
1445 #undef __ 1442 #undef __
1446 1443
1447 #endif // V8_INTERPRETED_REGEXP 1444 #endif // V8_INTERPRETED_REGEXP
1448 1445
1449 }} // namespace v8::internal 1446 }} // namespace v8::internal
1450 1447
1451 #endif // V8_TARGET_ARCH_X64 1448 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/scanner.h ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698