Searched refs:comparefn (Results 1 – 3 of 3) sorted by relevance
/external/v8/src/builtins/ |
D | typed-array.tq | 71 context: Context, array: JSTypedArray, comparefn: Callable, a: Object, 73 // a. Let v be ? ToNumber(? Call(comparefn, undefined, x, y)). 75 ToNumber_Inline(context, Call(context, comparefn, Undefined, a, b)); 90 comparefn: Callable, Load: LoadFn, Store: StoreFn) 103 context, array, comparefn, tmp, element) otherwise Detached; 116 comparefn: Callable, Load: LoadFn, Store: StoreFn) 127 context, array, from, to, comparefn, Load, Store) 144 context, array, comparefn, v0, v1) otherwise Detached; 153 context, array, comparefn, v0, v2) otherwise Detached; 163 context, array, comparefn, v1, v2) otherwise Detached; [all …]
|
/external/v8/src/js/ |
D | array.js | 545 function InnerArraySort(array, length, comparefn) { argument 549 if (!IS_CALLABLE(comparefn)) { 550 comparefn = function (x, y) { function in anonymousFunction42a36d3b0100.InnerArraySort 566 var order = comparefn(tmp, element); 589 return comparefn(a[1], b[1]); 612 var c01 = comparefn(v0, v1); 619 var c02 = comparefn(v0, v2); 628 var c12 = comparefn(v1, v2); 649 var order = comparefn(element, pivot); 659 order = comparefn(top_elem, pivot);
|
/external/v8/third_party/v8/builtins/ |
D | array-sort.tq | 283 context: Context, comparefn: Object, x: Object, y: Object): Number { 284 assert(comparefn == Undefined); 312 context: Context, comparefn: Object, x: Object, y: Object): Number { 313 assert(comparefn != Undefined); 314 const cmpfn: Callable = unsafe_cast<Callable>(comparefn); 316 // a. Let v be ? ToNumber(? Call(comparefn, undefined, x, y)). 1724 // 1. If comparefn is not undefined and IsCallable(comparefn) is false,
|