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

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

Issue 2125873002: Version 5.2.361.35 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.2
Patch Set: Created 4 years, 5 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 | « include/v8-version.h ('k') | src/ia32/disasm-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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 EnsureSpace ensure_space(this); 828 EnsureSpace ensure_space(this);
829 EMIT(0x66); 829 EMIT(0x66);
830 EMIT(0x81); 830 EMIT(0x81);
831 emit_operand(edi, op); 831 emit_operand(edi, op);
832 emit_w(imm16); 832 emit_w(imm16);
833 } 833 }
834 834
835 void Assembler::cmpw(Register reg, const Operand& op) { 835 void Assembler::cmpw(Register reg, const Operand& op) {
836 EnsureSpace ensure_space(this); 836 EnsureSpace ensure_space(this);
837 EMIT(0x66); 837 EMIT(0x66);
838 EMIT(0x3B);
839 emit_operand(reg, op);
840 }
841
842 void Assembler::cmpw(const Operand& op, Register reg) {
843 EnsureSpace ensure_space(this);
844 EMIT(0x66);
838 EMIT(0x39); 845 EMIT(0x39);
839 emit_operand(reg, op); 846 emit_operand(reg, op);
840 } 847 }
841 848
842 void Assembler::cmpw(const Operand& op, Register reg) {
843 EnsureSpace ensure_space(this);
844 EMIT(0x66);
845 EMIT(0x3B);
846 emit_operand(reg, op);
847 }
848
849 void Assembler::cmp(Register reg, int32_t imm32) { 849 void Assembler::cmp(Register reg, int32_t imm32) {
850 EnsureSpace ensure_space(this); 850 EnsureSpace ensure_space(this);
851 emit_arith(7, Operand(reg), Immediate(imm32)); 851 emit_arith(7, Operand(reg), Immediate(imm32));
852 } 852 }
853 853
854 854
855 void Assembler::cmp(Register reg, Handle<Object> handle) { 855 void Assembler::cmp(Register reg, Handle<Object> handle) {
856 EnsureSpace ensure_space(this); 856 EnsureSpace ensure_space(this);
857 emit_arith(7, Operand(reg), Immediate(handle)); 857 emit_arith(7, Operand(reg), Immediate(handle));
858 } 858 }
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 fflush(coverage_log); 3061 fflush(coverage_log);
3062 } 3062 }
3063 } 3063 }
3064 3064
3065 #endif 3065 #endif
3066 3066
3067 } // namespace internal 3067 } // namespace internal
3068 } // namespace v8 3068 } // namespace v8
3069 3069
3070 #endif // V8_TARGET_ARCH_IA32 3070 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698