Compartmental GCs are awesome! GCs with API reasons are awesome! Let's combine them!
Created attachment 593158 [details] [diff] [review]
Should be pretty simple.
I cargo culted everything over from JS_CompartmentGC that compiled. Let me know if you think I should add more, or define GCForReason in terms of this or whatever else.
Comment on attachment 593158 [details] [diff] [review]
No, this is good.