@@ -2434,22 +2434,60 @@ typedef unsigned short uint16_t;
2434
2434
_In_opt_ JsPromiseContinuationCallback promiseContinuationCallback ,
2435
2435
_In_opt_ void * callbackState );
2436
2436
2437
+ /// <summary>
2438
+ /// Note: Experimental API
2439
+ /// Starts a request for background script parsing on another thread
2440
+ /// </summary>
2441
+ /// <param name="contents">ScriptContents struct with data needed to start parsing</param>
2442
+ /// <param name="dwBgParseCookie">Identifier for subsequent BGParse operations</param>
2443
+ /// <returns>
2444
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
2445
+ /// </returns>
2437
2446
CHAKRA_API
2438
- JsQueueBackgroundParse (JsScriptContents * contents , DWORD * dwBgParseCookie );
2447
+ JsQueueBackgroundParse_Experimental (
2448
+ _In_ JsScriptContents * contents ,
2449
+ _Out_ DWORD * dwBgParseCookie );
2439
2450
2451
+ /// <summary>
2452
+ /// Note: Experimental API
2453
+ /// Appropriately frees resources associated with a previously queued background parse
2454
+ /// </summary>
2455
+ /// <param name="dwBgParseCookie">Identifier for BGParse operation</param>
2456
+ /// <param name="buffer">Pointer to script source buffer, used for validation</param>
2457
+ /// <param name="callerOwnsBuffer">When <c>true</c>, caller is responsible for freeing buffer</param>
2458
+ /// <returns>
2459
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
2460
+ /// </returns>
2440
2461
CHAKRA_API
2441
- JsDiscardBackgroundParse (DWORD dwBgParseCookie , void * buffer , bool * callerOwnsBuffer );
2462
+ JsDiscardBackgroundParse_Experimental (
2463
+ _In_ DWORD dwBgParseCookie ,
2464
+ _In_ void * buffer ,
2465
+ _Out_ bool * callerOwnsBuffer );
2442
2466
2467
+ /// <summary>
2468
+ /// Note: Experimental API
2469
+ /// Executes the background parsed script
2470
+ /// </summary>
2471
+ /// <param name="dwBgParseCookie">Identifier for subsequent BGParse operations</param>
2472
+ /// <param name="script">Pointer to script source</param>
2473
+ /// <param name="sourceContext">JsSourceContext identifier</param>
2474
+ /// <param name="url">Path to the parsed script</param>
2475
+ /// <param name="parseAttributes"></param>
2476
+ /// <param name="parserState">[May not be needed]</param>
2477
+ /// <param name="result">Result of script execution</param>
2478
+ /// <returns>
2479
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
2480
+ /// </returns>
2443
2481
CHAKRA_API
2444
- JsExecuteBackgroundParse (_In_ DWORD dwBgParseCookie ,
2482
+ JsExecuteBackgroundParse_Experimental (
2483
+ _In_ DWORD dwBgParseCookie ,
2445
2484
_In_ JsValueRef script ,
2446
2485
_In_ JsSourceContext sourceContext ,
2447
2486
_In_ WCHAR * url ,
2448
2487
_In_ JsParseScriptAttributes parseAttributes ,
2449
2488
_In_ JsValueRef parserState ,
2450
2489
_Out_ JsValueRef * result );
2451
2490
2452
-
2453
2491
#ifdef _WIN32
2454
2492
#include "ChakraCommonWindows.h"
2455
2493
#endif // _WIN32
0 commit comments