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

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

Issue 1724473004: X87: Emit memory operands for cmp and test on ia32 and x64 when it makes sense. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « src/compiler/x87/instruction-selector-x87.cc ('k') | 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 void cmpb(Register reg, const Operand& op); 664 void cmpb(Register reg, const Operand& op);
665 void cmpb(const Operand& op, Register reg); 665 void cmpb(const Operand& op, Register reg);
666 void cmpb_al(const Operand& op); 666 void cmpb_al(const Operand& op);
667 void cmpw_ax(const Operand& op); 667 void cmpw_ax(const Operand& op);
668 void cmpw(const Operand& op, Immediate imm16); 668 void cmpw(const Operand& op, Immediate imm16);
669 void cmp(Register reg, int32_t imm32); 669 void cmp(Register reg, int32_t imm32);
670 void cmp(Register reg, Handle<Object> handle); 670 void cmp(Register reg, Handle<Object> handle);
671 void cmp(Register reg0, Register reg1) { cmp(reg0, Operand(reg1)); } 671 void cmp(Register reg0, Register reg1) { cmp(reg0, Operand(reg1)); }
672 void cmp(Register reg, const Operand& op); 672 void cmp(Register reg, const Operand& op);
673 void cmp(Register reg, const Immediate& imm) { cmp(Operand(reg), imm); } 673 void cmp(Register reg, const Immediate& imm) { cmp(Operand(reg), imm); }
674 void cmp(const Operand& op, Register reg);
674 void cmp(const Operand& op, const Immediate& imm); 675 void cmp(const Operand& op, const Immediate& imm);
675 void cmp(const Operand& op, Handle<Object> handle); 676 void cmp(const Operand& op, Handle<Object> handle);
676 677
677 void dec_b(Register dst); 678 void dec_b(Register dst);
678 void dec_b(const Operand& dst); 679 void dec_b(const Operand& dst);
679 680
680 void dec(Register dst); 681 void dec(Register dst);
681 void dec(const Operand& dst); 682 void dec(const Operand& dst);
682 683
683 void cdq(); 684 void cdq();
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 Assembler* assembler_; 1077 Assembler* assembler_;
1077 #ifdef DEBUG 1078 #ifdef DEBUG
1078 int space_before_; 1079 int space_before_;
1079 #endif 1080 #endif
1080 }; 1081 };
1081 1082
1082 } // namespace internal 1083 } // namespace internal
1083 } // namespace v8 1084 } // namespace v8
1084 1085
1085 #endif // V8_X87_ASSEMBLER_X87_H_ 1086 #endif // V8_X87_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | src/x87/assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698