MCPcopy Index your code
hub / github.com/nodejs/node / CreateRabForTest

Function CreateRabForTest

deps/v8/test/mjsunit/typedarray-resizablearraybuffer.js:2281–2290  ·  view source on GitHub ↗
(ctor)

Source from the content-addressed store, hash-verified

2279 // [0, 2, 4, 6, ...] << lengthTracking
2280 // [4, 6, ...] << lengthTrackingWithOffset
2281 function CreateRabForTest(ctor) {
2282 const rab = CreateResizableArrayBuffer(4 * ctor.BYTES_PER_ELEMENT,
2283 8 * ctor.BYTES_PER_ELEMENT);
2284 // Write some data into the array.
2285 const taWrite = new ctor(rab);
2286 for (let i = 0; i < 4; ++i) {
2287 WriteToTypedArray(taWrite, i, 2 * i);
2288 }
2289 return rab;
2290 }
2291
2292 // Iterating with entries() (the 4 loops below).
2293 for (let ctor of ctors) {

Callers 15

EveryShrinkMidIterationFunction · 0.70
EveryGrowMidIterationFunction · 0.70
SomeShrinkMidIterationFunction · 0.70
SomeGrowMidIterationFunction · 0.70
FindShrinkMidIterationFunction · 0.70
FindGrowMidIterationFunction · 0.70
FindLastGrowMidIterationFunction · 0.70

Calls 2

WriteToTypedArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…