| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // There are no optional features for ARM64. | 50 // There are no optional features for ARM64. |
| 51 return false; | 51 return false; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { | 54 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { |
| 55 ASSERT(initialized_); | 55 ASSERT(initialized_); |
| 56 // There are no optional features for ARM64. | 56 // There are no optional features for ARM64. |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 static bool IsSafeForSnapshot(CpuFeature f) { | 60 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
| 61 return (IsSupported(f) && | 61 return (IsSupported(f) && |
| 62 (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); | 62 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); |
| 63 } | 63 } |
| 64 | 64 |
| 65 // I and D cache line size in bytes. | 65 // I and D cache line size in bytes. |
| 66 static unsigned dcache_line_size(); | 66 static unsigned dcache_line_size(); |
| 67 static unsigned icache_line_size(); | 67 static unsigned icache_line_size(); |
| 68 | 68 |
| 69 static unsigned supported_; | 69 static unsigned supported_; |
| 70 | 70 |
| 71 static bool VerifyCrossCompiling() { | 71 static bool VerifyCrossCompiling() { |
| 72 // There are no optional features for ARM64. | 72 // There are no optional features for ARM64. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 100 | 100 |
| 101 static unsigned cross_compile_; | 101 static unsigned cross_compile_; |
| 102 | 102 |
| 103 friend class PlatformFeatureScope; | 103 friend class PlatformFeatureScope; |
| 104 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); | 104 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } } // namespace v8::internal | 107 } } // namespace v8::internal |
| 108 | 108 |
| 109 #endif // V8_ARM64_CPU_ARM64_H_ | 109 #endif // V8_ARM64_CPU_ARM64_H_ |
| OLD | NEW |