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

Method newLongUncached

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

Source from the content-addressed store, hash-verified

239 if (value >= -128 && value < 128) {
240 return newLongFromCache(
241 JavaScriptLong(value), _signedLongCache, static_cast<size_t>(value + 128), exceptionTracker);
242 } else {
243 return newLongUncached(JavaScriptLong(value), exceptionTracker);
244 }
245}
246
247JSValueRef IJavaScriptContext::newUnsignedLong(uint64_t value, JSExceptionTracker& exceptionTracker) {
248 if (value < 256) {
249 return newLongFromCache(
250 JavaScriptLong(value), _unsignedLongCache, static_cast<size_t>(value), exceptionTracker);
251 } else {
252 return newLongUncached(JavaScriptLong(value), exceptionTracker);
253 }
254}
255
256JSValueRef IJavaScriptContext::newLongUncached(const JavaScriptLong& value, JSExceptionTracker& exceptionTracker) {

Callers

nothing calls this directly

Calls 9

lowBitsMethod · 0.80
highBitsMethod · 0.80
isUnsignedMethod · 0.80
onErrorMethod · 0.65
getMethod · 0.65
ErrorInterface · 0.50
emptyMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected