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

Side by Side Diff: src/debug.h

Issue 2880011: Add debugger protocol request for setting global flags. (Closed)
Patch Set: After CR by Soren Created 10 years, 4 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
« no previous file with comments | « no previous file | src/debug-debugger.js » ('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 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 StackFrame::Id break_frame_id_; // Previous break frame id. 880 StackFrame::Id break_frame_id_; // Previous break frame id.
881 int break_id_; // Previous break id. 881 int break_id_; // Previous break id.
882 bool load_failed_; // Did the debugger fail to load? 882 bool load_failed_; // Did the debugger fail to load?
883 SaveContext save_; // Saves previous context. 883 SaveContext save_; // Saves previous context.
884 }; 884 };
885 885
886 886
887 // Stack allocated class for disabling break. 887 // Stack allocated class for disabling break.
888 class DisableBreak BASE_EMBEDDED { 888 class DisableBreak BASE_EMBEDDED {
889 public: 889 public:
890 // Enter the debugger by storing the previous top context and setting the
891 // current top context to the debugger context.
892 explicit DisableBreak(bool disable_break) { 890 explicit DisableBreak(bool disable_break) {
893 prev_disable_break_ = Debug::disable_break(); 891 prev_disable_break_ = Debug::disable_break();
894 Debug::set_disable_break(disable_break); 892 Debug::set_disable_break(disable_break);
895 } 893 }
896 ~DisableBreak() { 894 ~DisableBreak() {
897 Debug::set_disable_break(prev_disable_break_); 895 Debug::set_disable_break(prev_disable_break_);
898 } 896 }
899 897
900 private: 898 private:
901 // The previous state of the disable break used to restore the value when this 899 // The previous state of the disable break used to restore the value when this
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 963
966 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 964 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
967 }; 965 };
968 966
969 967
970 } } // namespace v8::internal 968 } } // namespace v8::internal
971 969
972 #endif // ENABLE_DEBUGGER_SUPPORT 970 #endif // ENABLE_DEBUGGER_SUPPORT
973 971
974 #endif // V8_DEBUG_H_ 972 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug-debugger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698