Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
vm
constants_base.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_CONSTANTS_BASE_H_
6
#define RUNTIME_VM_CONSTANTS_BASE_H_
7
8
namespace
dart
{
9
10
// Alignment strategies for how to align values.
11
enum
AlignmentStrategy
{
12
// Align to the size of the value.
13
kAlignedToValueSize
,
14
// Align to the size of the value, but align 8 byte-sized values to 4 bytes.
15
// Both double and int64.
16
kAlignedToValueSizeBut8AlignedTo4
,
17
// Align to the architecture size.
18
kAlignedToWordSize
,
19
// Align to the greater of architecture size or value size.
20
kAlignedToWordSizeAndValueSize
,
21
};
22
23
// Minimum size strategies for how to store values.
24
enum
ExtensionStrategy
{
25
// Values can have arbitrary small size with the upper bits undefined.
26
kNotExtended
,
27
// Values smaller than 4 bytes are passed around zero- or sign-extended to
28
// 4 bytes.
29
kExtendedTo4
,
30
// Values smaller than 8 bytes are passed around zero- or sign-extended to
31
// 8 bytes.
32
kExtendedTo8
,
33
};
34
35
}
// namespace dart
36
37
#endif
// RUNTIME_VM_CONSTANTS_BASE_H_
dart
Definition:
dart_vm.cc:33
dart::ExtensionStrategy
ExtensionStrategy
Definition:
constants_base.h:24
dart::kExtendedTo4
@ kExtendedTo4
Definition:
constants_base.h:29
dart::kNotExtended
@ kNotExtended
Definition:
constants_base.h:26
dart::kExtendedTo8
@ kExtendedTo8
Definition:
constants_base.h:32
dart::AlignmentStrategy
AlignmentStrategy
Definition:
constants_base.h:11
dart::kAlignedToWordSizeAndValueSize
@ kAlignedToWordSizeAndValueSize
Definition:
constants_base.h:20
dart::kAlignedToValueSizeBut8AlignedTo4
@ kAlignedToValueSizeBut8AlignedTo4
Definition:
constants_base.h:16
dart::kAlignedToValueSize
@ kAlignedToValueSize
Definition:
constants_base.h:13
dart::kAlignedToWordSize
@ kAlignedToWordSize
Definition:
constants_base.h:18
Generated on Sun Jun 23 2024 21:55:39 for Flutter Engine by
1.9.4