Definition at line 167 of file d8-posix.cc.
◆ ExecArgs()
v8::ExecArgs::ExecArgs |
( |
| ) |
|
|
inline |
Definition at line 169 of file d8-posix.cc.
char * exec_args_[kMaxArgs+1]
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
References exec_args_, and NULL.
◆ ~ExecArgs()
v8::ExecArgs::~ExecArgs |
( |
| ) |
|
|
inline |
◆ arg0()
const char* v8::ExecArgs::arg0 |
( |
| ) |
const |
|
inline |
◆ arg_array()
char* const* v8::ExecArgs::arg_array |
( |
| ) |
const |
|
inline |
◆ Init()
Definition at line 172 of file d8-posix.cc.
173 String::Utf8Value prog(
arg0);
175 const char* message =
176 "os.system(): String conversion of program name failed";
180 int len = prog.length() + 3;
181 char* c_arg =
new char[len];
182 snprintf(c_arg, len,
"%s", *prog);
185 for (
unsigned j = 0; j < command_args->Length();
i++, j++) {
186 Handle<Value> arg(command_args->Get(
Integer::New(isolate, j)));
187 String::Utf8Value utf8_arg(arg);
188 if (*utf8_arg ==
NULL) {
190 const char* message =
191 "os.system(): String conversion of argument failed.";
195 int len = utf8_arg.length() + 1;
196 char* c_arg =
new char[len];
197 snprintf(c_arg, len,
"%s", *utf8_arg);
const char * arg0() const
static Local< Integer > New(Isolate *isolate, int32_t value)
static Local< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=kNormalString, int length=-1)
Allocates a new string from UTF-8 data.
References arg0(), exec_args_, v8::String::Utf8Value::length(), v8::Integer::New(), v8::String::NewFromUtf8(), NULL, and v8::Isolate::ThrowException().
Referenced by v8::Shell::System().
◆ exec_args_
char* v8::ExecArgs::exec_args_[kMaxArgs+1] |
|
private |
◆ kMaxArgs
const unsigned v8::ExecArgs::kMaxArgs = 1000 |
|
static |
The documentation for this class was generated from the following file: