| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 class Debug { | 221 class Debug { |
| 222 public: | 222 public: |
| 223 void Setup(bool create_heap_objects); | 223 void Setup(bool create_heap_objects); |
| 224 bool Load(); | 224 bool Load(); |
| 225 void Unload(); | 225 void Unload(); |
| 226 bool IsLoaded() { return !debug_context_.is_null(); } | 226 bool IsLoaded() { return !debug_context_.is_null(); } |
| 227 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } | 227 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } |
| 228 void PreemptionWhileInDebugger(); | 228 void PreemptionWhileInDebugger(); |
| 229 void Iterate(ObjectVisitor* v); | 229 void Iterate(ObjectVisitor* v); |
| 230 | 230 |
| 231 static Object* Break(RUNTIME_CALLING_CONVENTION); | 231 Object* Break(Arguments args); |
| 232 void SetBreakPoint(Handle<SharedFunctionInfo> shared, | 232 void SetBreakPoint(Handle<SharedFunctionInfo> shared, |
| 233 Handle<Object> break_point_object, | 233 Handle<Object> break_point_object, |
| 234 int* source_position); | 234 int* source_position); |
| 235 void ClearBreakPoint(Handle<Object> break_point_object); | 235 void ClearBreakPoint(Handle<Object> break_point_object); |
| 236 void ClearAllBreakPoints(); | 236 void ClearAllBreakPoints(); |
| 237 void FloodWithOneShot(Handle<SharedFunctionInfo> shared); | 237 void FloodWithOneShot(Handle<SharedFunctionInfo> shared); |
| 238 void FloodHandlerWithOneShot(); | 238 void FloodHandlerWithOneShot(); |
| 239 void ChangeBreakOnException(ExceptionBreakType type, bool enable); | 239 void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
| 240 bool IsBreakOnException(ExceptionBreakType type); | 240 bool IsBreakOnException(ExceptionBreakType type); |
| 241 void PrepareStep(StepAction step_action, int step_count); | 241 void PrepareStep(StepAction step_action, int step_count); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 Code* debug_break_slot_; | 541 Code* debug_break_slot_; |
| 542 | 542 |
| 543 Isolate* isolate_; | 543 Isolate* isolate_; |
| 544 | 544 |
| 545 friend class Isolate; | 545 friend class Isolate; |
| 546 | 546 |
| 547 DISALLOW_COPY_AND_ASSIGN(Debug); | 547 DISALLOW_COPY_AND_ASSIGN(Debug); |
| 548 }; | 548 }; |
| 549 | 549 |
| 550 | 550 |
| 551 DECLARE_RUNTIME_FUNCTION(Object*, Debug_Break); |
| 552 |
| 553 |
| 551 // Message delivered to the message handler callback. This is either a debugger | 554 // Message delivered to the message handler callback. This is either a debugger |
| 552 // event or the response to a command. | 555 // event or the response to a command. |
| 553 class MessageImpl: public v8::Debug::Message { | 556 class MessageImpl: public v8::Debug::Message { |
| 554 public: | 557 public: |
| 555 // Create a message object for a debug event. | 558 // Create a message object for a debug event. |
| 556 static MessageImpl NewEvent(DebugEvent event, | 559 static MessageImpl NewEvent(DebugEvent event, |
| 557 bool running, | 560 bool running, |
| 558 Handle<JSObject> exec_state, | 561 Handle<JSObject> exec_state, |
| 559 Handle<JSObject> event_data); | 562 Handle<JSObject> event_data); |
| 560 | 563 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 | 1045 |
| 1043 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1046 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
| 1044 }; | 1047 }; |
| 1045 | 1048 |
| 1046 | 1049 |
| 1047 } } // namespace v8::internal | 1050 } } // namespace v8::internal |
| 1048 | 1051 |
| 1049 #endif // ENABLE_DEBUGGER_SUPPORT | 1052 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1050 | 1053 |
| 1051 #endif // V8_DEBUG_H_ | 1054 #endif // V8_DEBUG_H_ |
| OLD | NEW |