-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathV8CacheKind.cs
More file actions
35 lines (30 loc) · 1.21 KB
/
V8CacheKind.cs
File metadata and controls
35 lines (30 loc) · 1.21 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript.V8
{
/// <summary>
/// Defines caching options for V8 script compilation.
/// </summary>
public enum V8CacheKind
{
// IMPORTANT: maintain bitwise equivalence with unmanaged enum V8CacheKind
/// <summary>
/// Specifies that no cache data is to be generated or consumed during V8 script
/// compilation. This option results in the most efficient script compilation when no cache
/// data is available.
/// </summary>
None,
/// <summary>
/// Selects parser caching. Parser cache data is smaller and less expensive to generate
/// than code cache data, but it is less effective at accelerating recompilation.
/// </summary>
[Obsolete("V8 no longer supports parser caching. This option is now equivalent to Code.")]
Parser,
/// <summary>
/// Selects code caching. Code cache data is larger and more expensive to generate than
/// parser cache data, but it is more effective at accelerating recompilation.
/// </summary>
Code
}
}