mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
08a62b0b06
5 changed files with 14 additions and 2 deletions
|
|
@ -788,7 +788,8 @@ ShouldMark<JSObject*>(GCMarker* gcmarker, JSObject* obj)
|
|||
// Don't mark things outside a zone if we are in a per-zone GC. It is
|
||||
// faster to check our own arena, which we can do since we know that
|
||||
// the object is tenured.
|
||||
return obj->asTenured().zone()->shouldMarkInZone();
|
||||
Zone* zone = obj->asTenured().zone();
|
||||
return (zone && zone->shouldMarkInZone());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -2323,7 +2323,8 @@ static const AllocKinds UpdatePhaseMisc {
|
|||
AllocKind::ACCESSOR_SHAPE,
|
||||
AllocKind::OBJECT_GROUP,
|
||||
AllocKind::STRING,
|
||||
AllocKind::JITCODE
|
||||
AllocKind::JITCODE,
|
||||
AllocKind::REGEXP_SHARED
|
||||
};
|
||||
|
||||
static const AllocKinds UpdatePhaseObjects {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -877,6 +877,9 @@ js::CurrentThreadCanAccessRuntime(const JSRuntime* rt)
|
|||
bool
|
||||
js::CurrentThreadCanAccessZone(Zone* zone)
|
||||
{
|
||||
if (!zone)
|
||||
return false;
|
||||
|
||||
if (CurrentThreadCanAccessRuntime(zone->runtime_))
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue