forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathV8CacheResult.cs
More file actions
44 lines (38 loc) · 1.46 KB
/
V8CacheResult.cs
File metadata and controls
44 lines (38 loc) · 1.46 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 Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.ClearScript.V8
{
/// <summary>
/// Defines cache data processing results for V8 script compilation.
/// </summary>
public enum V8CacheResult
{
// IMPORTANT: maintain bitwise equivalence with unmanaged enum V8CacheResult
/// <summary>
/// Indicates that cache data processing was disabled because the caller specified
/// <c><see cref="V8CacheKind">V8CacheKind.None</see></c>.
/// </summary>
Disabled,
/// <summary>
/// Indicates that the provided cache data was accepted and used to accelerate script
/// compilation.
/// </summary>
Accepted,
/// <summary>
/// Indicates that script compilation was bypassed because a suitable compiled script was
/// found in the V8 runtime's memory, but the provided cache data was verified to be
/// correct.
/// </summary>
Verified,
/// <summary>
/// Indicates that the provided cache data was updated because it was empty, stale, or
/// invalid.
/// </summary>
Updated,
/// <summary>
/// Indicates that the provided cache data was empty, stale, or invalid, but new cache data
/// could not be generated, and no additional information was provided by the V8 runtime.
/// </summary>
UpdateFailed
}
}