Inlined IsFoundByRuntimeProbingOnly.

It is only used internally at a single place.

R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/265243004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21137 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c165fbd2
......@@ -70,15 +70,11 @@ class CpuFeatures : public AllStatic {
return Check(f, supported_);
}
static bool IsFoundByRuntimeProbingOnly(CpuFeature f) {
ASSERT(initialized_);
return Check(f, found_by_runtime_probing_only_);
}
static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
return Check(f, cross_compile_) ||
(IsSupported(f) &&
(!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
!(Serializer::enabled(isolate) &&
Check(f, found_by_runtime_probing_only_)));
}
static unsigned cache_line_size() { return cache_line_size_; }
......
......@@ -28,15 +28,9 @@ class CpuFeatures : public AllStatic {
return false;
};
static bool IsFoundByRuntimeProbingOnly(CpuFeature f) {
ASSERT(initialized_);
// There are no optional features for ARM64.
return false;
}
// There are no optional features for ARM64.
static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
return (IsSupported(f) &&
(!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
return IsSupported(f);
}
// I and D cache line size in bytes.
......
......@@ -543,15 +543,11 @@ class CpuFeatures : public AllStatic {
return Check(f, supported_);
}
static bool IsFoundByRuntimeProbingOnly(CpuFeature f) {
ASSERT(initialized_);
return Check(f, found_by_runtime_probing_only_);
}
static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
return Check(f, cross_compile_) ||
(IsSupported(f) &&
(!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
!(Serializer::enabled(isolate) &&
Check(f, found_by_runtime_probing_only_)));
}
static bool VerifyCrossCompiling() {
......
......@@ -436,15 +436,11 @@ class CpuFeatures : public AllStatic {
return Check(f, supported_);
}
static bool IsFoundByRuntimeProbingOnly(CpuFeature f) {
ASSERT(initialized_);
return Check(f, found_by_runtime_probing_only_);
}
static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
return Check(f, cross_compile_) ||
(IsSupported(f) &&
(!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
!(Serializer::enabled(isolate) &&
Check(f, found_by_runtime_probing_only_)));
}
static bool VerifyCrossCompiling() {
......
......@@ -463,15 +463,11 @@ class CpuFeatures : public AllStatic {
return Check(f, supported_);
}
static bool IsFoundByRuntimeProbingOnly(CpuFeature f) {
ASSERT(initialized_);
return Check(f, found_by_runtime_probing_only_);
}
static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
return Check(f, cross_compile_) ||
(IsSupported(f) &&
(!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f)));
!(Serializer::enabled(isolate) &&
Check(f, found_by_runtime_probing_only_)));
}
static bool VerifyCrossCompiling() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment