Flutter Engine
The Flutter Engine
kernel_fingerprints.h
Go to the documentation of this file.
1// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_VM_COMPILER_FRONTEND_KERNEL_FINGERPRINTS_H_
6#define RUNTIME_VM_COMPILER_FRONTEND_KERNEL_FINGERPRINTS_H_
7
8#if defined(DART_PRECOMPILED_RUNTIME)
9#error "AOT runtime should not use compiler sources (including header files)"
10#endif // defined(DART_PRECOMPILED_RUNTIME)
11
12#include "platform/allocation.h"
13#include "vm/object.h"
14
15namespace dart {
16namespace kernel {
17
19 public:
20 static uint32_t CalculateClassFingerprint(const Class& klass);
21 static uint32_t CalculateFieldFingerprint(const Field& field);
22 static uint32_t CalculateFunctionFingerprint(const Function& func);
23};
24
25} // namespace kernel
26} // namespace dart
27
28#endif // RUNTIME_VM_COMPILER_FRONTEND_KERNEL_FINGERPRINTS_H_
static uint32_t CalculateFunctionFingerprint(const Function &func)
static uint32_t CalculateFieldFingerprint(const Field &field)
static uint32_t CalculateClassFingerprint(const Class &klass)
Definition: dart_vm.cc:33