MCPcopy Create free account
hub / github.com/9miao/CrossApp / makeRangeGCSafe

Function makeRangeGCSafe

scripting/javascript/spidermonkey-android/include/jsapi.h:383–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381
382 private:
383 void makeRangeGCSafe(size_t oldLength) {
384 T *t = vector.begin() + oldLength;
385 for (size_t i = oldLength; i < vector.length(); ++i, ++t)
386 memset(t, 0, sizeof(T));
387 }
388
389 typedef js::Vector<T, 8> VectorImpl;
390 VectorImpl vector;

Callers 2

growByFunction · 0.70
resizeFunction · 0.70

Calls 2

beginMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected