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 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 void Push(Register src) { push(src); } | 813 void Push(Register src) { push(src); } |
814 void Pop(Register dst) { pop(dst); } | 814 void Pop(Register dst) { pop(dst); } |
815 | 815 |
816 // Non-SSE2 instructions. | 816 // Non-SSE2 instructions. |
817 void Pextrd(Register dst, XMMRegister src, int8_t imm8); | 817 void Pextrd(Register dst, XMMRegister src, int8_t imm8); |
818 void Pinsrd(XMMRegister dst, Register src, int8_t imm8) { | 818 void Pinsrd(XMMRegister dst, Register src, int8_t imm8) { |
819 Pinsrd(dst, Operand(src), imm8); | 819 Pinsrd(dst, Operand(src), imm8); |
820 } | 820 } |
821 void Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); | 821 void Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); |
822 | 822 |
| 823 void Lzcnt(Register dst, Register src) { Lzcnt(dst, Operand(src)); } |
| 824 void Lzcnt(Register dst, const Operand& src); |
| 825 |
823 // Emit call to the code we are currently generating. | 826 // Emit call to the code we are currently generating. |
824 void CallSelf() { | 827 void CallSelf() { |
825 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 828 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
826 call(self, RelocInfo::CODE_TARGET); | 829 call(self, RelocInfo::CODE_TARGET); |
827 } | 830 } |
828 | 831 |
829 // Move if the registers are not identical. | 832 // Move if the registers are not identical. |
830 void Move(Register target, Register source); | 833 void Move(Register target, Register source); |
831 | 834 |
832 // Move a constant into a destination using the most efficient encoding. | 835 // Move a constant into a destination using the most efficient encoding. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 } \ | 1097 } \ |
1095 masm-> | 1098 masm-> |
1096 #else | 1099 #else |
1097 #define ACCESS_MASM(masm) masm-> | 1100 #define ACCESS_MASM(masm) masm-> |
1098 #endif | 1101 #endif |
1099 | 1102 |
1100 | 1103 |
1101 } } // namespace v8::internal | 1104 } } // namespace v8::internal |
1102 | 1105 |
1103 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |