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

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

Issue 6682026: Fix SmiCompare on 64 bit to distinguish between comparisons where... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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
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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 void movq(Register dst, const Operand& src); 649 void movq(Register dst, const Operand& src);
650 void movq(Register dst, Register src); 650 void movq(Register dst, Register src);
651 // Sign extends immediate 32-bit value to 64 bits. 651 // Sign extends immediate 32-bit value to 64 bits.
652 void movq(Register dst, Immediate x); 652 void movq(Register dst, Immediate x);
653 // Move the offset of the label location relative to the current 653 // Move the offset of the label location relative to the current
654 // position (after the move) to the destination. 654 // position (after the move) to the destination.
655 void movl(const Operand& dst, Label* src); 655 void movl(const Operand& dst, Label* src);
656 656
657 // Move sign extended immediate to memory location. 657 // Move sign extended immediate to memory location.
658 void movq(const Operand& dst, Immediate value); 658 void movq(const Operand& dst, Immediate value);
659 // New x64 instructions to load a 64-bit immediate into a register. 659 // Instructions to load a 64-bit immediate into a register.
Lasse Reichstein 2011/03/15 09:07:01 Good change. Never name something "new X". It gets
Erik Corry 2011/03/15 10:00:50 yup.
660 // All 64-bit immediates must have a relocation mode. 660 // All 64-bit immediates must have a relocation mode.
661 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); 661 void movq(Register dst, void* ptr, RelocInfo::Mode rmode);
662 void movq(Register dst, int64_t value, RelocInfo::Mode rmode); 662 void movq(Register dst, int64_t value, RelocInfo::Mode rmode);
663 void movq(Register dst, const char* s, RelocInfo::Mode rmode); 663 void movq(Register dst, const char* s, RelocInfo::Mode rmode);
664 // Moves the address of the external reference into the register. 664 // Moves the address of the external reference into the register.
665 void movq(Register dst, ExternalReference ext); 665 void movq(Register dst, ExternalReference ext);
666 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); 666 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode);
667 667
668 void movsxbq(Register dst, const Operand& src); 668 void movsxbq(Register dst, const Operand& src);
669 void movsxwq(Register dst, const Operand& src); 669 void movsxwq(Register dst, const Operand& src);
670 void movsxlq(Register dst, Register src); 670 void movsxlq(Register dst, Register src);
671 void movsxlq(Register dst, const Operand& src); 671 void movsxlq(Register dst, const Operand& src);
672 void movzxbq(Register dst, const Operand& src); 672 void movzxbq(Register dst, const Operand& src);
673 void movzxbl(Register dst, const Operand& src); 673 void movzxbl(Register dst, const Operand& src);
674 void movzxwq(Register dst, const Operand& src); 674 void movzxwq(Register dst, const Operand& src);
675 void movzxwl(Register dst, const Operand& src); 675 void movzxwl(Register dst, const Operand& src);
676 676
677 // Repeated moves. 677 // Repeated moves.
678 678
679 void repmovsb(); 679 void repmovsb();
680 void repmovsw(); 680 void repmovsw();
681 void repmovsl(); 681 void repmovsl();
682 void repmovsq(); 682 void repmovsq();
683 683
684 // New x64 instruction to load from an immediate 64-bit pointer into RAX. 684 // Instruction to load from an immediate 64-bit pointer into RAX.
685 void load_rax(void* ptr, RelocInfo::Mode rmode); 685 void load_rax(void* ptr, RelocInfo::Mode rmode);
686 void load_rax(ExternalReference ext); 686 void load_rax(ExternalReference ext);
687 687
688 // Conditional moves. 688 // Conditional moves.
689 void cmovq(Condition cc, Register dst, Register src); 689 void cmovq(Condition cc, Register dst, Register src);
690 void cmovq(Condition cc, Register dst, const Operand& src); 690 void cmovq(Condition cc, Register dst, const Operand& src);
691 void cmovl(Condition cc, Register dst, Register src); 691 void cmovl(Condition cc, Register dst, Register src);
692 void cmovl(Condition cc, Register dst, const Operand& src); 692 void cmovl(Condition cc, Register dst, const Operand& src);
693 693
694 // Exchange two registers 694 // Exchange two registers
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 private: 1582 private:
1583 Assembler* assembler_; 1583 Assembler* assembler_;
1584 #ifdef DEBUG 1584 #ifdef DEBUG
1585 int space_before_; 1585 int space_before_;
1586 #endif 1586 #endif
1587 }; 1587 };
1588 1588
1589 } } // namespace v8::internal 1589 } } // namespace v8::internal
1590 1590
1591 #endif // V8_X64_ASSEMBLER_X64_H_ 1591 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698