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_CPU_ARM64_H_ | 5 #ifndef V8_ARM64_CPU_ARM64_H_ |
6 #define V8_ARM64_CPU_ARM64_H_ | 6 #define V8_ARM64_CPU_ARM64_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include "serialize.h" | 9 #include "serialize.h" |
10 #include "cpu.h" | 10 #include "cpu.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 static bool VerifyCrossCompiling(CpuFeature f) { | 54 static bool VerifyCrossCompiling(CpuFeature f) { |
55 // There are no optional features for ARM64. | 55 // There are no optional features for ARM64. |
56 USE(f); | 56 USE(f); |
57 ASSERT(cross_compile_ == 0); | 57 ASSERT(cross_compile_ == 0); |
58 return true; | 58 return true; |
59 } | 59 } |
60 | 60 |
61 static bool SupportsCrankshaft() { return true; } | 61 static bool SupportsCrankshaft() { return true; } |
62 | 62 |
63 private: | 63 private: |
64 // Return the content of the cache type register. | |
65 static uint32_t GetCacheType(); | |
66 | |
67 // I and D cache line size in bytes. | |
68 static unsigned icache_line_size_; | |
69 static unsigned dcache_line_size_; | |
70 | |
71 #ifdef DEBUG | 64 #ifdef DEBUG |
72 static bool initialized_; | 65 static bool initialized_; |
73 #endif | 66 #endif |
74 | 67 |
75 // This isn't used (and is always 0), but it is required by V8. | 68 // This isn't used (and is always 0), but it is required by V8. |
76 static unsigned found_by_runtime_probing_only_; | |
77 | |
78 static unsigned cross_compile_; | 69 static unsigned cross_compile_; |
79 | 70 |
80 friend class PlatformFeatureScope; | 71 friend class PlatformFeatureScope; |
81 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 72 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
82 }; | 73 }; |
83 | 74 |
84 } } // namespace v8::internal | 75 } } // namespace v8::internal |
85 | 76 |
86 #endif // V8_ARM64_CPU_ARM64_H_ | 77 #endif // V8_ARM64_CPU_ARM64_H_ |
OLD | NEW |