forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChakraCoreWindows.h
More file actions
44 lines (38 loc) · 1.66 KB
/
ChakraCoreWindows.h
File metadata and controls
44 lines (38 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _CHAKRACOREWINDOWS_H_
#define _CHAKRACOREWINDOWS_H_
#include <rpc.h>
/// <summary>
/// Globally enables out-of-process JIT.
/// </summary>
/// <remarks>
/// Should be called before JS code is executed.
/// Code in all runtimes will run in interpreter until JsConnectJITProcess is called.
/// </remarks>
/// <returns>
/// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
/// </returns>
CHAKRA_API
JsEnableOOPJIT();
/// <summary>
/// Globally enables out-of-process JIT and connects to a Chakra JIT process that was initialized
/// by calling JsInitializeJITServer
/// </summary>
/// <remarks>
/// Out-of-process JIT should be enabled before JS code is executed.
/// </remarks>
/// <param name="processHandle">Handle to the JIT process</param>
/// <param name="serverSecurityDescriptor">Optional pointer to an RPC SECURITY_DESCRIPTOR structure</param>
/// <param name="connectionId">Same UUID that was passed to JsInitializeJITServer</param>
/// <returns>
/// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
/// </returns>
CHAKRA_API
JsConnectJITProcess(_In_ HANDLE processHandle, _In_opt_ void* serverSecurityDescriptor, _In_ UUID connectionId);
#endif // _CHAKRACOREWINDOWS_H_