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
59 lines (35 loc) · 2.06 KB
/
V8ContextProxy.cs
File metadata and controls
59 lines (35 loc) · 2.06 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript.V8
{
internal abstract class V8ContextProxy : V8Proxy
{
public static V8ContextProxy Create(V8IsolateProxy isolateProxy, string name, V8ScriptEngineFlags flags, int debugPort)
{
return CreateImpl<V8ContextProxy>(isolateProxy, name, flags, debugPort);
}
public abstract UIntPtr MaxRuntimeHeapSize { get; set; }
public abstract TimeSpan RuntimeHeapSizeSampleInterval { get; set; }
public abstract UIntPtr MaxRuntimeStackUsage { 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 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 object Execute(V8Script script, bool evaluate);
public abstract void Interrupt();
public abstract V8RuntimeHeapInfo GetRuntimeHeapInfo();
public abstract V8Runtime.Statistics GetRuntimeStatistics();
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; }
}
}