@@ -93,9 +93,9 @@ struct JsAPIHooks
9393 typedef JsErrorCode (WINAPI *JsrtSerializeParserState)(JsValueRef script, JsValueRef *buffer, JsParseScriptAttributes parseAttributes);
9494 typedef JsErrorCode (WINAPI *JsrtRunScriptWithParserState)(JsValueRef script, JsSourceContext sourceContext, JsValueRef sourceUrl, JsParseScriptAttributes parseAttributes, JsValueRef parserState, JsValueRef *result);
9595
96- typedef JsErrorCode (WINAPI *JsrtQueueBackgroundParse )(JsScriptContents* contents, DWORD* dwBgParseCookie);
97- typedef JsErrorCode (WINAPI *JsrtDiscardBackgroundParse )(DWORD dwBgParseCookie, void * buffer, bool * callerOwnsBuffer);
98- typedef JsErrorCode (WINAPI *JsrtExecuteBackgroundParse )(DWORD dwBgParseCookie, JsValueRef script, JsSourceContext sourceContext, WCHAR *url, JsParseScriptAttributes parseAttributes, JsValueRef parserState, JsValueRef *result);
96+ typedef JsErrorCode (WINAPI *JsrtQueueBackgroundParse_Experimental )(JsScriptContents* contents, DWORD* dwBgParseCookie);
97+ typedef JsErrorCode (WINAPI *JsrtDiscardBackgroundParse_Experimental )(DWORD dwBgParseCookie, void * buffer, bool * callerOwnsBuffer);
98+ typedef JsErrorCode (WINAPI *JsrtExecuteBackgroundParse_Experimental )(DWORD dwBgParseCookie, JsValueRef script, JsSourceContext sourceContext, WCHAR *url, JsParseScriptAttributes parseAttributes, JsValueRef parserState, JsValueRef *result);
9999
100100 typedef JsErrorCode (WINAPI *JsrtTTDCreateRecordRuntimePtr)(JsRuntimeAttributes attributes, bool enableDebugging, size_t snapInterval, size_t snapHistoryLength, TTDOpenResourceStreamCallback openResourceStream, JsTTDWriteBytesToStreamCallback writeBytesToStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
101101 typedef JsErrorCode (WINAPI *JsrtTTDCreateReplayRuntimePtr)(JsRuntimeAttributes attributes, const char * infoUri, size_t infoUriCount, bool enableDebugging, TTDOpenResourceStreamCallback openResourceStream, JsTTDReadBytesFromStreamCallback readBytesFromStream, JsTTDFlushAndCloseStreamCallback flushAndCloseStream, JsThreadServiceCallback threadService, JsRuntimeHandle *runtime);
@@ -199,9 +199,9 @@ struct JsAPIHooks
199199 JsrtSerializeParserState pfJsrtSerializeParserState;
200200 JsrtRunScriptWithParserState pfJsrtRunScriptWithParserState;
201201
202- JsrtQueueBackgroundParse pfJsrtQueueBackgroundParse ;
203- JsrtDiscardBackgroundParse pfJsrtDiscardBackgroundParse ;
204- JsrtExecuteBackgroundParse pfJsrtExecuteBackgroundParse ;
202+ JsrtQueueBackgroundParse_Experimental pfJsrtQueueBackgroundParse_Experimental ;
203+ JsrtDiscardBackgroundParse_Experimental pfJsrtDiscardBackgroundParse_Experimental ;
204+ JsrtExecuteBackgroundParse_Experimental pfJsrtExecuteBackgroundParse_Experimental ;
205205
206206 JsrtTTDCreateRecordRuntimePtr pfJsrtTTDCreateRecordRuntime;
207207 JsrtTTDCreateReplayRuntimePtr pfJsrtTTDCreateReplayRuntime;
@@ -439,9 +439,9 @@ class ChakraRTInterface
439439 static JsErrorCode WINAPI JsSerializeParserState (JsValueRef script, JsValueRef *buffer, JsParseScriptAttributes parseAttributes) { return HOOK_JS_API (SerializeParserState (script, buffer, parseAttributes)); }
440440 static JsErrorCode WINAPI JsRunScriptWithParserState (JsValueRef script, JsSourceContext sourceContext, JsValueRef sourceUrl, JsParseScriptAttributes parseAttributes, JsValueRef parserState, JsValueRef * result) { return HOOK_JS_API (RunScriptWithParserState (script, sourceContext, sourceUrl, parseAttributes, parserState, result)); }
441441
442- static JsErrorCode WINAPI JsQueueBackgroundParse (JsScriptContents* contents, DWORD* dwBgParseCookie) { return HOOK_JS_API (QueueBackgroundParse (contents, dwBgParseCookie) ); }
443- static JsErrorCode WINAPI JsDiscardBackgroundParse (DWORD dwBgParseCookie, void * buffer, bool * callerOwnsBuffer) { return HOOK_JS_API (DiscardBackgroundParse (dwBgParseCookie, buffer, callerOwnsBuffer)); }
444- static JsErrorCode WINAPI JsExecuteBackgroundParse (DWORD dwBgParseCookie, JsValueRef script, JsSourceContext sourceContext, WCHAR *url, JsParseScriptAttributes parseAttributes, JsValueRef parserState, JsValueRef *result) { return HOOK_JS_API (ExecuteBackgroundParse (dwBgParseCookie, script, sourceContext, url, parseAttributes, parserState, result)); }
442+ static JsErrorCode WINAPI JsQueueBackgroundParse_Experimental (JsScriptContents* contents, DWORD* dwBgParseCookie) { return HOOK_JS_API (QueueBackgroundParse_Experimental) (contents, dwBgParseCookie); }
443+ static JsErrorCode WINAPI JsDiscardBackgroundParse_Experimental (DWORD dwBgParseCookie, void * buffer, bool * callerOwnsBuffer) { return HOOK_JS_API (DiscardBackgroundParse_Experimental (dwBgParseCookie, buffer, callerOwnsBuffer)); }
444+ static JsErrorCode WINAPI JsExecuteBackgroundParse_Experimental (DWORD dwBgParseCookie, JsValueRef script, JsSourceContext sourceContext, WCHAR *url, JsParseScriptAttributes parseAttributes, JsValueRef parserState, JsValueRef *result) { return HOOK_JS_API (ExecuteBackgroundParse_Experimental (dwBgParseCookie, script, sourceContext, url, parseAttributes, parserState, result)); }
445445};
446446
447447class AutoRestoreContext
0 commit comments