@@ -112,6 +112,10 @@ struct JsAPIHooks
112112 typedef JsErrorCode (WINAPI *JsrtTTDMoveToTopLevelEventPtr)(JsRuntimeHandle runtimeHandle, JsTTDMoveMode moveMode, int64_t snapshotStartTime, int64_t eventTime);
113113 typedef JsErrorCode (WINAPI *JsrtTTDReplayExecutionPtr)(JsTTDMoveMode* moveMode, int64_t * rootEventTime);
114114
115+ #ifdef _WIN32
116+ typedef JsErrorCode (WINAPI *JsrtConnectJITProcess)(HANDLE processHandle, void * serverSecurityDescriptor, UUID connectionId);
117+ #endif
118+
115119 JsrtCreateRuntimePtr pfJsrtCreateRuntime;
116120 JsrtCreateContextPtr pfJsrtCreateContext;
117121 JsrtSetObjectBeforeCollectCallbackPtr pfJsrtSetObjectBeforeCollectCallback;
@@ -217,6 +221,10 @@ struct JsAPIHooks
217221 JsrtTTDGetSnapTimeTopLevelEventMovePtr pfJsrtTTDGetSnapTimeTopLevelEventMove;
218222 JsrtTTDMoveToTopLevelEventPtr pfJsrtTTDMoveToTopLevelEvent;
219223 JsrtTTDReplayExecutionPtr pfJsrtTTDReplayExecution;
224+
225+ #ifdef _WIN32
226+ JsrtConnectJITProcess pfJsrtConnectJITProcess;
227+ #endif
220228};
221229
222230#ifdef _WIN32
@@ -307,18 +315,6 @@ class ChakraRTInterface
307315#endif
308316 }
309317
310- #ifdef _WIN32
311- #if ENABLE_NATIVE_CODEGEN
312- static void ConnectJITServer (HANDLE processHandle, void * serverSecurityDescriptor, UUID connectionId)
313- {
314- if (m_testHooksSetup && m_testHooks.pfnConnectJITServer != NULL )
315- {
316- m_testHooks.pfnConnectJITServer (processHandle, serverSecurityDescriptor, connectionId);
317- }
318- }
319- #endif
320- #endif
321-
322318 static void NotifyUnhandledException (PEXCEPTION_POINTERS exceptionInfo)
323319 {
324320 if (m_testHooksSetup && m_testHooks.pfnNotifyUnhandledException != NULL )
@@ -442,6 +438,9 @@ class ChakraRTInterface
442438 static JsErrorCode WINAPI JsQueueBackgroundParse_Experimental (JsScriptContents* contents, DWORD* dwBgParseCookie) { return HOOK_JS_API (QueueBackgroundParse_Experimental)(contents, dwBgParseCookie); }
443439 static JsErrorCode WINAPI JsDiscardBackgroundParse_Experimental (DWORD dwBgParseCookie, void * buffer, bool * callerOwnsBuffer) { return HOOK_JS_API (DiscardBackgroundParse_Experimental (dwBgParseCookie, buffer, callerOwnsBuffer)); }
444440 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)); }
441+ #ifdef _WIN32
442+ static JsErrorCode WINAPI JsConnectJITProcess (HANDLE processHandle, void * serverSecurityDescriptor, UUID connectionId) { return HOOK_JS_API (ConnectJITProcess (processHandle, serverSecurityDescriptor, connectionId)); }
443+ #endif
445444};
446445
447446class AutoRestoreContext
0 commit comments