blob: 45d1b2ac2323380dc5a9c09f664f9fcafbf5c048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
setJitCompilerOption("ion.warmup.trigger", 40);
const constructors = [
Int8Array,
Uint8Array,
Uint8ClampedArray,
Int16Array,
Uint16Array,
Int32Array,
Uint32Array,
Float32Array,
Float64Array ];
// Ensure that when creating TypedArrays under JIT
// the sort() method works as expected (bug 1295034).
for (var ctor of constructors) {
for (var _ of Array(1024)) {
var testArray = new ctor(10);
testArray.sort();
}
}
if (typeof reportCompare === "function")
reportCompare(true, true);
|