| 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 16 matching lines...) Expand all Loading... |
| 27 // There are no optional features for ARM64. | 27 // There are no optional features for ARM64. |
| 28 return false; | 28 return false; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { | 31 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { |
| 32 ASSERT(initialized_); | 32 ASSERT(initialized_); |
| 33 // There are no optional features for ARM64. | 33 // There are no optional features for ARM64. |
| 34 return false; | 34 return false; |
| 35 } | 35 } |
| 36 | 36 |
| 37 static bool IsSafeForSnapshot(CpuFeature f) { | 37 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
| 38 return (IsSupported(f) && | 38 return (IsSupported(f) && |
| 39 (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); | 39 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); |
| 40 } | 40 } |
| 41 | 41 |
| 42 // I and D cache line size in bytes. | 42 // I and D cache line size in bytes. |
| 43 static unsigned dcache_line_size(); | 43 static unsigned dcache_line_size(); |
| 44 static unsigned icache_line_size(); | 44 static unsigned icache_line_size(); |
| 45 | 45 |
| 46 static unsigned supported_; | 46 static unsigned supported_; |
| 47 | 47 |
| 48 static bool VerifyCrossCompiling() { | 48 static bool VerifyCrossCompiling() { |
| 49 // There are no optional features for ARM64. | 49 // There are no optional features for ARM64. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 77 | 77 |
| 78 static unsigned cross_compile_; | 78 static unsigned cross_compile_; |
| 79 | 79 |
| 80 friend class PlatformFeatureScope; | 80 friend class PlatformFeatureScope; |
| 81 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 81 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } } // namespace v8::internal | 84 } } // namespace v8::internal |
| 85 | 85 |
| 86 #endif // V8_ARM64_CPU_ARM64_H_ | 86 #endif // V8_ARM64_CPU_ARM64_H_ |
| OLD | NEW |