| 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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 } | 835 } |
| 836 | 836 |
| 837 // Move if the registers are not identical. | 837 // Move if the registers are not identical. |
| 838 void Move(Register target, Register source); | 838 void Move(Register target, Register source); |
| 839 | 839 |
| 840 // Move a constant into a destination using the most efficient encoding. | 840 // Move a constant into a destination using the most efficient encoding. |
| 841 void Move(Register dst, const Immediate& x); | 841 void Move(Register dst, const Immediate& x); |
| 842 void Move(const Operand& dst, const Immediate& x); | 842 void Move(const Operand& dst, const Immediate& x); |
| 843 | 843 |
| 844 // Move an immediate into an XMM register. | 844 // Move an immediate into an XMM register. |
| 845 void Move(XMMRegister dst, double val); | 845 void Move(XMMRegister dst, uint32_t src); |
| 846 void Move(XMMRegister dst, uint64_t src); |
| 847 void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); } |
| 846 | 848 |
| 847 // Push a handle value. | 849 // Push a handle value. |
| 848 void Push(Handle<Object> handle) { push(Immediate(handle)); } | 850 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
| 849 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } | 851 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } |
| 850 | 852 |
| 851 Handle<Object> CodeObject() { | 853 Handle<Object> CodeObject() { |
| 852 DCHECK(!code_object_.is_null()); | 854 DCHECK(!code_object_.is_null()); |
| 853 return code_object_; | 855 return code_object_; |
| 854 } | 856 } |
| 855 | 857 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 } \ | 1109 } \ |
| 1108 masm-> | 1110 masm-> |
| 1109 #else | 1111 #else |
| 1110 #define ACCESS_MASM(masm) masm-> | 1112 #define ACCESS_MASM(masm) masm-> |
| 1111 #endif | 1113 #endif |
| 1112 | 1114 |
| 1113 | 1115 |
| 1114 } } // namespace v8::internal | 1116 } } // namespace v8::internal |
| 1115 | 1117 |
| 1116 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1118 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |