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

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

Issue 1990133002: X87: Add cmpxchg and lock instructions to x64 and ia32 {dis,}assemblers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | src/x87/assembler-x87.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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 void rep_movs(); 647 void rep_movs();
648 void rep_stos(); 648 void rep_stos();
649 void stos(); 649 void stos();
650 650
651 // Exchange 651 // Exchange
652 void xchg(Register dst, Register src); 652 void xchg(Register dst, Register src);
653 void xchg(Register dst, const Operand& src); 653 void xchg(Register dst, const Operand& src);
654 void xchg_b(Register reg, const Operand& op); 654 void xchg_b(Register reg, const Operand& op);
655 void xchg_w(Register reg, const Operand& op); 655 void xchg_w(Register reg, const Operand& op);
656 656
657 // Lock prefix
658 void lock();
659
660 // CompareExchange
661 void cmpxchg(const Operand& dst, Register src);
662 void cmpxchg_b(const Operand& dst, Register src);
663 void cmpxchg_w(const Operand& dst, Register src);
664
657 // Arithmetics 665 // Arithmetics
658 void adc(Register dst, int32_t imm32); 666 void adc(Register dst, int32_t imm32);
659 void adc(Register dst, const Operand& src); 667 void adc(Register dst, const Operand& src);
660 668
661 void add(Register dst, Register src) { add(dst, Operand(src)); } 669 void add(Register dst, Register src) { add(dst, Operand(src)); }
662 void add(Register dst, const Operand& src); 670 void add(Register dst, const Operand& src);
663 void add(const Operand& dst, Register src); 671 void add(const Operand& dst, Register src);
664 void add(Register dst, const Immediate& imm) { add(Operand(dst), imm); } 672 void add(Register dst, const Immediate& imm) { add(Operand(dst), imm); }
665 void add(const Operand& dst, const Immediate& x); 673 void add(const Operand& dst, const Immediate& x);
666 674
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 Assembler* assembler_; 1112 Assembler* assembler_;
1105 #ifdef DEBUG 1113 #ifdef DEBUG
1106 int space_before_; 1114 int space_before_;
1107 #endif 1115 #endif
1108 }; 1116 };
1109 1117
1110 } // namespace internal 1118 } // namespace internal
1111 } // namespace v8 1119 } // namespace v8
1112 1120
1113 #endif // V8_X87_ASSEMBLER_X87_H_ 1121 #endif // V8_X87_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « no previous file | src/x87/assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698