|
@@ -1,7 +1,7 @@
|
|
|
# HG changeset patch
|
|
|
# User Dmitry Butskoy <buc@buc.me>
|
|
|
# Date 1690631360 -7200
|
|
|
-# Parent 38f83f280e0914da76ab9c2e7c2e229c9d6bf263
|
|
|
+# Parent 3d8f72ef9787bcd25d3411d1be682b185da86aab
|
|
|
No Bug - Import new regexp V8 engine. r=frg a=frg
|
|
|
|
|
|
hawkeye116477 <hawkeye116477@gmail.com>
|
|
@@ -152,7 +152,7 @@ diff --git a/js/src/vm/RegExpObject.cpp b/js/src/vm/RegExpObject.cpp
|
|
|
*/
|
|
|
if (!matches->allocOrExpandArray(re->pairCount())) {
|
|
|
ReportOutOfMemory(cx);
|
|
|
-@@ -820,54 +820,60 @@ bool RegExpShared::markedForTierUp(JSCon
|
|
|
+@@ -820,54 +820,61 @@ bool RegExpShared::markedForTierUp(JSCon
|
|
|
}
|
|
|
if (kind() != RegExpShared::Kind::RegExp) {
|
|
|
return false;
|
|
@@ -215,7 +215,8 @@ diff --git a/js/src/vm/RegExpObject.cpp b/js/src/vm/RegExpObject.cpp
|
|
|
+/* static */
|
|
|
+RegExpRunStatus RegExpShared::executeAtom(MutableHandleRegExpShared re,
|
|
|
+ HandleLinearString input,
|
|
|
-+ size_t start, MatchPairs* matches) {
|
|
|
++ size_t start,
|
|
|
++ VectorMatchPairs* matches) {
|
|
|
+ return ExecuteAtomImpl(re, input, start, matches);
|
|
|
}
|
|
|
|
|
@@ -228,7 +229,7 @@ diff --git a/js/src/vm/RegExpObject.cpp b/js/src/vm/RegExpObject.cpp
|
|
|
diff --git a/js/src/vm/RegExpShared.h b/js/src/vm/RegExpShared.h
|
|
|
--- a/js/src/vm/RegExpShared.h
|
|
|
+++ b/js/src/vm/RegExpShared.h
|
|
|
-@@ -155,21 +155,20 @@ class RegExpShared : public gc::TenuredC
|
|
|
+@@ -155,20 +155,18 @@ class RegExpShared : public gc::TenuredC
|
|
|
|
|
|
RegExpCompilation& compilation(bool latin1) {
|
|
|
return compilationArray[CompilationIndex(latin1)];
|
|
@@ -239,11 +240,11 @@ diff --git a/js/src/vm/RegExpShared.h b/js/src/vm/RegExpShared.h
|
|
|
|
|
|
- static RegExpRunStatus executeAtom(JSContext* cx,
|
|
|
- MutableHandleRegExpShared re,
|
|
|
+- HandleLinearString input,
|
|
|
+- size_t start,
|
|
|
+ static RegExpRunStatus executeAtom(MutableHandleRegExpShared re,
|
|
|
- HandleLinearString input,
|
|
|
- size_t start,
|
|
|
-- VectorMatchPairs* matches);
|
|
|
-+ MatchPairs* matches);
|
|
|
++ HandleLinearString input, size_t start,
|
|
|
+ VectorMatchPairs* matches);
|
|
|
|
|
|
// Execute this RegExp on input starting from searchIndex, filling in matches.
|
|
|
static RegExpRunStatus execute(JSContext* cx, MutableHandleRegExpShared res,
|
|
@@ -251,8 +252,7 @@ diff --git a/js/src/vm/RegExpShared.h b/js/src/vm/RegExpShared.h
|
|
|
VectorMatchPairs* matches);
|
|
|
|
|
|
// Register a table with this RegExpShared, and take ownership.
|
|
|
- bool addTable(JitCodeTable table) {
|
|
|
-@@ -239,16 +238,20 @@ class RegExpShared : public gc::TenuredC
|
|
|
+@@ -244,16 +242,20 @@ class RegExpShared : public gc::TenuredC
|
|
|
void traceChildren(JSTracer* trc);
|
|
|
void discardJitCode();
|
|
|
void finalize(FreeOp* fop);
|
|
@@ -273,7 +273,7 @@ diff --git a/js/src/vm/RegExpShared.h b/js/src/vm/RegExpShared.h
|
|
|
return offsetof(RegExpShared, pairCount_);
|
|
|
}
|
|
|
|
|
|
-@@ -394,16 +397,19 @@ class RegExpRealm
|
|
|
+@@ -399,16 +401,19 @@ class RegExpRealm
|
|
|
static size_t offsetOfOptimizableRegExpPrototypeShape() {
|
|
|
return offsetof(RegExpRealm, optimizableRegExpPrototypeShape_);
|
|
|
}
|