Lines Matching refs:cmp_func
625 static HRESULT sort_cmp(script_ctx_t *ctx, jsdisp_t *cmp_func, jsval_t v1, jsval_t v2, INT *cmp) in sort_cmp() argument
629 if(cmp_func) { in sort_cmp()
637 hres = jsdisp_call_value(cmp_func, NULL, DISPATCH_METHOD, 2, args, &res); in sort_cmp()
683 jsdisp_t *jsthis, *cmp_func = NULL; in Array_sort() local
706 cmp_func = iface_to_jsdisp(get_object(argv[0])); in Array_sort()
707 if(!cmp_func || !is_class(cmp_func, JSCLASS_FUNCTION)) { in Array_sort()
709 if(cmp_func) in Array_sort()
710 jsdisp_release(cmp_func); in Array_sort()
716 if(cmp_func) in Array_sort()
717 jsdisp_release(cmp_func); in Array_sort()
755 hres = sort_cmp(ctx, cmp_func, *sorttab[2*i+1], *sorttab[2*i], &cmp); in Array_sort()
780 hres = sort_cmp(ctx, cmp_func, *tmpbuf[a], *sorttab[i+k+b], &cmp); in Array_sort()
815 if(cmp_func) in Array_sort()
816 jsdisp_release(cmp_func); in Array_sort()