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

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

Issue 64453002: Refactor loading a pointer into a register instruction for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 7 years 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 (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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // memory location. 715 // memory location.
716 void movw(Register dst, const Operand& src); 716 void movw(Register dst, const Operand& src);
717 void movw(const Operand& dst, Register src); 717 void movw(const Operand& dst, Register src);
718 void movw(const Operand& dst, Immediate imm); 718 void movw(const Operand& dst, Immediate imm);
719 719
720 // Move the offset of the label location relative to the current 720 // Move the offset of the label location relative to the current
721 // position (after the move) to the destination. 721 // position (after the move) to the destination.
722 void movl(const Operand& dst, Label* src); 722 void movl(const Operand& dst, Label* src);
723 723
724 // Loads a pointer into a register with a relocation mode. 724 // Loads a pointer into a register with a relocation mode.
725 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); 725 void movp(Register dst, void* ptr, RelocInfo::Mode rmode);
726
726 // Loads a 64-bit immediate into a register. 727 // Loads a 64-bit immediate into a register.
727 void movq(Register dst, int64_t value); 728 void movq(Register dst, int64_t value);
728 void movq(Register dst, uint64_t value); 729 void movq(Register dst, uint64_t value);
729 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode);
730 730
731 void movsxbq(Register dst, const Operand& src); 731 void movsxbq(Register dst, const Operand& src);
732 void movsxwq(Register dst, const Operand& src); 732 void movsxwq(Register dst, const Operand& src);
733 void movsxlq(Register dst, Register src); 733 void movsxlq(Register dst, Register src);
734 void movsxlq(Register dst, const Operand& src); 734 void movsxlq(Register dst, const Operand& src);
735 void movzxbq(Register dst, const Operand& src); 735 void movzxbq(Register dst, const Operand& src);
736 void movzxbl(Register dst, const Operand& src); 736 void movzxbl(Register dst, const Operand& src);
737 void movzxwq(Register dst, const Operand& src); 737 void movzxwq(Register dst, const Operand& src);
738 void movzxwl(Register dst, const Operand& src); 738 void movzxwl(Register dst, const Operand& src);
739 void movzxwl(Register dst, Register src); 739 void movzxwl(Register dst, Register src);
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 private: 1744 private:
1745 Assembler* assembler_; 1745 Assembler* assembler_;
1746 #ifdef DEBUG 1746 #ifdef DEBUG
1747 int space_before_; 1747 int space_before_;
1748 #endif 1748 #endif
1749 }; 1749 };
1750 1750
1751 } } // namespace v8::internal 1751 } } // namespace v8::internal
1752 1752
1753 #endif // V8_X64_ASSEMBLER_X64_H_ 1753 #endif // V8_X64_ASSEMBLER_X64_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