OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 // Currently argument event is not used. | 865 // Currently argument event is not used. |
866 return !compiling_natives_ && Debugger::IsDebuggerActive(); | 866 return !compiling_natives_ && Debugger::IsDebuggerActive(); |
867 } | 867 } |
868 | 868 |
869 void set_compiling_natives(bool compiling_natives) { | 869 void set_compiling_natives(bool compiling_natives) { |
870 compiling_natives_ = compiling_natives; | 870 compiling_natives_ = compiling_natives; |
871 } | 871 } |
872 bool compiling_natives() const { return compiling_natives_; } | 872 bool compiling_natives() const { return compiling_natives_; } |
873 void set_loading_debugger(bool v) { is_loading_debugger_ = v; } | 873 void set_loading_debugger(bool v) { is_loading_debugger_ = v; } |
874 bool is_loading_debugger() const { return is_loading_debugger_; } | 874 bool is_loading_debugger() const { return is_loading_debugger_; } |
875 void set_live_edit_enabled(bool v) { is_live_edit_enabled_ = v; } | |
876 bool is_live_edit_enabled() const { return is_live_edit_enabled_; } | |
Erik Corry
2012/08/29 11:00:42
The variable should be called live_edit_enabled_ a
| |
875 void set_force_debugger_active(bool force_debugger_active) { | 877 void set_force_debugger_active(bool force_debugger_active) { |
876 force_debugger_active_ = force_debugger_active; | 878 force_debugger_active_ = force_debugger_active; |
877 } | 879 } |
878 bool force_debugger_active() const { return force_debugger_active_; } | 880 bool force_debugger_active() const { return force_debugger_active_; } |
879 | 881 |
880 bool IsDebuggerActive(); | 882 bool IsDebuggerActive(); |
881 | 883 |
882 private: | 884 private: |
883 explicit Debugger(Isolate* isolate); | 885 explicit Debugger(Isolate* isolate); |
884 | 886 |
885 void CallEventCallback(v8::DebugEvent event, | 887 void CallEventCallback(v8::DebugEvent event, |
886 Handle<Object> exec_state, | 888 Handle<Object> exec_state, |
887 Handle<Object> event_data, | 889 Handle<Object> event_data, |
888 v8::Debug::ClientData* client_data); | 890 v8::Debug::ClientData* client_data); |
889 void CallCEventCallback(v8::DebugEvent event, | 891 void CallCEventCallback(v8::DebugEvent event, |
890 Handle<Object> exec_state, | 892 Handle<Object> exec_state, |
891 Handle<Object> event_data, | 893 Handle<Object> event_data, |
892 v8::Debug::ClientData* client_data); | 894 v8::Debug::ClientData* client_data); |
893 void CallJSEventCallback(v8::DebugEvent event, | 895 void CallJSEventCallback(v8::DebugEvent event, |
894 Handle<Object> exec_state, | 896 Handle<Object> exec_state, |
895 Handle<Object> event_data); | 897 Handle<Object> event_data); |
896 void ListenersChanged(); | 898 void ListenersChanged(); |
897 | 899 |
898 Mutex* debugger_access_; // Mutex guarding debugger variables. | 900 Mutex* debugger_access_; // Mutex guarding debugger variables. |
899 Handle<Object> event_listener_; // Global handle to listener. | 901 Handle<Object> event_listener_; // Global handle to listener. |
900 Handle<Object> event_listener_data_; | 902 Handle<Object> event_listener_data_; |
901 bool compiling_natives_; // Are we compiling natives? | 903 bool compiling_natives_; // Are we compiling natives? |
902 bool is_loading_debugger_; // Are we loading the debugger? | 904 bool is_loading_debugger_; // Are we loading the debugger? |
905 bool is_live_edit_enabled_; // Enable LiveEdit. | |
903 bool never_unload_debugger_; // Can we unload the debugger? | 906 bool never_unload_debugger_; // Can we unload the debugger? |
904 bool force_debugger_active_; // Activate debugger without event listeners. | 907 bool force_debugger_active_; // Activate debugger without event listeners. |
905 v8::Debug::MessageHandler2 message_handler_; | 908 v8::Debug::MessageHandler2 message_handler_; |
906 bool debugger_unload_pending_; // Was message handler cleared? | 909 bool debugger_unload_pending_; // Was message handler cleared? |
907 v8::Debug::HostDispatchHandler host_dispatch_handler_; | 910 v8::Debug::HostDispatchHandler host_dispatch_handler_; |
908 Mutex* dispatch_handler_access_; // Mutex guarding dispatch handler. | 911 Mutex* dispatch_handler_access_; // Mutex guarding dispatch handler. |
909 v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_; | 912 v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_; |
910 MessageDispatchHelperThread* message_dispatch_helper_thread_; | 913 MessageDispatchHelperThread* message_dispatch_helper_thread_; |
911 int host_dispatch_micros_; | 914 int host_dispatch_micros_; |
912 | 915 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1036 | 1039 |
1037 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1040 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
1038 }; | 1041 }; |
1039 | 1042 |
1040 | 1043 |
1041 } } // namespace v8::internal | 1044 } } // namespace v8::internal |
1042 | 1045 |
1043 #endif // ENABLE_DEBUGGER_SUPPORT | 1046 #endif // ENABLE_DEBUGGER_SUPPORT |
1044 | 1047 |
1045 #endif // V8_DEBUG_H_ | 1048 #endif // V8_DEBUG_H_ |
OLD | NEW |