Home
last modified time | relevance | path

Searched refs:closure (Results 1 – 25 of 170) sorted by relevance

1234567

/external/bluetooth/glib/gobject/
Dgclosure.c101 GClosure closure; member
113 _SET_OLD tmp.closure._field; \
114 tmp.closure._field _OP _value; \
115 _SET_NEW tmp.closure._field; \
196 GClosure *closure; in g_closure_new_simple() local
200 closure = g_malloc0 (sizeof_closure); in g_closure_new_simple()
201 SET (closure, ref_count, 1); in g_closure_new_simple()
202 SET (closure, meta_marshal, 0); in g_closure_new_simple()
203 SET (closure, n_guards, 0); in g_closure_new_simple()
204 SET (closure, n_fnotifiers, 0); in g_closure_new_simple()
[all …]
Dgclosure.h41 #define G_CLOSURE_NEEDS_MARSHAL(closure) (((GClosure*) (closure))->marshal == NULL) argument
98 GClosure *closure);
114 typedef void (*GClosureMarshal) (GClosure *closure,
161 /*< private >*/ void (*marshal) (GClosure *closure,
186 GClosure closure; member
203 GClosure* g_closure_ref (GClosure *closure);
204 void g_closure_sink (GClosure *closure);
205 void g_closure_unref (GClosure *closure);
209 void g_closure_add_finalize_notifier (GClosure *closure,
212 void g_closure_remove_finalize_notifier (GClosure *closure,
[all …]
Dgsourceclosure.c68 source_closure_marshal_BOOLEAN__VOID (GClosure *closure, in source_closure_marshal_BOOLEAN__VOID() argument
76 GCClosure *cc = (GCClosure*) closure; in source_closure_marshal_BOOLEAN__VOID()
84 v_return = callback (closure->data); in source_closure_marshal_BOOLEAN__VOID()
94 GClosure *closure = data; in io_watch_closure_callback() local
107 g_closure_invoke (closure, &result_value, 2, params, NULL); in io_watch_closure_callback()
120 GClosure *closure = data; in source_closure_callback() local
126 g_closure_invoke (closure, &result_value, 0, NULL, NULL); in source_closure_callback()
174 GClosure *closure) in g_source_set_closure() argument
177 g_return_if_fail (closure != NULL); in g_source_set_closure()
188 g_closure_ref (closure); in g_source_set_closure()
[all …]
Dgsignal.c155 GClosure *closure,
254 GClosure *closure; member
266 GClosure *closure; member
476 GClosure *closure, in handlers_find() argument
500 ((mask & G_SIGNAL_MATCH_CLOSURE) || handler->closure == closure) && in handlers_find()
501 ((mask & G_SIGNAL_MATCH_DATA) || handler->closure->data == data) && in handlers_find()
503 ((mask & G_SIGNAL_MATCH_FUNC) || (handler->closure->marshal == node->c_marshaller && in handlers_find()
504 handler->closure->meta_marshal == 0 && in handlers_find()
505 ((GCClosure*) handler->closure)->callback == func))) in handlers_find()
537 ((mask & G_SIGNAL_MATCH_CLOSURE) || handler->closure == closure) && in handlers_find()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc197 Closure* closure = NewCallback(&SetA123Function); in TEST_F() local
199 closure->Run(); in TEST_F()
204 Closure* closure = NewCallback(current_instance_, in TEST_F() local
207 closure->Run(); in TEST_F()
212 Closure* closure = NewCallback(&SetAFunction, 456); in TEST_F() local
214 closure->Run(); in TEST_F()
219 Closure* closure = NewCallback(current_instance_, in TEST_F() local
222 closure->Run(); in TEST_F()
227 Closure* closure = NewCallback(&SetCFunction, string("test")); in TEST_F() local
229 closure->Run(); in TEST_F()
[all …]
/external/libffi/src/s390/
Dffi.c546 ffi_closure_helper_SYSV (ffi_closure *closure, in ffi_closure_helper_SYSV() argument
566 p_arg = avalue = alloca (closure->cif->nargs * sizeof (void *)); in ffi_closure_helper_SYSV()
572 if (closure->cif->flags == FFI390_RET_STRUCT) in ffi_closure_helper_SYSV()
577 for (ptr = closure->cif->arg_types, i = closure->cif->nargs; in ffi_closure_helper_SYSV()
682 (closure->fun) (closure->cif, rvalue, avalue, closure->user_data); in ffi_closure_helper_SYSV()
685 switch (closure->cif->rtype->type) in ffi_closure_helper_SYSV()
747 ffi_prep_closure_loc (ffi_closure *closure, in ffi_prep_closure_loc() argument
756 *(short *)&closure->tramp [0] = 0x0d10; /* basr %r1,0 */ in ffi_prep_closure_loc()
757 *(short *)&closure->tramp [2] = 0x9801; /* lm %r0,%r1,6(%r1) */ in ffi_prep_closure_loc()
758 *(short *)&closure->tramp [4] = 0x1006; in ffi_prep_closure_loc()
[all …]
/external/libffi/src/m68k/
Dffi.c21 unsigned int ffi_closure_SYSV_inner (ffi_closure *closure,
236 ffi_closure_SYSV_inner (ffi_closure *closure, void *resp, void *args) in ffi_closure_SYSV_inner() argument
241 cif = closure->cif; in ffi_closure_SYSV_inner()
246 (closure->fun) (cif, resp, arg_area, closure->user_data); in ffi_closure_SYSV_inner()
252 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
260 *(unsigned short *)closure->tramp = 0x207c; in ffi_prep_closure_loc()
261 *(void **)(closure->tramp + 2) = codeloc; in ffi_prep_closure_loc()
262 *(unsigned short *)(closure->tramp + 6) = 0x4ef9; in ffi_prep_closure_loc()
265 *(void **)(closure->tramp + 8) = ffi_closure_struct_SYSV; in ffi_prep_closure_loc()
267 *(void **)(closure->tramp + 8) = ffi_closure_SYSV; in ffi_prep_closure_loc()
[all …]
/external/bluetooth/glib/tests/refcount/
Dclosures.c161 test_closure (GClosure *closure) in test_closure() argument
166 g_closure_ref (closure); in test_closure()
167 g_closure_sink (closure); /* NOP */ in test_closure()
169 g_closure_unref (closure); in test_closure()
175 GClosure *closure = data; in thread1_main() local
179 test_closure (closure); in thread1_main()
193 GClosure *closure = data; in thread2_main() local
197 test_closure (closure); in thread2_main()
222 GClosure *closure) in destroy_data() argument
225 g_assert (closure->ref_count == 0); in destroy_data()
[all …]
/external/libffi/src/x86/
Dffi.c247 ffi_closure_SYSV_inner (closure, respp, args) in ffi_closure_SYSV_inner() argument
248 ffi_closure *closure; in ffi_closure_SYSV_inner()
256 cif = closure->cif;
267 (closure->fun) (cif, *respp, arg_area, closure->user_data);
342 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
350 FFI_INIT_TRAMPOLINE (&closure->tramp[0], in ffi_prep_closure_loc()
357 FFI_INIT_TRAMPOLINE_STDCALL (&closure->tramp[0], in ffi_prep_closure_loc()
367 closure->cif = cif; in ffi_prep_closure_loc()
368 closure->user_data = user_data; in ffi_prep_closure_loc()
369 closure->fun = fun; in ffi_prep_closure_loc()
[all …]
Dffi64.c438 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
446 tramp = (volatile unsigned short *) &closure->tramp[0]; in ffi_prep_closure_loc()
459 closure->cif = cif; in ffi_prep_closure_loc()
460 closure->fun = fun; in ffi_prep_closure_loc()
461 closure->user_data = user_data; in ffi_prep_closure_loc()
467 ffi_closure_unix64_inner(ffi_closure *closure, void *rvalue, in ffi_closure_unix64_inner() argument
477 cif = closure->cif; in ffi_closure_unix64_inner()
566 closure->fun (cif, rvalue, avalue, closure->user_data); in ffi_closure_unix64_inner()
/external/libffi/src/frv/
Dffi.c173 ffi_closure *closure = creg; in ffi_closure_eabi() local
184 ffi_cif *cif = closure->cif; in ffi_closure_eabi()
232 (closure->fun) (cif, return_struct_ptr, avalue, closure->user_data); in ffi_closure_eabi()
238 (closure->fun) (cif, &rvalue, avalue, closure->user_data); in ffi_closure_eabi()
249 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
255 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
282 closure->cif = cif; in ffi_prep_closure_loc()
283 closure->fun = fun; in ffi_prep_closure_loc()
284 closure->user_data = user_data; in ffi_prep_closure_loc()
/external/webkit/Source/WebCore/dom/
DXMLDocumentParserLibxml2.cpp1095 static inline XMLDocumentParser* getParser(void* closure) in getParser() argument
1097 xmlParserCtxtPtr ctxt = static_cast<xmlParserCtxtPtr>(closure); in getParser()
1103 static inline bool hackAroundLibXMLEntityBug(void* closure) in hackAroundLibXMLEntityBug() argument
1106 UNUSED_PARAM(closure); in hackAroundLibXMLEntityBug()
1111 return static_cast<xmlParserCtxtPtr>(closure)->node; in hackAroundLibXMLEntityBug()
1115 static void startElementNsHandler(void* closure, const xmlChar* localname, const xmlChar* prefix, c… in startElementNsHandler() argument
1117 if (hackAroundLibXMLEntityBug(closure)) in startElementNsHandler()
1120 …getParser(closure)->startElementNs(localname, prefix, uri, nb_namespaces, namespaces, nb_attribute… in startElementNsHandler()
1123 static void endElementNsHandler(void* closure, const xmlChar*, const xmlChar*, const xmlChar*) in endElementNsHandler() argument
1125 if (hackAroundLibXMLEntityBug(closure)) in endElementNsHandler()
[all …]
/external/compiler-rt/BlocksRuntime/
Druntime.c621 struct Block_layout *closure = (struct Block_layout *)block; in _Block_dump() local
624 if (closure == NULL) { in _Block_dump()
628 if (! (closure->flags & BLOCK_HAS_DESCRIPTOR)) { in _Block_dump()
632 cp += sprintf(cp, "^%p (new layout) =\n", (void *)closure); in _Block_dump()
633 if (closure->isa == NULL) { in _Block_dump()
636 else if (closure->isa == _NSConcreteStackBlock) { in _Block_dump()
639 else if (closure->isa == _NSConcreteMallocBlock) { in _Block_dump()
642 else if (closure->isa == _NSConcreteAutoBlock) { in _Block_dump()
645 else if (closure->isa == _NSConcreteGlobalBlock) { in _Block_dump()
648 else if (closure->isa == _NSConcreteFinalizingBlock) { in _Block_dump()
[all …]
/external/libffi/src/sparc/
Dffi.c429 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
435 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
457 closure->cif = cif; in ffi_prep_closure_loc()
458 closure->fun = fun; in ffi_prep_closure_loc()
459 closure->user_data = user_data; in ffi_prep_closure_loc()
463 asm volatile ("flush %0" : : "r" (closure) : "memory"); in ffi_prep_closure_loc()
464 asm volatile ("flush %0" : : "r" (((char *) closure) + 8) : "memory"); in ffi_prep_closure_loc()
466 asm volatile ("iflush %0" : : "r" (closure) : "memory"); in ffi_prep_closure_loc()
467 asm volatile ("iflush %0" : : "r" (((char *) closure) + 8) : "memory"); in ffi_prep_closure_loc()
474 ffi_closure_sparc_inner_v8(ffi_closure *closure, in ffi_closure_sparc_inner_v8() argument
[all …]
/external/libffi/src/arm/
Dffi.c204 ffi_closure_SYSV_inner (closure, respp, args) in ffi_closure_SYSV_inner() argument
205 ffi_closure *closure; in ffi_closure_SYSV_inner()
213 cif = closure->cif;
224 (closure->fun) (cif, *respp, arg_area, closure->user_data);
292 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
300 FFI_INIT_TRAMPOLINE (&closure->tramp[0], \ in ffi_prep_closure_loc()
304 closure->cif = cif; in ffi_prep_closure_loc()
305 closure->user_data = user_data; in ffi_prep_closure_loc()
306 closure->fun = fun; in ffi_prep_closure_loc()
/external/libffi/src/cris/
Dffi.c294 ffi_prep_closure_inner (void **params, ffi_closure* closure) in ffi_prep_closure_inner() argument
300 ffi_cif *cif = closure->cif; in ffi_prep_closure_inner()
304 void **avalue = alloca (closure->cif->nargs * sizeof(void *)); in ffi_prep_closure_inner()
343 (closure->fun) (cif, in ffi_prep_closure_inner()
356 avalue, closure->user_data); in ffi_prep_closure_inner()
364 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
372 closure->cif = cif; in ffi_prep_closure_loc()
373 closure->user_data = user_data; in ffi_prep_closure_loc()
374 closure->fun = fun; in ffi_prep_closure_loc()
375 memcpy (closure->tramp, ffi_cris_trampoline_template, in ffi_prep_closure_loc()
[all …]
/external/libffi/src/alpha/
Dffi.c173 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
181 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
188 closure->cif = cif; in ffi_prep_closure_loc()
189 closure->fun = fun; in ffi_prep_closure_loc()
190 closure->user_data = user_data; in ffi_prep_closure_loc()
205 ffi_closure_osf_inner(ffi_closure *closure, void *rvalue, unsigned long *argp) in ffi_closure_osf_inner() argument
212 cif = closure->cif; in ffi_closure_osf_inner()
280 closure->fun (cif, rvalue, avalue, closure->user_data); in ffi_closure_osf_inner()
/external/libffi/src/sh64/
Dffi.c297 ffi_prep_closure (ffi_closure *closure, in ffi_prep_closure() argument
306 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure()
324 tramp[5] = 0xcc000010 | (((UINT32) closure) >> 16) << 10; in ffi_prep_closure()
325 tramp[6] = 0xc8000010 | (((UINT32) closure) & 0xffff) << 10; in ffi_prep_closure()
328 closure->cif = cif; in ffi_prep_closure()
329 closure->fun = fun; in ffi_prep_closure()
330 closure->user_data = user_data; in ffi_prep_closure()
347 ffi_closure_helper_SYSV (ffi_closure *closure, UINT64 *rvalue, in ffi_closure_helper_SYSV() argument
356 cif = closure->cif; in ffi_closure_helper_SYSV()
370 cif = closure->cif; in ffi_closure_helper_SYSV()
[all …]
/external/v8/test/mjsunit/compiler/
Dinline-construct.js32 function TestInlinedConstructor(closure) { argument
35 result = closure(11, 12, counter);
38 result = closure(23, 19, counter);
41 %OptimizeFunctionOnNextCall(closure);
42 result = closure(1, 42, counter)
45 result = closure("foo", "bar", counter)
/external/llvm/test/Transforms/GlobalOpt/
Dconstantfold-initializers.ll25 %closure = type { i32 }
27 @f = internal global %closure zeroinitializer, align 4
32 define internal i32 @test2_helper(%closure* %this, i32 %b) {
34 %0 = getelementptr inbounds %closure* %this, i32 0, i32 0
42 store i32 4, i32* getelementptr inbounds (%closure* @f, i32 0, i32 0)
43 %call = call i32 @test2_helper(%closure* @f, i32 9)
/external/libffi/src/powerpc/
Dffi_darwin.c531 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
547 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
559 closure->cif = cif; in ffi_prep_closure_loc()
560 closure->fun = fun; in ffi_prep_closure_loc()
561 closure->user_data = user_data; in ffi_prep_closure_loc()
570 tramp_aix = (struct ffi_aix_trampoline_struct *) (closure->tramp); in ffi_prep_closure_loc()
578 closure->cif = cif; in ffi_prep_closure_loc()
579 closure->fun = fun; in ffi_prep_closure_loc()
580 closure->user_data = user_data; in ffi_prep_closure_loc()
630 int ffi_closure_helper_DARWIN (ffi_closure* closure, void * rvalue, in ffi_closure_helper_DARWIN() argument
[all …]
/external/libxslt/libxslt/
Dtrio.h92 int trio_cprintf TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
94 int trio_vcprintf TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
96 int trio_cprintfv TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
134 int trio_cscanf TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
136 int trio_vcscanf TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
138 int trio_cscanfv TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
/external/libxml2/
Dtrio.h92 int trio_cprintf TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
94 int trio_vcprintf TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
96 int trio_cprintfv TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
134 int trio_cscanf TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
136 int trio_vcscanf TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
138 int trio_cscanfv TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
/external/libffi/src/sh/
Dffi.c457 ffi_prep_closure_loc (ffi_closure* closure, in ffi_prep_closure_loc() argument
468 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
484 closure->cif = cif; in ffi_prep_closure_loc()
485 closure->fun = fun; in ffi_prep_closure_loc()
486 closure->user_data = user_data; in ffi_prep_closure_loc()
513 ffi_closure_helper_SYSV (ffi_closure *closure, void *rvalue, in ffi_closure_helper_SYSV() argument
526 cif = closure->cif; in ffi_closure_helper_SYSV()
539 cif = closure->cif; in ffi_closure_helper_SYSV()
712 (closure->fun) (cif, rvalue, avalue, closure->user_data); in ffi_closure_helper_SYSV()
/external/libffi/src/mips/
Dffi.c566 ffi_prep_closure_loc (ffi_closure *closure, in ffi_prep_closure_loc() argument
572 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
626 closure->cif = cif; in ffi_prep_closure_loc()
627 closure->fun = fun; in ffi_prep_closure_loc()
628 closure->user_data = user_data; in ffi_prep_closure_loc()
656 ffi_closure_mips_inner_O32 (ffi_closure *closure, in ffi_closure_mips_inner_O32() argument
666 cif = closure->cif; in ffi_closure_mips_inner_O32()
733 (closure->fun) (cif, rvalue, avaluep, closure->user_data); in ffi_closure_mips_inner_O32()
809 ffi_closure_mips_inner_N32 (ffi_closure *closure, in ffi_closure_mips_inner_N32() argument
819 cif = closure->cif; in ffi_closure_mips_inner_N32()
[all …]

1234567