Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: src/debug.h

Issue 8050010: Support for precise stepping in functions compiled before debugging was started (step 2) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed missing comment Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 } else if ((event == v8::ScriptCollected) && 802 } else if ((event == v8::ScriptCollected) &&
803 !FLAG_debug_script_collected_events) { 803 !FLAG_debug_script_collected_events) {
804 return false; 804 return false;
805 } 805 }
806 806
807 // Currently argument event is not used. 807 // Currently argument event is not used.
808 return !compiling_natives_ && Debugger::IsDebuggerActive(); 808 return !compiling_natives_ && Debugger::IsDebuggerActive();
809 } 809 }
810 810
811 void set_compiling_natives(bool compiling_natives) { 811 void set_compiling_natives(bool compiling_natives) {
812 Debugger::compiling_natives_ = compiling_natives; 812 compiling_natives_ = compiling_natives;
813 } 813 }
814 bool compiling_natives() const { return compiling_natives_; } 814 bool compiling_natives() const { return compiling_natives_; }
815 void set_loading_debugger(bool v) { is_loading_debugger_ = v; } 815 void set_loading_debugger(bool v) { is_loading_debugger_ = v; }
816 bool is_loading_debugger() const { return is_loading_debugger_; } 816 bool is_loading_debugger() const { return is_loading_debugger_; }
817 void set_force_debugger_active(bool force_debugger_active) {
818 force_debugger_active_ = force_debugger_active;
819 }
820 bool force_debugger_active() const { return force_debugger_active_; }
817 821
818 bool IsDebuggerActive(); 822 bool IsDebuggerActive();
819 823
820 private: 824 private:
821 explicit Debugger(Isolate* isolate); 825 explicit Debugger(Isolate* isolate);
822 826
823 void CallEventCallback(v8::DebugEvent event, 827 void CallEventCallback(v8::DebugEvent event,
824 Handle<Object> exec_state, 828 Handle<Object> exec_state,
825 Handle<Object> event_data, 829 Handle<Object> event_data,
826 v8::Debug::ClientData* client_data); 830 v8::Debug::ClientData* client_data);
827 void CallCEventCallback(v8::DebugEvent event, 831 void CallCEventCallback(v8::DebugEvent event,
828 Handle<Object> exec_state, 832 Handle<Object> exec_state,
829 Handle<Object> event_data, 833 Handle<Object> event_data,
830 v8::Debug::ClientData* client_data); 834 v8::Debug::ClientData* client_data);
831 void CallJSEventCallback(v8::DebugEvent event, 835 void CallJSEventCallback(v8::DebugEvent event,
832 Handle<Object> exec_state, 836 Handle<Object> exec_state,
833 Handle<Object> event_data); 837 Handle<Object> event_data);
834 void ListenersChanged(); 838 void ListenersChanged();
835 839
836 Mutex* debugger_access_; // Mutex guarding debugger variables. 840 Mutex* debugger_access_; // Mutex guarding debugger variables.
837 Handle<Object> event_listener_; // Global handle to listener. 841 Handle<Object> event_listener_; // Global handle to listener.
838 Handle<Object> event_listener_data_; 842 Handle<Object> event_listener_data_;
839 bool compiling_natives_; // Are we compiling natives? 843 bool compiling_natives_; // Are we compiling natives?
840 bool is_loading_debugger_; // Are we loading the debugger? 844 bool is_loading_debugger_; // Are we loading the debugger?
841 bool never_unload_debugger_; // Can we unload the debugger? 845 bool never_unload_debugger_; // Can we unload the debugger?
846 bool force_debugger_active_; // Activate debugger without event listeners.
842 v8::Debug::MessageHandler2 message_handler_; 847 v8::Debug::MessageHandler2 message_handler_;
843 bool debugger_unload_pending_; // Was message handler cleared? 848 bool debugger_unload_pending_; // Was message handler cleared?
844 v8::Debug::HostDispatchHandler host_dispatch_handler_; 849 v8::Debug::HostDispatchHandler host_dispatch_handler_;
845 Mutex* dispatch_handler_access_; // Mutex guarding dispatch handler. 850 Mutex* dispatch_handler_access_; // Mutex guarding dispatch handler.
846 v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_; 851 v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_;
847 MessageDispatchHelperThread* message_dispatch_helper_thread_; 852 MessageDispatchHelperThread* message_dispatch_helper_thread_;
848 int host_dispatch_micros_; 853 int host_dispatch_micros_;
849 854
850 DebuggerAgent* agent_; 855 DebuggerAgent* agent_;
851 856
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 1061
1057 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 1062 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
1058 }; 1063 };
1059 1064
1060 1065
1061 } } // namespace v8::internal 1066 } } // namespace v8::internal
1062 1067
1063 #endif // ENABLE_DEBUGGER_SUPPORT 1068 #endif // ENABLE_DEBUGGER_SUPPORT
1064 1069
1065 #endif // V8_DEBUG_H_ 1070 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698