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

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

Issue 2082006: Use direct loop when filling small arrays. (Closed)
Patch Set: Named constant added Created 10 years, 7 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/builtins-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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 769
770 770
771 void Assembler::rep_stos() { 771 void Assembler::rep_stos() {
772 EnsureSpace ensure_space(this); 772 EnsureSpace ensure_space(this);
773 last_pc_ = pc_; 773 last_pc_ = pc_;
774 EMIT(0xF3); 774 EMIT(0xF3);
775 EMIT(0xAB); 775 EMIT(0xAB);
776 } 776 }
777 777
778 778
779 void Assembler::stos() {
780 EnsureSpace ensure_space(this);
781 last_pc_ = pc_;
782 EMIT(0xAB);
783 }
784
785
779 void Assembler::xchg(Register dst, Register src) { 786 void Assembler::xchg(Register dst, Register src) {
780 EnsureSpace ensure_space(this); 787 EnsureSpace ensure_space(this);
781 last_pc_ = pc_; 788 last_pc_ = pc_;
782 if (src.is(eax) || dst.is(eax)) { // Single-byte encoding. 789 if (src.is(eax) || dst.is(eax)) { // Single-byte encoding.
783 EMIT(0x90 | (src.is(eax) ? dst.code() : src.code())); 790 EMIT(0x90 | (src.is(eax) ? dst.code() : src.code()));
784 } else { 791 } else {
785 EMIT(0x87); 792 EMIT(0x87);
786 EMIT(0xC0 | src.code() << 3 | dst.code()); 793 EMIT(0xC0 | src.code() << 3 | dst.code());
787 } 794 }
788 } 795 }
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 push_insn[1] = 13; // Skip over coverage insns. 2528 push_insn[1] = 13; // Skip over coverage insns.
2522 if (coverage_log != NULL) { 2529 if (coverage_log != NULL) {
2523 fprintf(coverage_log, "%s\n", file_line); 2530 fprintf(coverage_log, "%s\n", file_line);
2524 fflush(coverage_log); 2531 fflush(coverage_log);
2525 } 2532 }
2526 } 2533 }
2527 2534
2528 #endif 2535 #endif
2529 2536
2530 } } // namespace v8::internal 2537 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698