Bug 1105069 - Part 11: Convert UnmarkGrayGCThingRecursively to GCCellPtr; r=jonco, r=mccr8

This commit is contained in:
Terrence Cole
2014-12-05 09:38:33 -08:00
parent 556a5d11b7
commit a68c5287d6
6 changed files with 38 additions and 13 deletions

View File

@@ -277,7 +277,7 @@ private:
if (delegateMightNeedMarking && aKey.isObject()) {
JSObject* kdelegate = js::GetWeakmapKeyDelegate(aKey.toObject());
if (kdelegate && !xpc_IsGrayGCThing(kdelegate)) {
if (JS::UnmarkGrayGCThingRecursively(aKey.asCell(), JSTRACE_OBJECT)) {
if (JS::UnmarkGrayGCThingRecursively(aKey)) {
tracer->mAnyMarked = true;
}
}
@@ -287,7 +287,7 @@ private:
(!aKey || !xpc_IsGrayGCThing(aKey.asCell())) &&
(!aMap || !xpc_IsGrayGCThing(aMap)) &&
aValue.kind() != JSTRACE_SHAPE) {
if (JS::UnmarkGrayGCThingRecursively(aValue.asCell(), aValue.kind())) {
if (JS::UnmarkGrayGCThingRecursively(aValue)) {
tracer->mAnyMarked = true;
}
}