blob: a28a0e62f063c9ff9ef32392792e7f91b0079f18 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
import "dart:ffi" as ffi;
import "dart:typed_data" as typ;
import "dart:_internal" as _in;
import "dart:ffi";
part ffi_external_in_part_lib.dart;
@#C6
final class Struct1ByteInt extends ffi::Struct {
synthetic constructor •() self::Struct1ByteInt
: super ffi::Struct::•()
;
constructor #fromTypedDataBase(synthesized core::Object #typedDataBase, synthesized core::int #offsetInBytes) → self::Struct1ByteInt
: super ffi::Struct::_fromTypedDataBase(#typedDataBase, #offsetInBytes)
;
constructor #fromTypedData(synthesized typ::TypedData #typedData, synthesized core::int #offset, synthesized core::int #sizeInBytes) → self::Struct1ByteInt
: super ffi::Struct::_fromTypedData(#typedData, #offset, #sizeInBytes)
;
@#C7
get a0() core::int
return ffi::_loadInt8(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Struct1ByteInt::a0#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num});
@#C7
set a0(synthesized core::int #externalFieldValue) → void
return ffi::_storeInt8(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Struct1ByteInt::a0#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}, #externalFieldValue);
@#C9
static get a0#offsetOf() → core::int
return #C11.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
@#C9
static get #sizeOf() → core::int
return #C13.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
}
static method notMain() void {
core::print(self::returnStruct1ByteIntNative(1.{core::int::unary-}(){() core::int}));
}
@#C19
@#C9
static method /* from org-dartlang-testcase:///ffi_external_in_part_lib.dart */ returnStruct1ByteIntNative(core::int a0) self::Struct1ByteInt
return block {
_in::_nativeEffect(new self::Struct1ByteInt::#fromTypedDataBase(typ::Uint8List::•(#C12), #C10));
} =>self::_returnStruct1ByteIntNative$Method$FfiNative(a0);
@#C21
external static method /* from org-dartlang-testcase:///ffi_external_in_part_lib.dart */ _returnStruct1ByteIntNative$Method$FfiNative(core::int #t0) → self::Struct1ByteInt;
constants {
#C1 = "vm:ffi:struct-fields"
#C2 = TypeLiteralConstant(ffi::Int8)
#C3 = <core::Type>[#C2]
#C4 = null
#C5 = ffi::_FfiStructLayout {fieldTypes:#C3, packing:#C4}
#C6 = core::pragma {name:#C1, options:#C5}
#C7 = ffi::Int8 {}
#C8 = "vm:prefer-inline"
#C9 = core::pragma {name:#C8, options:#C4}
#C10 = 0
#C11 = <core::int>[#C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10]
#C12 = 1
#C13 = <core::int>[#C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12]
#C14 = "cfe:ffi:native-marker"
#C15 = "ReturnStruct1ByteInt"
#C16 = "org-dartlang-testcase:///ffi_external_in_part_file.dart"
#C17 = false
#C18 = ffi::Native<(ffi::Int8*) →* self::Struct1ByteInt*> {symbol:#C15, assetId:#C16, isLeaf:#C17}
#C19 = core::pragma {name:#C14, options:#C18}
#C20 = "vm:ffi:native"
#C21 = core::pragma {name:#C20, options:#C18}
}
Extra constant evaluation status:
Evaluated: InstanceInvocation @ org-dartlang-testcase:///ffi_external_in_part_file.dart:11:36 -> IntConstant(-1)
Extra constant evaluation: evaluated: 33, effectively constant: 1
Constructor coverage from constants:
org-dartlang-testcase:///ffi_external_in_part_file.dart:
- Int8. (from org-dartlang-sdk:///sdk/lib/ffi/native_type.dart)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)