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

Method newLong

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

Source from the content-addressed store, hash-verified

221}
222
223JSValueRef IJavaScriptContext::newLong(int64_t value, JSExceptionTracker& exceptionTracker) {
224 if (value >= -128 && value < 128) {
225 return newLongFromCache(
226 JavaScriptLong(value), _signedLongCache, static_cast<size_t>(value + 128), exceptionTracker);
227 } else {
228 return newLongUncached(JavaScriptLong(value), exceptionTracker);
229 }
230}
231
232JSValueRef IJavaScriptContext::newUnsignedLong(uint64_t value, JSExceptionTracker& exceptionTracker) {
233 if (value < 256) {

Callers

nothing calls this directly

Calls 1

JavaScriptLongClass · 0.70

Tested by

no test coverage detected