Files
sdk/runtime/vm/compiler/ffi
Alexander Markov 84fd647969 [vm] Refactor access to Integer value
Add methods to provide uniform access to values of Dart integers:

  Integer::Value()
  Integer::Value(IntegerPtr)

  Smi::Value()
  Smi::Value(SmiPtr)

  Mint::Value()
  Mint::Value(MintPtr)

Remove

  AsInt64Value()
  AsTruncatedInt64Value()
  AsTruncatedUint32Value()
  GetInt64Value(IntegerPtr)

Also, rename AsDoubleValue() to ToDouble() and
remove unused (FitsIntoSmi, AsValidInteger) and
value-based methods (IsZero, IsNegative).

TEST=ci

Change-Id: I28786ec3a14703574b7a192ead42eeefdbd09106
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380586
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2024-08-19 21:46:26 +00:00
..

The files in this folder have the following dependencies. Arrow means depends on, invert arrows for includes.

                           Call & CallbackMarshaller
                                       ↓
                           NativeCallingConvention
                             ↓         ↓                (Interop with backend)
                             ↓    NativeLocation     →  Location
(Interop with frontend)      ↓         ↓
AbstractType             ←  NativeType     →  Representation
ClassId                  ←

The other files stand on themselves.