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" |
11 #include "src/objects-inl.h" | 11 #include "src/objects-inl.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 | 16 |
17 bool CpuFeatures::SupportsCrankshaft() { return true; } | 17 bool CpuFeatures::SupportsCrankshaft() { return true; } |
18 | 18 |
19 bool CpuFeatures::SupportsSimd128() { return false; } | 19 bool CpuFeatures::SupportsWasmSimd128() { return false; } |
20 | 20 |
21 void RelocInfo::apply(intptr_t delta) { | 21 void RelocInfo::apply(intptr_t delta) { |
22 // On arm64 only internal references need extra work. | 22 // On arm64 only internal references need extra work. |
23 DCHECK(RelocInfo::IsInternalReference(rmode_)); | 23 DCHECK(RelocInfo::IsInternalReference(rmode_)); |
24 | 24 |
25 // Absolute code pointer inside code object moves with the code object. | 25 // Absolute code pointer inside code object moves with the code object. |
26 intptr_t* p = reinterpret_cast<intptr_t*>(pc_); | 26 intptr_t* p = reinterpret_cast<intptr_t*>(pc_); |
27 *p += delta; // Relocate entry. | 27 *p += delta; // Relocate entry. |
28 } | 28 } |
29 | 29 |
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 | 1218 |
1219 void Assembler::ClearRecordedAstId() { | 1219 void Assembler::ClearRecordedAstId() { |
1220 recorded_ast_id_ = TypeFeedbackId::None(); | 1220 recorded_ast_id_ = TypeFeedbackId::None(); |
1221 } | 1221 } |
1222 | 1222 |
1223 | 1223 |
1224 } // namespace internal | 1224 } // namespace internal |
1225 } // namespace v8 | 1225 } // namespace v8 |
1226 | 1226 |
1227 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1227 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
OLD | NEW |