| 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 | 11 |
| 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 | 20 |
| 20 void RelocInfo::apply(intptr_t delta) { | 21 void RelocInfo::apply(intptr_t delta) { |
| 21 // On arm64 only internal references need extra work. | 22 // On arm64 only internal references need extra work. |
| 22 DCHECK(RelocInfo::IsInternalReference(rmode_)); | 23 DCHECK(RelocInfo::IsInternalReference(rmode_)); |
| 23 | 24 |
| 24 // Absolute code pointer inside code object moves with the code object. | 25 // Absolute code pointer inside code object moves with the code object. |
| 25 intptr_t* p = reinterpret_cast<intptr_t*>(pc_); | 26 intptr_t* p = reinterpret_cast<intptr_t*>(pc_); |
| 26 *p += delta; // Relocate entry. | 27 *p += delta; // Relocate entry. |
| 27 } | 28 } |
| 28 | 29 |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 | 1238 |
| 1238 void Assembler::ClearRecordedAstId() { | 1239 void Assembler::ClearRecordedAstId() { |
| 1239 recorded_ast_id_ = TypeFeedbackId::None(); | 1240 recorded_ast_id_ = TypeFeedbackId::None(); |
| 1240 } | 1241 } |
| 1241 | 1242 |
| 1242 | 1243 |
| 1243 } // namespace internal | 1244 } // namespace internal |
| 1244 } // namespace v8 | 1245 } // namespace v8 |
| 1245 | 1246 |
| 1246 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1247 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| OLD | NEW |