summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/yarr/YarrInterpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/yarr/YarrInterpreter.h')
-rw-r--r--Source/JavaScriptCore/yarr/YarrInterpreter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/yarr/YarrInterpreter.h b/Source/JavaScriptCore/yarr/YarrInterpreter.h
index eea5266..a9f4d48 100644
--- a/Source/JavaScriptCore/yarr/YarrInterpreter.h
+++ b/Source/JavaScriptCore/yarr/YarrInterpreter.h
@@ -70,6 +70,7 @@ struct ByteTerm {
TypeParentheticalAssertionBegin,
TypeParentheticalAssertionEnd,
TypeCheckInput,
+ TypeUncheckInput,
} type;
union {
struct {
@@ -205,6 +206,13 @@ struct ByteTerm {
return term;
}
+ static ByteTerm UncheckInput(unsigned count)
+ {
+ ByteTerm term(TypeUncheckInput);
+ term.checkInputCount = count;
+ return term;
+ }
+
static ByteTerm EOL(int inputPos)
{
ByteTerm term(TypeAssertionEOL);