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

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

Issue 39543003: Refactor loading a pointer and loading an integer64 into a register instructions for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make movq(Register, int64_t) an assembler instruction for 64-bit integer only" Created 7 years, 1 month 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') | src/x64/assembler-x64.cc » ('J')
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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 void movq(Register dst, const Operand& src); 712 void movq(Register dst, const Operand& src);
713 void movq(Register dst, Register src); 713 void movq(Register dst, Register src);
714 // Sign extends immediate 32-bit value to 64 bits. 714 // Sign extends immediate 32-bit value to 64 bits.
715 void movq(Register dst, Immediate x); 715 void movq(Register dst, Immediate x);
716 // Move the offset of the label location relative to the current 716 // Move the offset of the label location relative to the current
717 // position (after the move) to the destination. 717 // position (after the move) to the destination.
718 void movl(const Operand& dst, Label* src); 718 void movl(const Operand& dst, Label* src);
719 719
720 // Move sign extended immediate to memory location. 720 // Move sign extended immediate to memory location.
721 void movq(const Operand& dst, Immediate value); 721 void movq(const Operand& dst, Immediate value);
722 // Instructions to load a 64-bit immediate into a register. 722 // Loads a pointer into a register with a relocation mode.
723 // All 64-bit immediates must have a relocation mode.
724 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); 723 void movq(Register dst, void* ptr, RelocInfo::Mode rmode);
725 void movq(Register dst, int64_t value, RelocInfo::Mode rmode); 724 // Loads a 64-bit immediate into a register.
725 void movq(Register dst, int64_t value);
726 // Moves the address of the external reference into the register. 726 // Moves the address of the external reference into the register.
727 void movq(Register dst, ExternalReference ext); 727 void movq(Register dst, ExternalReference ext);
728 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); 728 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode);
729 729
730 void movsxbq(Register dst, const Operand& src); 730 void movsxbq(Register dst, const Operand& src);
731 void movsxwq(Register dst, const Operand& src); 731 void movsxwq(Register dst, const Operand& src);
732 void movsxlq(Register dst, Register src); 732 void movsxlq(Register dst, Register src);
733 void movsxlq(Register dst, const Operand& src); 733 void movsxlq(Register dst, const Operand& src);
734 void movzxbq(Register dst, const Operand& src); 734 void movzxbq(Register dst, const Operand& src);
735 void movzxbl(Register dst, const Operand& src); 735 void movzxbl(Register dst, const Operand& src);
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 private: 1698 private:
1699 Assembler* assembler_; 1699 Assembler* assembler_;
1700 #ifdef DEBUG 1700 #ifdef DEBUG
1701 int space_before_; 1701 int space_before_;
1702 #endif 1702 #endif
1703 }; 1703 };
1704 1704
1705 } } // namespace v8::internal 1705 } } // namespace v8::internal
1706 1706
1707 #endif // V8_X64_ASSEMBLER_X64_H_ 1707 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64.cc » ('j') | src/x64/assembler-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698