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

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

Issue 1405453003: CTZ instruction implemented as optional operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a bug when bmi1=false Created 5 years, 2 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/ia32/assembler-ia32.h ('k') | src/ia32/macro-assembler-ia32.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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 1300
1301 1301
1302 void Assembler::bsr(Register dst, const Operand& src) { 1302 void Assembler::bsr(Register dst, const Operand& src) {
1303 EnsureSpace ensure_space(this); 1303 EnsureSpace ensure_space(this);
1304 EMIT(0x0F); 1304 EMIT(0x0F);
1305 EMIT(0xBD); 1305 EMIT(0xBD);
1306 emit_operand(dst, src); 1306 emit_operand(dst, src);
1307 } 1307 }
1308 1308
1309 1309
1310 void Assembler::bsf(Register dst, const Operand& src) {
1311 EnsureSpace ensure_space(this);
1312 EMIT(0x0F);
1313 EMIT(0xBC);
1314 emit_operand(dst, src);
1315 }
1316
1317
1310 void Assembler::hlt() { 1318 void Assembler::hlt() {
1311 EnsureSpace ensure_space(this); 1319 EnsureSpace ensure_space(this);
1312 EMIT(0xF4); 1320 EMIT(0xF4);
1313 } 1321 }
1314 1322
1315 1323
1316 void Assembler::int3() { 1324 void Assembler::int3() {
1317 EnsureSpace ensure_space(this); 1325 EnsureSpace ensure_space(this);
1318 EMIT(0xCC); 1326 EMIT(0xCC);
1319 } 1327 }
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2948 fflush(coverage_log); 2956 fflush(coverage_log);
2949 } 2957 }
2950 } 2958 }
2951 2959
2952 #endif 2960 #endif
2953 2961
2954 } // namespace internal 2962 } // namespace internal
2955 } // namespace v8 2963 } // namespace v8
2956 2964
2957 #endif // V8_TARGET_ARCH_IA32 2965 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698