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 14 matching lines...) Expand all Loading... |
25 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 25 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
26 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 26 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
27 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 27 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 28 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
29 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 29 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
30 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 30 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
31 // OF THE POSSIBILITY OF SUCH DAMAGE. | 31 // OF THE POSSIBILITY OF SUCH DAMAGE. |
32 | 32 |
33 // The original source code covered by the above license above has been modified | 33 // The original source code covered by the above license above has been modified |
34 // significantly by Google Inc. | 34 // significantly by Google Inc. |
35 // Copyright 2010 the V8 project authors. All rights reserved. | 35 // Copyright 2011 the V8 project authors. All rights reserved. |
36 | 36 |
37 #include "v8.h" | 37 #include "v8.h" |
38 | 38 |
39 #if defined(V8_TARGET_ARCH_IA32) | 39 #if defined(V8_TARGET_ARCH_IA32) |
40 | 40 |
41 #include "disassembler.h" | 41 #include "disassembler.h" |
42 #include "macro-assembler.h" | 42 #include "macro-assembler.h" |
43 #include "serialize.h" | 43 #include "serialize.h" |
44 | 44 |
45 namespace v8 { | 45 namespace v8 { |
(...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 ASSERT(CpuFeatures::IsEnabled(SSE2)); | 2239 ASSERT(CpuFeatures::IsEnabled(SSE2)); |
2240 EnsureSpace ensure_space(this); | 2240 EnsureSpace ensure_space(this); |
2241 last_pc_ = pc_; | 2241 last_pc_ = pc_; |
2242 EMIT(0x66); | 2242 EMIT(0x66); |
2243 EMIT(0x0F); | 2243 EMIT(0x0F); |
2244 EMIT(0x57); | 2244 EMIT(0x57); |
2245 emit_sse_operand(dst, src); | 2245 emit_sse_operand(dst, src); |
2246 } | 2246 } |
2247 | 2247 |
2248 | 2248 |
| 2249 void Assembler::xorps(XMMRegister dst, XMMRegister src) { |
| 2250 EnsureSpace ensure_space(this); |
| 2251 last_pc_ = pc_; |
| 2252 EMIT(0x0F); |
| 2253 EMIT(0x57); |
| 2254 emit_sse_operand(dst, src); |
| 2255 } |
| 2256 |
| 2257 |
2249 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) { | 2258 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) { |
2250 EnsureSpace ensure_space(this); | 2259 EnsureSpace ensure_space(this); |
2251 last_pc_ = pc_; | 2260 last_pc_ = pc_; |
2252 EMIT(0xF2); | 2261 EMIT(0xF2); |
2253 EMIT(0x0F); | 2262 EMIT(0x0F); |
2254 EMIT(0x51); | 2263 EMIT(0x51); |
2255 emit_sse_operand(dst, src); | 2264 emit_sse_operand(dst, src); |
2256 } | 2265 } |
2257 | 2266 |
2258 | 2267 |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2839 fprintf(coverage_log, "%s\n", file_line); | 2848 fprintf(coverage_log, "%s\n", file_line); |
2840 fflush(coverage_log); | 2849 fflush(coverage_log); |
2841 } | 2850 } |
2842 } | 2851 } |
2843 | 2852 |
2844 #endif | 2853 #endif |
2845 | 2854 |
2846 } } // namespace v8::internal | 2855 } } // namespace v8::internal |
2847 | 2856 |
2848 #endif // V8_TARGET_ARCH_IA32 | 2857 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |