FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ClearScript/ClearScript/V8/ClearScriptV8/V8Isolate.h at master · orudge/ClearScript · GitHub
orudge
/
ClearScript
Public
forked from
ClearFoundry/ClearScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ClearScript
/
ClearScript
/
V8
/
ClearScriptV8
/
V8Isolate.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (24 loc) · 1.37 KB
Breadcrumbs
ClearScript
/
ClearScript
/
V8
/
ClearScriptV8
/
V8Isolate.h
Copy path
File metadata and controls
32 lines (24 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
//
Copyright (c) Microsoft Corporation. All rights reserved.
//
Licensed under the MIT license.
#
pragma
once
//
-----------------------------------------------------------------------------
//
V8Isolate
//
-----------------------------------------------------------------------------
class
V8Isolate
:
public
WeakRefTarget
<V8Isolate>
{
public:
static
V8Isolate*
Create
(
const
StdString& name,
const
V8IsolateConstraints* pConstraints,
bool
enableDebugging,
int
debugPort);
static
size_t
GetInstanceCount
();
virtual
size_t
GetMaxHeapSize
() = 0;
virtual
void
SetMaxHeapSize
(
size_t
value) = 0;
virtual
double
GetHeapSizeSampleInterval
() = 0;
virtual
void
SetHeapSizeSampleInterval
(
double
value) = 0;
virtual
size_t
GetMaxStackUsage
() = 0;
virtual
void
SetMaxStackUsage
(
size_t
value) = 0;
virtual
V8ScriptHolder*
Compile
(
const
StdString& documentName,
const
StdString& code) = 0;
virtual
V8ScriptHolder*
Compile
(
const
StdString& documentName,
const
StdString& code, V8CacheType cacheType, std::vector<std::
uint8_t
>& cacheBytes) = 0;
virtual
V8ScriptHolder*
Compile
(
const
StdString& documentName,
const
StdString& code, V8CacheType cacheType,
const
std::vector<std::
uint8_t
>& cacheBytes,
bool
& cacheAccepted) = 0;
virtual
void
GetHeapInfo
(V8IsolateHeapInfo& heapInfo) = 0;
virtual
void
CollectGarbage
(
bool
exhaustive) = 0;
virtual
~V8Isolate
() {}
};
Back
|
FazBrowse Home
|
New Git URL