| OLD | NEW |
| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 217 |
| 218 // This class contains the debugger support. The main purpose is to handle | 218 // This class contains the debugger support. The main purpose is to handle |
| 219 // setting break points in the code. | 219 // setting break points in the code. |
| 220 // | 220 // |
| 221 // This class controls the debug info for all functions which currently have | 221 // This class controls the debug info for all functions which currently have |
| 222 // active breakpoints in them. This debug info is held in the heap root object | 222 // active breakpoints in them. This debug info is held in the heap root object |
| 223 // debug_info which is a FixedArray. Each entry in this list is of class | 223 // debug_info which is a FixedArray. Each entry in this list is of class |
| 224 // DebugInfo. | 224 // DebugInfo. |
| 225 class Debug { | 225 class Debug { |
| 226 public: | 226 public: |
| 227 void Setup(bool create_heap_objects); | 227 void SetUp(bool create_heap_objects); |
| 228 bool Load(); | 228 bool Load(); |
| 229 void Unload(); | 229 void Unload(); |
| 230 bool IsLoaded() { return !debug_context_.is_null(); } | 230 bool IsLoaded() { return !debug_context_.is_null(); } |
| 231 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } | 231 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } |
| 232 void PreemptionWhileInDebugger(); | 232 void PreemptionWhileInDebugger(); |
| 233 void Iterate(ObjectVisitor* v); | 233 void Iterate(ObjectVisitor* v); |
| 234 | 234 |
| 235 Object* Break(Arguments args); | 235 Object* Break(Arguments args); |
| 236 void SetBreakPoint(Handle<SharedFunctionInfo> shared, | 236 void SetBreakPoint(Handle<SharedFunctionInfo> shared, |
| 237 Handle<Object> break_point_object, | 237 Handle<Object> break_point_object, |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 981 |
| 982 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 982 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
| 983 }; | 983 }; |
| 984 | 984 |
| 985 | 985 |
| 986 } } // namespace v8::internal | 986 } } // namespace v8::internal |
| 987 | 987 |
| 988 #endif // ENABLE_DEBUGGER_SUPPORT | 988 #endif // ENABLE_DEBUGGER_SUPPORT |
| 989 | 989 |
| 990 #endif // V8_DEBUG_H_ | 990 #endif // V8_DEBUG_H_ |
| OLD | NEW |