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

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

Issue 1412893006: X87: CTZ instruction implemented as optional operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/x87/assembler-x87.h ('k') | src/x87/macro-assembler-x87.h » ('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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 1171
1172 1172
1173 void Assembler::bsr(Register dst, const Operand& src) { 1173 void Assembler::bsr(Register dst, const Operand& src) {
1174 EnsureSpace ensure_space(this); 1174 EnsureSpace ensure_space(this);
1175 EMIT(0x0F); 1175 EMIT(0x0F);
1176 EMIT(0xBD); 1176 EMIT(0xBD);
1177 emit_operand(dst, src); 1177 emit_operand(dst, src);
1178 } 1178 }
1179 1179
1180 1180
1181 void Assembler::bsf(Register dst, const Operand& src) {
1182 EnsureSpace ensure_space(this);
1183 EMIT(0x0F);
1184 EMIT(0xBC);
1185 emit_operand(dst, src);
1186 }
1187
1188
1181 void Assembler::hlt() { 1189 void Assembler::hlt() {
1182 EnsureSpace ensure_space(this); 1190 EnsureSpace ensure_space(this);
1183 EMIT(0xF4); 1191 EMIT(0xF4);
1184 } 1192 }
1185 1193
1186 1194
1187 void Assembler::int3() { 1195 void Assembler::int3() {
1188 EnsureSpace ensure_space(this); 1196 EnsureSpace ensure_space(this);
1189 EMIT(0xCC); 1197 EMIT(0xCC);
1190 } 1198 }
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 fflush(coverage_log); 2137 fflush(coverage_log);
2130 } 2138 }
2131 } 2139 }
2132 2140
2133 #endif 2141 #endif
2134 2142
2135 } // namespace internal 2143 } // namespace internal
2136 } // namespace v8 2144 } // namespace v8
2137 2145
2138 #endif // V8_TARGET_ARCH_X87 2146 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/assembler-x87.h ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698