11 const char* prompt = is_running?
"> " :
"dbg> ";
74 if (str ==
NULL)
break;
77 if (strlen(command) == 0)
continue;
91 if (request->IsUndefined()) {
98 static const int kArgc = 1;
107 Handle<Value> response_val = fun->Call(cmd_processor, kArgc, args);
123 if (text_str.
length() > 0) {
124 printf(
"%s\n", *text_str);
An event details object passed to the debug event listener.
virtual Handle< Object > GetExecutionState() const =0
Access to execution state and event data of the debug event.
virtual DebugEvent GetEvent() const =0
Event type.
virtual Handle< Object > GetEventData() const =0
Create new error objects by calling the corresponding error object constructor with the message.
A stack-allocated class that governs a number of local handles.
An object reference managed by the v8 garbage collector.
static Handle< T > Cast(Handle< S > that)
Isolate represents an isolated instance of the V8 engine.
static Isolate * GetCurrent()
Returns the entered isolate for the current thread or NULL in case there is no current isolate.
A light-weight stack-allocated object handle.
static Local< T > Cast(Local< S > that)
static void ReportException(Isolate *isolate, TryCatch *try_catch)
static Local< Object > DebugMessageDetails(Isolate *isolate, Handle< String > message)
static Local< Value > DebugCommandToJSONRequest(Isolate *isolate, Handle< String > command)
Converts an object to a UTF-8-encoded character array.
static Local< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=kNormalString, int length=-1)
Allocates a new string from UTF-8 data.
An external exception handler.
bool HasCaught() const
Returns true if an exception has been caught by this try/catch block.
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
static const size_t kBufferSize
Debugger support for the V8 JavaScript engine.
void PrintPrompt(bool is_running)
void HandleDebugEvent(const Debug::EventDetails &event_details)