Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: src/debug.h

Issue 155286: X64: Let debugger patch JSReturn with a debug break. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/x64/assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698