You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take 3 for '[vm/ffi] Implement FFI callbacks on AOT for ELF and Asm snapshots (excl. blobs).'
Fixes the changes to assembly snapshot writer in SIMARM_X64 mode. This unfortunately can't be tested until the ELF loader is available.
Take 2 is in patchset 1.
Change-Id: Ib8b067dd4f09dcba3b142705e9cb4dfbf4e3eb53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117726
Commit-Queue: Samir Jindel <[email protected]>
Reviewed-by: Martin Kustermann <[email protected]>
r"""Field '#name' requires exactly one annotation to declare its C++ type, which cannot be Void. dart:ffi Structs cannot have regular Dart fields.""",
3862
+
r"""Field '#name' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs cannot have regular Dart fields.""",
3788
3863
withArguments: _withArgumentsFfiFieldAnnotation);
3789
3864
3790
3865
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
"""Field '${name}' requires exactly one annotation to declare its C++ type, which cannot be Void. dart:ffi Structs cannot have regular Dart fields.""",
3878
+
"""Field '${name}' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs cannot have regular Dart fields.""",
r"""Field '#name' requires no annotation to declare its C++ type, it is a Pointer which is represented by the same type in Dart and C++.""",
3914
+
r"""Field '#name' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code.""",
"""Field '${name}' requires no annotation to declare its C++ type, it is a Pointer which is represented by the same type in Dart and C++.""",
3930
+
"""Field '${name}' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code.""",
Copy file name to clipboardExpand all lines: pkg/front_end/messages.yaml
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3493,17 +3493,17 @@ FfiTypeUnsized:
3493
3493
3494
3494
FfiFieldAnnotation:
3495
3495
# Used by dart:ffi
3496
-
template: "Field '#name' requires exactly one annotation to declare its C++ type, which cannot be Void. dart:ffi Structs cannot have regular Dart fields."
3496
+
template: "Field '#name' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs cannot have regular Dart fields."
3497
3497
external: test/ffi_test.dart
3498
3498
3499
3499
FfiFieldNoAnnotation:
3500
3500
# Used by dart:ffi
3501
-
template: "Field '#name' requires no annotation to declare its C++ type, it is a Pointer which is represented by the same type in Dart and C++."
3501
+
template: "Field '#name' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code."
3502
3502
external: test/ffi_test.dart
3503
3503
3504
3504
FfiNotStatic:
3505
3505
# Used by dart:ffi
3506
-
template: "#name expects a static function as parameter. dart:ffi only supports calling static Dart functions from c."
3506
+
template: "#name expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code."
3507
3507
external: test/ffi_test.dart
3508
3508
3509
3509
FfiFieldInitializer:
@@ -3531,6 +3531,26 @@ FfiDartTypeMismatch:
3531
3531
template: "Expected '#type' to be a subtype of '#type2'."
3532
3532
external: test/ffi_test.dart
3533
3533
3534
+
FfiExpectedExceptionalReturn:
3535
+
# Used by dart:ffi
3536
+
template: "Expected an exceptional return value for a native callback returning '#type'."
3537
+
external: test/ffi_test.dart
3538
+
3539
+
FfiExpectedNoExceptionalReturn:
3540
+
# Used by dart:ffi
3541
+
template: "Exceptional return value cannot be provided for a native callback returning '#type'."
3542
+
external: test/ffi_test.dart
3543
+
3544
+
FfiExpectedConstant:
3545
+
# Used by dart:ffi
3546
+
template: "Exceptional return value must be a constant."
3547
+
external: test/ffi_test.dart
3548
+
3549
+
FfiExceptionalReturnNull:
3550
+
# Used by dart:ffi
3551
+
template: "Exceptional return value must not be null."
3552
+
external: test/ffi_test.dart
3553
+
3534
3554
SpreadTypeMismatch:
3535
3555
template: "Unexpected type '#type' of a spread. Expected 'dynamic' or an Iterable."
0 commit comments