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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.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 | « no previous file | src/char-predicates.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 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // One byte space characters are '\t'..'\r', ' ' and \u00a0. 490 // One byte space characters are '\t'..'\r', ' ' and \u00a0.
491 Label success; 491 Label success;
492 __ cmp(current_character(), Operand(' ')); 492 __ cmp(current_character(), Operand(' '));
493 __ b(eq, &success); 493 __ b(eq, &success);
494 // Check range 0x09..0x0d 494 // Check range 0x09..0x0d
495 __ sub(r0, current_character(), Operand('\t')); 495 __ sub(r0, current_character(), Operand('\t'));
496 __ cmp(r0, Operand('\r' - '\t')); 496 __ cmp(r0, Operand('\r' - '\t'));
497 __ b(ls, &success); 497 __ b(ls, &success);
498 // \u00a0 (NBSP). 498 // \u00a0 (NBSP).
499 __ cmp(r0, Operand(0x00a0 - '\t')); 499 __ cmp(r0, Operand(0x00a0 - '\t'));
500 // \u0085 (NEL).
501 __ cmp(r0, Operand(0x0085 - '\t'), ne);
502 BranchOrBacktrack(ne, on_no_match); 500 BranchOrBacktrack(ne, on_no_match);
503 __ bind(&success); 501 __ bind(&success);
504 return true; 502 return true;
505 } 503 }
506 return false; 504 return false;
507 case 'S': 505 case 'S':
508 // The emitted code for generic character classes is good enough. 506 // The emitted code for generic character classes is good enough.
509 return false; 507 return false;
510 case 'd': 508 case 'd':
511 // Match ASCII digits ('0'..'9') 509 // Match ASCII digits ('0'..'9')
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 } 1291 }
1294 1292
1295 1293
1296 #undef __ 1294 #undef __
1297 1295
1298 #endif // V8_INTERPRETED_REGEXP 1296 #endif // V8_INTERPRETED_REGEXP
1299 1297
1300 }} // namespace v8::internal 1298 }} // namespace v8::internal
1301 1299
1302 #endif // V8_TARGET_ARCH_ARM 1300 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/char-predicates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698