![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
Private Attributes | |
std::atomic< uint64_t > | synthetic_time_ {0} |
std::unique_ptr< Platform > | platform_ |
Additional Inherited Members | |
![]() | |
typedef void(*) | StackTracePrinter() |
![]() | |
![]() | |
static V8_EXPORT double | SystemClockTimeMillis () |
Definition at line 21 of file d8-platforms.cc.
|
inlineexplicit |
Definition at line 23 of file d8-platforms.cc.
|
delete |
|
inlineoverridevirtual |
Creates and returns a JobHandle associated with a Job.
Implements v8::Platform.
Definition at line 77 of file d8-platforms.cc.
|
inlineoverridevirtual |
This function is deprecated and will be deleted. Use either CurrentClockTimeMilliseconds() or CurrentClockTimeMillisecondsHighResolution().
Implements v8::Platform.
Definition at line 97 of file d8-platforms.cc.
|
inlineoverridevirtual |
Returns a TaskRunner with a specific |priority| which can be used to post a task on the foreground thread. The TaskRunner's NonNestableTasksEnabled() must be true. This function should only be called from a foreground thread.
Implements v8::Platform.
Definition at line 39 of file d8-platforms.cc.
|
inlineoverridevirtual |
Allows the embedder to manage memory page allocations. Returning nullptr will cause V8 to use the default page allocator.
Reimplemented from v8::Platform.
Definition at line 31 of file d8-platforms.cc.
|
inlineoverridevirtual |
Returns an instance of a v8::TracingController. This must be non-nullptr.
Implements v8::Platform.
Definition at line 101 of file d8-platforms.cc.
|
inlineoverridevirtual |
Returns true if idle tasks are enabled for the given |isolate|.
Reimplemented from v8::Platform.
Definition at line 75 of file d8-platforms.cc.
|
inlineoverridevirtual |
Monotonically increasing time in seconds from an arbitrary fixed point in the past. This function is expected to return at least millisecond-precision values. For this reason, it is recommended that the fixed point be no further in the past than the epoch.
Implements v8::Platform.
Definition at line 86 of file d8-platforms.cc.
|
inlineoverridevirtual |
Gets the max number of worker threads that may be used to execute concurrent work scheduled for any single TaskPriority by Call(BlockingTask)OnWorkerThread() or PostJob(). This can be used to estimate the number of tasks a work package should be split into. A return value of 0 means that there are no worker threads available. Note that a value of 0 won't prohibit V8 from posting tasks using |CallOnWorkerThread|.
Implements v8::Platform.
Definition at line 44 of file d8-platforms.cc.
|
inlineoverridevirtual |
Enables the embedder to respond in cases where V8 can't allocate large blocks of memory. V8 retries the failed allocation once after calling this method. On success, execution continues; otherwise V8 exits with a fatal error. Embedder overrides of this function must NOT call back into V8.
Reimplemented from v8::Platform.
Definition at line 35 of file d8-platforms.cc.
|
delete |
|
inline |
Definition at line 105 of file d8-platforms.cc.
|
inlineoverridevirtual |
Schedules a task with |priority| to be invoked on a worker thread after |delay_in_seconds| expires.
Implements v8::Platform.
Definition at line 69 of file d8-platforms.cc.
|
inlineoverridevirtual |
Schedules a task with |priority| to be invoked on a worker thread.
Implements v8::Platform.
Definition at line 51 of file d8-platforms.cc.
|
private |
Definition at line 109 of file d8-platforms.cc.
|
private |
Definition at line 108 of file d8-platforms.cc.