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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 Handle<JSFunction> fun); | 539 Handle<JSFunction> fun); |
540 static void OnNewFunction(Handle<JSFunction> fun); | 540 static void OnNewFunction(Handle<JSFunction> fun); |
541 static void ProcessDebugEvent(v8::DebugEvent event, | 541 static void ProcessDebugEvent(v8::DebugEvent event, |
542 Handle<JSObject> event_data, | 542 Handle<JSObject> event_data, |
543 bool auto_continue); | 543 bool auto_continue); |
544 static void NotifyMessageHandler(v8::DebugEvent event, | 544 static void NotifyMessageHandler(v8::DebugEvent event, |
545 Handle<JSObject> exec_state, | 545 Handle<JSObject> exec_state, |
546 Handle<JSObject> event_data, | 546 Handle<JSObject> event_data, |
547 bool auto_continue); | 547 bool auto_continue); |
548 static void SetEventListener(Handle<Object> callback, Handle<Object> data); | 548 static void SetEventListener(Handle<Object> callback, Handle<Object> data); |
549 static void SetMessageHandler(v8::Debug::MessageHandler handler); | 549 static void SetMessageHandler(v8::Debug::MessageHandler2 handler); |
550 static void SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler, | 550 static void SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler, |
551 int period); | 551 int period); |
552 | 552 |
553 // Invoke the message handler function. | 553 // Invoke the message handler function. |
554 static void InvokeMessageHandler(MessageImpl message); | 554 static void InvokeMessageHandler(MessageImpl message); |
555 | 555 |
556 // Add a debugger command to the command queue. | 556 // Add a debugger command to the command queue. |
557 static void ProcessCommand(Vector<const uint16_t> command, | 557 static void ProcessCommand(Vector<const uint16_t> command, |
558 v8::Debug::ClientData* client_data = NULL); | 558 v8::Debug::ClientData* client_data = NULL); |
559 | 559 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 595 |
596 private: | 596 private: |
597 static bool IsDebuggerActive(); | 597 static bool IsDebuggerActive(); |
598 | 598 |
599 static Mutex* debugger_access_; // Mutex guarding debugger variables. | 599 static Mutex* debugger_access_; // Mutex guarding debugger variables. |
600 static Handle<Object> event_listener_; // Global handle to listener. | 600 static Handle<Object> event_listener_; // Global handle to listener. |
601 static Handle<Object> event_listener_data_; | 601 static Handle<Object> event_listener_data_; |
602 static bool compiling_natives_; // Are we compiling natives? | 602 static bool compiling_natives_; // Are we compiling natives? |
603 static bool is_loading_debugger_; // Are we loading the debugger? | 603 static bool is_loading_debugger_; // Are we loading the debugger? |
604 static bool never_unload_debugger_; // Can we unload the debugger? | 604 static bool never_unload_debugger_; // Can we unload the debugger? |
605 static v8::Debug::MessageHandler message_handler_; | 605 static v8::Debug::MessageHandler2 message_handler_; |
606 static bool message_handler_cleared_; // Was message handler cleared? | 606 static bool message_handler_cleared_; // Was message handler cleared? |
607 static v8::Debug::HostDispatchHandler host_dispatch_handler_; | 607 static v8::Debug::HostDispatchHandler host_dispatch_handler_; |
608 static int host_dispatch_micros_; | 608 static int host_dispatch_micros_; |
609 | 609 |
610 static DebuggerAgent* agent_; | 610 static DebuggerAgent* agent_; |
611 | 611 |
612 static const int kQueueInitialSize = 4; | 612 static const int kQueueInitialSize = 4; |
613 static LockingCommandMessageQueue command_queue_; | 613 static LockingCommandMessageQueue command_queue_; |
614 static Semaphore* command_received_; // Signaled for each command received. | 614 static Semaphore* command_received_; // Signaled for each command received. |
615 | 615 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 Debug::AddressId id_; | 756 Debug::AddressId id_; |
757 int reg_; | 757 int reg_; |
758 }; | 758 }; |
759 | 759 |
760 | 760 |
761 } } // namespace v8::internal | 761 } } // namespace v8::internal |
762 | 762 |
763 #endif // ENABLE_DEBUGGER_SUPPORT | 763 #endif // ENABLE_DEBUGGER_SUPPORT |
764 | 764 |
765 #endif // V8_V8_DEBUG_H_ | 765 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |