62 const_cast<char*
>(
name),
65 if (!answer)
return NULL;
66 return reinterpret_cast<Counter*
>(answer->value);
70 const_cast<char*
>(
name),
74 answer->value = value;
91 static bool Match(
void* key1,
void* key2);
105 virtual bool Close() {
return true; }
131 void Begin(
char** argv,
int offset) {
132 argv_ =
const_cast<const char**
>(argv);
258 bool report_exceptions);
264 static int Main(
int argc,
char* argv[]);
265 static void Exit(
int exit_code);
386 static bool SetOptions(
int argc,
char* argv[]);
virtual size_t length() const
The number of Latin-1 characters in the string.
BinaryResource(const char *string, int length)
virtual const char * data() const
The string data from the underlying buffer.
Counter counters_[kMaxCounters]
Counter * GetNextCounter()
uint32_t counters_in_use_
static const unsigned kMaxCounters
const char * CurrentKey()
i::HashMap::Entry * entry_
Iterator(CounterMap *map)
static int Hash(const char *name)
static bool Match(void *key1, void *key2)
void Set(const char *name, Counter *value)
Counter * Lookup(const char *name)
int32_t * Bind(const char *name, bool histogram)
uint8_t name_[kMaxNameSize]
static const int kMaxNameSize
void AddSample(int32_t sample)
The argument information given to function call callbacks.
ReturnValue< T > GetReturnValue() const
Isolate * GetIsolate() const
An object reference managed by the v8 garbage collector.
Isolate represents an isolated instance of the V8 engine.
virtual Handle< String > Prompt(const char *prompt)=0
static LineEditor * Get()
virtual bool Open(Isolate *isolate)
virtual void AddHistory(const char *str)
static LineEditor * current_
LineEditor(Type type, const char *name)
A light-weight stack-allocated object handle.
A PersistentBase which allows copy and assignment.
The information passed to a property callback about the context of the property access.
const char * natives_blob
SourceGroup * isolate_sources
const char * icu_data_file
bool mock_arraybuffer_allocator
bool use_interactive_shell()
const char * snapshot_blob
v8::ScriptCompiler::CompileOptions compile_options
bool invoke_weak_callbacks
bool send_idle_notification
static void Int8Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static int Main(int argc, char *argv[])
static void Read(const v8::FunctionCallbackInfo< v8::Value > &args)
static Local< UnboundScript > CompileString(Isolate *isolate, Local< String > source, Local< Value > name, v8::ScriptCompiler::CompileOptions compile_options)
static CounterCollection * counters_
static void SetEnvironment(const v8::FunctionCallbackInfo< v8::Value > &args)
static void AddHistogramSample(void *histogram, int sample)
static base::OS::MemoryMappedFile * counters_file_
static void Quit(const v8::FunctionCallbackInfo< v8::Value > &args)
static void RealmSharedGet(Local< String > property, const PropertyCallbackInfo< Value > &info)
static void PerformanceNow(const v8::FunctionCallbackInfo< v8::Value > &args)
static void RealmEval(const v8::FunctionCallbackInfo< v8::Value > &args)
static void ArraySet(const v8::FunctionCallbackInfo< v8::Value > &args)
static Persistent< Context > utility_context_
static void RealmCreate(const v8::FunctionCallbackInfo< v8::Value > &args)
static void ReadBuffer(const v8::FunctionCallbackInfo< v8::Value > &args)
static Handle< Array > GetCompletions(Isolate *isolate, Handle< String > text, Handle< String > full)
static void ReadLine(const v8::FunctionCallbackInfo< v8::Value > &args)
static void CreateExternalArray(const v8::FunctionCallbackInfo< v8::Value > &args, ExternalArrayType type, int32_t element_size)
static void ReportException(Isolate *isolate, TryCatch *try_catch)
static const char * ToCString(const v8::String::Utf8Value &value)
static Handle< FunctionTemplate > CreateArrayBufferTemplate(FunctionCallback)
static Local< Object > DebugMessageDetails(Isolate *isolate, Handle< String > message)
static void * CreateHistogram(const char *name, int min, int max, size_t buckets)
static void Version(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Uint16Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static void ExternalArrayWeakCallback(Isolate *isolate, Persistent< Object > *object, uint8_t *data)
static void MakeDirectory(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Int32Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Print(const v8::FunctionCallbackInfo< v8::Value > &args)
static void InstallUtilityScript(Isolate *isolate)
static Local< Context > CreateEvaluationContext(Isolate *isolate)
static const char * kPrompt
static void Uint32Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Float64Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static void RealmSharedSet(Local< String > property, Local< Value > value, const PropertyCallbackInfo< void > &info)
static void RealmDispose(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Initialize(Isolate *isolate)
static void RunShell(Isolate *isolate)
static void ArrayBufferSlice(const v8::FunctionCallbackInfo< v8::Value > &args)
static int RunMain(Isolate *isolate, int argc, char *argv[])
static void AddOSMethods(v8::Isolate *isolate, Handle< ObjectTemplate > os_template)
static base::Mutex context_mutex_
static const base::TimeTicks kInitialTicks
static Counter * GetCounter(const char *name, bool is_histogram)
static void RealmCurrent(const v8::FunctionCallbackInfo< v8::Value > &args)
static void RealmOwner(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Int16Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static void ChangeDirectory(const v8::FunctionCallbackInfo< v8::Value > &args)
static bool SetOptions(int argc, char *argv[])
static void Exit(int exit_code)
static Local< Value > DebugCommandToJSONRequest(Isolate *isolate, Handle< String > command)
static int * LookupCounter(const char *name)
static void RealmSwitch(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Load(const v8::FunctionCallbackInfo< v8::Value > &args)
static CounterCollection local_counters_
static void ArrayBuffer(const v8::FunctionCallbackInfo< v8::Value > &args)
static Handle< String > ReadFromStdin(Isolate *isolate)
static CounterMap * counter_map_
static Handle< FunctionTemplate > CreateArrayTemplate(FunctionCallback)
static void Uint8ClampedArray(const v8::FunctionCallbackInfo< v8::Value > &args)
static void RealmGlobal(const v8::FunctionCallbackInfo< v8::Value > &args)
static void ArraySubArray(const v8::FunctionCallbackInfo< v8::Value > &args)
static void Uint8Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static Handle< String > ReadFile(Isolate *isolate, const char *name)
static void Float32Array(const v8::FunctionCallbackInfo< v8::Value > &args)
static void InitializeDebugger(Isolate *isolate)
static void System(const v8::FunctionCallbackInfo< v8::Value > &args)
static bool ExecuteString(Isolate *isolate, Handle< String > source, Handle< Value > name, bool print_result, bool report_exceptions)
static void UnsetEnvironment(const v8::FunctionCallbackInfo< v8::Value > &args)
static Handle< ObjectTemplate > CreateGlobalTemplate(Isolate *isolate)
static Persistent< Context > evaluation_context_
static void RemoveDirectory(const v8::FunctionCallbackInfo< v8::Value > &args)
static Handle< Value > CreateExternalArrayBuffer(Isolate *isolate, Handle< Object > buffer, int32_t size)
static ShellOptions options
static void SetUMask(const v8::FunctionCallbackInfo< v8::Value > &args)
static Handle< Object > CreateExternalArray(Isolate *isolate, Handle< Object > array, Handle< Object > buffer, ExternalArrayType type, int32_t length, int32_t byteLength, int32_t byteOffset, int32_t element_size)
static void OSObject(const v8::FunctionCallbackInfo< v8::Value > &args)
static void MapCounters(v8::Isolate *isolate, const char *name)
static void Write(const v8::FunctionCallbackInfo< v8::Value > &args)
IsolateThread(SourceGroup *group)
void Begin(char **argv, int offset)
static base::Thread::Options GetThreadOptions()
void ExitShell(int exit_code)
void Execute(Isolate *isolate)
base::Semaphore done_semaphore_
void StartExecuteInThread()
base::Semaphore next_semaphore_
Handle< String > ReadFile(Isolate *isolate, const char *name)
An ExternalOneByteStringResource is a wrapper around an one-byte string buffer that resides outside V...
Converts an object to a UTF-8-encoded character array.
An external exception handler.
Thread(const Options &options)
Entry * Next(Entry *p) const
Entry * Lookup(void *key, uint32_t hash, bool insert, AllocationPolicy allocator=AllocationPolicy())
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 map
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
enable harmony numeric enable harmony object literal extensions true
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
#define DCHECK(condition)
static int min(int a, int b)
Debugger support for the V8 JavaScript engine.
void(* FunctionCallback)(const FunctionCallbackInfo< Value > &info)