Flutter Engine
The Flutter Engine
recognized_method.h
Go to the documentation of this file.
1// Copyright (c) 2020, 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_FFI_RECOGNIZED_METHOD_H_
6#define RUNTIME_VM_COMPILER_FFI_RECOGNIZED_METHOD_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/globals.h>
13
16
17namespace dart {
18
19namespace compiler {
20
21namespace ffi {
22
23// TypedData class id for a NativeType type, except for Void and NativeFunction.
25
26// ExternalTypedData class id for a NativeType type, except for Void,
27// NativeFunction, IntPtr and Pointer.
29
30// Returns the kFFi<type>Cid for the recognized load/store method [kind].
32
34
35MethodRecognizer::Kind FfiLoad(const NativeType& native_type);
36MethodRecognizer::Kind FfiStore(const NativeType& native_type);
37
38} // namespace ffi
39
40} // namespace compiler
41
42} // namespace dart
43
44#endif // RUNTIME_VM_COMPILER_FFI_RECOGNIZED_METHOD_H_
MethodRecognizer::Kind FfiStore(const NativeType &native_type)
AlignmentType RecognizedMethodAlignment(MethodRecognizer::Kind kind)
classid_t RecognizedMethodTypeArgCid(MethodRecognizer::Kind kind)
MethodRecognizer::Kind FfiLoad(const NativeType &native_type)
classid_t ElementExternalTypedDataCid(classid_t class_id)
classid_t ElementTypedDataCid(classid_t class_id)
Definition: dart_vm.cc:33
int32_t classid_t
Definition: globals.h:524
AlignmentType
Definition: il.h:6764