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

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
« 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 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.
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 void movq(Register dst, Smi* smi);
664 // Moves the address of the external reference into the register. 665 // Moves the address of the external reference into the register.
665 void movq(Register dst, ExternalReference ext); 666 void movq(Register dst, ExternalReference ext);
666 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); 667 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode);
667 668
668 void movsxbq(Register dst, const Operand& src); 669 void movsxbq(Register dst, const Operand& src);
669 void movsxwq(Register dst, const Operand& src); 670 void movsxwq(Register dst, const Operand& src);
670 void movsxlq(Register dst, Register src); 671 void movsxlq(Register dst, Register src);
671 void movsxlq(Register dst, const Operand& src); 672 void movsxlq(Register dst, const Operand& src);
672 void movzxbq(Register dst, const Operand& src); 673 void movzxbq(Register dst, const Operand& src);
673 void movzxbl(Register dst, const Operand& src); 674 void movzxbl(Register dst, const Operand& src);
674 void movzxwq(Register dst, const Operand& src); 675 void movzxwq(Register dst, const Operand& src);
675 void movzxwl(Register dst, const Operand& src); 676 void movzxwl(Register dst, const Operand& src);
676 677
677 // Repeated moves. 678 // Repeated moves.
678 679
679 void repmovsb(); 680 void repmovsb();
680 void repmovsw(); 681 void repmovsw();
681 void repmovsl(); 682 void repmovsl();
682 void repmovsq(); 683 void repmovsq();
683 684
684 // New x64 instruction to load from an immediate 64-bit pointer into RAX. 685 // Instruction to load from an immediate 64-bit pointer into RAX.
685 void load_rax(void* ptr, RelocInfo::Mode rmode); 686 void load_rax(void* ptr, RelocInfo::Mode rmode);
686 void load_rax(ExternalReference ext); 687 void load_rax(ExternalReference ext);
687 688
688 // Conditional moves. 689 // Conditional moves.
689 void cmovq(Condition cc, Register dst, Register src); 690 void cmovq(Condition cc, Register dst, Register src);
690 void cmovq(Condition cc, Register dst, const Operand& src); 691 void cmovq(Condition cc, Register dst, const Operand& src);
691 void cmovl(Condition cc, Register dst, Register src); 692 void cmovl(Condition cc, Register dst, Register src);
692 void cmovl(Condition cc, Register dst, const Operand& src); 693 void cmovl(Condition cc, Register dst, const Operand& src);
693 694
694 // Exchange two registers 695 // Exchange two registers
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 private: 1583 private:
1583 Assembler* assembler_; 1584 Assembler* assembler_;
1584 #ifdef DEBUG 1585 #ifdef DEBUG
1585 int space_before_; 1586 int space_before_;
1586 #endif 1587 #endif
1587 }; 1588 };
1588 1589
1589 } } // namespace v8::internal 1590 } } // namespace v8::internal
1590 1591
1591 #endif // V8_X64_ASSEMBLER_X64_H_ 1592 #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