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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 171107: X64: Implement debugger hooks. (Closed)
Patch Set: Created 11 years, 4 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
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // Assembler functions are invoked in between GetCode() calls. 431 // Assembler functions are invoked in between GetCode() calls.
432 void GetCode(CodeDesc* desc); 432 void GetCode(CodeDesc* desc);
433 433
434 // Read/Modify the code target in the branch/call instruction at pc. 434 // Read/Modify the code target in the branch/call instruction at pc.
435 inline static Address target_address_at(Address pc); 435 inline static Address target_address_at(Address pc);
436 inline static void set_target_address_at(Address pc, Address target); 436 inline static void set_target_address_at(Address pc, Address target);
437 437
438 // Distance between the address of the code target in the call instruction 438 // Distance between the address of the code target in the call instruction
439 // and the return address 439 // and the return address
440 static const int kTargetAddrToReturnAddrDist = kPointerSize; 440 static const int kTargetAddrToReturnAddrDist = kPointerSize;
441 // Distance between start of patched return sequence and the emitted address
442 // to jump to.
443 static const int kReturnAddrPatchPrefixSize = 1; // JMP imm32.
441 444
442 445
443 // --------------------------------------------------------------------------- 446 // ---------------------------------------------------------------------------
444 // Code generation 447 // Code generation
445 // 448 //
446 // - function names correspond one-to-one to ia32 instruction mnemonics 449 // - function names correspond one-to-one to ia32 instruction mnemonics
447 // - unless specified otherwise, instructions operate on 32bit operands 450 // - unless specified otherwise, instructions operate on 32bit operands
448 // - instructions on 8bit (byte) operands/registers have a trailing '_b' 451 // - instructions on 8bit (byte) operands/registers have a trailing '_b'
449 // - instructions on 16bit (word) operands/registers have a trailing '_w' 452 // - instructions on 16bit (word) operands/registers have a trailing '_w'
450 // - naming conflicts with C++ keywords are resolved via a trailing '_' 453 // - naming conflicts with C++ keywords are resolved via a trailing '_'
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 private: 865 private:
863 Assembler* assembler_; 866 Assembler* assembler_;
864 #ifdef DEBUG 867 #ifdef DEBUG
865 int space_before_; 868 int space_before_;
866 #endif 869 #endif
867 }; 870 };
868 871
869 } } // namespace v8::internal 872 } } // namespace v8::internal
870 873
871 #endif // V8_IA32_ASSEMBLER_IA32_H_ 874 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698