| 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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
| 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 // Opcode: REX_opt FF /2 m64 | 915 // Opcode: REX_opt FF /2 m64 |
| 916 return (target.requires_rex() ? 2 : 1) + target.operand_size(); | 916 return (target.requires_rex() ? 2 : 1) + target.operand_size(); |
| 917 } | 917 } |
| 918 | 918 |
| 919 // Emit call to the code we are currently generating. | 919 // Emit call to the code we are currently generating. |
| 920 void CallSelf() { | 920 void CallSelf() { |
| 921 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 921 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
| 922 Call(self, RelocInfo::CODE_TARGET); | 922 Call(self, RelocInfo::CODE_TARGET); |
| 923 } | 923 } |
| 924 | 924 |
| 925 // Non-SSE2 instructions. |
| 926 void Pextrd(Register dst, XMMRegister src, int8_t imm8); |
| 927 void Pinsrd(XMMRegister dst, Register src, int8_t imm8); |
| 928 void Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); |
| 929 |
| 925 // Non-x64 instructions. | 930 // Non-x64 instructions. |
| 926 // Push/pop all general purpose registers. | 931 // Push/pop all general purpose registers. |
| 927 // Does not push rsp/rbp nor any of the assembler's special purpose registers | 932 // Does not push rsp/rbp nor any of the assembler's special purpose registers |
| 928 // (kScratchRegister, kRootRegister). | 933 // (kScratchRegister, kRootRegister). |
| 929 void Pushad(); | 934 void Pushad(); |
| 930 void Popad(); | 935 void Popad(); |
| 931 // Sets the stack as after performing Popad, without actually loading the | 936 // Sets the stack as after performing Popad, without actually loading the |
| 932 // registers. | 937 // registers. |
| 933 void Dropad(); | 938 void Dropad(); |
| 934 | 939 |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 masm->popfq(); \ | 1619 masm->popfq(); \ |
| 1615 } \ | 1620 } \ |
| 1616 masm-> | 1621 masm-> |
| 1617 #else | 1622 #else |
| 1618 #define ACCESS_MASM(masm) masm-> | 1623 #define ACCESS_MASM(masm) masm-> |
| 1619 #endif | 1624 #endif |
| 1620 | 1625 |
| 1621 } } // namespace v8::internal | 1626 } } // namespace v8::internal |
| 1622 | 1627 |
| 1623 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |