OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2799 void Assembler::movss(const Operand& src, XMMRegister dst) { | 2799 void Assembler::movss(const Operand& src, XMMRegister dst) { |
2800 EnsureSpace ensure_space(this); | 2800 EnsureSpace ensure_space(this); |
2801 emit(0xF3); // single | 2801 emit(0xF3); // single |
2802 emit_optional_rex_32(dst, src); | 2802 emit_optional_rex_32(dst, src); |
2803 emit(0x0F); | 2803 emit(0x0F); |
2804 emit(0x11); // store | 2804 emit(0x11); // store |
2805 emit_sse_operand(dst, src); | 2805 emit_sse_operand(dst, src); |
2806 } | 2806 } |
2807 | 2807 |
2808 | 2808 |
| 2809 void Assembler::psllq(XMMRegister reg, byte imm8) { |
| 2810 EnsureSpace ensure_space(this); |
| 2811 emit(0x66); |
| 2812 emit(0x0F); |
| 2813 emit(0x73); |
| 2814 emit_sse_operand(rsi, reg); // rsi == 6 |
| 2815 emit(imm8); |
| 2816 } |
| 2817 |
| 2818 |
2809 void Assembler::cvttss2si(Register dst, const Operand& src) { | 2819 void Assembler::cvttss2si(Register dst, const Operand& src) { |
2810 EnsureSpace ensure_space(this); | 2820 EnsureSpace ensure_space(this); |
2811 emit(0xF3); | 2821 emit(0xF3); |
2812 emit_optional_rex_32(dst, src); | 2822 emit_optional_rex_32(dst, src); |
2813 emit(0x0F); | 2823 emit(0x0F); |
2814 emit(0x2C); | 2824 emit(0x2C); |
2815 emit_operand(dst, src); | 2825 emit_operand(dst, src); |
2816 } | 2826 } |
2817 | 2827 |
2818 | 2828 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3198 bool RelocInfo::IsCodedSpecially() { | 3208 bool RelocInfo::IsCodedSpecially() { |
3199 // The deserializer needs to know whether a pointer is specially coded. Being | 3209 // The deserializer needs to know whether a pointer is specially coded. Being |
3200 // specially coded on x64 means that it is a relative 32 bit address, as used | 3210 // specially coded on x64 means that it is a relative 32 bit address, as used |
3201 // by branch instructions. | 3211 // by branch instructions. |
3202 return (1 << rmode_) & kApplyMask; | 3212 return (1 << rmode_) & kApplyMask; |
3203 } | 3213 } |
3204 | 3214 |
3205 } } // namespace v8::internal | 3215 } } // namespace v8::internal |
3206 | 3216 |
3207 #endif // V8_TARGET_ARCH_X64 | 3217 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |