| 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 // Move if the registers are not identical. | 766 // Move if the registers are not identical. |
| 767 void Move(Register target, Register source); | 767 void Move(Register target, Register source); |
| 768 | 768 |
| 769 // Move a constant into a destination using the most efficient encoding. | 769 // Move a constant into a destination using the most efficient encoding. |
| 770 void Move(Register dst, const Immediate& x); | 770 void Move(Register dst, const Immediate& x); |
| 771 void Move(const Operand& dst, const Immediate& x); | 771 void Move(const Operand& dst, const Immediate& x); |
| 772 | 772 |
| 773 // Move an immediate into an XMM register. | 773 // Move an immediate into an XMM register. |
| 774 void Move(XMMRegister dst, uint32_t src); | 774 void Move(XMMRegister dst, uint32_t src); |
| 775 void Move(XMMRegister dst, uint64_t src); | 775 void Move(XMMRegister dst, uint64_t src); |
| 776 void Move(XMMRegister dst, float src) { Move(dst, bit_cast<uint32_t>(src)); } |
| 776 void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); } | 777 void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); } |
| 777 | 778 |
| 778 void Move(Register dst, Smi* source) { Move(dst, Immediate(source)); } | 779 void Move(Register dst, Smi* source) { Move(dst, Immediate(source)); } |
| 779 | 780 |
| 780 // Push a handle value. | 781 // Push a handle value. |
| 781 void Push(Handle<Object> handle) { push(Immediate(handle)); } | 782 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
| 782 void Push(Smi* smi) { Push(Immediate(smi)); } | 783 void Push(Smi* smi) { Push(Immediate(smi)); } |
| 783 | 784 |
| 784 Handle<Object> CodeObject() { | 785 Handle<Object> CodeObject() { |
| 785 DCHECK(!code_object_.is_null()); | 786 DCHECK(!code_object_.is_null()); |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 } \ | 1008 } \ |
| 1008 masm-> | 1009 masm-> |
| 1009 #else | 1010 #else |
| 1010 #define ACCESS_MASM(masm) masm-> | 1011 #define ACCESS_MASM(masm) masm-> |
| 1011 #endif | 1012 #endif |
| 1012 | 1013 |
| 1013 } // namespace internal | 1014 } // namespace internal |
| 1014 } // namespace v8 | 1015 } // namespace v8 |
| 1015 | 1016 |
| 1016 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1017 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |