summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartok <martok@martoks-place.de>2023-08-06 18:08:59 +0200
committerMartok <martok@martoks-place.de>2023-08-08 19:36:13 +0200
commit41f38134f1983db63b9cc6c7bc457a7418af12b6 (patch)
tree43eff57e2eaddcdcb20403de909cd0d18e7f4211
parent20ac6059cef7e9fc7f6f3c09ef9b96e26c2efa34 (diff)
downloaduxp-41f38134f1983db63b9cc6c7bc457a7418af12b6.tar.gz
Issue #2172 - add missing RegExpShared TraceKind declaration
-rw-r--r--js/src/gc/Tracer.cpp4
-rw-r--r--js/src/vm/RegExpObject.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/js/src/gc/Tracer.cpp b/js/src/gc/Tracer.cpp
index ea7f613e38..7be4543029 100644
--- a/js/src/gc/Tracer.cpp
+++ b/js/src/gc/Tracer.cpp
@@ -344,6 +344,10 @@ JS_GetTraceThingInfo(char* buf, size_t bufsize, JSTracer* trc, void* thing,
name = "object_group";
break;
+ case JS::TraceKind::RegExpShared:
+ name = "reg_exp_shared";
+ break;
+
default:
name = "INVALID";
break;
diff --git a/js/src/vm/RegExpObject.h b/js/src/vm/RegExpObject.h
index 14ec8509ee..5247731112 100644
--- a/js/src/vm/RegExpObject.h
+++ b/js/src/vm/RegExpObject.h
@@ -259,6 +259,9 @@ class RegExpShared : public gc::TenuredCell
static bool dumpBytecode(JSContext* cx, MutableHandleRegExpShared res, bool match_only,
HandleLinearString input);
#endif
+
+ public:
+ static const JS::TraceKind TraceKind = JS::TraceKind::RegExpShared;
};
class RegExpCompartment