blob: 24825f60ba344f83a57b237db772a66c67bea292 [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
"use strict";
function assert(b) {
if (!b)
throw new Error;
}
function test(dv, littleEndian) {
return dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
+ dv.getInt32(0, littleEndian)
}
noInline(test);
let ab = new ArrayBuffer(4);
let dv = new DataView(ab);
dv.setInt32(0, 10, true);
for (let i = 0; i < 1000000; ++i) {
let result = test(dv, true);
assert(result === 10*10);
}