| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 // Threading support. | 256 // Threading support. |
| 257 static char* ArchiveDebug(char* to); | 257 static char* ArchiveDebug(char* to); |
| 258 static char* RestoreDebug(char* from); | 258 static char* RestoreDebug(char* from); |
| 259 static int ArchiveSpacePerThread(); | 259 static int ArchiveSpacePerThread(); |
| 260 | 260 |
| 261 // Code generation assumptions. | 261 // Code generation assumptions. |
| 262 static const int kIa32CallInstructionLength = 5; | 262 static const int kIa32CallInstructionLength = 5; |
| 263 static const int kIa32JSReturnSequenceLength = 6; | 263 static const int kIa32JSReturnSequenceLength = 6; |
| 264 | 264 |
| 265 // Code generator routines. |
| 266 static void GenerateLoadICDebugBreak(MacroAssembler* masm); |
| 267 static void GenerateStoreICDebugBreak(MacroAssembler* masm); |
| 268 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); |
| 269 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); |
| 270 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); |
| 271 static void GenerateReturnDebugBreak(MacroAssembler* masm); |
| 272 static void GenerateReturnDebugBreakEntry(MacroAssembler* masm); |
| 273 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); |
| 274 |
| 275 // Called from stub-cache.cc. |
| 276 static void GenerateCallICDebugBreak(MacroAssembler* masm); |
| 277 |
| 265 private: | 278 private: |
| 266 static bool CompileDebuggerScript(int index); | 279 static bool CompileDebuggerScript(int index); |
| 267 static void ClearOneShot(); | 280 static void ClearOneShot(); |
| 268 static void ActivateStepIn(StackFrame* frame); | 281 static void ActivateStepIn(StackFrame* frame); |
| 269 static void ClearStepIn(); | 282 static void ClearStepIn(); |
| 270 static void ClearStepNext(); | 283 static void ClearStepNext(); |
| 271 // Returns whether the compile succedded. | 284 // Returns whether the compile succedded. |
| 272 static bool EnsureCompiled(Handle<SharedFunctionInfo> shared); | 285 static bool EnsureCompiled(Handle<SharedFunctionInfo> shared); |
| 273 static void RemoveDebugInfo(Handle<DebugInfo> debug_info); | 286 static void RemoveDebugInfo(Handle<DebugInfo> debug_info); |
| 274 static void SetAfterBreakTarget(JavaScriptFrame* frame); | 287 static void SetAfterBreakTarget(JavaScriptFrame* frame); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 } | 590 } |
| 578 private: | 591 private: |
| 579 Debug::AddressId id_; | 592 Debug::AddressId id_; |
| 580 int reg_; | 593 int reg_; |
| 581 }; | 594 }; |
| 582 | 595 |
| 583 | 596 |
| 584 } } // namespace v8::internal | 597 } } // namespace v8::internal |
| 585 | 598 |
| 586 #endif // V8_V8_DEBUG_H_ | 599 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |