未验证 提交 8dabd60a 编写于 作者: C Chinmay Garde 提交者: GitHub

Remove unused DartVM::IsKernelMapping (#8381)

上级 63b9d257
......@@ -183,26 +183,6 @@ bool DartVM::IsRunningPrecompiledCode() {
return Dart_IsPrecompiledRuntime();
}
bool DartVM::IsKernelMapping(const fml::FileMapping* mapping) {
if (mapping == nullptr) {
return false;
}
const uint8_t kKernelHeaderMagic[] = {0x90, 0xAB, 0xCD, 0xEF};
const size_t kKernelHeaderMagicSize = sizeof(kKernelHeaderMagic);
if (mapping->GetSize() < kKernelHeaderMagicSize) {
return false;
}
if (memcmp(kKernelHeaderMagic, mapping->GetMapping(),
kKernelHeaderMagicSize) != 0) {
return false;
}
return true;
}
static std::vector<const char*> ProfilingFlags(bool enable_profiling) {
// Disable Dart's built in profiler when building a debug build. This
// works around a race condition that would sometimes stop a crash's
......
......@@ -38,8 +38,6 @@ class DartVM : public fml::RefCountedThreadSafe<DartVM> {
static bool IsRunningPrecompiledCode();
static bool IsKernelMapping(const fml::FileMapping* mapping);
const Settings& GetSettings() const;
const DartSnapshot& GetVMSnapshot() const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册