| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 static void HandleWeakDebugInfo(v8::Persistent<v8::Value> obj, void* data); | 254 static void HandleWeakDebugInfo(v8::Persistent<v8::Value> obj, void* data); |
| 255 | 255 |
| 256 friend class Debugger; | 256 friend class Debugger; |
| 257 friend Handle<FixedArray> GetDebuggedFunctions(); // Found in test-debug.cc | 257 friend Handle<FixedArray> GetDebuggedFunctions(); // Found in test-debug.cc |
| 258 | 258 |
| 259 // Threading support. | 259 // Threading support. |
| 260 static char* ArchiveDebug(char* to); | 260 static char* ArchiveDebug(char* to); |
| 261 static char* RestoreDebug(char* from); | 261 static char* RestoreDebug(char* from); |
| 262 static int ArchiveSpacePerThread(); | 262 static int ArchiveSpacePerThread(); |
| 263 | 263 |
| 264 // Mirror cache handling. |
| 265 static void ClearMirrorCache(); |
| 266 |
| 264 // Code generation assumptions. | 267 // Code generation assumptions. |
| 265 static const int kIa32CallInstructionLength = 5; | 268 static const int kIa32CallInstructionLength = 5; |
| 266 static const int kIa32JSReturnSequenceLength = 6; | 269 static const int kIa32JSReturnSequenceLength = 6; |
| 267 | 270 |
| 268 // Code generator routines. | 271 // Code generator routines. |
| 269 static void GenerateLoadICDebugBreak(MacroAssembler* masm); | 272 static void GenerateLoadICDebugBreak(MacroAssembler* masm); |
| 270 static void GenerateStoreICDebugBreak(MacroAssembler* masm); | 273 static void GenerateStoreICDebugBreak(MacroAssembler* masm); |
| 271 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); | 274 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); |
| 272 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); | 275 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); |
| 273 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); | 276 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); |
| 274 static void GenerateReturnDebugBreak(MacroAssembler* masm); | 277 static void GenerateReturnDebugBreak(MacroAssembler* masm); |
| 275 static void GenerateReturnDebugBreakEntry(MacroAssembler* masm); | 278 static void GenerateReturnDebugBreakEntry(MacroAssembler* masm); |
| 276 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); | 279 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); |
| 277 | 280 |
| 278 // Called from stub-cache.cc. | 281 // Called from stub-cache.cc. |
| 279 static void GenerateCallICDebugBreak(MacroAssembler* masm); | 282 static void GenerateCallICDebugBreak(MacroAssembler* masm); |
| 280 | 283 |
| 281 private: | 284 private: |
| 282 static bool CompileDebuggerScript(int index); | 285 static bool CompileDebuggerScript(int index); |
| 283 static void ClearOneShot(); | 286 static void ClearOneShot(); |
| 284 static void ActivateStepIn(StackFrame* frame); | 287 static void ActivateStepIn(StackFrame* frame); |
| 285 static void ClearStepIn(); | 288 static void ClearStepIn(); |
| 286 static void ClearStepNext(); | 289 static void ClearStepNext(); |
| 287 // Returns whether the compile succedded. | 290 // Returns whether the compile succeeded. |
| 288 static bool EnsureCompiled(Handle<SharedFunctionInfo> shared); | 291 static bool EnsureCompiled(Handle<SharedFunctionInfo> shared); |
| 289 static void RemoveDebugInfo(Handle<DebugInfo> debug_info); | 292 static void RemoveDebugInfo(Handle<DebugInfo> debug_info); |
| 290 static void SetAfterBreakTarget(JavaScriptFrame* frame); | 293 static void SetAfterBreakTarget(JavaScriptFrame* frame); |
| 291 static Handle<Object> CheckBreakPoints(Handle<Object> break_point); | 294 static Handle<Object> CheckBreakPoints(Handle<Object> break_point); |
| 292 static bool CheckBreakPoint(Handle<Object> break_point_object); | 295 static bool CheckBreakPoint(Handle<Object> break_point_object); |
| 293 | 296 |
| 294 // Global handle to debug context where all the debugger JavaScript code is | 297 // Global handle to debug context where all the debugger JavaScript code is |
| 295 // loaded. | 298 // loaded. |
| 296 static Handle<Context> debug_context_; | 299 static Handle<Context> debug_context_; |
| 297 | 300 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 595 } |
| 593 private: | 596 private: |
| 594 Debug::AddressId id_; | 597 Debug::AddressId id_; |
| 595 int reg_; | 598 int reg_; |
| 596 }; | 599 }; |
| 597 | 600 |
| 598 | 601 |
| 599 } } // namespace v8::internal | 602 } } // namespace v8::internal |
| 600 | 603 |
| 601 #endif // V8_V8_DEBUG_H_ | 604 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |