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 2934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2945 void Assembler::movmskpd(Register dst, XMMRegister src) { | 2945 void Assembler::movmskpd(Register dst, XMMRegister src) { |
2946 EnsureSpace ensure_space(this); | 2946 EnsureSpace ensure_space(this); |
2947 emit(0x66); | 2947 emit(0x66); |
2948 emit_optional_rex_32(dst, src); | 2948 emit_optional_rex_32(dst, src); |
2949 emit(0x0f); | 2949 emit(0x0f); |
2950 emit(0x50); | 2950 emit(0x50); |
2951 emit_sse_operand(dst, src); | 2951 emit_sse_operand(dst, src); |
2952 } | 2952 } |
2953 | 2953 |
2954 | 2954 |
| 2955 void Assembler::movmskps(Register dst, XMMRegister src) { |
| 2956 EnsureSpace ensure_space(this); |
| 2957 emit_optional_rex_32(dst, src); |
| 2958 emit(0x0f); |
| 2959 emit(0x50); |
| 2960 emit_sse_operand(dst, src); |
| 2961 } |
| 2962 |
| 2963 |
2955 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { | 2964 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
2956 Register ireg = { reg.code() }; | 2965 Register ireg = { reg.code() }; |
2957 emit_operand(ireg, adr); | 2966 emit_operand(ireg, adr); |
2958 } | 2967 } |
2959 | 2968 |
2960 | 2969 |
2961 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { | 2970 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
2962 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); | 2971 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
2963 } | 2972 } |
2964 | 2973 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3032 bool RelocInfo::IsCodedSpecially() { | 3041 bool RelocInfo::IsCodedSpecially() { |
3033 // The deserializer needs to know whether a pointer is specially coded. Being | 3042 // The deserializer needs to know whether a pointer is specially coded. Being |
3034 // specially coded on x64 means that it is a relative 32 bit address, as used | 3043 // specially coded on x64 means that it is a relative 32 bit address, as used |
3035 // by branch instructions. | 3044 // by branch instructions. |
3036 return (1 << rmode_) & kApplyMask; | 3045 return (1 << rmode_) & kApplyMask; |
3037 } | 3046 } |
3038 | 3047 |
3039 } } // namespace v8::internal | 3048 } } // namespace v8::internal |
3040 | 3049 |
3041 #endif // V8_TARGET_ARCH_X64 | 3050 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |