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

Unified Diff: src/bytecodes-re2k.h

Issue 11228: * No failures on our own tests.... (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
Index: src/bytecodes-re2k.h
===================================================================
--- src/bytecodes-re2k.h (revision 786)
+++ src/bytecodes-re2k.h (working copy)
@@ -49,8 +49,8 @@
V(LOAD_CURRENT_CHAR, 14, 9) /* load offset32 addr32 */ \
V(CHECK_CHAR, 15, 7) /* check_char uc16 addr32 */ \
V(CHECK_NOT_CHAR, 16, 7) /* check_not_char uc16 addr32 */ \
-V(CHECK_RANGE, 17, 9) /* check_range uc16 uc16 addr32 */ \
-V(CHECK_NOT_RANGE, 18, 9) /* check_not_range uc16 uc16 addr32 */ \
+V(CHECK_LT, 17, 7) /* check_lt uc16 addr32 */ \
+V(CHECK_GT, 18, 7) /* check_gr uc16 addr32 */ \
V(CHECK_BACKREF, 19, 9) /* check_backref offset32 capture_idx addr32 */ \
V(CHECK_NOT_BACKREF, 20, 9) /* check_not_backref offset32 capture_idx addr32*/ \
V(LOOKUP_MAP1, 21, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \
@@ -64,6 +64,12 @@
static const int BC_##name = code;
BYTECODE_ITERATOR(DECLARE_BYTECODES)
#undef DECLARE_BYTECODES
+#ifdef DEBUG
Christian Plesner Hansen 2008/11/18 14:07:41 Does this have to be #ifdef DEBUG? Unused static
+# define DECLARE_BYTECODE_LENGTH(name, code, length) \
+ static const int BC_##name##_LENGTH = length;
+ BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH)
+# undef DECLARE_BYTECODE_LENGTH
+#endif // def DEBUG
} }
#endif // V8_BYTECODES_IA32_H_
« no previous file with comments | « src/assembler-re2k-inl.h ('k') | src/interpreter-re2k.h » ('j') | src/interpreter-re2k.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698