| 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 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 | 1829 |
| 1830 void Assembler::sahf() { | 1830 void Assembler::sahf() { |
| 1831 EnsureSpace ensure_space(this); | 1831 EnsureSpace ensure_space(this); |
| 1832 last_pc_ = pc_; | 1832 last_pc_ = pc_; |
| 1833 EMIT(0x9E); | 1833 EMIT(0x9E); |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 | 1836 |
| 1837 void Assembler::setcc(Condition cc, Register reg) { |
| 1838 ASSERT(reg.is_byte_register()); |
| 1839 EnsureSpace ensure_space(this); |
| 1840 last_pc_ = pc_; |
| 1841 EMIT(0x0F); |
| 1842 EMIT(0x90 | cc); |
| 1843 EMIT(0xC0 | reg.code()); |
| 1844 } |
| 1845 |
| 1846 |
| 1837 void Assembler::cvttss2si(Register dst, const Operand& src) { | 1847 void Assembler::cvttss2si(Register dst, const Operand& src) { |
| 1838 ASSERT(CpuFeatures::IsEnabled(CpuFeatures::SSE2)); | 1848 ASSERT(CpuFeatures::IsEnabled(CpuFeatures::SSE2)); |
| 1839 EnsureSpace ensure_space(this); | 1849 EnsureSpace ensure_space(this); |
| 1840 last_pc_ = pc_; | 1850 last_pc_ = pc_; |
| 1841 EMIT(0xF3); | 1851 EMIT(0xF3); |
| 1842 EMIT(0x0F); | 1852 EMIT(0x0F); |
| 1843 EMIT(0x2C); | 1853 EMIT(0x2C); |
| 1844 emit_operand(dst, src); | 1854 emit_operand(dst, src); |
| 1845 } | 1855 } |
| 1846 | 1856 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2152 ASSERT(bound_label.is_bound()); | 2162 ASSERT(bound_label.is_bound()); |
| 2153 ASSERT(0 <= position); | 2163 ASSERT(0 <= position); |
| 2154 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset()); | 2164 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset()); |
| 2155 ASSERT(long_at(position) == 0); // only initialize once! | 2165 ASSERT(long_at(position) == 0); // only initialize once! |
| 2156 | 2166 |
| 2157 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos())); | 2167 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos())); |
| 2158 long_at_put(position, label_loc); | 2168 long_at_put(position, label_loc); |
| 2159 } | 2169 } |
| 2160 | 2170 |
| 2161 } } // namespace v8::internal | 2171 } } // namespace v8::internal |
| OLD | NEW |