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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 static void AddScriptToScriptCache(Handle<Script> script); | 356 static void AddScriptToScriptCache(Handle<Script> script); |
357 static Handle<FixedArray> GetLoadedScripts(); | 357 static Handle<FixedArray> GetLoadedScripts(); |
358 | 358 |
359 // Garbage collection notifications. | 359 // Garbage collection notifications. |
360 static void AfterGarbageCollection(); | 360 static void AfterGarbageCollection(); |
361 | 361 |
362 // Code generation assumptions. | 362 // Code generation assumptions. |
363 static const int kIa32CallInstructionLength = 5; | 363 static const int kIa32CallInstructionLength = 5; |
364 static const int kIa32JSReturnSequenceLength = 6; | 364 static const int kIa32JSReturnSequenceLength = 6; |
365 | 365 |
| 366 // The x64 JS return sequence is padded with int3 to make it large |
| 367 // enough to hold a call instruction when the debugger patches it. |
| 368 static const int kX64JSReturnSequenceLength = 13; |
| 369 |
366 // Code generator routines. | 370 // Code generator routines. |
367 static void GenerateLoadICDebugBreak(MacroAssembler* masm); | 371 static void GenerateLoadICDebugBreak(MacroAssembler* masm); |
368 static void GenerateStoreICDebugBreak(MacroAssembler* masm); | 372 static void GenerateStoreICDebugBreak(MacroAssembler* masm); |
369 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); | 373 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); |
370 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); | 374 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); |
371 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); | 375 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); |
372 static void GenerateReturnDebugBreak(MacroAssembler* masm); | 376 static void GenerateReturnDebugBreak(MacroAssembler* masm); |
373 static void GenerateReturnDebugBreakEntry(MacroAssembler* masm); | 377 static void GenerateReturnDebugBreakEntry(MacroAssembler* masm); |
374 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); | 378 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); |
375 | 379 |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 Debug::AddressId id_; | 845 Debug::AddressId id_; |
842 int reg_; | 846 int reg_; |
843 }; | 847 }; |
844 | 848 |
845 | 849 |
846 } } // namespace v8::internal | 850 } } // namespace v8::internal |
847 | 851 |
848 #endif // ENABLE_DEBUGGER_SUPPORT | 852 #endif // ENABLE_DEBUGGER_SUPPORT |
849 | 853 |
850 #endif // V8_DEBUG_H_ | 854 #endif // V8_DEBUG_H_ |
OLD | NEW |