#include <d8.h>
Definition at line 117 of file d8.h.
◆ SourceGroup()
v8::SourceGroup::SourceGroup |
( |
| ) |
|
|
inline |
Definition at line 119 of file d8.h.
base::Semaphore done_semaphore_
base::Semaphore next_semaphore_
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
◆ ~SourceGroup()
v8::SourceGroup::~SourceGroup |
( |
| ) |
|
◆ Begin()
void v8::SourceGroup::Begin |
( |
char ** |
argv, |
|
|
int |
offset |
|
) |
| |
|
inline |
◆ End()
void v8::SourceGroup::End |
( |
int |
offset | ) |
|
|
inline |
◆ Execute()
void v8::SourceGroup::Execute |
( |
Isolate * |
isolate | ) |
|
Definition at line 1184 of file d8.cc.
1185 bool exception_was_thrown =
false;
1187 const char* arg =
argv_[
i];
1190 HandleScope handle_scope(isolate);
1194 exception_was_thrown =
true;
1198 }
else if (arg[0] ==
'-') {
1202 HandleScope handle_scope(isolate);
1204 Handle<String> source =
ReadFile(isolate, arg);
1205 if (source.IsEmpty()) {
1206 printf(
"Error reading '%s'\n", arg);
1210 exception_was_thrown =
true;
static void Exit(int exit_code)
static bool ExecuteString(Isolate *isolate, Handle< String > source, Handle< Value > name, bool print_result, bool report_exceptions)
static ShellOptions options
Handle< String > ReadFile(Isolate *isolate, const char *name)
static Local< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=kNormalString, int length=-1)
Allocates a new string from UTF-8 data.
References v8::Shell::ExecuteString(), v8::Shell::Exit(), v8::Handle< T >::IsEmpty(), v8::String::NewFromUtf8(), v8::Shell::options, and v8::internal::ReadFile().
◆ ExecuteInThread()
void v8::SourceGroup::ExecuteInThread |
( |
| ) |
|
|
private |
◆ ExitShell()
void v8::SourceGroup::ExitShell |
( |
int |
exit_code | ) |
|
|
private |
◆ GetThreadOptions()
◆ ReadFile()
Definition at line 1221 of file d8.cc.
1224 if (chars ==
NULL)
return Handle<String>();
1225 Handle<String> result =
enable harmony numeric enable harmony object literal extensions Optimize object size
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
static char * ReadChars(Isolate *isolate, const char *name, int *size_out)
References v8::String::kNormalString, name, v8::String::NewFromUtf8(), NULL, v8::ReadChars(), and size.
◆ StartExecuteInThread()
void v8::SourceGroup::StartExecuteInThread |
( |
| ) |
|
◆ WaitForThread()
void v8::SourceGroup::WaitForThread |
( |
| ) |
|
◆ argv_
const char** v8::SourceGroup::argv_ |
|
private |
◆ begin_offset_
int v8::SourceGroup::begin_offset_ |
|
private |
◆ done_semaphore_
base::Semaphore v8::SourceGroup::done_semaphore_ |
|
private |
Definition at line 162 of file d8.h.
◆ end_offset_
int v8::SourceGroup::end_offset_ |
|
private |
◆ next_semaphore_
base::Semaphore v8::SourceGroup::next_semaphore_ |
|
private |
Definition at line 161 of file d8.h.
◆ thread_
Definition at line 163 of file d8.h.
The documentation for this class was generated from the following files:
- /mnt/V8SourceCode/src/d8.h
- /mnt/V8SourceCode/src/d8.cc