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

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

Issue 192075: Rename a constant to kCallTargetAddressOffset (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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 | « src/ic-inl.h ('k') | src/x64/ic-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 (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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // Assembler functions are invoked in between GetCode() calls. 440 // Assembler functions are invoked in between GetCode() calls.
441 void GetCode(CodeDesc* desc); 441 void GetCode(CodeDesc* desc);
442 442
443 // Read/Modify the code target in the branch/call instruction at pc. 443 // Read/Modify the code target in the branch/call instruction at pc.
444 // On the x64 architecture, the address is absolute, not relative. 444 // On the x64 architecture, the address is absolute, not relative.
445 static inline Address target_address_at(Address pc); 445 static inline Address target_address_at(Address pc);
446 static inline void set_target_address_at(Address pc, Address target); 446 static inline void set_target_address_at(Address pc, Address target);
447 447
448 // Distance between the address of the code target in the call instruction 448 // Distance between the address of the code target in the call instruction
449 // and the return address. Checked in the debug build. 449 // and the return address. Checked in the debug build.
450 static const int kPatchReturnSequenceLength = 3 + kPointerSize; 450 static const int kCallTargetAddressOffset = 3 + kPointerSize;
451 // Distance between start of patched return sequence and the emitted address 451 // Distance between start of patched return sequence and the emitted address
452 // to jump to (movq = REX.W 0xB8+r.). 452 // to jump to (movq = REX.W 0xB8+r.).
453 static const int kPatchReturnSequenceAddressOffset = 2; 453 static const int kPatchReturnSequenceAddressOffset = 2;
454 454
455 // --------------------------------------------------------------------------- 455 // ---------------------------------------------------------------------------
456 // Code generation 456 // Code generation
457 // 457 //
458 // Function names correspond one-to-one to x64 instruction mnemonics. 458 // Function names correspond one-to-one to x64 instruction mnemonics.
459 // Unless specified otherwise, instructions operate on 64-bit operands. 459 // Unless specified otherwise, instructions operate on 64-bit operands.
460 // 460 //
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 private: 1306 private:
1307 Assembler* assembler_; 1307 Assembler* assembler_;
1308 #ifdef DEBUG 1308 #ifdef DEBUG
1309 int space_before_; 1309 int space_before_;
1310 #endif 1310 #endif
1311 }; 1311 };
1312 1312
1313 } } // namespace v8::internal 1313 } } // namespace v8::internal
1314 1314
1315 #endif // V8_X64_ASSEMBLER_X64_H_ 1315 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ic-inl.h ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698