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

Unified Diff: src/interpreter-re2k.cc

Issue 11352: * Match literals in a case independent way.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter-re2k.cc
===================================================================
--- src/interpreter-re2k.cc (revision 825)
+++ src/interpreter-re2k.cc (working copy)
@@ -195,6 +195,25 @@
}
break;
}
+ BYTECODE(OR_CHECK_NOT_CHAR) {
+ int c = Load16(pc + 1);
+ if (c != (current_char | Load16(pc + 3))) {
+ pc = code_base + Load32(pc + 5);
+ } else {
+ pc += BC_OR_CHECK_NOT_CHAR_LENGTH;
+ }
+ break;
+ }
+ BYTECODE(MINUS_OR_CHECK_NOT_CHAR) {
+ int c = Load16(pc + 1);
+ int m = Load16(pc + 3);
+ if (c != ((current_char - m) | m)) {
+ pc = code_base + Load32(pc + 5);
+ } else {
+ pc += BC_MINUS_OR_CHECK_NOT_CHAR_LENGTH;
+ }
+ break;
+ }
BYTECODE(CHECK_LT) {
int limit = Load16(pc + 1);
if (current_char < limit) {
« no previous file with comments | « src/flag-definitions.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698