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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 void Move(Register dst, Handle<Object> value, RelocInfo::Mode rmode) { | 886 void Move(Register dst, Handle<Object> value, RelocInfo::Mode rmode) { |
887 AllowDeferredHandleDereference using_raw_address; | 887 AllowDeferredHandleDereference using_raw_address; |
888 DCHECK(!RelocInfo::IsNone(rmode)); | 888 DCHECK(!RelocInfo::IsNone(rmode)); |
889 DCHECK(value->IsHeapObject()); | 889 DCHECK(value->IsHeapObject()); |
890 DCHECK(!isolate()->heap()->InNewSpace(*value)); | 890 DCHECK(!isolate()->heap()->InNewSpace(*value)); |
891 movp(dst, reinterpret_cast<void*>(value.location()), rmode); | 891 movp(dst, reinterpret_cast<void*>(value.location()), rmode); |
892 } | 892 } |
893 | 893 |
894 void Move(XMMRegister dst, uint32_t src); | 894 void Move(XMMRegister dst, uint32_t src); |
895 void Move(XMMRegister dst, uint64_t src); | 895 void Move(XMMRegister dst, uint64_t src); |
| 896 void Move(XMMRegister dst, float src) { Move(dst, bit_cast<uint32_t>(src)); } |
| 897 void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); } |
896 | 898 |
897 // Control Flow | 899 // Control Flow |
898 void Jump(Address destination, RelocInfo::Mode rmode); | 900 void Jump(Address destination, RelocInfo::Mode rmode); |
899 void Jump(ExternalReference ext); | 901 void Jump(ExternalReference ext); |
900 void Jump(const Operand& op); | 902 void Jump(const Operand& op); |
901 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); | 903 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); |
902 | 904 |
903 void Call(Address destination, RelocInfo::Mode rmode); | 905 void Call(Address destination, RelocInfo::Mode rmode); |
904 void Call(ExternalReference ext); | 906 void Call(ExternalReference ext); |
905 void Call(const Operand& op); | 907 void Call(const Operand& op); |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 masm->popfq(); \ | 1648 masm->popfq(); \ |
1647 } \ | 1649 } \ |
1648 masm-> | 1650 masm-> |
1649 #else | 1651 #else |
1650 #define ACCESS_MASM(masm) masm-> | 1652 #define ACCESS_MASM(masm) masm-> |
1651 #endif | 1653 #endif |
1652 | 1654 |
1653 } } // namespace v8::internal | 1655 } } // namespace v8::internal |
1654 | 1656 |
1655 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1657 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |