Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
8namespace dart {
9
10// Alignment strategies for how to align values.
12 // Align to the size of the value.
14 // Align to the size of the value, but align 8 byte-sized values to 4 bytes.
15 // Both double and int64.
17 // Align to the architecture size.
19 // Align to the greater of architecture size or value size.
21};
22
23// Minimum size strategies for how to store values.
25 // Values can have arbitrary small size with the upper bits undefined.
27 // Values smaller than 4 bytes are passed around zero- or sign-extended to
28 // 4 bytes.
30 // Values smaller than 8 bytes are passed around zero- or sign-extended to
31 // 8 bytes.
33};
34
35} // namespace dart
36
37#endif // RUNTIME_VM_CONSTANTS_BASE_H_
ExtensionStrategy
@ kExtendedTo4
@ kNotExtended
@ kExtendedTo8
AlignmentStrategy
@ kAlignedToWordSizeAndValueSize
@ kAlignedToValueSizeBut8AlignedTo4
@ kAlignedToValueSize
@ kAlignedToWordSize