| //@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py |
| for (let v = val; v; v >>>= 1) c += v & 1; |
| return val * 2 + val / 2 + c; |
| constructor(x) { this._value = x; } |
| set value(x) { this._value = x; } |
| get value() { return this._value; } |
| set value(x) { super.value = x; } |
| get value() { return calc(super.value); } |
| const bench = (init, num) => { |
| for (let i = 0; i != num; ++i) arr.push(new B(init)); |
| for (let i = 0; i != num; ++i) arr[i].value += i; |
| for (let i = 0; i != num; ++i) sum += arr[i].value; |