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

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

Issue 23679007: refactor test instruction on ia32 (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: update to master Created 7 years, 3 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/ia32/assembler-ia32.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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 void sub(const Operand& dst, const Immediate& x); 846 void sub(const Operand& dst, const Immediate& x);
847 void sub(Register dst, Register src) { sub(dst, Operand(src)); } 847 void sub(Register dst, Register src) { sub(dst, Operand(src)); }
848 void sub(Register dst, const Operand& src); 848 void sub(Register dst, const Operand& src);
849 void sub(const Operand& dst, Register src); 849 void sub(const Operand& dst, Register src);
850 850
851 void test(Register reg, const Immediate& imm); 851 void test(Register reg, const Immediate& imm);
852 void test(Register reg0, Register reg1) { test(reg0, Operand(reg1)); } 852 void test(Register reg0, Register reg1) { test(reg0, Operand(reg1)); }
853 void test(Register reg, const Operand& op); 853 void test(Register reg, const Operand& op);
854 void test_b(Register reg, const Operand& op); 854 void test_b(Register reg, const Operand& op);
855 void test(const Operand& op, const Immediate& imm); 855 void test(const Operand& op, const Immediate& imm);
856 void test_b(Register reg, uint8_t imm8) { test_b(Operand(reg), imm8); } 856 void test_b(Register reg, uint8_t imm8);
857 void test_b(const Operand& op, uint8_t imm8); 857 void test_b(const Operand& op, uint8_t imm8);
858 858
859 void xor_(Register dst, int32_t imm32); 859 void xor_(Register dst, int32_t imm32);
860 void xor_(Register dst, Register src) { xor_(dst, Operand(src)); } 860 void xor_(Register dst, Register src) { xor_(dst, Operand(src)); }
861 void xor_(Register dst, const Operand& src); 861 void xor_(Register dst, const Operand& src);
862 void xor_(const Operand& dst, Register src); 862 void xor_(const Operand& dst, Register src);
863 void xor_(Register dst, const Immediate& imm) { xor_(Operand(dst), imm); } 863 void xor_(Register dst, const Immediate& imm) { xor_(Operand(dst), imm); }
864 void xor_(const Operand& dst, const Immediate& x); 864 void xor_(const Operand& dst, const Immediate& x);
865 865
866 // Bit operations. 866 // Bit operations.
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 private: 1235 private:
1236 Assembler* assembler_; 1236 Assembler* assembler_;
1237 #ifdef DEBUG 1237 #ifdef DEBUG
1238 int space_before_; 1238 int space_before_;
1239 #endif 1239 #endif
1240 }; 1240 };
1241 1241
1242 } } // namespace v8::internal 1242 } } // namespace v8::internal
1243 1243
1244 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1244 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698