OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2754 void Assembler::cvtsd2ss(XMMRegister dst, XMMRegister src) { | 2754 void Assembler::cvtsd2ss(XMMRegister dst, XMMRegister src) { |
2755 EnsureSpace ensure_space(this); | 2755 EnsureSpace ensure_space(this); |
2756 emit(0xF2); | 2756 emit(0xF2); |
2757 emit_optional_rex_32(dst, src); | 2757 emit_optional_rex_32(dst, src); |
2758 emit(0x0F); | 2758 emit(0x0F); |
2759 emit(0x5A); | 2759 emit(0x5A); |
2760 emit_sse_operand(dst, src); | 2760 emit_sse_operand(dst, src); |
2761 } | 2761 } |
2762 | 2762 |
2763 | 2763 |
| 2764 void Assembler::cvtsd2ss(XMMRegister dst, const Operand& src) { |
| 2765 EnsureSpace ensure_space(this); |
| 2766 emit(0xF2); |
| 2767 emit_optional_rex_32(dst, src); |
| 2768 emit(0x0F); |
| 2769 emit(0x5A); |
| 2770 emit_sse_operand(dst, src); |
| 2771 } |
| 2772 |
| 2773 |
2764 void Assembler::cvtsd2si(Register dst, XMMRegister src) { | 2774 void Assembler::cvtsd2si(Register dst, XMMRegister src) { |
2765 EnsureSpace ensure_space(this); | 2775 EnsureSpace ensure_space(this); |
2766 emit(0xF2); | 2776 emit(0xF2); |
2767 emit_optional_rex_32(dst, src); | 2777 emit_optional_rex_32(dst, src); |
2768 emit(0x0F); | 2778 emit(0x0F); |
2769 emit(0x2D); | 2779 emit(0x2D); |
2770 emit_sse_operand(dst, src); | 2780 emit_sse_operand(dst, src); |
2771 } | 2781 } |
2772 | 2782 |
2773 | 2783 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3063 | 3073 |
3064 | 3074 |
3065 bool RelocInfo::IsInConstantPool() { | 3075 bool RelocInfo::IsInConstantPool() { |
3066 return false; | 3076 return false; |
3067 } | 3077 } |
3068 | 3078 |
3069 | 3079 |
3070 } } // namespace v8::internal | 3080 } } // namespace v8::internal |
3071 | 3081 |
3072 #endif // V8_TARGET_ARCH_X64 | 3082 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |