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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 // Script cache handling. | 364 // Script cache handling. |
365 static void CreateScriptCache(); | 365 static void CreateScriptCache(); |
366 static void DestroyScriptCache(); | 366 static void DestroyScriptCache(); |
367 static void AddScriptToScriptCache(Handle<Script> script); | 367 static void AddScriptToScriptCache(Handle<Script> script); |
368 static Handle<FixedArray> GetLoadedScripts(); | 368 static Handle<FixedArray> GetLoadedScripts(); |
369 | 369 |
370 // Garbage collection notifications. | 370 // Garbage collection notifications. |
371 static void AfterGarbageCollection(); | 371 static void AfterGarbageCollection(); |
372 | 372 |
373 // Code generation assumptions. | |
374 static const int kIa32CallInstructionLength = 5; | |
375 static const int kIa32JSReturnSequenceLength = 6; | |
376 | |
377 // The x64 JS return sequence is padded with int3 to make it large | |
378 // enough to hold a call instruction when the debugger patches it. | |
379 static const int kX64CallInstructionLength = 13; | |
380 static const int kX64JSReturnSequenceLength = 13; | |
381 | |
382 static const int kARMJSReturnSequenceLength = 4; | |
383 | |
384 // Code generator routines. | 373 // Code generator routines. |
385 static void GenerateLoadICDebugBreak(MacroAssembler* masm); | 374 static void GenerateLoadICDebugBreak(MacroAssembler* masm); |
386 static void GenerateStoreICDebugBreak(MacroAssembler* masm); | 375 static void GenerateStoreICDebugBreak(MacroAssembler* masm); |
387 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); | 376 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); |
388 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); | 377 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); |
389 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); | 378 static void GenerateConstructCallDebugBreak(MacroAssembler* masm); |
390 static void GenerateReturnDebugBreak(MacroAssembler* masm); | 379 static void GenerateReturnDebugBreak(MacroAssembler* masm); |
391 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); | 380 static void GenerateStubNoRegistersDebugBreak(MacroAssembler* masm); |
392 | 381 |
393 // Called from stub-cache.cc. | 382 // Called from stub-cache.cc. |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 Debug::AddressId id_; | 856 Debug::AddressId id_; |
868 int reg_; | 857 int reg_; |
869 }; | 858 }; |
870 | 859 |
871 | 860 |
872 } } // namespace v8::internal | 861 } } // namespace v8::internal |
873 | 862 |
874 #endif // ENABLE_DEBUGGER_SUPPORT | 863 #endif // ENABLE_DEBUGGER_SUPPORT |
875 | 864 |
876 #endif // V8_DEBUG_H_ | 865 #endif // V8_DEBUG_H_ |
OLD | NEW |