OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 int* source_position); | 238 int* source_position); |
239 void ClearBreakPoint(Handle<Object> break_point_object); | 239 void ClearBreakPoint(Handle<Object> break_point_object); |
240 void ClearAllBreakPoints(); | 240 void ClearAllBreakPoints(); |
241 void FloodWithOneShot(Handle<SharedFunctionInfo> shared); | 241 void FloodWithOneShot(Handle<SharedFunctionInfo> shared); |
242 void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); | 242 void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); |
243 void FloodHandlerWithOneShot(); | 243 void FloodHandlerWithOneShot(); |
244 void ChangeBreakOnException(ExceptionBreakType type, bool enable); | 244 void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
245 bool IsBreakOnException(ExceptionBreakType type); | 245 bool IsBreakOnException(ExceptionBreakType type); |
246 void PrepareStep(StepAction step_action, int step_count); | 246 void PrepareStep(StepAction step_action, int step_count); |
247 void ClearStepping(); | 247 void ClearStepping(); |
| 248 void ClearStepOut(); |
| 249 bool IsStepping() { return thread_local_.step_count_ > 0; } |
248 bool StepNextContinue(BreakLocationIterator* break_location_iterator, | 250 bool StepNextContinue(BreakLocationIterator* break_location_iterator, |
249 JavaScriptFrame* frame); | 251 JavaScriptFrame* frame); |
250 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 252 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
251 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); | 253 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); |
252 | 254 |
253 void PrepareForBreakPoints(); | 255 void PrepareForBreakPoints(); |
254 | 256 |
255 // Returns whether the operation succeeded. | 257 // Returns whether the operation succeeded. |
256 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared); | 258 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared); |
257 | 259 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 | 459 |
458 private: | 460 private: |
459 explicit Debug(Isolate* isolate); | 461 explicit Debug(Isolate* isolate); |
460 ~Debug(); | 462 ~Debug(); |
461 | 463 |
462 static bool CompileDebuggerScript(int index); | 464 static bool CompileDebuggerScript(int index); |
463 void ClearOneShot(); | 465 void ClearOneShot(); |
464 void ActivateStepIn(StackFrame* frame); | 466 void ActivateStepIn(StackFrame* frame); |
465 void ClearStepIn(); | 467 void ClearStepIn(); |
466 void ActivateStepOut(StackFrame* frame); | 468 void ActivateStepOut(StackFrame* frame); |
467 void ClearStepOut(); | |
468 void ClearStepNext(); | 469 void ClearStepNext(); |
469 // Returns whether the compile succeeded. | 470 // Returns whether the compile succeeded. |
470 void RemoveDebugInfo(Handle<DebugInfo> debug_info); | 471 void RemoveDebugInfo(Handle<DebugInfo> debug_info); |
471 void SetAfterBreakTarget(JavaScriptFrame* frame); | 472 void SetAfterBreakTarget(JavaScriptFrame* frame); |
472 Handle<Object> CheckBreakPoints(Handle<Object> break_point); | 473 Handle<Object> CheckBreakPoints(Handle<Object> break_point); |
473 bool CheckBreakPoint(Handle<Object> break_point_object); | 474 bool CheckBreakPoint(Handle<Object> break_point_object); |
474 | 475 |
475 // Global handle to debug context where all the debugger JavaScript code is | 476 // Global handle to debug context where all the debugger JavaScript code is |
476 // loaded. | 477 // loaded. |
477 Handle<Context> debug_context_; | 478 Handle<Context> debug_context_; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 | 985 |
985 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 986 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
986 }; | 987 }; |
987 | 988 |
988 | 989 |
989 } } // namespace v8::internal | 990 } } // namespace v8::internal |
990 | 991 |
991 #endif // ENABLE_DEBUGGER_SUPPORT | 992 #endif // ENABLE_DEBUGGER_SUPPORT |
992 | 993 |
993 #endif // V8_DEBUG_H_ | 994 #endif // V8_DEBUG_H_ |
OLD | NEW |