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

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

Issue 172133003: Harmony: optimize Math.clz32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/assembler-ia32.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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1252
1253 1253
1254 void Assembler::bts(const Operand& dst, Register src) { 1254 void Assembler::bts(const Operand& dst, Register src) {
1255 EnsureSpace ensure_space(this); 1255 EnsureSpace ensure_space(this);
1256 EMIT(0x0F); 1256 EMIT(0x0F);
1257 EMIT(0xAB); 1257 EMIT(0xAB);
1258 emit_operand(src, dst); 1258 emit_operand(src, dst);
1259 } 1259 }
1260 1260
1261 1261
1262 void Assembler::bsr(Register dst, const Operand& src) {
1263 EnsureSpace ensure_space(this);
1264 EMIT(0x0F);
1265 EMIT(0xBD);
1266 emit_operand(dst, src);
1267 }
1268
1269
1262 void Assembler::hlt() { 1270 void Assembler::hlt() {
1263 EnsureSpace ensure_space(this); 1271 EnsureSpace ensure_space(this);
1264 EMIT(0xF4); 1272 EMIT(0xF4);
1265 } 1273 }
1266 1274
1267 1275
1268 void Assembler::int3() { 1276 void Assembler::int3() {
1269 EnsureSpace ensure_space(this); 1277 EnsureSpace ensure_space(this);
1270 EMIT(0xCC); 1278 EMIT(0xCC);
1271 } 1279 }
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
2725 fprintf(coverage_log, "%s\n", file_line); 2733 fprintf(coverage_log, "%s\n", file_line);
2726 fflush(coverage_log); 2734 fflush(coverage_log);
2727 } 2735 }
2728 } 2736 }
2729 2737
2730 #endif 2738 #endif
2731 2739
2732 } } // namespace v8::internal 2740 } } // namespace v8::internal
2733 2741
2734 #endif // V8_TARGET_ARCH_IA32 2742 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698