Home | History | Annotate | Download | only in src

Lines Matching defs:debug

34 #include "debug-agent.h"
45 #include "../include/v8-debug.h"
199 // Linked list holding debug info objects. The debug info objects are kept as
200 // weak handles to avoid a debug info object to keep a function alive.
211 // Global (weak) handle to the debug info object.
221 // This class controls the debug info for all functions which currently have
222 // active breakpoints in them. This debug info is held in the heap root object
225 class Debug {
269 // Find the builtin to use for invoking the debug break
278 // Check whether a global object is the debug global object.
355 // Support for saving/restoring registers when handling debug break calls.
360 // Access to the debug break on return code.
366 // Access to the debug break in debug break slot code.
379 friend Handle<FixedArray> GetDebuggedFunctions(); // In test-debug.cc
380 friend void CheckDebuggerUnloaded(bool check_functions); // In test-debug.cc
429 // The top JS frame had been calling debug break slot stub. Patch the
459 explicit Debug(Isolate* isolate);
460 ~Debug();
475 // Global handle to debug context where all the debugger JavaScript code is
485 // List of active debug info objects.
510 // Number of steps left to perform before debug event.
516 // Number of queued steps left to perform before debug event.
526 // Storage location for jump when exiting debug break calls.
545 // Storage location for registers when handling debug break calls
550 // Code to call for handling debug break on return.
553 // Code to call for handling debug break in debug break slots.
560 DISALLOW_COPY_AND_ASSIGN(Debug);
569 class MessageImpl: public v8::Debug::Message {
571 // Create a message object for a debug event.
577 // Create a message object for the response to a debug command.
583 v8::Debug::ClientData* client_data);
585 // Implementation of interface v8::Debug::Message.
594 virtual v8::Debug::ClientData* GetClientData() const;
603 v8::Debug::ClientData* client_data);
605 bool is_event_; // Does this message represent a debug event?
606 DebugEvent event_; // Debug event causing the break.
611 v8::Debug::ClientData* client_data_; // Client data passed with the request.
615 // Details of the debug event delivered to the debug event listener.
616 class EventDetailsImpl : public v8::Debug::EventDetails {
622 v8::Debug::ClientData* client_data);
628 virtual v8::Debug::ClientData* GetClientData() const;
630 DebugEvent event_; // Debug event causing the break.
635 v8::Debug::ClientData* client_data_; // Data passed to DebugBreakForCommand.
646 v8::Debug::ClientData* data);
653 v8::Debug::ClientData* client_data() const { return client_data_; }
656 v8::Debug::ClientData* data);
659 v8::Debug::ClientData* client_data_;
751 void SetMessageHandler(v8::Debug::MessageHandler2 handler);
752 void SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler,
755 v8::Debug::DebugMessageDispatchHandler handler,
763 v8::Debug::ClientData* client_data = NULL);
769 void EnqueueDebugCommand(v8::Debug::ClientData* client_data = NULL);
792 friend void ForceUnloadDebugger(); // In test-debug.cc
799 if (isolate_->debug()->debugger_entry() == NULL) {
836 v8::Debug::ClientData* client_data);
840 v8::Debug::ClientData* client_data);
853 v8::Debug::MessageHandler2 message_handler_;
855 v8::Debug::HostDispatchHandler host_dispatch_handler_;
857 v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_;
911 debug()->disable_break();
912 isolate_->debug()->set_disable_break(disable_break);
916 isolate_->debug()->set_disable_break(prev_disable_break_);
927 // Debug_Address encapsulates the Address pointers used in generating debug
931 explicit Debug_Address(Debug::AddressId id) : id_(id) { }
934 return Debug_Address(Debug::k_after_break_target_address);
938 return Debug_Address(Debug::k_debug_break_return_address);
942 return Debug_Address(Debug::k_restarter_frame_function_pointer);
946 Debug* debug = isolate->debug();
948 case Debug::k_after_break_target_address:
949 return reinterpret_cast<Address>(debug->after_break_target_address());
950 case Debug::k_debug_break_return_address:
951 return reinterpret_cast<Address>(debug->debug_break_return_address());
952 case Debug::k_debug_break_slot_address:
953 return reinterpret_cast<Address>(debug->debug_break_slot_address());
954 case Debug::k_restarter_frame_function_pointer:
956 debug->restarter_frame_function_pointer_address());
964 Debug::AddressId id_;
967 // The optional thread that Debug Agent may use to temporary call V8 to process
968 // pending debug requests if debuggee is not running V8 at the moment.
970 // to do this via v8::Debug::HostDispatchHandler