|
| function | packIEEE754 (v, ebits, fbits) |
| |
| function | unpackIEEE754 (bytes, ebits, fbits) |
| |
| function | unpackF64 (b) |
| |
| function | packF64 (v) |
| |
| function | unpackF32 (b) |
| |
| function | packF32 (v) |
| |
| function | constructDecorator (wrapped) |
| |
| function | offsetDecorator (wrapped, type, proxyRef, offsetF) |
| |
| function | redefineNewArrayFunctions (target, offsetF) |
| |
| function | redefineNewArrayConstructors (target) |
| |
| function | getByteDecorator (wrapped, offsetF, name, doMapping) |
| |
| function | setByteDecorator (wrapped, offsetF, name, doMapping) |
| |
| function | getFloatDecorator (wrapped, name, doMapping) |
| |
| function | setFloatDecorator (wrapped, name, doMapping) |
| |
| function | getBigIntDecorator (wrapped, doMapping) |
| |
| function | setBigIntDecorator (wrapped, doMapping) |
| |
| function | redefineDataViewFunctions (target, offsetF, doMapping) |
| |
| function | if (typeof target==='object' &&target !==null) |
| |
| | if (doMapping) |
| |
| | for (let i=0;i< _data['length'];i++) |
| |
| | for (let p of typedTypes) |
| |
Wrappers for arrays from the ECMA standard library.
- Author
- Copyright (C) 2020 Peter Hornak
- License:
- SPDX-License-Identifier: GPL-3.0-or-later
This wrapper aims on prevention of microarchitectural attacks like Meltdown and Spectre. This code was originally a part of ChromeZero.
- Bug:
- The
subarray() method always ruturns the full array.
The wrappers support the following behaviour:
- Offset: The content of the buffer is shifted by a fix offset. This is a faster method but can be removed.
- Random mapping: All items are mapped randomly. This is a slower method but more reliable.
- See also
- https://www.fit.vut.cz/study/thesis/22374/?year=0&sup=Pol%C4%8D%C3%A1k, especially Sect. 5.1