OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 Handle<JSObject> event_data, | 622 Handle<JSObject> event_data, |
623 bool auto_continue); | 623 bool auto_continue); |
624 static void NotifyMessageHandler(v8::DebugEvent event, | 624 static void NotifyMessageHandler(v8::DebugEvent event, |
625 Handle<JSObject> exec_state, | 625 Handle<JSObject> exec_state, |
626 Handle<JSObject> event_data, | 626 Handle<JSObject> event_data, |
627 bool auto_continue); | 627 bool auto_continue); |
628 static void SetEventListener(Handle<Object> callback, Handle<Object> data); | 628 static void SetEventListener(Handle<Object> callback, Handle<Object> data); |
629 static void SetMessageHandler(v8::Debug::MessageHandler2 handler); | 629 static void SetMessageHandler(v8::Debug::MessageHandler2 handler); |
630 static void SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler, | 630 static void SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler, |
631 int period); | 631 int period); |
| 632 static void SetDebugMessageDispatchHandler( |
| 633 v8::Debug::DebugMessageDispatchHandler handler); |
632 | 634 |
633 // Invoke the message handler function. | 635 // Invoke the message handler function. |
634 static void InvokeMessageHandler(MessageImpl message); | 636 static void InvokeMessageHandler(MessageImpl message); |
635 | 637 |
636 // Add a debugger command to the command queue. | 638 // Add a debugger command to the command queue. |
637 static void ProcessCommand(Vector<const uint16_t> command, | 639 static void ProcessCommand(Vector<const uint16_t> command, |
638 v8::Debug::ClientData* client_data = NULL); | 640 v8::Debug::ClientData* client_data = NULL); |
639 | 641 |
640 // Check whether there are commands in the command queue. | 642 // Check whether there are commands in the command queue. |
641 static bool HasCommands(); | 643 static bool HasCommands(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 684 |
683 static Mutex* debugger_access_; // Mutex guarding debugger variables. | 685 static Mutex* debugger_access_; // Mutex guarding debugger variables. |
684 static Handle<Object> event_listener_; // Global handle to listener. | 686 static Handle<Object> event_listener_; // Global handle to listener. |
685 static Handle<Object> event_listener_data_; | 687 static Handle<Object> event_listener_data_; |
686 static bool compiling_natives_; // Are we compiling natives? | 688 static bool compiling_natives_; // Are we compiling natives? |
687 static bool is_loading_debugger_; // Are we loading the debugger? | 689 static bool is_loading_debugger_; // Are we loading the debugger? |
688 static bool never_unload_debugger_; // Can we unload the debugger? | 690 static bool never_unload_debugger_; // Can we unload the debugger? |
689 static v8::Debug::MessageHandler2 message_handler_; | 691 static v8::Debug::MessageHandler2 message_handler_; |
690 static bool debugger_unload_pending_; // Was message handler cleared? | 692 static bool debugger_unload_pending_; // Was message handler cleared? |
691 static v8::Debug::HostDispatchHandler host_dispatch_handler_; | 693 static v8::Debug::HostDispatchHandler host_dispatch_handler_; |
| 694 static v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_; |
692 static int host_dispatch_micros_; | 695 static int host_dispatch_micros_; |
693 | 696 |
694 static DebuggerAgent* agent_; | 697 static DebuggerAgent* agent_; |
695 | 698 |
696 static const int kQueueInitialSize = 4; | 699 static const int kQueueInitialSize = 4; |
697 static LockingCommandMessageQueue command_queue_; | 700 static LockingCommandMessageQueue command_queue_; |
698 static Semaphore* command_received_; // Signaled for each command received. | 701 static Semaphore* command_received_; // Signaled for each command received. |
699 | 702 |
700 friend class EnterDebugger; | 703 friend class EnterDebugger; |
701 }; | 704 }; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 Debug::AddressId id_; | 867 Debug::AddressId id_; |
865 int reg_; | 868 int reg_; |
866 }; | 869 }; |
867 | 870 |
868 | 871 |
869 } } // namespace v8::internal | 872 } } // namespace v8::internal |
870 | 873 |
871 #endif // ENABLE_DEBUGGER_SUPPORT | 874 #endif // ENABLE_DEBUGGER_SUPPORT |
872 | 875 |
873 #endif // V8_DEBUG_H_ | 876 #endif // V8_DEBUG_H_ |
OLD | NEW |