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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 void Ret(int bytes_dropped, Register scratch); | 806 void Ret(int bytes_dropped, Register scratch); |
807 | 807 |
808 // Emit code to discard a non-negative number of pointer-sized elements | 808 // Emit code to discard a non-negative number of pointer-sized elements |
809 // from the stack, clobbering only the esp register. | 809 // from the stack, clobbering only the esp register. |
810 void Drop(int element_count); | 810 void Drop(int element_count); |
811 | 811 |
812 void Call(Label* target) { call(target); } | 812 void Call(Label* target) { call(target); } |
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. |
| 817 void Pextrd(Register dst, XMMRegister src, int8_t imm8); |
| 818 void Pinsrd(XMMRegister dst, Register src, int8_t imm8) { |
| 819 Pinsrd(dst, Operand(src), imm8); |
| 820 } |
| 821 void Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); |
| 822 |
816 // Emit call to the code we are currently generating. | 823 // Emit call to the code we are currently generating. |
817 void CallSelf() { | 824 void CallSelf() { |
818 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 825 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
819 call(self, RelocInfo::CODE_TARGET); | 826 call(self, RelocInfo::CODE_TARGET); |
820 } | 827 } |
821 | 828 |
822 // Move if the registers are not identical. | 829 // Move if the registers are not identical. |
823 void Move(Register target, Register source); | 830 void Move(Register target, Register source); |
824 | 831 |
825 // Move a constant into a destination using the most efficient encoding. | 832 // Move a constant into a destination using the most efficient encoding. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 } \ | 1094 } \ |
1088 masm-> | 1095 masm-> |
1089 #else | 1096 #else |
1090 #define ACCESS_MASM(masm) masm-> | 1097 #define ACCESS_MASM(masm) masm-> |
1091 #endif | 1098 #endif |
1092 | 1099 |
1093 | 1100 |
1094 } } // namespace v8::internal | 1101 } } // namespace v8::internal |
1095 | 1102 |
1096 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1103 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |