| 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_ASSEMBLER_ARM64_INL_H_ | 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| 6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| 7 | 7 |
| 8 #include "src/arm64/assembler-arm64.h" | 8 #include "src/arm64/assembler-arm64.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 USE(rt2); | 955 USE(rt2); |
| 956 if (rt.IsRegister()) { | 956 if (rt.IsRegister()) { |
| 957 return rt.Is64Bits() ? STP_x : STP_w; | 957 return rt.Is64Bits() ? STP_x : STP_w; |
| 958 } else { | 958 } else { |
| 959 DCHECK(rt.IsFPRegister()); | 959 DCHECK(rt.IsFPRegister()); |
| 960 return rt.Is64Bits() ? STP_d : STP_s; | 960 return rt.Is64Bits() ? STP_d : STP_s; |
| 961 } | 961 } |
| 962 } | 962 } |
| 963 | 963 |
| 964 | 964 |
| 965 LoadStorePairNonTemporalOp Assembler::LoadPairNonTemporalOpFor( | |
| 966 const CPURegister& rt, const CPURegister& rt2) { | |
| 967 DCHECK(AreSameSizeAndType(rt, rt2)); | |
| 968 USE(rt2); | |
| 969 if (rt.IsRegister()) { | |
| 970 return rt.Is64Bits() ? LDNP_x : LDNP_w; | |
| 971 } else { | |
| 972 DCHECK(rt.IsFPRegister()); | |
| 973 return rt.Is64Bits() ? LDNP_d : LDNP_s; | |
| 974 } | |
| 975 } | |
| 976 | |
| 977 | |
| 978 LoadStorePairNonTemporalOp Assembler::StorePairNonTemporalOpFor( | |
| 979 const CPURegister& rt, const CPURegister& rt2) { | |
| 980 DCHECK(AreSameSizeAndType(rt, rt2)); | |
| 981 USE(rt2); | |
| 982 if (rt.IsRegister()) { | |
| 983 return rt.Is64Bits() ? STNP_x : STNP_w; | |
| 984 } else { | |
| 985 DCHECK(rt.IsFPRegister()); | |
| 986 return rt.Is64Bits() ? STNP_d : STNP_s; | |
| 987 } | |
| 988 } | |
| 989 | |
| 990 | |
| 991 LoadLiteralOp Assembler::LoadLiteralOpFor(const CPURegister& rt) { | 965 LoadLiteralOp Assembler::LoadLiteralOpFor(const CPURegister& rt) { |
| 992 if (rt.IsRegister()) { | 966 if (rt.IsRegister()) { |
| 993 return rt.Is64Bits() ? LDR_x_lit : LDR_w_lit; | 967 return rt.Is64Bits() ? LDR_x_lit : LDR_w_lit; |
| 994 } else { | 968 } else { |
| 995 DCHECK(rt.IsFPRegister()); | 969 DCHECK(rt.IsFPRegister()); |
| 996 return rt.Is64Bits() ? LDR_d_lit : LDR_s_lit; | 970 return rt.Is64Bits() ? LDR_d_lit : LDR_s_lit; |
| 997 } | 971 } |
| 998 } | 972 } |
| 999 | 973 |
| 1000 | 974 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 | 1255 |
| 1282 | 1256 |
| 1283 void Assembler::ClearRecordedAstId() { | 1257 void Assembler::ClearRecordedAstId() { |
| 1284 recorded_ast_id_ = TypeFeedbackId::None(); | 1258 recorded_ast_id_ = TypeFeedbackId::None(); |
| 1285 } | 1259 } |
| 1286 | 1260 |
| 1287 | 1261 |
| 1288 } } // namespace v8::internal | 1262 } } // namespace v8::internal |
| 1289 | 1263 |
| 1290 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1264 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| OLD | NEW |