| OLD | NEW |
| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 | 870 |
| 871 | 871 |
| 872 void Assembler::rep_cmpsb() { | 872 void Assembler::rep_cmpsb() { |
| 873 EnsureSpace ensure_space(this); | 873 EnsureSpace ensure_space(this); |
| 874 last_pc_ = pc_; | 874 last_pc_ = pc_; |
| 875 EMIT(0xFC); // CLD to ensure forward operation | 875 EMIT(0xFC); // CLD to ensure forward operation |
| 876 EMIT(0xF3); // REP | 876 EMIT(0xF3); // REP |
| 877 EMIT(0xA6); // CMPSB | 877 EMIT(0xA6); // CMPSB |
| 878 } | 878 } |
| 879 | 879 |
| 880 void Assembler::rep_cmpsw() { | 880 void Assembler::rep_cmpsl() { |
| 881 EnsureSpace ensure_space(this); | 881 EnsureSpace ensure_space(this); |
| 882 last_pc_ = pc_; | 882 last_pc_ = pc_; |
| 883 EMIT(0xFC); // CLD to ensure forward operation | 883 EMIT(0xFC); // CLD to ensure forward operation |
| 884 EMIT(0xF3); // REP | 884 EMIT(0xF3); // REP |
| 885 EMIT(0xA7); // CMPSW | 885 EMIT(0xA7); // CMPSW |
| 886 } | 886 } |
| 887 | 887 |
| 888 | 888 |
| 889 void Assembler::dec_b(Register dst) { | 889 void Assembler::dec_b(Register dst) { |
| 890 EnsureSpace ensure_space(this); | 890 EnsureSpace ensure_space(this); |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2135 ASSERT(bound_label.is_bound()); | 2135 ASSERT(bound_label.is_bound()); |
| 2136 ASSERT(0 <= position); | 2136 ASSERT(0 <= position); |
| 2137 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset()); | 2137 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset()); |
| 2138 ASSERT(long_at(position) == 0); // only initialize once! | 2138 ASSERT(long_at(position) == 0); // only initialize once! |
| 2139 | 2139 |
| 2140 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos())); | 2140 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos())); |
| 2141 long_at_put(position, label_loc); | 2141 long_at_put(position, label_loc); |
| 2142 } | 2142 } |
| 2143 | 2143 |
| 2144 } } // namespace v8::internal | 2144 } } // namespace v8::internal |
| OLD | NEW |