summaryrefslogtreecommitdiff
path: root/deps/v8/src/regexp/regexp-nodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/regexp/regexp-nodes.h')
-rw-r--r--deps/v8/src/regexp/regexp-nodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/regexp/regexp-nodes.h b/deps/v8/src/regexp/regexp-nodes.h
index 9b863ef239..5a7df3df6b 100644
--- a/deps/v8/src/regexp/regexp-nodes.h
+++ b/deps/v8/src/regexp/regexp-nodes.h
@@ -109,6 +109,11 @@ struct EatsAtLeastInfo final {
}
}
+ bool IsZero() const {
+ return eats_at_least_from_possibly_start == 0 &&
+ eats_at_least_from_not_start == 0;
+ }
+
// Any successful match starting from the current node will consume at least
// this many characters. This does not necessarily mean that there is a
// possible match with exactly this many characters, but we generally try to