Loading
Bug 1254092 - TraceIncomingCCWs should work at the JSCompartment level of granularity. r=jimb
There can be multiple compartments within the same zone, only one of which is a debuggee. In this scenario, CCWs from other compartments into the debuggee compartment should be traced and treated as roots. Therefore, dealing with CCWs at the JS::Zone level is incorrect, and this patch changes the granularity level to JSCompartments. If you look at the callers and uses of the function, it makes much more sense now. Additionally, it renames `JS_TraceIncomingCCWs` to `JS::TraceIncomingCCWs`. --HG-- rename : devtools/shared/heapsnapshot/tests/gtest/DoesCrossZoneBoundaries.cpp => devtools/shared/heapsnapshot/tests/gtest/DoesCrossCompartmentBoundaries.cpp rename : devtools/shared/heapsnapshot/tests/gtest/DoesntCrossZoneBoundaries.cpp => devtools/shared/heapsnapshot/tests/gtest/DoesntCrossCompartmentBoundaries.cpp