| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 static void FloodWithOneShot(Handle<SharedFunctionInfo> shared); | 172 static void FloodWithOneShot(Handle<SharedFunctionInfo> shared); |
| 173 static void FloodHandlerWithOneShot(); | 173 static void FloodHandlerWithOneShot(); |
| 174 static void ChangeBreakOnException(ExceptionBreakType type, bool enable); | 174 static void ChangeBreakOnException(ExceptionBreakType type, bool enable); |
| 175 static void PrepareStep(StepAction step_action, int step_count); | 175 static void PrepareStep(StepAction step_action, int step_count); |
| 176 static void ClearStepping(); | 176 static void ClearStepping(); |
| 177 static bool StepNextContinue(BreakLocationIterator* break_location_iterator, | 177 static bool StepNextContinue(BreakLocationIterator* break_location_iterator, |
| 178 JavaScriptFrame* frame); | 178 JavaScriptFrame* frame); |
| 179 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 179 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
| 180 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); | 180 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); |
| 181 | 181 |
| 182 // Returns whether the operation succedded. | 182 // Returns whether the operation succeeded. |
| 183 static bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared); | 183 static bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared); |
| 184 | 184 |
| 185 static bool IsDebugBreak(Address addr); | 185 static bool IsDebugBreak(Address addr); |
| 186 | 186 |
| 187 // Check whether a code stub with the specified major key is a possible break | 187 // Check whether a code stub with the specified major key is a possible break |
| 188 // point location. | 188 // point location. |
| 189 static bool IsSourceBreakStub(Code* code); | 189 static bool IsSourceBreakStub(Code* code); |
| 190 static bool IsBreakStub(Code* code); | 190 static bool IsBreakStub(Code* code); |
| 191 | 191 |
| 192 // Find the builtin to use for invoking the debug break | 192 // Find the builtin to use for invoking the debug break |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 276 |
| 277 // Called from stub-cache.cc. | 277 // Called from stub-cache.cc. |
| 278 static void GenerateCallICDebugBreak(MacroAssembler* masm); | 278 static void GenerateCallICDebugBreak(MacroAssembler* masm); |
| 279 | 279 |
| 280 private: | 280 private: |
| 281 static bool CompileDebuggerScript(int index); | 281 static bool CompileDebuggerScript(int index); |
| 282 static void ClearOneShot(); | 282 static void ClearOneShot(); |
| 283 static void ActivateStepIn(StackFrame* frame); | 283 static void ActivateStepIn(StackFrame* frame); |
| 284 static void ClearStepIn(); | 284 static void ClearStepIn(); |
| 285 static void ClearStepNext(); | 285 static void ClearStepNext(); |
| 286 // Returns whether the compile succedded. | 286 // Returns whether the compile succeeded. |
| 287 static bool EnsureCompiled(Handle<SharedFunctionInfo> shared); | 287 static bool EnsureCompiled(Handle<SharedFunctionInfo> shared); |
| 288 static void RemoveDebugInfo(Handle<DebugInfo> debug_info); | 288 static void RemoveDebugInfo(Handle<DebugInfo> debug_info); |
| 289 static void SetAfterBreakTarget(JavaScriptFrame* frame); | 289 static void SetAfterBreakTarget(JavaScriptFrame* frame); |
| 290 static Handle<Object> CheckBreakPoints(Handle<Object> break_point); | 290 static Handle<Object> CheckBreakPoints(Handle<Object> break_point); |
| 291 static bool CheckBreakPoint(Handle<Object> break_point_object); | 291 static bool CheckBreakPoint(Handle<Object> break_point_object); |
| 292 | 292 |
| 293 // Global handle to debug context where all the debugger JavaScript code is | 293 // Global handle to debug context where all the debugger JavaScript code is |
| 294 // loaded. | 294 // loaded. |
| 295 static Handle<Context> debug_context_; | 295 static Handle<Context> debug_context_; |
| 296 | 296 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 } | 591 } |
| 592 private: | 592 private: |
| 593 Debug::AddressId id_; | 593 Debug::AddressId id_; |
| 594 int reg_; | 594 int reg_; |
| 595 }; | 595 }; |
| 596 | 596 |
| 597 | 597 |
| 598 } } // namespace v8::internal | 598 } } // namespace v8::internal |
| 599 | 599 |
| 600 #endif // V8_V8_DEBUG_H_ | 600 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |