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 2780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2791 void Assembler::movss(const Operand& src, XMMRegister dst) { | 2791 void Assembler::movss(const Operand& src, XMMRegister dst) { |
2792 EnsureSpace ensure_space(this); | 2792 EnsureSpace ensure_space(this); |
2793 emit(0xF3); // single | 2793 emit(0xF3); // single |
2794 emit_optional_rex_32(dst, src); | 2794 emit_optional_rex_32(dst, src); |
2795 emit(0x0F); | 2795 emit(0x0F); |
2796 emit(0x11); // store | 2796 emit(0x11); // store |
2797 emit_sse_operand(dst, src); | 2797 emit_sse_operand(dst, src); |
2798 } | 2798 } |
2799 | 2799 |
2800 | 2800 |
2801 void Assembler::psllq(XMMRegister reg, byte imm8) { | |
2802 EnsureSpace ensure_space(this); | |
2803 emit(0x66); | |
2804 emit(0x0F); | |
2805 emit(0x73); | |
2806 emit_sse_operand(rsi, reg); // rsi == 6 | |
2807 emit(imm8); | |
2808 } | |
2809 | |
2810 | |
2811 void Assembler::cvttss2si(Register dst, const Operand& src) { | 2801 void Assembler::cvttss2si(Register dst, const Operand& src) { |
2812 EnsureSpace ensure_space(this); | 2802 EnsureSpace ensure_space(this); |
2813 emit(0xF3); | 2803 emit(0xF3); |
2814 emit_optional_rex_32(dst, src); | 2804 emit_optional_rex_32(dst, src); |
2815 emit(0x0F); | 2805 emit(0x0F); |
2816 emit(0x2C); | 2806 emit(0x2C); |
2817 emit_operand(dst, src); | 2807 emit_operand(dst, src); |
2818 } | 2808 } |
2819 | 2809 |
2820 | 2810 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3200 bool RelocInfo::IsCodedSpecially() { | 3190 bool RelocInfo::IsCodedSpecially() { |
3201 // The deserializer needs to know whether a pointer is specially coded. Being | 3191 // The deserializer needs to know whether a pointer is specially coded. Being |
3202 // specially coded on x64 means that it is a relative 32 bit address, as used | 3192 // specially coded on x64 means that it is a relative 32 bit address, as used |
3203 // by branch instructions. | 3193 // by branch instructions. |
3204 return (1 << rmode_) & kApplyMask; | 3194 return (1 << rmode_) & kApplyMask; |
3205 } | 3195 } |
3206 | 3196 |
3207 } } // namespace v8::internal | 3197 } } // namespace v8::internal |
3208 | 3198 |
3209 #endif // V8_TARGET_ARCH_X64 | 3199 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |