| 306 | Valdi::JSValueRef JavaScriptCoreContext::evaluatePreCompiled(const Valdi::BytesView& script, |
| 307 | const std::string_view& sourceFilename, |
| 308 | Valdi::JSExceptionTracker& exceptionTracker) { |
| 309 | exceptionTracker.onError(Valdi::Error("JavaScriptCore does not support precompilation")); |
| 310 | return Valdi::JSValueRef(); |
| 311 | } |
| 312 | |
| 313 | void JavaScriptCoreContext::garbageCollect() { |
| 314 | if (_isGarbageCollecting) { |
| 315 | _needGarbageCollect = true; |
| 316 | return; |
| 317 | } |
| 318 | |
| 319 | _isGarbageCollecting = true; |
| 320 | _needGarbageCollect = true; |
| 321 | |
| 322 | while (_needGarbageCollect) { |
| 323 | _needGarbageCollect = false; |
| 324 | |
| 325 | #if TARGET_OS_IPHONE |
| 326 | JSGarbageCollect(_globalContext); |
| 327 | #else |
| 328 | JSSynchronousGarbageCollectForDebugging(_globalContext); |
| 329 | #endif |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | Valdi::JavaScriptContextMemoryStatistics JavaScriptCoreContext::dumpMemoryStatistics() { |
| 334 | if (s_dumpMemoryStatisticsOverride) { |
| 335 | return s_dumpMemoryStatisticsOverride(_globalContext); |
| 336 | } |
nothing calls this directly
no test coverage detected