OLD | NEW |
1 // Copyright 2012 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 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // them. | 83 // them. |
84 class BreakLocationIterator { | 84 class BreakLocationIterator { |
85 public: | 85 public: |
86 explicit BreakLocationIterator(Handle<DebugInfo> debug_info, | 86 explicit BreakLocationIterator(Handle<DebugInfo> debug_info, |
87 BreakLocatorType type); | 87 BreakLocatorType type); |
88 virtual ~BreakLocationIterator(); | 88 virtual ~BreakLocationIterator(); |
89 | 89 |
90 void Next(); | 90 void Next(); |
91 void Next(int count); | 91 void Next(int count); |
92 void FindBreakLocationFromAddress(Address pc); | 92 void FindBreakLocationFromAddress(Address pc); |
93 void FindBreakLocationFromPosition(int position); | 93 void FindBreakLocationFromPosition(int position, bool statement_alighned); |
94 void Reset(); | 94 void Reset(); |
95 bool Done() const; | 95 bool Done() const; |
96 void SetBreakPoint(Handle<Object> break_point_object); | 96 void SetBreakPoint(Handle<Object> break_point_object); |
97 void ClearBreakPoint(Handle<Object> break_point_object); | 97 void ClearBreakPoint(Handle<Object> break_point_object); |
98 void SetOneShot(); | 98 void SetOneShot(); |
99 void ClearOneShot(); | 99 void ClearOneShot(); |
100 void PrepareStepIn(Isolate* isolate); | 100 void PrepareStepIn(Isolate* isolate); |
101 bool IsExit() const; | 101 bool IsExit() const; |
102 bool HasBreakPoint(); | 102 bool HasBreakPoint(); |
103 bool IsDebugBreak(); | 103 bool IsDebugBreak(); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } | 233 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } |
234 void PreemptionWhileInDebugger(); | 234 void PreemptionWhileInDebugger(); |
235 void Iterate(ObjectVisitor* v); | 235 void Iterate(ObjectVisitor* v); |
236 | 236 |
237 Object* Break(Arguments args); | 237 Object* Break(Arguments args); |
238 void SetBreakPoint(Handle<JSFunction> function, | 238 void SetBreakPoint(Handle<JSFunction> function, |
239 Handle<Object> break_point_object, | 239 Handle<Object> break_point_object, |
240 int* source_position); | 240 int* source_position); |
241 bool SetBreakPointForScript(Handle<Script> script, | 241 bool SetBreakPointForScript(Handle<Script> script, |
242 Handle<Object> break_point_object, | 242 Handle<Object> break_point_object, |
243 int* source_position); | 243 int* source_position, |
| 244 bool statement_alighned); |
244 void ClearBreakPoint(Handle<Object> break_point_object); | 245 void ClearBreakPoint(Handle<Object> break_point_object); |
245 void ClearAllBreakPoints(); | 246 void ClearAllBreakPoints(); |
246 void FloodWithOneShot(Handle<JSFunction> function); | 247 void FloodWithOneShot(Handle<JSFunction> function); |
247 void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); | 248 void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); |
248 void FloodHandlerWithOneShot(); | 249 void FloodHandlerWithOneShot(); |
249 void ChangeBreakOnException(ExceptionBreakType type, bool enable); | 250 void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
250 bool IsBreakOnException(ExceptionBreakType type); | 251 bool IsBreakOnException(ExceptionBreakType type); |
251 void PrepareStep(StepAction step_action, int step_count); | 252 void PrepareStep(StepAction step_action, int step_count); |
252 void ClearStepping(); | 253 void ClearStepping(); |
253 void ClearStepOut(); | 254 void ClearStepOut(); |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 | 1050 |
1050 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1051 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
1051 }; | 1052 }; |
1052 | 1053 |
1053 | 1054 |
1054 } } // namespace v8::internal | 1055 } } // namespace v8::internal |
1055 | 1056 |
1056 #endif // ENABLE_DEBUGGER_SUPPORT | 1057 #endif // ENABLE_DEBUGGER_SUPPORT |
1057 | 1058 |
1058 #endif // V8_DEBUG_H_ | 1059 #endif // V8_DEBUG_H_ |
OLD | NEW |