MCPcopy Create free account
hub / github.com/Snapchat/Valdi / newUnsignedLong

Method newUnsignedLong

valdi/src/valdi/runtime/Interfaces/IJavaScriptContext.cpp:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 }
231
232 setObjectPropertyIndex(cache.get(), cacheIndex, cachedValue.get(), exceptionTracker);
233 }
234
235 return cachedValue;
236}
237
238JSValueRef IJavaScriptContext::newLong(int64_t value, JSExceptionTracker& exceptionTracker) {
239 if (value >= -128 && value < 128) {
240 return newLongFromCache(
241 JavaScriptLong(value), _signedLongCache, static_cast<size_t>(value + 128), exceptionTracker);
242 } else {

Callers 2

TEST_PFunction · 0.80

Calls 1

JavaScriptLongClass · 0.70

Tested by 1

TEST_PFunction · 0.64