OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ |
7 | 7 |
8 #include <ctype.h> | 8 #include <ctype.h> |
9 | 9 |
10 #include "v8globals.h" | 10 #include "v8globals.h" |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 | 970 |
971 void MacroAssembler::Mrs(const Register& rt, SystemRegister sysreg) { | 971 void MacroAssembler::Mrs(const Register& rt, SystemRegister sysreg) { |
972 ASSERT(allow_macro_instructions_); | 972 ASSERT(allow_macro_instructions_); |
973 ASSERT(!rt.IsZero()); | 973 ASSERT(!rt.IsZero()); |
974 mrs(rt, sysreg); | 974 mrs(rt, sysreg); |
975 } | 975 } |
976 | 976 |
977 | 977 |
978 void MacroAssembler::Msr(SystemRegister sysreg, const Register& rt) { | 978 void MacroAssembler::Msr(SystemRegister sysreg, const Register& rt) { |
979 ASSERT(allow_macro_instructions_); | 979 ASSERT(allow_macro_instructions_); |
980 ASSERT(!rt.IsZero()); | |
981 msr(sysreg, rt); | 980 msr(sysreg, rt); |
982 } | 981 } |
983 | 982 |
984 | 983 |
985 void MacroAssembler::Msub(const Register& rd, | 984 void MacroAssembler::Msub(const Register& rd, |
986 const Register& rn, | 985 const Register& rn, |
987 const Register& rm, | 986 const Register& rm, |
988 const Register& ra) { | 987 const Register& ra) { |
989 ASSERT(allow_macro_instructions_); | 988 ASSERT(allow_macro_instructions_); |
990 ASSERT(!rd.IsZero()); | 989 ASSERT(!rd.IsZero()); |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 // characters are reserved for controlling features of the instrumentation. | 1661 // characters are reserved for controlling features of the instrumentation. |
1663 ASSERT(isprint(marker_name[0]) && isprint(marker_name[1])); | 1662 ASSERT(isprint(marker_name[0]) && isprint(marker_name[1])); |
1664 | 1663 |
1665 InstructionAccurateScope scope(this, 1); | 1664 InstructionAccurateScope scope(this, 1); |
1666 movn(xzr, (marker_name[1] << 8) | marker_name[0]); | 1665 movn(xzr, (marker_name[1] << 8) | marker_name[0]); |
1667 } | 1666 } |
1668 | 1667 |
1669 } } // namespace v8::internal | 1668 } } // namespace v8::internal |
1670 | 1669 |
1671 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ | 1670 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ |
OLD | NEW |