Lines Matching refs:BarkWhenTracedClass
10 struct BarkWhenTracedClass { struct
23 int BarkWhenTracedClass::finalizeCount; argument
24 int BarkWhenTracedClass::traceCount;
33 BarkWhenTracedClass::finalize, // finalize
37 BarkWhenTracedClass::trace, // trace
40 const JSClass BarkWhenTracedClass::class_ = {"BarkWhenTracedClass",
57 RootedObject barker(cx, JS_NewObject(cx, &BarkWhenTracedClass::class_)); in Allocate()
67 int preGCTrace = BarkWhenTracedClass::traceCount; in GCFinalizesNBarkers()
68 int preGCFinalize = BarkWhenTracedClass::finalizeCount; in GCFinalizesNBarkers()
72 return (BarkWhenTracedClass::finalizeCount == preGCFinalize + n && in GCFinalizesNBarkers()
73 BarkWhenTracedClass::traceCount > preGCTrace); in GCFinalizesNBarkers()
78 BarkWhenTracedClass::reset(); in BEGIN_TEST()
90 CHECK(BarkWhenTracedClass::finalizeCount == 1); in BEGIN_TEST()
98 BarkWhenTracedClass::reset(); in BEGIN_TEST()
104 CHECK(BarkWhenTracedClass::finalizeCount == 0); in BEGIN_TEST()
112 BarkWhenTracedClass::reset(); in BEGIN_TEST()
133 CHECK(BarkWhenTracedClass::finalizeCount == 1); in BEGIN_TEST()
141 BarkWhenTracedClass::reset(); in BEGIN_TEST()
177 CHECK(BarkWhenTracedClass::finalizeCount == 2); in BEGIN_TEST()
188 BarkWhenTracedClass::reset(); in BEGIN_TEST()
193 RootedObject barker(cx, JS_NewObject(cx, &BarkWhenTracedClass::class_)); in BEGIN_TEST()
209 CHECK(BarkWhenTracedClass::finalizeCount == 1); in BEGIN_TEST()