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

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

Issue 225393005: x64: Make sure that the upper half of a 64bit register contains 0 for int32 values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Added comment. Created 6 years, 8 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 (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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 // position (after the move) to the destination. 787 // position (after the move) to the destination.
788 void movl(const Operand& dst, Label* src); 788 void movl(const Operand& dst, Label* src);
789 789
790 // Loads a pointer into a register with a relocation mode. 790 // Loads a pointer into a register with a relocation mode.
791 void movp(Register dst, void* ptr, RelocInfo::Mode rmode); 791 void movp(Register dst, void* ptr, RelocInfo::Mode rmode);
792 792
793 // Loads a 64-bit immediate into a register. 793 // Loads a 64-bit immediate into a register.
794 void movq(Register dst, int64_t value); 794 void movq(Register dst, int64_t value);
795 void movq(Register dst, uint64_t value); 795 void movq(Register dst, uint64_t value);
796 796
797 void movsxbl(Register dst, const Operand& src);
797 void movsxbq(Register dst, const Operand& src); 798 void movsxbq(Register dst, const Operand& src);
799 void movsxwl(Register dst, const Operand& src);
798 void movsxwq(Register dst, const Operand& src); 800 void movsxwq(Register dst, const Operand& src);
799 void movsxlq(Register dst, Register src); 801 void movsxlq(Register dst, Register src);
800 void movsxlq(Register dst, const Operand& src); 802 void movsxlq(Register dst, const Operand& src);
801 803
802 // Repeated moves. 804 // Repeated moves.
803 805
804 void repmovsb(); 806 void repmovsb();
805 void repmovsw(); 807 void repmovsw();
806 void repmovsp() { emit_repmovs(kPointerSize); } 808 void repmovsp() { emit_repmovs(kPointerSize); }
807 void repmovsl() { emit_repmovs(kInt32Size); } 809 void repmovsl() { emit_repmovs(kInt32Size); }
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 private: 1652 private:
1651 Assembler* assembler_; 1653 Assembler* assembler_;
1652 #ifdef DEBUG 1654 #ifdef DEBUG
1653 int space_before_; 1655 int space_before_;
1654 #endif 1656 #endif
1655 }; 1657 };
1656 1658
1657 } } // namespace v8::internal 1659 } } // namespace v8::internal
1658 1660
1659 #endif // V8_X64_ASSEMBLER_X64_H_ 1661 #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