forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathV8ContextProxy.cs
More file actions
73 lines (43 loc) · 2.61 KB
/
V8ContextProxy.cs
File metadata and controls
73 lines (43 loc) · 2.61 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.IO;
using Microsoft.ClearScript.V8.SplitProxy;
namespace Microsoft.ClearScript.V8
{
internal abstract class V8ContextProxy : V8Proxy
{
public static V8ContextProxy Create(V8IsolateProxy isolateProxy, string name, V8ScriptEngineFlags flags, int debugPort)
{
return new V8ContextProxyImpl(isolateProxy, name, flags, debugPort);
}
public abstract UIntPtr MaxIsolateHeapSize { get; set; }
public abstract TimeSpan IsolateHeapSizeSampleInterval { get; set; }
public abstract UIntPtr MaxIsolateStackUsage { get; set; }
public abstract void InvokeWithLock(Action action);
public abstract object GetRootItem();
public abstract void AddGlobalItem(string name, object item, bool globalMembers);
public abstract void AwaitDebuggerAndPause();
public abstract void CancelAwaitDebugger();
public abstract object Execute(UniqueDocumentInfo documentInfo, string code, bool evaluate);
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code);
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code, V8CacheKind cacheKind, out byte[] cacheBytes);
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code, V8CacheKind cacheKind, byte[] cacheBytes, out bool cacheAccepted);
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code, V8CacheKind cacheKind, ref byte[] cacheBytes, out V8CacheResult cacheResult);
public abstract object Execute(V8Script script, bool evaluate);
public abstract void Interrupt();
public abstract void CancelInterrupt();
public abstract bool EnableIsolateInterruptPropagation { get; set; }
public abstract bool DisableIsolateHeapSizeViolationInterrupt { get; set; }
public abstract V8RuntimeHeapInfo GetIsolateHeapInfo();
public abstract V8Runtime.Statistics GetIsolateStatistics();
public abstract V8ScriptEngine.Statistics GetStatistics();
public abstract void CollectGarbage(bool exhaustive);
public abstract void OnAccessSettingsChanged();
public abstract bool BeginCpuProfile(string name, V8CpuProfileFlags flags);
public abstract V8CpuProfile EndCpuProfile(string name);
public abstract void CollectCpuProfileSample();
public abstract uint CpuProfileSampleInterval { get; set; }
public abstract void WriteIsolateHeapSnapshot(Stream stream);
}
}