Lines Matching refs:visitor
23 static void visitFields(Visitor *visitor, Object *obj, void *arg) in visitFields() argument
25 assert(visitor != NULL); in visitFields()
34 (*visitor)(ref, arg); in visitFields()
45 (*visitor)(ref, arg); in visitFields()
54 static void visitStaticFields(Visitor *visitor, ClassObject *clazz, in visitStaticFields() argument
57 assert(visitor != NULL); in visitStaticFields()
62 (*visitor)(&clazz->sfields[i].value.l, arg); in visitStaticFields()
70 static void visitInterfaces(Visitor *visitor, ClassObject *clazz, in visitInterfaces() argument
73 assert(visitor != NULL); in visitInterfaces()
76 (*visitor)(&clazz->interfaces[i], arg); in visitInterfaces()
83 static void visitClassObject(Visitor *visitor, Object *obj, void *arg) in visitClassObject() argument
87 assert(visitor != NULL); in visitClassObject()
91 (*visitor)(&obj->clazz, arg); in visitClassObject()
94 (*visitor)(&asClass->elementClass, arg); in visitClassObject()
97 (*visitor)(&asClass->super, arg); in visitClassObject()
99 (*visitor)(&asClass->classLoader, arg); in visitClassObject()
100 visitFields(visitor, obj, arg); in visitClassObject()
101 visitStaticFields(visitor, asClass, arg); in visitClassObject()
103 visitInterfaces(visitor, asClass, arg); in visitClassObject()
111 static void visitArrayObject(Visitor *visitor, Object *obj, void *arg) in visitArrayObject() argument
113 assert(visitor != NULL); in visitArrayObject()
116 (*visitor)(&obj->clazz, arg); in visitArrayObject()
121 (*visitor)(&contents[i], arg); in visitArrayObject()
130 static void visitDataObject(Visitor *visitor, Object *obj, void *arg) in visitDataObject() argument
132 assert(visitor != NULL); in visitDataObject()
135 (*visitor)(&obj->clazz, arg); in visitDataObject()
136 visitFields(visitor, obj, arg); in visitDataObject()
143 static void visitReferenceObject(Visitor *visitor, Object *obj, void *arg) in visitReferenceObject() argument
145 assert(visitor != NULL); in visitReferenceObject()
148 visitDataObject(visitor, obj, arg); in visitReferenceObject()
151 (*visitor)(ref, arg); in visitReferenceObject()
157 static void visitObject(Visitor *visitor, Object *obj, void *arg) in visitObject() argument
159 assert(visitor != NULL); in visitObject()
163 visitClassObject(visitor, obj, arg); in visitObject()
165 visitArrayObject(visitor, obj, arg); in visitObject()
167 visitReferenceObject(visitor, obj, arg); in visitObject()
169 visitDataObject(visitor, obj, arg); in visitObject()