Index: src/x64/assembler-x64.h |
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h |
index 86ae057abbe2a562c9ed894a2f244d4d6ea7bc57..03e742d2fc976109c59c480e0dc7d70f3f44ae26 100644 |
--- a/src/x64/assembler-x64.h |
+++ b/src/x64/assembler-x64.h |
@@ -474,6 +474,11 @@ class CpuFeatures : public AllStatic { |
(static_cast<uint64_t>(1) << f)) != 0; |
} |
+ static bool IsSafeForSnapshot(CpuFeature f) { |
+ return (IsSupported(f) && |
+ (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); |
+ } |
+ |
private: |
// Safe defaults include SSE2 and CMOV for X64. It is always available, if |
// anyone checks, but they shouldn't need to check. |