Chromium Code Reviews| 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 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3022 | 3022 |
| 3023 void Assembler::movmskps(Register dst, XMMRegister src) { | 3023 void Assembler::movmskps(Register dst, XMMRegister src) { |
| 3024 EnsureSpace ensure_space(this); | 3024 EnsureSpace ensure_space(this); |
| 3025 emit_optional_rex_32(dst, src); | 3025 emit_optional_rex_32(dst, src); |
| 3026 emit(0x0f); | 3026 emit(0x0f); |
| 3027 emit(0x50); | 3027 emit(0x50); |
| 3028 emit_sse_operand(dst, src); | 3028 emit_sse_operand(dst, src); |
| 3029 } | 3029 } |
| 3030 | 3030 |
| 3031 | 3031 |
| 3032 #if V8_USE_31_BITS_SMI_VALUE | |
|
danno
2013/07/29 13:02:23
No conditional #ifdefs in assembler
haitao.feng
2013/07/30 08:56:43
Done.
| |
| 3033 void Assembler::pcmpeqd(XMMRegister dst, XMMRegister src) { | |
| 3034 EnsureSpace ensure_space(this); | |
| 3035 emit(0x66); | |
| 3036 emit(0x0f); | |
| 3037 emit(0x76); | |
| 3038 emit_sse_operand(dst, src); | |
| 3039 } | |
| 3040 #endif | |
| 3041 | |
| 3042 | |
| 3032 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { | 3043 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
| 3033 Register ireg = { reg.code() }; | 3044 Register ireg = { reg.code() }; |
| 3034 emit_operand(ireg, adr); | 3045 emit_operand(ireg, adr); |
| 3035 } | 3046 } |
| 3036 | 3047 |
| 3037 | 3048 |
| 3038 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { | 3049 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
| 3039 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); | 3050 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
| 3040 } | 3051 } |
| 3041 | 3052 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3113 bool RelocInfo::IsCodedSpecially() { | 3124 bool RelocInfo::IsCodedSpecially() { |
| 3114 // The deserializer needs to know whether a pointer is specially coded. Being | 3125 // The deserializer needs to know whether a pointer is specially coded. Being |
| 3115 // specially coded on x64 means that it is a relative 32 bit address, as used | 3126 // specially coded on x64 means that it is a relative 32 bit address, as used |
| 3116 // by branch instructions. | 3127 // by branch instructions. |
| 3117 return (1 << rmode_) & kApplyMask; | 3128 return (1 << rmode_) & kApplyMask; |
| 3118 } | 3129 } |
| 3119 | 3130 |
| 3120 } } // namespace v8::internal | 3131 } } // namespace v8::internal |
| 3121 | 3132 |
| 3122 #endif // V8_TARGET_ARCH_X64 | 3133 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |