From d2e460675b469d56ac5727fa599a1f7bbf2ffae4 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Thu, 17 Jun 2021 16:05:02 +0000 Subject: [PATCH] [vm] Fix gcc build. TEST=local build Change-Id: I572aba5798a07ce5cb0cbda83d6eb3e44811ba5b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/203287 Commit-Queue: Ryan Macnak Reviewed-by: Siva Annamalai --- .../ffi_test/ffi_test_functions_generated.cc | 906 +++++++++--------- runtime/vm/compiler/backend/il.h | 3 - runtime/vm/compiler/backend/inliner.cc | 2 +- runtime/vm/compiler/backend/linearscan.cc | 2 +- runtime/vm/compiler/backend/locations.h | 4 +- .../backend/redundancy_elimination.cc | 2 +- runtime/vm/compiler/ffi/range.h | 10 +- .../frontend/kernel_translation_helper.cc | 4 +- runtime/vm/compiler/relocation_test.cc | 4 +- runtime/vm/heap/safepoint.cc | 54 +- runtime/vm/heap/safepoint.h | 6 +- runtime/vm/object.cc | 6 +- runtime/vm/object.h | 2 +- runtime/vm/service.cc | 2 +- runtime/vm/stack_frame.h | 15 +- runtime/vm/thread.h | 4 +- runtime/vm/type_testing_stubs.cc | 2 +- runtime/vm/v8_snapshot_writer.cc | 2 + runtime/vm/v8_snapshot_writer.h | 10 +- .../structs_by_value_tests_generator.dart | 5 +- 20 files changed, 519 insertions(+), 526 deletions(-) diff --git a/runtime/bin/ffi_test/ffi_test_functions_generated.cc b/runtime/bin/ffi_test/ffi_test_functions_generated.cc index 1e882494432..246c3292ead 100644 --- a/runtime/bin/ffi_test/ffi_test_functions_generated.cc +++ b/runtime/bin/ffi_test/ffi_test_functions_generated.cc @@ -4751,7 +4751,7 @@ DART_EXPORT Struct1ByteInt ReturnStruct1ByteInt(int8_t a0) { << "(" << static_cast(a0) << ")" << "\n"; - Struct1ByteInt result; + Struct1ByteInt result = {}; result.a0 = a0; @@ -4771,7 +4771,7 @@ ReturnStruct3BytesHomogeneousUint8(uint8_t a0, uint8_t a1, uint8_t a2) { << ", " << static_cast(a2) << ")" << "\n"; - Struct3BytesHomogeneousUint8 result; + Struct3BytesHomogeneousUint8 result = {}; result.a0 = a0; result.a1 = a1; @@ -4795,7 +4795,7 @@ ReturnStruct3BytesInt2ByteAligned(int16_t a0, int8_t a1) { << "(" << a0 << ", " << static_cast(a1) << ")" << "\n"; - Struct3BytesInt2ByteAligned result; + Struct3BytesInt2ByteAligned result = {}; result.a0 = a0; result.a1 = a1; @@ -4815,7 +4815,7 @@ ReturnStruct4BytesHomogeneousInt16(int16_t a0, int16_t a1) { << "(" << a0 << ", " << a1 << ")" << "\n"; - Struct4BytesHomogeneousInt16 result; + Struct4BytesHomogeneousInt16 result = {}; result.a0 = a0; result.a1 = a1; @@ -4844,7 +4844,7 @@ ReturnStruct7BytesHomogeneousUint8(uint8_t a0, << ", " << static_cast(a6) << ")" << "\n"; - Struct7BytesHomogeneousUint8 result; + Struct7BytesHomogeneousUint8 result = {}; result.a0 = a0; result.a1 = a1; @@ -4876,7 +4876,7 @@ ReturnStruct7BytesInt4ByteAligned(int32_t a0, int16_t a1, int8_t a2) { << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" << "\n"; - Struct7BytesInt4ByteAligned result; + Struct7BytesInt4ByteAligned result = {}; result.a0 = a0; result.a1 = a1; @@ -4899,7 +4899,7 @@ DART_EXPORT Struct8BytesInt ReturnStruct8BytesInt(int16_t a0, << "(" << a0 << ", " << a1 << ", " << a2 << ")" << "\n"; - Struct8BytesInt result; + Struct8BytesInt result = {}; result.a0 = a0; result.a1 = a1; @@ -4920,7 +4920,7 @@ ReturnStruct8BytesHomogeneousFloat(float a0, float a1) { << "(" << a0 << ", " << a1 << ")" << "\n"; - Struct8BytesHomogeneousFloat result; + Struct8BytesHomogeneousFloat result = {}; result.a0 = a0; result.a1 = a1; @@ -4941,7 +4941,7 @@ DART_EXPORT Struct8BytesMixed ReturnStruct8BytesMixed(float a0, << "(" << a0 << ", " << a1 << ", " << a2 << ")" << "\n"; - Struct8BytesMixed result; + Struct8BytesMixed result = {}; result.a0 = a0; result.a1 = a1; @@ -4976,7 +4976,7 @@ ReturnStruct9BytesHomogeneousUint8(uint8_t a0, << ", " << static_cast(a8) << ")" << "\n"; - Struct9BytesHomogeneousUint8 result; + Struct9BytesHomogeneousUint8 result = {}; result.a0 = a0; result.a1 = a1; @@ -5012,7 +5012,7 @@ ReturnStruct9BytesInt4Or8ByteAligned(int64_t a0, int8_t a1) { << "(" << a0 << ", " << static_cast(a1) << ")" << "\n"; - Struct9BytesInt4Or8ByteAligned result; + Struct9BytesInt4Or8ByteAligned result = {}; result.a0 = a0; result.a1 = a1; @@ -5033,7 +5033,7 @@ ReturnStruct12BytesHomogeneousFloat(float a0, float a1, float a2) { << "(" << a0 << ", " << a1 << ", " << a2 << ")" << "\n"; - Struct12BytesHomogeneousFloat result; + Struct12BytesHomogeneousFloat result = {}; result.a0 = a0; result.a1 = a1; @@ -5054,7 +5054,7 @@ ReturnStruct16BytesHomogeneousFloat(float a0, float a1, float a2, float a3) { << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" << "\n"; - Struct16BytesHomogeneousFloat result; + Struct16BytesHomogeneousFloat result = {}; result.a0 = a0; result.a1 = a1; @@ -5076,7 +5076,7 @@ DART_EXPORT Struct16BytesMixed ReturnStruct16BytesMixed(double a0, int64_t a1) { << "(" << a0 << ", " << a1 << ")" << "\n"; - Struct16BytesMixed result; + Struct16BytesMixed result = {}; result.a0 = a0; result.a1 = a1; @@ -5099,7 +5099,7 @@ DART_EXPORT Struct16BytesMixed2 ReturnStruct16BytesMixed2(float a0, << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" << "\n"; - Struct16BytesMixed2 result; + Struct16BytesMixed2 result = {}; result.a0 = a0; result.a1 = a1; @@ -5125,7 +5125,7 @@ DART_EXPORT Struct17BytesInt ReturnStruct17BytesInt(int64_t a0, << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" << "\n"; - Struct17BytesInt result; + Struct17BytesInt result = {}; result.a0 = a0; result.a1 = a1; @@ -5176,7 +5176,7 @@ ReturnStruct19BytesHomogeneousUint8(uint8_t a0, << ", " << static_cast(a18) << ")" << "\n"; - Struct19BytesHomogeneousUint8 result; + Struct19BytesHomogeneousUint8 result = {}; result.a0 = a0; result.a1 = a1; @@ -5236,7 +5236,7 @@ ReturnStruct20BytesHomogeneousInt32(int32_t a0, << ")" << "\n"; - Struct20BytesHomogeneousInt32 result; + Struct20BytesHomogeneousInt32 result = {}; result.a0 = a0; result.a1 = a1; @@ -5265,7 +5265,7 @@ ReturnStruct20BytesHomogeneousFloat(float a0, << ")" << "\n"; - Struct20BytesHomogeneousFloat result; + Struct20BytesHomogeneousFloat result = {}; result.a0 = a0; result.a1 = a1; @@ -5292,7 +5292,7 @@ ReturnStruct32BytesHomogeneousDouble(double a0, << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" << "\n"; - Struct32BytesHomogeneousDouble result; + Struct32BytesHomogeneousDouble result = {}; result.a0 = a0; result.a1 = a1; @@ -5320,7 +5320,7 @@ ReturnStruct40BytesHomogeneousDouble(double a0, << ")" << "\n"; - Struct40BytesHomogeneousDouble result; + Struct40BytesHomogeneousDouble result = {}; result.a0 = a0; result.a1 = a1; @@ -5500,7 +5500,7 @@ ReturnStruct1024BytesHomogeneousUint64(uint64_t a0, << a127 << ")" << "\n"; - Struct1024BytesHomogeneousUint64 result; + Struct1024BytesHomogeneousUint64 result = {}; result.a0 = a0; result.a1 = a1; @@ -5688,7 +5688,7 @@ DART_EXPORT Struct3BytesPackedInt ReturnStruct3BytesPackedInt(int8_t a0, << "(" << static_cast(a0) << ", " << a1 << ")" << "\n"; - Struct3BytesPackedInt result; + Struct3BytesPackedInt result = {}; result.a0 = a0; result.a1 = a1; @@ -5713,7 +5713,7 @@ DART_EXPORT Struct8BytesPackedInt ReturnStruct8BytesPackedInt(uint8_t a0, << static_cast(a4) << ")" << "\n"; - Struct8BytesPackedInt result; + Struct8BytesPackedInt result = {}; result.a0 = a0; result.a1 = a1; @@ -5740,7 +5740,7 @@ DART_EXPORT Struct9BytesPackedMixed ReturnStruct9BytesPackedMixed(uint8_t a0, << "(" << static_cast(a0) << ", " << a1 << ")" << "\n"; - Struct9BytesPackedMixed result; + Struct9BytesPackedMixed result = {}; result.a0 = a0; result.a1 = a1; @@ -5759,7 +5759,7 @@ DART_EXPORT Union4BytesMixed ReturnUnion4BytesMixed(uint32_t a0) { << "(" << a0 << ")" << "\n"; - Union4BytesMixed result; + Union4BytesMixed result = {}; result.a0 = a0; @@ -5777,7 +5777,7 @@ DART_EXPORT Union8BytesNestedFloat ReturnUnion8BytesNestedFloat(double a0) { << "(" << a0 << ")" << "\n"; - Union8BytesNestedFloat result; + Union8BytesNestedFloat result = {}; result.a0 = a0; @@ -5797,7 +5797,7 @@ ReturnUnion9BytesNestedInt(Struct8BytesInt a0) { << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "))" << "\n"; - Union9BytesNestedInt result; + Union9BytesNestedInt result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -5827,7 +5827,7 @@ ReturnUnion16BytesNestedFloat(Struct8BytesHomogeneousFloat a0) { << "((" << a0.a0 << ", " << a0.a1 << "))" << "\n"; - Union16BytesNestedFloat result; + Union16BytesNestedFloat result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -6060,7 +6060,7 @@ DART_EXPORT StructAlignmentInt16 ReturnStructAlignmentInt16(int8_t a0, << static_cast(a2) << ")" << "\n"; - StructAlignmentInt16 result; + StructAlignmentInt16 result = {}; result.a0 = a0; result.a1 = a1; @@ -6084,7 +6084,7 @@ DART_EXPORT StructAlignmentInt32 ReturnStructAlignmentInt32(int8_t a0, << static_cast(a2) << ")" << "\n"; - StructAlignmentInt32 result; + StructAlignmentInt32 result = {}; result.a0 = a0; result.a1 = a1; @@ -6108,7 +6108,7 @@ DART_EXPORT StructAlignmentInt64 ReturnStructAlignmentInt64(int8_t a0, << static_cast(a2) << ")" << "\n"; - StructAlignmentInt64 result; + StructAlignmentInt64 result = {}; result.a0 = a0; result.a1 = a1; @@ -6132,7 +6132,7 @@ ReturnStruct8BytesNestedInt(Struct4BytesHomogeneousInt16 a0, << a1.a1 << "))" << "\n"; - Struct8BytesNestedInt result; + Struct8BytesNestedInt result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -6155,7 +6155,7 @@ ReturnStruct8BytesNestedFloat(Struct4BytesFloat a0, Struct4BytesFloat a1) { << "((" << a0.a0 << "), (" << a1.a0 << "))" << "\n"; - Struct8BytesNestedFloat result; + Struct8BytesNestedFloat result = {}; result.a0.a0 = a0.a0; result.a1.a0 = a1.a0; @@ -6176,7 +6176,7 @@ ReturnStruct8BytesNestedFloat2(Struct4BytesFloat a0, float a1) { << "((" << a0.a0 << "), " << a1 << ")" << "\n"; - Struct8BytesNestedFloat2 result; + Struct8BytesNestedFloat2 result = {}; result.a0.a0 = a0.a0; result.a1 = a1; @@ -6197,7 +6197,7 @@ ReturnStruct8BytesNestedMixed(Struct4BytesHomogeneousInt16 a0, << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << "))" << "\n"; - Struct8BytesNestedMixed result; + Struct8BytesNestedMixed result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -6222,7 +6222,7 @@ ReturnStruct16BytesNestedInt(Struct8BytesNestedInt a0, << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")))" << "\n"; - Struct16BytesNestedInt result; + Struct16BytesNestedInt result = {}; result.a0.a0.a0 = a0.a0.a0; result.a0.a0.a1 = a0.a0.a1; @@ -6258,7 +6258,7 @@ ReturnStruct32BytesNestedInt(Struct16BytesNestedInt a0, << ", " << a1.a1.a1.a1 << "))))" << "\n"; - Struct32BytesNestedInt result; + Struct32BytesNestedInt result = {}; result.a0.a0.a0.a0 = a0.a0.a0.a0; result.a0.a0.a0.a1 = a0.a0.a0.a1; @@ -6303,7 +6303,7 @@ ReturnStructNestedIntStructAlignmentInt16(StructAlignmentInt16 a0, << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << "\n"; - StructNestedIntStructAlignmentInt16 result; + StructNestedIntStructAlignmentInt16 result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -6333,7 +6333,7 @@ ReturnStructNestedIntStructAlignmentInt32(StructAlignmentInt32 a0, << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << "\n"; - StructNestedIntStructAlignmentInt32 result; + StructNestedIntStructAlignmentInt32 result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -6363,7 +6363,7 @@ ReturnStructNestedIntStructAlignmentInt64(StructAlignmentInt64 a0, << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << "\n"; - StructNestedIntStructAlignmentInt64 result; + StructNestedIntStructAlignmentInt64 result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; @@ -6405,7 +6405,7 @@ ReturnStructNestedIrregularEvenBigger(uint64_t a0, << ", " << a2.a3 << "), " << a3 << ")" << "\n"; - StructNestedIrregularEvenBigger result; + StructNestedIrregularEvenBigger result = {}; result.a0 = a0; result.a1.a0.a0 = a1.a0.a0; @@ -6480,16 +6480,16 @@ DART_EXPORT intptr_t TestPassStruct1ByteIntx10( Struct1ByteInt a7, Struct1ByteInt a8, Struct1ByteInt a9)) { - Struct1ByteInt a0; - Struct1ByteInt a1; - Struct1ByteInt a2; - Struct1ByteInt a3; - Struct1ByteInt a4; - Struct1ByteInt a5; - Struct1ByteInt a6; - Struct1ByteInt a7; - Struct1ByteInt a8; - Struct1ByteInt a9; + Struct1ByteInt a0 = {}; + Struct1ByteInt a1 = {}; + Struct1ByteInt a2 = {}; + Struct1ByteInt a3 = {}; + Struct1ByteInt a4 = {}; + Struct1ByteInt a5 = {}; + Struct1ByteInt a6 = {}; + Struct1ByteInt a7 = {}; + Struct1ByteInt a8 = {}; + Struct1ByteInt a9 = {}; a0.a0 = -1; a1.a0 = 2; @@ -6550,16 +6550,16 @@ DART_EXPORT intptr_t TestPassStruct3BytesHomogeneousUint8x10( Struct3BytesHomogeneousUint8 a7, Struct3BytesHomogeneousUint8 a8, Struct3BytesHomogeneousUint8 a9)) { - Struct3BytesHomogeneousUint8 a0; - Struct3BytesHomogeneousUint8 a1; - Struct3BytesHomogeneousUint8 a2; - Struct3BytesHomogeneousUint8 a3; - Struct3BytesHomogeneousUint8 a4; - Struct3BytesHomogeneousUint8 a5; - Struct3BytesHomogeneousUint8 a6; - Struct3BytesHomogeneousUint8 a7; - Struct3BytesHomogeneousUint8 a8; - Struct3BytesHomogeneousUint8 a9; + Struct3BytesHomogeneousUint8 a0 = {}; + Struct3BytesHomogeneousUint8 a1 = {}; + Struct3BytesHomogeneousUint8 a2 = {}; + Struct3BytesHomogeneousUint8 a3 = {}; + Struct3BytesHomogeneousUint8 a4 = {}; + Struct3BytesHomogeneousUint8 a5 = {}; + Struct3BytesHomogeneousUint8 a6 = {}; + Struct3BytesHomogeneousUint8 a7 = {}; + Struct3BytesHomogeneousUint8 a8 = {}; + Struct3BytesHomogeneousUint8 a9 = {}; a0.a0 = 1; a0.a1 = 2; @@ -6655,16 +6655,16 @@ DART_EXPORT intptr_t TestPassStruct3BytesInt2ByteAlignedx10( Struct3BytesInt2ByteAligned a7, Struct3BytesInt2ByteAligned a8, Struct3BytesInt2ByteAligned a9)) { - Struct3BytesInt2ByteAligned a0; - Struct3BytesInt2ByteAligned a1; - Struct3BytesInt2ByteAligned a2; - Struct3BytesInt2ByteAligned a3; - Struct3BytesInt2ByteAligned a4; - Struct3BytesInt2ByteAligned a5; - Struct3BytesInt2ByteAligned a6; - Struct3BytesInt2ByteAligned a7; - Struct3BytesInt2ByteAligned a8; - Struct3BytesInt2ByteAligned a9; + Struct3BytesInt2ByteAligned a0 = {}; + Struct3BytesInt2ByteAligned a1 = {}; + Struct3BytesInt2ByteAligned a2 = {}; + Struct3BytesInt2ByteAligned a3 = {}; + Struct3BytesInt2ByteAligned a4 = {}; + Struct3BytesInt2ByteAligned a5 = {}; + Struct3BytesInt2ByteAligned a6 = {}; + Struct3BytesInt2ByteAligned a7 = {}; + Struct3BytesInt2ByteAligned a8 = {}; + Struct3BytesInt2ByteAligned a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -6738,16 +6738,16 @@ DART_EXPORT intptr_t TestPassStruct4BytesHomogeneousInt16x10( Struct4BytesHomogeneousInt16 a7, Struct4BytesHomogeneousInt16 a8, Struct4BytesHomogeneousInt16 a9)) { - Struct4BytesHomogeneousInt16 a0; - Struct4BytesHomogeneousInt16 a1; - Struct4BytesHomogeneousInt16 a2; - Struct4BytesHomogeneousInt16 a3; - Struct4BytesHomogeneousInt16 a4; - Struct4BytesHomogeneousInt16 a5; - Struct4BytesHomogeneousInt16 a6; - Struct4BytesHomogeneousInt16 a7; - Struct4BytesHomogeneousInt16 a8; - Struct4BytesHomogeneousInt16 a9; + Struct4BytesHomogeneousInt16 a0 = {}; + Struct4BytesHomogeneousInt16 a1 = {}; + Struct4BytesHomogeneousInt16 a2 = {}; + Struct4BytesHomogeneousInt16 a3 = {}; + Struct4BytesHomogeneousInt16 a4 = {}; + Struct4BytesHomogeneousInt16 a5 = {}; + Struct4BytesHomogeneousInt16 a6 = {}; + Struct4BytesHomogeneousInt16 a7 = {}; + Struct4BytesHomogeneousInt16 a8 = {}; + Struct4BytesHomogeneousInt16 a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -6817,16 +6817,16 @@ DART_EXPORT intptr_t TestPassStruct7BytesHomogeneousUint8x10( Struct7BytesHomogeneousUint8 a7, Struct7BytesHomogeneousUint8 a8, Struct7BytesHomogeneousUint8 a9)) { - Struct7BytesHomogeneousUint8 a0; - Struct7BytesHomogeneousUint8 a1; - Struct7BytesHomogeneousUint8 a2; - Struct7BytesHomogeneousUint8 a3; - Struct7BytesHomogeneousUint8 a4; - Struct7BytesHomogeneousUint8 a5; - Struct7BytesHomogeneousUint8 a6; - Struct7BytesHomogeneousUint8 a7; - Struct7BytesHomogeneousUint8 a8; - Struct7BytesHomogeneousUint8 a9; + Struct7BytesHomogeneousUint8 a0 = {}; + Struct7BytesHomogeneousUint8 a1 = {}; + Struct7BytesHomogeneousUint8 a2 = {}; + Struct7BytesHomogeneousUint8 a3 = {}; + Struct7BytesHomogeneousUint8 a4 = {}; + Struct7BytesHomogeneousUint8 a5 = {}; + Struct7BytesHomogeneousUint8 a6 = {}; + Struct7BytesHomogeneousUint8 a7 = {}; + Struct7BytesHomogeneousUint8 a8 = {}; + Struct7BytesHomogeneousUint8 a9 = {}; a0.a0 = 1; a0.a1 = 2; @@ -6978,16 +6978,16 @@ DART_EXPORT intptr_t TestPassStruct7BytesInt4ByteAlignedx10( Struct7BytesInt4ByteAligned a7, Struct7BytesInt4ByteAligned a8, Struct7BytesInt4ByteAligned a9)) { - Struct7BytesInt4ByteAligned a0; - Struct7BytesInt4ByteAligned a1; - Struct7BytesInt4ByteAligned a2; - Struct7BytesInt4ByteAligned a3; - Struct7BytesInt4ByteAligned a4; - Struct7BytesInt4ByteAligned a5; - Struct7BytesInt4ByteAligned a6; - Struct7BytesInt4ByteAligned a7; - Struct7BytesInt4ByteAligned a8; - Struct7BytesInt4ByteAligned a9; + Struct7BytesInt4ByteAligned a0 = {}; + Struct7BytesInt4ByteAligned a1 = {}; + Struct7BytesInt4ByteAligned a2 = {}; + Struct7BytesInt4ByteAligned a3 = {}; + Struct7BytesInt4ByteAligned a4 = {}; + Struct7BytesInt4ByteAligned a5 = {}; + Struct7BytesInt4ByteAligned a6 = {}; + Struct7BytesInt4ByteAligned a7 = {}; + Struct7BytesInt4ByteAligned a8 = {}; + Struct7BytesInt4ByteAligned a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -7073,16 +7073,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesIntx10( Struct8BytesInt a7, Struct8BytesInt a8, Struct8BytesInt a9)) { - Struct8BytesInt a0; - Struct8BytesInt a1; - Struct8BytesInt a2; - Struct8BytesInt a3; - Struct8BytesInt a4; - Struct8BytesInt a5; - Struct8BytesInt a6; - Struct8BytesInt a7; - Struct8BytesInt a8; - Struct8BytesInt a9; + Struct8BytesInt a0 = {}; + Struct8BytesInt a1 = {}; + Struct8BytesInt a2 = {}; + Struct8BytesInt a3 = {}; + Struct8BytesInt a4 = {}; + Struct8BytesInt a5 = {}; + Struct8BytesInt a6 = {}; + Struct8BytesInt a7 = {}; + Struct8BytesInt a8 = {}; + Struct8BytesInt a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -7165,16 +7165,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesHomogeneousFloatx10( Struct8BytesHomogeneousFloat a7, Struct8BytesHomogeneousFloat a8, Struct8BytesHomogeneousFloat a9)) { - Struct8BytesHomogeneousFloat a0; - Struct8BytesHomogeneousFloat a1; - Struct8BytesHomogeneousFloat a2; - Struct8BytesHomogeneousFloat a3; - Struct8BytesHomogeneousFloat a4; - Struct8BytesHomogeneousFloat a5; - Struct8BytesHomogeneousFloat a6; - Struct8BytesHomogeneousFloat a7; - Struct8BytesHomogeneousFloat a8; - Struct8BytesHomogeneousFloat a9; + Struct8BytesHomogeneousFloat a0 = {}; + Struct8BytesHomogeneousFloat a1 = {}; + Struct8BytesHomogeneousFloat a2 = {}; + Struct8BytesHomogeneousFloat a3 = {}; + Struct8BytesHomogeneousFloat a4 = {}; + Struct8BytesHomogeneousFloat a5 = {}; + Struct8BytesHomogeneousFloat a6 = {}; + Struct8BytesHomogeneousFloat a7 = {}; + Struct8BytesHomogeneousFloat a8 = {}; + Struct8BytesHomogeneousFloat a9 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -7244,16 +7244,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesMixedx10( Struct8BytesMixed a7, Struct8BytesMixed a8, Struct8BytesMixed a9)) { - Struct8BytesMixed a0; - Struct8BytesMixed a1; - Struct8BytesMixed a2; - Struct8BytesMixed a3; - Struct8BytesMixed a4; - Struct8BytesMixed a5; - Struct8BytesMixed a6; - Struct8BytesMixed a7; - Struct8BytesMixed a8; - Struct8BytesMixed a9; + Struct8BytesMixed a0 = {}; + Struct8BytesMixed a1 = {}; + Struct8BytesMixed a2 = {}; + Struct8BytesMixed a3 = {}; + Struct8BytesMixed a4 = {}; + Struct8BytesMixed a5 = {}; + Struct8BytesMixed a6 = {}; + Struct8BytesMixed a7 = {}; + Struct8BytesMixed a8 = {}; + Struct8BytesMixed a9 = {}; a0.a0 = -1.0; a0.a1 = 2; @@ -7339,16 +7339,16 @@ DART_EXPORT intptr_t TestPassStruct9BytesHomogeneousUint8x10( Struct9BytesHomogeneousUint8 a7, Struct9BytesHomogeneousUint8 a8, Struct9BytesHomogeneousUint8 a9)) { - Struct9BytesHomogeneousUint8 a0; - Struct9BytesHomogeneousUint8 a1; - Struct9BytesHomogeneousUint8 a2; - Struct9BytesHomogeneousUint8 a3; - Struct9BytesHomogeneousUint8 a4; - Struct9BytesHomogeneousUint8 a5; - Struct9BytesHomogeneousUint8 a6; - Struct9BytesHomogeneousUint8 a7; - Struct9BytesHomogeneousUint8 a8; - Struct9BytesHomogeneousUint8 a9; + Struct9BytesHomogeneousUint8 a0 = {}; + Struct9BytesHomogeneousUint8 a1 = {}; + Struct9BytesHomogeneousUint8 a2 = {}; + Struct9BytesHomogeneousUint8 a3 = {}; + Struct9BytesHomogeneousUint8 a4 = {}; + Struct9BytesHomogeneousUint8 a5 = {}; + Struct9BytesHomogeneousUint8 a6 = {}; + Struct9BytesHomogeneousUint8 a7 = {}; + Struct9BytesHomogeneousUint8 a8 = {}; + Struct9BytesHomogeneousUint8 a9 = {}; a0.a0 = 1; a0.a1 = 2; @@ -7531,16 +7531,16 @@ DART_EXPORT intptr_t TestPassStruct9BytesInt4Or8ByteAlignedx10( Struct9BytesInt4Or8ByteAligned a7, Struct9BytesInt4Or8ByteAligned a8, Struct9BytesInt4Or8ByteAligned a9)) { - Struct9BytesInt4Or8ByteAligned a0; - Struct9BytesInt4Or8ByteAligned a1; - Struct9BytesInt4Or8ByteAligned a2; - Struct9BytesInt4Or8ByteAligned a3; - Struct9BytesInt4Or8ByteAligned a4; - Struct9BytesInt4Or8ByteAligned a5; - Struct9BytesInt4Or8ByteAligned a6; - Struct9BytesInt4Or8ByteAligned a7; - Struct9BytesInt4Or8ByteAligned a8; - Struct9BytesInt4Or8ByteAligned a9; + Struct9BytesInt4Or8ByteAligned a0 = {}; + Struct9BytesInt4Or8ByteAligned a1 = {}; + Struct9BytesInt4Or8ByteAligned a2 = {}; + Struct9BytesInt4Or8ByteAligned a3 = {}; + Struct9BytesInt4Or8ByteAligned a4 = {}; + Struct9BytesInt4Or8ByteAligned a5 = {}; + Struct9BytesInt4Or8ByteAligned a6 = {}; + Struct9BytesInt4Or8ByteAligned a7 = {}; + Struct9BytesInt4Or8ByteAligned a8 = {}; + Struct9BytesInt4Or8ByteAligned a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -7611,12 +7611,12 @@ DART_EXPORT intptr_t TestPassStruct12BytesHomogeneousFloatx6( Struct12BytesHomogeneousFloat a3, Struct12BytesHomogeneousFloat a4, Struct12BytesHomogeneousFloat a5)) { - Struct12BytesHomogeneousFloat a0; - Struct12BytesHomogeneousFloat a1; - Struct12BytesHomogeneousFloat a2; - Struct12BytesHomogeneousFloat a3; - Struct12BytesHomogeneousFloat a4; - Struct12BytesHomogeneousFloat a5; + Struct12BytesHomogeneousFloat a0 = {}; + Struct12BytesHomogeneousFloat a1 = {}; + Struct12BytesHomogeneousFloat a2 = {}; + Struct12BytesHomogeneousFloat a3 = {}; + Struct12BytesHomogeneousFloat a4 = {}; + Struct12BytesHomogeneousFloat a5 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -7680,11 +7680,11 @@ DART_EXPORT intptr_t TestPassStruct16BytesHomogeneousFloatx5( Struct16BytesHomogeneousFloat a2, Struct16BytesHomogeneousFloat a3, Struct16BytesHomogeneousFloat a4)) { - Struct16BytesHomogeneousFloat a0; - Struct16BytesHomogeneousFloat a1; - Struct16BytesHomogeneousFloat a2; - Struct16BytesHomogeneousFloat a3; - Struct16BytesHomogeneousFloat a4; + Struct16BytesHomogeneousFloat a0 = {}; + Struct16BytesHomogeneousFloat a1 = {}; + Struct16BytesHomogeneousFloat a2 = {}; + Struct16BytesHomogeneousFloat a3 = {}; + Struct16BytesHomogeneousFloat a4 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -7756,16 +7756,16 @@ DART_EXPORT intptr_t TestPassStruct16BytesMixedx10( Struct16BytesMixed a7, Struct16BytesMixed a8, Struct16BytesMixed a9)) { - Struct16BytesMixed a0; - Struct16BytesMixed a1; - Struct16BytesMixed a2; - Struct16BytesMixed a3; - Struct16BytesMixed a4; - Struct16BytesMixed a5; - Struct16BytesMixed a6; - Struct16BytesMixed a7; - Struct16BytesMixed a8; - Struct16BytesMixed a9; + Struct16BytesMixed a0 = {}; + Struct16BytesMixed a1 = {}; + Struct16BytesMixed a2 = {}; + Struct16BytesMixed a3 = {}; + Struct16BytesMixed a4 = {}; + Struct16BytesMixed a5 = {}; + Struct16BytesMixed a6 = {}; + Struct16BytesMixed a7 = {}; + Struct16BytesMixed a8 = {}; + Struct16BytesMixed a9 = {}; a0.a0 = -1.0; a0.a1 = 2; @@ -7837,16 +7837,16 @@ DART_EXPORT intptr_t TestPassStruct16BytesMixed2x10( Struct16BytesMixed2 a7, Struct16BytesMixed2 a8, Struct16BytesMixed2 a9)) { - Struct16BytesMixed2 a0; - Struct16BytesMixed2 a1; - Struct16BytesMixed2 a2; - Struct16BytesMixed2 a3; - Struct16BytesMixed2 a4; - Struct16BytesMixed2 a5; - Struct16BytesMixed2 a6; - Struct16BytesMixed2 a7; - Struct16BytesMixed2 a8; - Struct16BytesMixed2 a9; + Struct16BytesMixed2 a0 = {}; + Struct16BytesMixed2 a1 = {}; + Struct16BytesMixed2 a2 = {}; + Struct16BytesMixed2 a3 = {}; + Struct16BytesMixed2 a4 = {}; + Struct16BytesMixed2 a5 = {}; + Struct16BytesMixed2 a6 = {}; + Struct16BytesMixed2 a7 = {}; + Struct16BytesMixed2 a8 = {}; + Struct16BytesMixed2 a9 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -7942,16 +7942,16 @@ DART_EXPORT intptr_t TestPassStruct17BytesIntx10( Struct17BytesInt a7, Struct17BytesInt a8, Struct17BytesInt a9)) { - Struct17BytesInt a0; - Struct17BytesInt a1; - Struct17BytesInt a2; - Struct17BytesInt a3; - Struct17BytesInt a4; - Struct17BytesInt a5; - Struct17BytesInt a6; - Struct17BytesInt a7; - Struct17BytesInt a8; - Struct17BytesInt a9; + Struct17BytesInt a0 = {}; + Struct17BytesInt a1 = {}; + Struct17BytesInt a2 = {}; + Struct17BytesInt a3 = {}; + Struct17BytesInt a4 = {}; + Struct17BytesInt a5 = {}; + Struct17BytesInt a6 = {}; + Struct17BytesInt a7 = {}; + Struct17BytesInt a8 = {}; + Struct17BytesInt a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -8038,16 +8038,16 @@ DART_EXPORT intptr_t TestPassStruct19BytesHomogeneousUint8x10( Struct19BytesHomogeneousUint8 a7, Struct19BytesHomogeneousUint8 a8, Struct19BytesHomogeneousUint8 a9)) { - Struct19BytesHomogeneousUint8 a0; - Struct19BytesHomogeneousUint8 a1; - Struct19BytesHomogeneousUint8 a2; - Struct19BytesHomogeneousUint8 a3; - Struct19BytesHomogeneousUint8 a4; - Struct19BytesHomogeneousUint8 a5; - Struct19BytesHomogeneousUint8 a6; - Struct19BytesHomogeneousUint8 a7; - Struct19BytesHomogeneousUint8 a8; - Struct19BytesHomogeneousUint8 a9; + Struct19BytesHomogeneousUint8 a0 = {}; + Struct19BytesHomogeneousUint8 a1 = {}; + Struct19BytesHomogeneousUint8 a2 = {}; + Struct19BytesHomogeneousUint8 a3 = {}; + Struct19BytesHomogeneousUint8 a4 = {}; + Struct19BytesHomogeneousUint8 a5 = {}; + Struct19BytesHomogeneousUint8 a6 = {}; + Struct19BytesHomogeneousUint8 a7 = {}; + Struct19BytesHomogeneousUint8 a8 = {}; + Struct19BytesHomogeneousUint8 a9 = {}; a0.a0 = 1; a0.a1 = 2; @@ -8380,16 +8380,16 @@ DART_EXPORT intptr_t TestPassStruct20BytesHomogeneousInt32x10( Struct20BytesHomogeneousInt32 a7, Struct20BytesHomogeneousInt32 a8, Struct20BytesHomogeneousInt32 a9)) { - Struct20BytesHomogeneousInt32 a0; - Struct20BytesHomogeneousInt32 a1; - Struct20BytesHomogeneousInt32 a2; - Struct20BytesHomogeneousInt32 a3; - Struct20BytesHomogeneousInt32 a4; - Struct20BytesHomogeneousInt32 a5; - Struct20BytesHomogeneousInt32 a6; - Struct20BytesHomogeneousInt32 a7; - Struct20BytesHomogeneousInt32 a8; - Struct20BytesHomogeneousInt32 a9; + Struct20BytesHomogeneousInt32 a0 = {}; + Struct20BytesHomogeneousInt32 a1 = {}; + Struct20BytesHomogeneousInt32 a2 = {}; + Struct20BytesHomogeneousInt32 a3 = {}; + Struct20BytesHomogeneousInt32 a4 = {}; + Struct20BytesHomogeneousInt32 a5 = {}; + Struct20BytesHomogeneousInt32 a6 = {}; + Struct20BytesHomogeneousInt32 a7 = {}; + Struct20BytesHomogeneousInt32 a8 = {}; + Struct20BytesHomogeneousInt32 a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -8487,7 +8487,7 @@ DART_EXPORT intptr_t TestPassStruct20BytesHomogeneousInt32x10( DART_EXPORT intptr_t TestPassStruct20BytesHomogeneousFloat( // NOLINTNEXTLINE(whitespace/parens) float (*f)(Struct20BytesHomogeneousFloat a0)) { - Struct20BytesHomogeneousFloat a0; + Struct20BytesHomogeneousFloat a0 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -8533,11 +8533,11 @@ DART_EXPORT intptr_t TestPassStruct32BytesHomogeneousDoublex5( Struct32BytesHomogeneousDouble a2, Struct32BytesHomogeneousDouble a3, Struct32BytesHomogeneousDouble a4)) { - Struct32BytesHomogeneousDouble a0; - Struct32BytesHomogeneousDouble a1; - Struct32BytesHomogeneousDouble a2; - Struct32BytesHomogeneousDouble a3; - Struct32BytesHomogeneousDouble a4; + Struct32BytesHomogeneousDouble a0 = {}; + Struct32BytesHomogeneousDouble a1 = {}; + Struct32BytesHomogeneousDouble a2 = {}; + Struct32BytesHomogeneousDouble a3 = {}; + Struct32BytesHomogeneousDouble a4 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -8597,7 +8597,7 @@ DART_EXPORT intptr_t TestPassStruct32BytesHomogeneousDoublex5( DART_EXPORT intptr_t TestPassStruct40BytesHomogeneousDouble( // NOLINTNEXTLINE(whitespace/parens) double (*f)(Struct40BytesHomogeneousDouble a0)) { - Struct40BytesHomogeneousDouble a0; + Struct40BytesHomogeneousDouble a0 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -8638,7 +8638,7 @@ DART_EXPORT intptr_t TestPassStruct40BytesHomogeneousDouble( DART_EXPORT intptr_t TestPassStruct1024BytesHomogeneousUint64( // NOLINTNEXTLINE(whitespace/parens) uint64_t (*f)(Struct1024BytesHomogeneousUint64 a0)) { - Struct1024BytesHomogeneousUint64 a0; + Struct1024BytesHomogeneousUint64 a0 = {}; a0.a0 = 1; a0.a1 = 2; @@ -8846,13 +8846,13 @@ DART_EXPORT intptr_t TestPassFloatStruct16BytesHomogeneousFloatFloatStruct1( Struct16BytesHomogeneousFloat a7, float a8)) { float a0; - Struct16BytesHomogeneousFloat a1; + Struct16BytesHomogeneousFloat a1 = {}; float a2; - Struct16BytesHomogeneousFloat a3; + Struct16BytesHomogeneousFloat a3 = {}; float a4; - Struct16BytesHomogeneousFloat a5; + Struct16BytesHomogeneousFloat a5 = {}; float a6; - Struct16BytesHomogeneousFloat a7; + Struct16BytesHomogeneousFloat a7 = {}; float a8; a0 = -1.0; @@ -8923,13 +8923,13 @@ DART_EXPORT intptr_t TestPassFloatStruct32BytesHomogeneousDoubleFloatStruct( Struct32BytesHomogeneousDouble a7, float a8)) { float a0; - Struct32BytesHomogeneousDouble a1; + Struct32BytesHomogeneousDouble a1 = {}; float a2; - Struct32BytesHomogeneousDouble a3; + Struct32BytesHomogeneousDouble a3 = {}; float a4; - Struct32BytesHomogeneousDouble a5; + Struct32BytesHomogeneousDouble a5 = {}; float a6; - Struct32BytesHomogeneousDouble a7; + Struct32BytesHomogeneousDouble a7 = {}; float a8; a0 = -1.0; @@ -9004,13 +9004,13 @@ DART_EXPORT intptr_t TestPassInt8Struct16BytesMixedInt8Struct16BytesMixedIn( Struct16BytesMixed a7, int8_t a8)) { int8_t a0; - Struct16BytesMixed a1; + Struct16BytesMixed a1 = {}; int8_t a2; - Struct16BytesMixed a3; + Struct16BytesMixed a3 = {}; int8_t a4; - Struct16BytesMixed a5; + Struct16BytesMixed a5 = {}; int8_t a6; - Struct16BytesMixed a7; + Struct16BytesMixed a7 = {}; int8_t a8; a0 = -1; @@ -9081,10 +9081,10 @@ DART_EXPORT intptr_t TestPassDoublex6Struct16BytesMixedx4Int32( double a3; double a4; double a5; - Struct16BytesMixed a6; - Struct16BytesMixed a7; - Struct16BytesMixed a8; - Struct16BytesMixed a9; + Struct16BytesMixed a6 = {}; + Struct16BytesMixed a7 = {}; + Struct16BytesMixed a8 = {}; + Struct16BytesMixed a9 = {}; int32_t a10; a0 = -1.0; @@ -9152,10 +9152,10 @@ DART_EXPORT intptr_t TestPassInt32x4Struct16BytesMixedx4Double( int32_t a1; int32_t a2; int32_t a3; - Struct16BytesMixed a4; - Struct16BytesMixed a5; - Struct16BytesMixed a6; - Struct16BytesMixed a7; + Struct16BytesMixed a4 = {}; + Struct16BytesMixed a5 = {}; + Struct16BytesMixed a6 = {}; + Struct16BytesMixed a7 = {}; double a8; a0 = -1; @@ -9210,9 +9210,9 @@ DART_EXPORT intptr_t TestPassStruct40BytesHomogeneousDoubleStruct4BytesHomo( double (*f)(Struct40BytesHomogeneousDouble a0, Struct4BytesHomogeneousInt16 a1, Struct8BytesHomogeneousFloat a2)) { - Struct40BytesHomogeneousDouble a0; - Struct4BytesHomogeneousInt16 a1; - Struct8BytesHomogeneousFloat a2; + Struct40BytesHomogeneousDouble a0 = {}; + Struct4BytesHomogeneousInt16 a1 = {}; + Struct8BytesHomogeneousFloat a2 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -9315,28 +9315,28 @@ DART_EXPORT intptr_t TestPassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( double a15; int64_t a16; int8_t a17; - Struct1ByteInt a18; + Struct1ByteInt a18 = {}; int64_t a19; int8_t a20; - Struct4BytesHomogeneousInt16 a21; + Struct4BytesHomogeneousInt16 a21 = {}; int64_t a22; int8_t a23; - Struct8BytesInt a24; + Struct8BytesInt a24 = {}; int64_t a25; int8_t a26; - Struct8BytesHomogeneousFloat a27; + Struct8BytesHomogeneousFloat a27 = {}; int64_t a28; int8_t a29; - Struct8BytesMixed a30; + Struct8BytesMixed a30 = {}; int64_t a31; int8_t a32; - StructAlignmentInt16 a33; + StructAlignmentInt16 a33 = {}; int64_t a34; int8_t a35; - StructAlignmentInt32 a36; + StructAlignmentInt32 a36 = {}; int64_t a37; int8_t a38; - StructAlignmentInt64 a39; + StructAlignmentInt64 a39 = {}; a0 = -1; a1 = 2; @@ -9448,7 +9448,7 @@ DART_EXPORT intptr_t TestPassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( DART_EXPORT intptr_t TestPassStructAlignmentInt16( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(StructAlignmentInt16 a0)) { - StructAlignmentInt16 a0; + StructAlignmentInt16 a0 = {}; a0.a0 = -1; a0.a1 = 2; @@ -9487,7 +9487,7 @@ DART_EXPORT intptr_t TestPassStructAlignmentInt16( DART_EXPORT intptr_t TestPassStructAlignmentInt32( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(StructAlignmentInt32 a0)) { - StructAlignmentInt32 a0; + StructAlignmentInt32 a0 = {}; a0.a0 = -1; a0.a1 = 2; @@ -9526,7 +9526,7 @@ DART_EXPORT intptr_t TestPassStructAlignmentInt32( DART_EXPORT intptr_t TestPassStructAlignmentInt64( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(StructAlignmentInt64 a0)) { - StructAlignmentInt64 a0; + StructAlignmentInt64 a0 = {}; a0.a0 = -1; a0.a1 = 2; @@ -9575,16 +9575,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedIntx10( Struct8BytesNestedInt a7, Struct8BytesNestedInt a8, Struct8BytesNestedInt a9)) { - Struct8BytesNestedInt a0; - Struct8BytesNestedInt a1; - Struct8BytesNestedInt a2; - Struct8BytesNestedInt a3; - Struct8BytesNestedInt a4; - Struct8BytesNestedInt a5; - Struct8BytesNestedInt a6; - Struct8BytesNestedInt a7; - Struct8BytesNestedInt a8; - Struct8BytesNestedInt a9; + Struct8BytesNestedInt a0 = {}; + Struct8BytesNestedInt a1 = {}; + Struct8BytesNestedInt a2 = {}; + Struct8BytesNestedInt a3 = {}; + Struct8BytesNestedInt a4 = {}; + Struct8BytesNestedInt a5 = {}; + Struct8BytesNestedInt a6 = {}; + Struct8BytesNestedInt a7 = {}; + Struct8BytesNestedInt a8 = {}; + Struct8BytesNestedInt a9 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -9682,16 +9682,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedFloatx10( Struct8BytesNestedFloat a7, Struct8BytesNestedFloat a8, Struct8BytesNestedFloat a9)) { - Struct8BytesNestedFloat a0; - Struct8BytesNestedFloat a1; - Struct8BytesNestedFloat a2; - Struct8BytesNestedFloat a3; - Struct8BytesNestedFloat a4; - Struct8BytesNestedFloat a5; - Struct8BytesNestedFloat a6; - Struct8BytesNestedFloat a7; - Struct8BytesNestedFloat a8; - Struct8BytesNestedFloat a9; + Struct8BytesNestedFloat a0 = {}; + Struct8BytesNestedFloat a1 = {}; + Struct8BytesNestedFloat a2 = {}; + Struct8BytesNestedFloat a3 = {}; + Struct8BytesNestedFloat a4 = {}; + Struct8BytesNestedFloat a5 = {}; + Struct8BytesNestedFloat a6 = {}; + Struct8BytesNestedFloat a7 = {}; + Struct8BytesNestedFloat a8 = {}; + Struct8BytesNestedFloat a9 = {}; a0.a0.a0 = -1.0; a0.a1.a0 = 2.0; @@ -9765,16 +9765,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedFloat2x10( Struct8BytesNestedFloat2 a7, Struct8BytesNestedFloat2 a8, Struct8BytesNestedFloat2 a9)) { - Struct8BytesNestedFloat2 a0; - Struct8BytesNestedFloat2 a1; - Struct8BytesNestedFloat2 a2; - Struct8BytesNestedFloat2 a3; - Struct8BytesNestedFloat2 a4; - Struct8BytesNestedFloat2 a5; - Struct8BytesNestedFloat2 a6; - Struct8BytesNestedFloat2 a7; - Struct8BytesNestedFloat2 a8; - Struct8BytesNestedFloat2 a9; + Struct8BytesNestedFloat2 a0 = {}; + Struct8BytesNestedFloat2 a1 = {}; + Struct8BytesNestedFloat2 a2 = {}; + Struct8BytesNestedFloat2 a3 = {}; + Struct8BytesNestedFloat2 a4 = {}; + Struct8BytesNestedFloat2 a5 = {}; + Struct8BytesNestedFloat2 a6 = {}; + Struct8BytesNestedFloat2 a7 = {}; + Struct8BytesNestedFloat2 a8 = {}; + Struct8BytesNestedFloat2 a9 = {}; a0.a0.a0 = -1.0; a0.a1 = 2.0; @@ -9845,16 +9845,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedMixedx10( Struct8BytesNestedMixed a7, Struct8BytesNestedMixed a8, Struct8BytesNestedMixed a9)) { - Struct8BytesNestedMixed a0; - Struct8BytesNestedMixed a1; - Struct8BytesNestedMixed a2; - Struct8BytesNestedMixed a3; - Struct8BytesNestedMixed a4; - Struct8BytesNestedMixed a5; - Struct8BytesNestedMixed a6; - Struct8BytesNestedMixed a7; - Struct8BytesNestedMixed a8; - Struct8BytesNestedMixed a9; + Struct8BytesNestedMixed a0 = {}; + Struct8BytesNestedMixed a1 = {}; + Struct8BytesNestedMixed a2 = {}; + Struct8BytesNestedMixed a3 = {}; + Struct8BytesNestedMixed a4 = {}; + Struct8BytesNestedMixed a5 = {}; + Struct8BytesNestedMixed a6 = {}; + Struct8BytesNestedMixed a7 = {}; + Struct8BytesNestedMixed a8 = {}; + Struct8BytesNestedMixed a9 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -9929,8 +9929,8 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedMixedx10( DART_EXPORT intptr_t TestPassStruct16BytesNestedIntx2( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(Struct16BytesNestedInt a0, Struct16BytesNestedInt a1)) { - Struct16BytesNestedInt a0; - Struct16BytesNestedInt a1; + Struct16BytesNestedInt a0 = {}; + Struct16BytesNestedInt a1 = {}; a0.a0.a0.a0 = -1; a0.a0.a0.a1 = 2; @@ -9987,8 +9987,8 @@ DART_EXPORT intptr_t TestPassStruct16BytesNestedIntx2( DART_EXPORT intptr_t TestPassStruct32BytesNestedIntx2( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(Struct32BytesNestedInt a0, Struct32BytesNestedInt a1)) { - Struct32BytesNestedInt a0; - Struct32BytesNestedInt a1; + Struct32BytesNestedInt a0 = {}; + Struct32BytesNestedInt a1 = {}; a0.a0.a0.a0.a0 = -1; a0.a0.a0.a0.a1 = 2; @@ -10070,7 +10070,7 @@ DART_EXPORT intptr_t TestPassStruct32BytesNestedIntx2( DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt16( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(StructNestedIntStructAlignmentInt16 a0)) { - StructNestedIntStructAlignmentInt16 a0; + StructNestedIntStructAlignmentInt16 a0 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -10114,7 +10114,7 @@ DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt16( DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt32( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(StructNestedIntStructAlignmentInt32 a0)) { - StructNestedIntStructAlignmentInt32 a0; + StructNestedIntStructAlignmentInt32 a0 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -10158,7 +10158,7 @@ DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt32( DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt64( // NOLINTNEXTLINE(whitespace/parens) int64_t (*f)(StructNestedIntStructAlignmentInt64 a0)) { - StructNestedIntStructAlignmentInt64 a0; + StructNestedIntStructAlignmentInt64 a0 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -10205,10 +10205,10 @@ DART_EXPORT intptr_t TestPassStructNestedIrregularEvenBiggerx4( StructNestedIrregularEvenBigger a1, StructNestedIrregularEvenBigger a2, StructNestedIrregularEvenBigger a3)) { - StructNestedIrregularEvenBigger a0; - StructNestedIrregularEvenBigger a1; - StructNestedIrregularEvenBigger a2; - StructNestedIrregularEvenBigger a3; + StructNestedIrregularEvenBigger a0 = {}; + StructNestedIrregularEvenBigger a1 = {}; + StructNestedIrregularEvenBigger a2 = {}; + StructNestedIrregularEvenBigger a3 = {}; a0.a0 = 1; a0.a1.a0.a0 = 2; @@ -10436,10 +10436,10 @@ DART_EXPORT intptr_t TestPassStruct8BytesInlineArrayIntx4( Struct8BytesInlineArrayInt a1, Struct8BytesInlineArrayInt a2, Struct8BytesInlineArrayInt a3)) { - Struct8BytesInlineArrayInt a0; - Struct8BytesInlineArrayInt a1; - Struct8BytesInlineArrayInt a2; - Struct8BytesInlineArrayInt a3; + Struct8BytesInlineArrayInt a0 = {}; + Struct8BytesInlineArrayInt a1 = {}; + Struct8BytesInlineArrayInt a2 = {}; + Struct8BytesInlineArrayInt a3 = {}; a0.a0[0] = 1; a0.a0[1] = 2; @@ -10531,10 +10531,10 @@ DART_EXPORT intptr_t TestPassStructInlineArrayIrregularx4( StructInlineArrayIrregular a1, StructInlineArrayIrregular a2, StructInlineArrayIrregular a3)) { - StructInlineArrayIrregular a0; - StructInlineArrayIrregular a1; - StructInlineArrayIrregular a2; - StructInlineArrayIrregular a3; + StructInlineArrayIrregular a0 = {}; + StructInlineArrayIrregular a1 = {}; + StructInlineArrayIrregular a2 = {}; + StructInlineArrayIrregular a3 = {}; a0.a0[0].a0 = -1; a0.a0[0].a1 = 2; @@ -10600,7 +10600,7 @@ DART_EXPORT intptr_t TestPassStructInlineArrayIrregularx4( DART_EXPORT intptr_t TestPassStructInlineArray100Bytes( // NOLINTNEXTLINE(whitespace/parens) int32_t (*f)(StructInlineArray100Bytes a0)) { - StructInlineArray100Bytes a0; + StructInlineArray100Bytes a0 = {}; a0.a0[0] = 1; a0.a0[1] = 2; @@ -10807,11 +10807,11 @@ DART_EXPORT intptr_t TestPassStructStruct16BytesHomogeneousFloat2x5( StructStruct16BytesHomogeneousFloat2 a2, StructStruct16BytesHomogeneousFloat2 a3, StructStruct16BytesHomogeneousFloat2 a4)) { - StructStruct16BytesHomogeneousFloat2 a0; - StructStruct16BytesHomogeneousFloat2 a1; - StructStruct16BytesHomogeneousFloat2 a2; - StructStruct16BytesHomogeneousFloat2 a3; - StructStruct16BytesHomogeneousFloat2 a4; + StructStruct16BytesHomogeneousFloat2 a0 = {}; + StructStruct16BytesHomogeneousFloat2 a1 = {}; + StructStruct16BytesHomogeneousFloat2 a2 = {}; + StructStruct16BytesHomogeneousFloat2 a3 = {}; + StructStruct16BytesHomogeneousFloat2 a4 = {}; a0.a0.a0 = -1.0; a0.a1[0].a0 = 2.0; @@ -10878,11 +10878,11 @@ DART_EXPORT intptr_t TestPassStructStruct32BytesHomogeneousDouble2x5( StructStruct32BytesHomogeneousDouble2 a2, StructStruct32BytesHomogeneousDouble2 a3, StructStruct32BytesHomogeneousDouble2 a4)) { - StructStruct32BytesHomogeneousDouble2 a0; - StructStruct32BytesHomogeneousDouble2 a1; - StructStruct32BytesHomogeneousDouble2 a2; - StructStruct32BytesHomogeneousDouble2 a3; - StructStruct32BytesHomogeneousDouble2 a4; + StructStruct32BytesHomogeneousDouble2 a0 = {}; + StructStruct32BytesHomogeneousDouble2 a1 = {}; + StructStruct32BytesHomogeneousDouble2 a2 = {}; + StructStruct32BytesHomogeneousDouble2 a3 = {}; + StructStruct32BytesHomogeneousDouble2 a4 = {}; a0.a0.a0 = -1.0; a0.a1[0].a0 = 2.0; @@ -10956,16 +10956,16 @@ DART_EXPORT intptr_t TestPassStructStruct16BytesMixed3x10( StructStruct16BytesMixed3 a7, StructStruct16BytesMixed3 a8, StructStruct16BytesMixed3 a9)) { - StructStruct16BytesMixed3 a0; - StructStruct16BytesMixed3 a1; - StructStruct16BytesMixed3 a2; - StructStruct16BytesMixed3 a3; - StructStruct16BytesMixed3 a4; - StructStruct16BytesMixed3 a5; - StructStruct16BytesMixed3 a6; - StructStruct16BytesMixed3 a7; - StructStruct16BytesMixed3 a8; - StructStruct16BytesMixed3 a9; + StructStruct16BytesMixed3 a0 = {}; + StructStruct16BytesMixed3 a1 = {}; + StructStruct16BytesMixed3 a2 = {}; + StructStruct16BytesMixed3 a3 = {}; + StructStruct16BytesMixed3 a4 = {}; + StructStruct16BytesMixed3 a5 = {}; + StructStruct16BytesMixed3 a6 = {}; + StructStruct16BytesMixed3 a7 = {}; + StructStruct16BytesMixed3 a8 = {}; + StructStruct16BytesMixed3 a9 = {}; a0.a0.a0 = -1.0; a0.a1[0].a0 = 2.0; @@ -11089,11 +11089,11 @@ DART_EXPORT intptr_t TestPassUint8Struct32BytesInlineArrayMultiDimensionalI( Struct8BytesInlineArrayMultiDimensionalInt a5, uint8_t a6)) { uint8_t a0; - Struct32BytesInlineArrayMultiDimensionalInt a1; + Struct32BytesInlineArrayMultiDimensionalInt a1 = {}; uint8_t a2; - Struct8BytesInlineArrayMultiDimensionalInt a3; + Struct8BytesInlineArrayMultiDimensionalInt a3 = {}; uint8_t a4; - Struct8BytesInlineArrayMultiDimensionalInt a5; + Struct8BytesInlineArrayMultiDimensionalInt a5 = {}; uint8_t a6; a0 = 1; @@ -11235,7 +11235,7 @@ DART_EXPORT intptr_t TestPassUint8Struct4BytesInlineArrayMultiDimensionalIn( Struct4BytesInlineArrayMultiDimensionalInt a1, uint8_t a2)) { uint8_t a0; - Struct4BytesInlineArrayMultiDimensionalInt a1; + Struct4BytesInlineArrayMultiDimensionalInt a1 = {}; uint8_t a2; a0 = 1; @@ -11291,16 +11291,16 @@ DART_EXPORT intptr_t TestPassStruct3BytesPackedIntx10( Struct3BytesPackedInt a7, Struct3BytesPackedInt a8, Struct3BytesPackedInt a9)) { - Struct3BytesPackedInt a0; - Struct3BytesPackedInt a1; - Struct3BytesPackedInt a2; - Struct3BytesPackedInt a3; - Struct3BytesPackedInt a4; - Struct3BytesPackedInt a5; - Struct3BytesPackedInt a6; - Struct3BytesPackedInt a7; - Struct3BytesPackedInt a8; - Struct3BytesPackedInt a9; + Struct3BytesPackedInt a0 = {}; + Struct3BytesPackedInt a1 = {}; + Struct3BytesPackedInt a2 = {}; + Struct3BytesPackedInt a3 = {}; + Struct3BytesPackedInt a4 = {}; + Struct3BytesPackedInt a5 = {}; + Struct3BytesPackedInt a6 = {}; + Struct3BytesPackedInt a7 = {}; + Struct3BytesPackedInt a8 = {}; + Struct3BytesPackedInt a9 = {}; a0.a0 = -1; a0.a1 = 2; @@ -11373,16 +11373,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesPackedIntx10( Struct8BytesPackedInt a7, Struct8BytesPackedInt a8, Struct8BytesPackedInt a9)) { - Struct8BytesPackedInt a0; - Struct8BytesPackedInt a1; - Struct8BytesPackedInt a2; - Struct8BytesPackedInt a3; - Struct8BytesPackedInt a4; - Struct8BytesPackedInt a5; - Struct8BytesPackedInt a6; - Struct8BytesPackedInt a7; - Struct8BytesPackedInt a8; - Struct8BytesPackedInt a9; + Struct8BytesPackedInt a0 = {}; + Struct8BytesPackedInt a1 = {}; + Struct8BytesPackedInt a2 = {}; + Struct8BytesPackedInt a3 = {}; + Struct8BytesPackedInt a4 = {}; + Struct8BytesPackedInt a5 = {}; + Struct8BytesPackedInt a6 = {}; + Struct8BytesPackedInt a7 = {}; + Struct8BytesPackedInt a8 = {}; + Struct8BytesPackedInt a9 = {}; a0.a0 = 1; a0.a1 = 2; @@ -11509,16 +11509,16 @@ DART_EXPORT intptr_t TestPassStruct9BytesPackedMixedx10DoubleInt32x2( double a10, int32_t a11, int32_t a12)) { - Struct9BytesPackedMixed a0; - Struct9BytesPackedMixed a1; - Struct9BytesPackedMixed a2; - Struct9BytesPackedMixed a3; - Struct9BytesPackedMixed a4; - Struct9BytesPackedMixed a5; - Struct9BytesPackedMixed a6; - Struct9BytesPackedMixed a7; - Struct9BytesPackedMixed a8; - Struct9BytesPackedMixed a9; + Struct9BytesPackedMixed a0 = {}; + Struct9BytesPackedMixed a1 = {}; + Struct9BytesPackedMixed a2 = {}; + Struct9BytesPackedMixed a3 = {}; + Struct9BytesPackedMixed a4 = {}; + Struct9BytesPackedMixed a5 = {}; + Struct9BytesPackedMixed a6 = {}; + Struct9BytesPackedMixed a7 = {}; + Struct9BytesPackedMixed a8 = {}; + Struct9BytesPackedMixed a9 = {}; double a10; int32_t a11; int32_t a12; @@ -11589,7 +11589,7 @@ DART_EXPORT intptr_t TestPassStruct9BytesPackedMixedx10DoubleInt32x2( DART_EXPORT intptr_t TestPassStruct5BytesPackedMixed( // NOLINTNEXTLINE(whitespace/parens) double (*f)(Struct5BytesPackedMixed a0)) { - Struct5BytesPackedMixed a0; + Struct5BytesPackedMixed a0 = {}; a0.a0 = -1.0; a0.a1 = 2; @@ -11626,7 +11626,7 @@ DART_EXPORT intptr_t TestPassStruct5BytesPackedMixed( DART_EXPORT intptr_t TestPassStructNestedAlignmentStruct5BytesPackedMixed( // NOLINTNEXTLINE(whitespace/parens) double (*f)(StructNestedAlignmentStruct5BytesPackedMixed a0)) { - StructNestedAlignmentStruct5BytesPackedMixed a0; + StructNestedAlignmentStruct5BytesPackedMixed a0 = {}; a0.a0 = 1; a0.a1.a0 = 2.0; @@ -11665,7 +11665,7 @@ DART_EXPORT intptr_t TestPassStructNestedAlignmentStruct5BytesPackedMixed( DART_EXPORT intptr_t TestPassStruct6BytesInlineArrayInt( // NOLINTNEXTLINE(whitespace/parens) double (*f)(Struct6BytesInlineArrayInt a0)) { - Struct6BytesInlineArrayInt a0; + Struct6BytesInlineArrayInt a0 = {}; a0.a0[0].a0 = -1; a0.a0[0].a1 = 2; @@ -11706,7 +11706,7 @@ DART_EXPORT intptr_t TestPassStruct6BytesInlineArrayInt( DART_EXPORT intptr_t TestPassStruct15BytesInlineArrayMixed( // NOLINTNEXTLINE(whitespace/parens) double (*f)(Struct15BytesInlineArrayMixed a0)) { - Struct15BytesInlineArrayMixed a0; + Struct15BytesInlineArrayMixed a0 = {}; a0.a0[0].a0 = -1.0; a0.a0[0].a1 = 2; @@ -11759,16 +11759,16 @@ DART_EXPORT intptr_t TestPassUnion4BytesMixedx10( Union4BytesMixed a7, Union4BytesMixed a8, Union4BytesMixed a9)) { - Union4BytesMixed a0; - Union4BytesMixed a1; - Union4BytesMixed a2; - Union4BytesMixed a3; - Union4BytesMixed a4; - Union4BytesMixed a5; - Union4BytesMixed a6; - Union4BytesMixed a7; - Union4BytesMixed a8; - Union4BytesMixed a9; + Union4BytesMixed a0 = {}; + Union4BytesMixed a1 = {}; + Union4BytesMixed a2 = {}; + Union4BytesMixed a3 = {}; + Union4BytesMixed a4 = {}; + Union4BytesMixed a5 = {}; + Union4BytesMixed a6 = {}; + Union4BytesMixed a7 = {}; + Union4BytesMixed a8 = {}; + Union4BytesMixed a9 = {}; a0.a0 = 1; a1.a0 = 2; @@ -11827,16 +11827,16 @@ DART_EXPORT intptr_t TestPassUnion8BytesNestedFloatx10( Union8BytesNestedFloat a7, Union8BytesNestedFloat a8, Union8BytesNestedFloat a9)) { - Union8BytesNestedFloat a0; - Union8BytesNestedFloat a1; - Union8BytesNestedFloat a2; - Union8BytesNestedFloat a3; - Union8BytesNestedFloat a4; - Union8BytesNestedFloat a5; - Union8BytesNestedFloat a6; - Union8BytesNestedFloat a7; - Union8BytesNestedFloat a8; - Union8BytesNestedFloat a9; + Union8BytesNestedFloat a0 = {}; + Union8BytesNestedFloat a1 = {}; + Union8BytesNestedFloat a2 = {}; + Union8BytesNestedFloat a3 = {}; + Union8BytesNestedFloat a4 = {}; + Union8BytesNestedFloat a5 = {}; + Union8BytesNestedFloat a6 = {}; + Union8BytesNestedFloat a7 = {}; + Union8BytesNestedFloat a8 = {}; + Union8BytesNestedFloat a9 = {}; a0.a0 = -1.0; a1.a0 = 2.0; @@ -11899,16 +11899,16 @@ DART_EXPORT intptr_t TestPassUnion9BytesNestedIntx10( Union9BytesNestedInt a7, Union9BytesNestedInt a8, Union9BytesNestedInt a9)) { - Union9BytesNestedInt a0; - Union9BytesNestedInt a1; - Union9BytesNestedInt a2; - Union9BytesNestedInt a3; - Union9BytesNestedInt a4; - Union9BytesNestedInt a5; - Union9BytesNestedInt a6; - Union9BytesNestedInt a7; - Union9BytesNestedInt a8; - Union9BytesNestedInt a9; + Union9BytesNestedInt a0 = {}; + Union9BytesNestedInt a1 = {}; + Union9BytesNestedInt a2 = {}; + Union9BytesNestedInt a3 = {}; + Union9BytesNestedInt a4 = {}; + Union9BytesNestedInt a5 = {}; + Union9BytesNestedInt a6 = {}; + Union9BytesNestedInt a7 = {}; + Union9BytesNestedInt a8 = {}; + Union9BytesNestedInt a9 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -12052,16 +12052,16 @@ DART_EXPORT intptr_t TestPassUnion16BytesNestedInlineArrayFloatx10( Union16BytesNestedInlineArrayFloat a7, Union16BytesNestedInlineArrayFloat a8, Union16BytesNestedInlineArrayFloat a9)) { - Union16BytesNestedInlineArrayFloat a0; - Union16BytesNestedInlineArrayFloat a1; - Union16BytesNestedInlineArrayFloat a2; - Union16BytesNestedInlineArrayFloat a3; - Union16BytesNestedInlineArrayFloat a4; - Union16BytesNestedInlineArrayFloat a5; - Union16BytesNestedInlineArrayFloat a6; - Union16BytesNestedInlineArrayFloat a7; - Union16BytesNestedInlineArrayFloat a8; - Union16BytesNestedInlineArrayFloat a9; + Union16BytesNestedInlineArrayFloat a0 = {}; + Union16BytesNestedInlineArrayFloat a1 = {}; + Union16BytesNestedInlineArrayFloat a2 = {}; + Union16BytesNestedInlineArrayFloat a3 = {}; + Union16BytesNestedInlineArrayFloat a4 = {}; + Union16BytesNestedInlineArrayFloat a5 = {}; + Union16BytesNestedInlineArrayFloat a6 = {}; + Union16BytesNestedInlineArrayFloat a7 = {}; + Union16BytesNestedInlineArrayFloat a8 = {}; + Union16BytesNestedInlineArrayFloat a9 = {}; a0.a0[0] = -1.0; a0.a0[1] = 2.0; @@ -12171,16 +12171,16 @@ DART_EXPORT intptr_t TestPassUnion16BytesNestedFloatx10( Union16BytesNestedFloat a7, Union16BytesNestedFloat a8, Union16BytesNestedFloat a9)) { - Union16BytesNestedFloat a0; - Union16BytesNestedFloat a1; - Union16BytesNestedFloat a2; - Union16BytesNestedFloat a3; - Union16BytesNestedFloat a4; - Union16BytesNestedFloat a5; - Union16BytesNestedFloat a6; - Union16BytesNestedFloat a7; - Union16BytesNestedFloat a8; - Union16BytesNestedFloat a9; + Union16BytesNestedFloat a0 = {}; + Union16BytesNestedFloat a1 = {}; + Union16BytesNestedFloat a2 = {}; + Union16BytesNestedFloat a3 = {}; + Union16BytesNestedFloat a4 = {}; + Union16BytesNestedFloat a5 = {}; + Union16BytesNestedFloat a6 = {}; + Union16BytesNestedFloat a7 = {}; + Union16BytesNestedFloat a8 = {}; + Union16BytesNestedFloat a9 = {}; a0.a0.a0 = -1.0; a0.a0.a1 = 2.0; @@ -14652,7 +14652,7 @@ DART_EXPORT intptr_t TestReturnUnion8BytesNestedFloat( DART_EXPORT intptr_t TestReturnUnion9BytesNestedInt( // NOLINTNEXTLINE(whitespace/parens) Union9BytesNestedInt (*f)(Struct8BytesInt a0)) { - Struct8BytesInt a0; + Struct8BytesInt a0 = {}; a0.a0 = -1; a0.a1 = 2; @@ -14707,7 +14707,7 @@ DART_EXPORT intptr_t TestReturnUnion9BytesNestedInt( DART_EXPORT intptr_t TestReturnUnion16BytesNestedFloat( // NOLINTNEXTLINE(whitespace/parens) Union16BytesNestedFloat (*f)(Struct8BytesHomogeneousFloat a0)) { - Struct8BytesHomogeneousFloat a0; + Struct8BytesHomogeneousFloat a0 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -14754,7 +14754,7 @@ DART_EXPORT intptr_t TestReturnUnion16BytesNestedFloat( DART_EXPORT intptr_t TestReturnStructArgumentStruct1ByteInt( // NOLINTNEXTLINE(whitespace/parens) Struct1ByteInt (*f)(Struct1ByteInt a0)) { - Struct1ByteInt a0; + Struct1ByteInt a0 = {}; a0.a0 = -1; @@ -14810,7 +14810,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentInt32x8Struct1ByteInt( int32_t a5; int32_t a6; int32_t a7; - Struct1ByteInt a8; + Struct1ByteInt a8 = {}; a0 = -1; a1 = 2; @@ -14860,7 +14860,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentInt32x8Struct1ByteInt( DART_EXPORT intptr_t TestReturnStructArgumentStruct8BytesHomogeneousFloat( // NOLINTNEXTLINE(whitespace/parens) Struct8BytesHomogeneousFloat (*f)(Struct8BytesHomogeneousFloat a0)) { - Struct8BytesHomogeneousFloat a0; + Struct8BytesHomogeneousFloat a0 = {}; a0.a0 = -1.0; a0.a1 = 2.0; @@ -14902,7 +14902,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentStruct8BytesHomogeneousFloat( DART_EXPORT intptr_t TestReturnStructArgumentStruct20BytesHomogeneousInt32( // NOLINTNEXTLINE(whitespace/parens) Struct20BytesHomogeneousInt32 (*f)(Struct20BytesHomogeneousInt32 a0)) { - Struct20BytesHomogeneousInt32 a0; + Struct20BytesHomogeneousInt32 a0 = {}; a0.a0 = -1; a0.a1 = 2; @@ -14975,7 +14975,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentInt32x8Struct20BytesHomogeneou( int32_t a5; int32_t a6; int32_t a7; - Struct20BytesHomogeneousInt32 a8; + Struct20BytesHomogeneousInt32 a8 = {}; a0 = -1; a1 = 2; @@ -15040,7 +15040,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentInt32x8Struct20BytesHomogeneou( DART_EXPORT intptr_t TestReturnStructArgumentStruct8BytesInlineArrayInt( // NOLINTNEXTLINE(whitespace/parens) Struct8BytesInlineArrayInt (*f)(Struct8BytesInlineArrayInt a0)) { - Struct8BytesInlineArrayInt a0; + Struct8BytesInlineArrayInt a0 = {}; a0.a0[0] = 1; a0.a0[1] = 2; @@ -15104,7 +15104,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentStructStruct16BytesHomogeneous( // NOLINTNEXTLINE(whitespace/parens) StructStruct16BytesHomogeneousFloat2 (*f)( StructStruct16BytesHomogeneousFloat2 a0)) { - StructStruct16BytesHomogeneousFloat2 a0; + StructStruct16BytesHomogeneousFloat2 a0 = {}; a0.a0.a0 = -1.0; a0.a1[0].a0 = 2.0; @@ -15160,7 +15160,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentStructStruct32BytesHomogeneous( // NOLINTNEXTLINE(whitespace/parens) StructStruct32BytesHomogeneousDouble2 (*f)( StructStruct32BytesHomogeneousDouble2 a0)) { - StructStruct32BytesHomogeneousDouble2 a0; + StructStruct32BytesHomogeneousDouble2 a0 = {}; a0.a0.a0 = -1.0; a0.a1[0].a0 = 2.0; @@ -15215,7 +15215,7 @@ DART_EXPORT intptr_t TestReturnStructArgumentStructStruct32BytesHomogeneous( DART_EXPORT intptr_t TestReturnStructArgumentStructStruct16BytesMixed3( // NOLINTNEXTLINE(whitespace/parens) StructStruct16BytesMixed3 (*f)(StructStruct16BytesMixed3 a0)) { - StructStruct16BytesMixed3 a0; + StructStruct16BytesMixed3 a0 = {}; a0.a0.a0 = -1.0; a0.a1[0].a0 = 2.0; @@ -15437,8 +15437,8 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedInt( // NOLINTNEXTLINE(whitespace/parens) Struct8BytesNestedInt (*f)(Struct4BytesHomogeneousInt16 a0, Struct4BytesHomogeneousInt16 a1)) { - Struct4BytesHomogeneousInt16 a0; - Struct4BytesHomogeneousInt16 a1; + Struct4BytesHomogeneousInt16 a0 = {}; + Struct4BytesHomogeneousInt16 a1 = {}; a0.a0 = -1; a0.a1 = 2; @@ -15490,8 +15490,8 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedInt( DART_EXPORT intptr_t TestReturnStruct8BytesNestedFloat( // NOLINTNEXTLINE(whitespace/parens) Struct8BytesNestedFloat (*f)(Struct4BytesFloat a0, Struct4BytesFloat a1)) { - Struct4BytesFloat a0; - Struct4BytesFloat a1; + Struct4BytesFloat a0 = {}; + Struct4BytesFloat a1 = {}; a0.a0 = -1.0; a1.a0 = 2.0; @@ -15534,7 +15534,7 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedFloat( DART_EXPORT intptr_t TestReturnStruct8BytesNestedFloat2( // NOLINTNEXTLINE(whitespace/parens) Struct8BytesNestedFloat2 (*f)(Struct4BytesFloat a0, float a1)) { - Struct4BytesFloat a0; + Struct4BytesFloat a0 = {}; float a1; a0.a0 = -1.0; @@ -15578,8 +15578,8 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedMixed( // NOLINTNEXTLINE(whitespace/parens) Struct8BytesNestedMixed (*f)(Struct4BytesHomogeneousInt16 a0, Struct4BytesFloat a1)) { - Struct4BytesHomogeneousInt16 a0; - Struct4BytesFloat a1; + Struct4BytesHomogeneousInt16 a0 = {}; + Struct4BytesFloat a1 = {}; a0.a0 = -1; a0.a1 = 2; @@ -15627,8 +15627,8 @@ DART_EXPORT intptr_t TestReturnStruct16BytesNestedInt( // NOLINTNEXTLINE(whitespace/parens) Struct16BytesNestedInt (*f)(Struct8BytesNestedInt a0, Struct8BytesNestedInt a1)) { - Struct8BytesNestedInt a0; - Struct8BytesNestedInt a1; + Struct8BytesNestedInt a0 = {}; + Struct8BytesNestedInt a1 = {}; a0.a0.a0 = -1; a0.a0.a1 = 2; @@ -15700,8 +15700,8 @@ DART_EXPORT intptr_t TestReturnStruct32BytesNestedInt( // NOLINTNEXTLINE(whitespace/parens) Struct32BytesNestedInt (*f)(Struct16BytesNestedInt a0, Struct16BytesNestedInt a1)) { - Struct16BytesNestedInt a0; - Struct16BytesNestedInt a1; + Struct16BytesNestedInt a0 = {}; + Struct16BytesNestedInt a1 = {}; a0.a0.a0.a0 = -1; a0.a0.a0.a1 = 2; @@ -15814,8 +15814,8 @@ DART_EXPORT intptr_t TestReturnStructNestedIntStructAlignmentInt16( // NOLINTNEXTLINE(whitespace/parens) StructNestedIntStructAlignmentInt16 (*f)(StructAlignmentInt16 a0, StructAlignmentInt16 a1)) { - StructAlignmentInt16 a0; - StructAlignmentInt16 a1; + StructAlignmentInt16 a0 = {}; + StructAlignmentInt16 a1 = {}; a0.a0 = -1; a0.a1 = 2; @@ -15879,8 +15879,8 @@ DART_EXPORT intptr_t TestReturnStructNestedIntStructAlignmentInt32( // NOLINTNEXTLINE(whitespace/parens) StructNestedIntStructAlignmentInt32 (*f)(StructAlignmentInt32 a0, StructAlignmentInt32 a1)) { - StructAlignmentInt32 a0; - StructAlignmentInt32 a1; + StructAlignmentInt32 a0 = {}; + StructAlignmentInt32 a1 = {}; a0.a0 = -1; a0.a1 = 2; @@ -15944,8 +15944,8 @@ DART_EXPORT intptr_t TestReturnStructNestedIntStructAlignmentInt64( // NOLINTNEXTLINE(whitespace/parens) StructNestedIntStructAlignmentInt64 (*f)(StructAlignmentInt64 a0, StructAlignmentInt64 a1)) { - StructAlignmentInt64 a0; - StructAlignmentInt64 a1; + StructAlignmentInt64 a0 = {}; + StructAlignmentInt64 a1 = {}; a0.a0 = -1; a0.a1 = 2; @@ -16012,8 +16012,8 @@ DART_EXPORT intptr_t TestReturnStructNestedIrregularEvenBigger( StructNestedIrregularBigger a2, double a3)) { uint64_t a0; - StructNestedIrregularBigger a1; - StructNestedIrregularBigger a2; + StructNestedIrregularBigger a1 = {}; + StructNestedIrregularBigger a2 = {}; double a3; a0 = 1; diff --git a/runtime/vm/compiler/backend/il.h b/runtime/vm/compiler/backend/il.h index 91fe069b4bc..750271bf93c 100644 --- a/runtime/vm/compiler/backend/il.h +++ b/runtime/vm/compiler/backend/il.h @@ -1265,9 +1265,6 @@ class MoveOperands : public ZoneAllocated { public: MoveOperands(Location dest, Location src) : dest_(dest), src_(src) {} - MoveOperands(const MoveOperands& other) - : dest_(other.dest_), src_(other.src_) {} - MoveOperands& operator=(const MoveOperands& other) { dest_ = other.dest_; src_ = other.src_; diff --git a/runtime/vm/compiler/backend/inliner.cc b/runtime/vm/compiler/backend/inliner.cc index 3163f63426d..eb206db0e22 100644 --- a/runtime/vm/compiler/backend/inliner.cc +++ b/runtime/vm/compiler/backend/inliner.cc @@ -1050,7 +1050,7 @@ class CallSiteInliner : public ValueObject { } else if (PolymorphicInstanceCallInstr* instr = call_data->call->AsPolymorphicInstanceCall()) { entry_kind = instr->entry_kind(); - } else if (ClosureCallInstr* instr = call_data->call->AsClosureCall()) { + } else if (call_data->call->IsClosureCall()) { // Closure functions only have one entry point. } kernel::FlowGraphBuilder builder( diff --git a/runtime/vm/compiler/backend/linearscan.cc b/runtime/vm/compiler/backend/linearscan.cc index 8e3e457d403..d3372191145 100644 --- a/runtime/vm/compiler/backend/linearscan.cc +++ b/runtime/vm/compiler/backend/linearscan.cc @@ -2739,7 +2739,7 @@ static bool AreLocationsAllTheSame(const GrowableArray& locs) { // Emit move on the edge from |pred| to |succ|. static void EmitMoveOnEdge(BlockEntryInstr* succ, BlockEntryInstr* pred, - MoveOperands move) { + const MoveOperands& move) { Instruction* last = pred->last_instruction(); if ((last->SuccessorCount() == 1) && !pred->IsGraphEntry()) { ASSERT(last->IsGoto()); diff --git a/runtime/vm/compiler/backend/locations.h b/runtime/vm/compiler/backend/locations.h index ad2dc865d0e..dcac6050bc1 100644 --- a/runtime/vm/compiler/backend/locations.h +++ b/runtime/vm/compiler/backend/locations.h @@ -220,8 +220,8 @@ class Location : public ValueObject { static Location Constant(const ConstantInstr* obj, int pair_index = 0) { ASSERT((pair_index == 0) || (pair_index == 1)); Location loc(reinterpret_cast(obj) | - (pair_index != 0 ? kPairLocationTag : 0) | - kConstantTag); + (pair_index != 0 ? static_cast(kPairLocationTag) : 0) | + static_cast(kConstantTag)); ASSERT(obj == loc.constant_instruction()); ASSERT(loc.pair_index() == pair_index); return loc; diff --git a/runtime/vm/compiler/backend/redundancy_elimination.cc b/runtime/vm/compiler/backend/redundancy_elimination.cc index e00327a4362..ad6fa8afb9b 100644 --- a/runtime/vm/compiler/backend/redundancy_elimination.cc +++ b/runtime/vm/compiler/backend/redundancy_elimination.cc @@ -3630,7 +3630,7 @@ void AllocationSinking::CreateMaterializationAt( intptr_t num_elements = -1; if (auto instr = alloc->AsAllocateObject()) { cls = &(instr->cls()); - } else if (auto instr = alloc->AsAllocateClosure()) { + } else if (alloc->IsAllocateClosure()) { cls = &Class::ZoneHandle( flow_graph_->isolate_group()->object_store()->closure_class()); } else if (auto instr = alloc->AsAllocateContext()) { diff --git a/runtime/vm/compiler/ffi/range.h b/runtime/vm/compiler/ffi/range.h index 0848875175a..e8742b33bfa 100644 --- a/runtime/vm/compiler/ffi/range.h +++ b/runtime/vm/compiler/ffi/range.h @@ -20,7 +20,7 @@ namespace ffi { // Ranges are positive and non-empty. // // The end is exclusive. -class Range : public ValueObject { +class Range { public: // Constructs a Range from start (inclusive) and length. // @@ -36,9 +36,6 @@ class Range : public ValueObject { return Range(start_inclusive, end_exclusive); } - Range(const Range& other) - : start_(other.start_), end_exclusive_(other.end_exclusive_) {} - intptr_t start() const { return start_; } intptr_t end_exclusive() const { return end_exclusive_; } intptr_t end_inclusive() const { return end_exclusive_ - 1; } @@ -84,10 +81,7 @@ class Range : public ValueObject { private: Range(intptr_t start_inclusive, intptr_t end_exclusive) : start_(start_inclusive), end_exclusive_(end_exclusive) { - if (!(start_ >= 0 && end_exclusive_ > start_)) { - ASSERT(start_ >= 0); - ASSERT(end_exclusive_ > start_); - } + ASSERT(start_ < end_exclusive_); } const intptr_t start_; diff --git a/runtime/vm/compiler/frontend/kernel_translation_helper.cc b/runtime/vm/compiler/frontend/kernel_translation_helper.cc index d16f0cc5e87..d8ce5634db7 100644 --- a/runtime/vm/compiler/frontend/kernel_translation_helper.cc +++ b/runtime/vm/compiler/frontend/kernel_translation_helper.cc @@ -1951,13 +1951,13 @@ UnboxingInfoMetadata* UnboxingInfoMetadataHelper::GetUnboxingInfoMetadata( const auto info = new (helper_->zone_) UnboxingInfoMetadata(); info->SetArgsCount(num_args); for (intptr_t i = 0; i < num_args; i++) { - const auto arg_info = helper_->ReadByte(); + const intptr_t arg_info = helper_->ReadByte(); assert(arg_info >= UnboxingInfoMetadata::kBoxed && arg_info < UnboxingInfoMetadata::kUnboxingCandidate); info->unboxed_args_info[i] = static_cast(arg_info); } - const auto return_info = helper_->ReadByte(); + const intptr_t return_info = helper_->ReadByte(); assert(return_info >= UnboxingInfoMetadata::kBoxed && return_info < UnboxingInfoMetadata::kUnboxingCandidate); info->return_info = diff --git a/runtime/vm/compiler/relocation_test.cc b/runtime/vm/compiler/relocation_test.cc index 0596cd90ce2..b698830b658 100644 --- a/runtime/vm/compiler/relocation_test.cc +++ b/runtime/vm/compiler/relocation_test.cc @@ -430,7 +430,7 @@ ISOLATE_UNIT_TEST_CASE(CodeRelocator_OutOfRangeBackwardCall2) { UNIT_TEST_CASE(PCRelativeCallPatterns) { { - uint8_t instruction[PcRelativeCallPattern::kLengthInBytes]; + uint8_t instruction[PcRelativeCallPattern::kLengthInBytes] = {}; PcRelativeCallPattern pattern(reinterpret_cast(&instruction)); @@ -441,7 +441,7 @@ UNIT_TEST_CASE(PCRelativeCallPatterns) { EXPECT_EQ(PcRelativeCallPattern::kUpperCallingRange, pattern.distance()); } { - uint8_t instruction[PcRelativeTailCallPattern::kLengthInBytes]; + uint8_t instruction[PcRelativeTailCallPattern::kLengthInBytes] = {}; PcRelativeTailCallPattern pattern(reinterpret_cast(&instruction)); diff --git a/runtime/vm/heap/safepoint.cc b/runtime/vm/heap/safepoint.cc index 811cb973c92..4a7e5dea9fc 100644 --- a/runtime/vm/heap/safepoint.cc +++ b/runtime/vm/heap/safepoint.cc @@ -71,15 +71,17 @@ ForceGrowthSafepointOperationScope::~ForceGrowthSafepointOperationScope() { } SafepointHandler::SafepointHandler(IsolateGroup* isolate_group) - : isolate_group_(isolate_group), - handlers_{ - {isolate_group, SafepointLevel::kGC}, - {isolate_group, SafepointLevel::kGCAndDeopt}, - } {} + : isolate_group_(isolate_group) { + handlers_[SafepointLevel::kGC] = + new LevelHandler(isolate_group, SafepointLevel::kGC); + handlers_[SafepointLevel::kGCAndDeopt] = + new LevelHandler(isolate_group, SafepointLevel::kGCAndDeopt); +} SafepointHandler::~SafepointHandler() { for (intptr_t level = 0; level < SafepointLevel::kNumLevels; ++level) { - ASSERT(handlers_[level].owner_ == nullptr); + ASSERT(handlers_[level]->owner_ == nullptr); + delete handlers_[level]; } } @@ -92,8 +94,8 @@ void SafepointHandler::SafepointThreads(Thread* T, SafepointLevel level) { MonitorLocker tl(threads_lock()); // Allow recursive deopt safepoint operation. - if (handlers_[level].owner_ == T) { - handlers_[level].operation_count_++; + if (handlers_[level]->owner_ == T) { + handlers_[level]->operation_count_++; // If we own this safepoint level already we have to own the lower levels // as well. AssertWeOwnLowerLevelSafepoints(T, level); @@ -112,17 +114,17 @@ void SafepointHandler::SafepointThreads(Thread* T, SafepointLevel level) { // Wait until other safepoint operations are done & mark us as owning // the safepoint - so no other thread can. - while (handlers_[level].SafepointInProgress()) { + while (handlers_[level]->SafepointInProgress()) { tl.Wait(); } - handlers_[level].SetSafepointInProgress(T); + handlers_[level]->SetSafepointInProgress(T); // Ensure a thread is at a safepoint or notify it to get to one. - handlers_[level].NotifyThreadsToGetToSafepointLevel(T); + handlers_[level]->NotifyThreadsToGetToSafepointLevel(T); } // Now wait for all threads that are not already at a safepoint to check-in. - handlers_[level].WaitUntilThreadsReachedSafepointLevel(); + handlers_[level]->WaitUntilThreadsReachedSafepointLevel(); AcquireLowerLevelSafepoints(T, level); } @@ -130,7 +132,7 @@ void SafepointHandler::SafepointThreads(Thread* T, SafepointLevel level) { void SafepointHandler::AssertWeOwnLowerLevelSafepoints(Thread* T, SafepointLevel level) { for (intptr_t lower_level = level - 1; lower_level >= 0; --lower_level) { - RELEASE_ASSERT(handlers_[lower_level].owner_ == T); + RELEASE_ASSERT(handlers_[lower_level]->owner_ == T); } } @@ -138,7 +140,7 @@ void SafepointHandler::AssertWeDoNotOwnLowerLevelSafepoints( Thread* T, SafepointLevel level) { for (intptr_t lower_level = level - 1; lower_level >= 0; --lower_level) { - RELEASE_ASSERT(handlers_[lower_level].owner_ != T); + RELEASE_ASSERT(handlers_[lower_level]->owner_ != T); } } @@ -166,19 +168,19 @@ void SafepointHandler::ResumeThreads(Thread* T, SafepointLevel level) { { MonitorLocker sl(threads_lock()); - ASSERT(handlers_[level].SafepointInProgress()); - ASSERT(handlers_[level].owner_ == T); + ASSERT(handlers_[level]->SafepointInProgress()); + ASSERT(handlers_[level]->owner_ == T); AssertWeOwnLowerLevelSafepoints(T, level); // We allow recursive safepoints. - if (handlers_[level].operation_count_ > 1) { - handlers_[level].operation_count_--; + if (handlers_[level]->operation_count_ > 1) { + handlers_[level]->operation_count_--; return; } ReleaseLowerLevelSafepoints(T, level); - handlers_[level].NotifyThreadsToContinue(T); - handlers_[level].ResetSafepointInProgress(T); + handlers_[level]->NotifyThreadsToContinue(T); + handlers_[level]->ResetSafepointInProgress(T); sl.NotifyAll(); } ExitSafepointUsingLock(T); @@ -207,20 +209,20 @@ void SafepointHandler::LevelHandler::WaitUntilThreadsReachedSafepointLevel() { void SafepointHandler::AcquireLowerLevelSafepoints(Thread* T, SafepointLevel level) { MonitorLocker tl(threads_lock()); - ASSERT(handlers_[level].owner_ == T); + ASSERT(handlers_[level]->owner_ == T); for (intptr_t lower_level = level - 1; lower_level >= 0; --lower_level) { - while (handlers_[lower_level].SafepointInProgress()) { + while (handlers_[lower_level]->SafepointInProgress()) { tl.Wait(); } - handlers_[lower_level].SetSafepointInProgress(T); - ASSERT(handlers_[lower_level].owner_ == T); + handlers_[lower_level]->SetSafepointInProgress(T); + ASSERT(handlers_[lower_level]->owner_ == T); } } void SafepointHandler::ReleaseLowerLevelSafepoints(Thread* T, SafepointLevel level) { for (intptr_t lower_level = 0; lower_level < level; ++lower_level) { - handlers_[lower_level].ResetSafepointInProgress(T); + handlers_[lower_level]->ResetSafepointInProgress(T); } } @@ -272,7 +274,7 @@ void SafepointHandler::EnterSafepointLocked(Thread* T, MonitorLocker* tl) { for (intptr_t level = T->current_safepoint_level(); level >= 0; --level) { if (T->IsSafepointLevelRequestedLocked( static_cast(level))) { - handlers_[level].NotifyWeAreParked(T); + handlers_[level]->NotifyWeAreParked(T); } } } diff --git a/runtime/vm/heap/safepoint.h b/runtime/vm/heap/safepoint.h index 13552b7159d..363b3f5cd32 100644 --- a/runtime/vm/heap/safepoint.h +++ b/runtime/vm/heap/safepoint.h @@ -77,7 +77,7 @@ class SafepointHandler { bool IsOwnedByTheThread(Thread* thread) { for (intptr_t level = 0; level < SafepointLevel::kNumLevels; ++level) { - if (handlers_[level].owner_ == thread) { + if (handlers_[level]->owner_ == thread) { return true; } } @@ -86,7 +86,7 @@ class SafepointHandler { bool AnySafepointInProgress() { for (intptr_t level = 0; level < SafepointLevel::kNumLevels; ++level) { - if (handlers_[level].SafepointInProgress()) { + if (handlers_[level]->SafepointInProgress()) { return true; } } @@ -171,7 +171,7 @@ class SafepointHandler { IsolateGroup* isolate_group_; - LevelHandler handlers_[SafepointLevel::kNumLevels]; + LevelHandler* handlers_[SafepointLevel::kNumLevels]; friend class Isolate; friend class IsolateGroup; diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc index 4017d9bca7b..2979b4cf766 100644 --- a/runtime/vm/object.cc +++ b/runtime/vm/object.cc @@ -10247,8 +10247,7 @@ FunctionTypePtr FunctionType::New(intptr_t num_parent_type_arguments, } void FunctionType::set_type_state(uint8_t state) const { - ASSERT((state >= UntaggedFunctionType::kAllocated) && - (state <= UntaggedFunctionType::kFinalizedUninstantiated)); + ASSERT(state <= UntaggedFunctionType::kFinalizedUninstantiated); StoreNonPointer(&untag()->type_state_, state); } @@ -21054,8 +21053,7 @@ TypePtr Type::New(const Class& clazz, } void Type::set_type_state(uint8_t state) const { - ASSERT((state >= UntaggedType::kAllocated) && - (state <= UntaggedType::kFinalizedUninstantiated)); + ASSERT(state <= UntaggedType::kFinalizedUninstantiated); StoreNonPointer(&untag()->type_state_, state); } diff --git a/runtime/vm/object.h b/runtime/vm/object.h index 03824ad7d21..1d5cfa6bc8f 100644 --- a/runtime/vm/object.h +++ b/runtime/vm/object.h @@ -5862,7 +5862,7 @@ class CompressedStackMaps : public Object { /*uses_global_table=*/false); } - class Iterator : public ValueObject { + class Iterator { public: Iterator(const CompressedStackMaps& maps, const CompressedStackMaps& global_table); diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc index e926685a4a5..4ebfbae5389 100644 --- a/runtime/vm/service.cc +++ b/runtime/vm/service.cc @@ -4256,7 +4256,7 @@ static void AddVMMappings(JSONArray* rss_children) { while (fgets(line, sizeof(line), fp) != nullptr) { if (sscanf(line, "%zx-%zx", &start, &end) == 2) { // Mapping line. - strncpy(path, strrchr(line, ' ') + 1, sizeof(path)); + strncpy(path, strrchr(line, ' ') + 1, sizeof(path) - 1); int len = strlen(path); if ((len > 0) && path[len - 1] == '\n') { path[len - 1] = 0; diff --git a/runtime/vm/stack_frame.h b/runtime/vm/stack_frame.h index 2275811337b..e23d93b2ad7 100644 --- a/runtime/vm/stack_frame.h +++ b/runtime/vm/stack_frame.h @@ -210,7 +210,7 @@ class EntryFrame : public StackFrame { // Windows- where it is needed for the profiler. It is the responsibility of // users of StackFrameIterator to ensure that the thread given is not running // concurrently. -class StackFrameIterator : public ValueObject { +class StackFrameIterator { public: enum CrossThreadPolicy { kNoCrossThreadIteration = 0, @@ -219,9 +219,9 @@ class StackFrameIterator : public ValueObject { // Iterators for iterating over all frames from the last ExitFrame to the // first EntryFrame. - explicit StackFrameIterator(ValidationPolicy validation_policy, - Thread* thread, - CrossThreadPolicy cross_thread_policy); + StackFrameIterator(ValidationPolicy validation_policy, + Thread* thread, + CrossThreadPolicy cross_thread_policy); StackFrameIterator(uword last_fp, ValidationPolicy validation_policy, Thread* thread, @@ -236,7 +236,7 @@ class StackFrameIterator : public ValueObject { Thread* thread, CrossThreadPolicy cross_thread_policy); - StackFrameIterator(const StackFrameIterator& orig); + explicit StackFrameIterator(const StackFrameIterator& orig); // Checks if a next frame exists. bool HasNextFrame() const { return frames_.fp_ != 0; } @@ -311,7 +311,7 @@ class StackFrameIterator : public ValueObject { // it is only allowed on Windows- where it is needed for the profiler. // It is the responsibility of users of DartFrameIterator to ensure that the // isolate given is not running concurrently on another thread. -class DartFrameIterator : public ValueObject { +class DartFrameIterator { public: explicit DartFrameIterator( Thread* thread, @@ -340,7 +340,8 @@ class DartFrameIterator : public ValueObject { thread, cross_thread_policy) {} - DartFrameIterator(const DartFrameIterator& orig) : frames_(orig.frames_) {} + explicit DartFrameIterator(const DartFrameIterator& orig) + : frames_(orig.frames_) {} // Get next dart frame. StackFrame* NextFrame() { diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h index a9ff835e734..0f746385969 100644 --- a/runtime/vm/thread.h +++ b/runtime/vm/thread.h @@ -817,7 +817,7 @@ class Thread : public ThreadState { return (state & SafepointRequestedField::mask_in_place()) != 0; case SafepointLevel::kGCAndDeopt: return (state & DeoptSafepointRequestedField::mask_in_place()) != 0; - case SafepointLevel::kNumLevels: + default: UNREACHABLE(); } } @@ -1169,7 +1169,7 @@ class Thread : public ThreadState { case SafepointLevel::kGCAndDeopt: return AtSafepointField::mask_in_place() | AtDeoptSafepointField::mask_in_place(); - case SafepointLevel::kNumLevels: + default: UNREACHABLE(); } } diff --git a/runtime/vm/type_testing_stubs.cc b/runtime/vm/type_testing_stubs.cc index e8e68f607a4..879677c8fa0 100644 --- a/runtime/vm/type_testing_stubs.cc +++ b/runtime/vm/type_testing_stubs.cc @@ -207,7 +207,7 @@ CodePtr TypeTestingStubGenerator::OptimizedCodeForType( static CodePtr RetryCompilationWithFarBranches( Thread* thread, std::function fun) { - bool use_far_branches = false; + volatile bool use_far_branches = false; while (true) { LongJumpScope jump; if (setjmp(*jump.Set()) == 0) { diff --git a/runtime/vm/v8_snapshot_writer.cc b/runtime/vm/v8_snapshot_writer.cc index 351c8319313..c6e061a6825 100644 --- a/runtime/vm/v8_snapshot_writer.cc +++ b/runtime/vm/v8_snapshot_writer.cc @@ -183,6 +183,8 @@ const char* V8SnapshotProfileWriter::ObjectId::IdSpaceToCString(IdSpace space) { return "IsolateData"; case IdSpace::kArtificial: return "Artificial"; + default: + UNREACHABLE(); } } diff --git a/runtime/vm/v8_snapshot_writer.h b/runtime/vm/v8_snapshot_writer.h index ea0a0e74b0e..644a2e044e5 100644 --- a/runtime/vm/v8_snapshot_writer.h +++ b/runtime/vm/v8_snapshot_writer.h @@ -69,16 +69,14 @@ class V8SnapshotProfileWriter : public ZoneAllocated { kElement, kProperty, } type; - union { - intptr_t offset; // kElement - const char* name; // kProperty - }; + intptr_t offset; // kElement + const char* name; // kProperty static Reference Element(intptr_t offset) { - return {Type::kElement, {.offset = offset}}; + return {Type::kElement, offset, nullptr}; } static Reference Property(const char* name) { - return {Type::kProperty, {.name = name}}; + return {Type::kProperty, 0, name}; } bool IsElement() const { return type == Type::kElement; } diff --git a/tests/ffi/generator/structs_by_value_tests_generator.dart b/tests/ffi/generator/structs_by_value_tests_generator.dart index 72f35859203..9063cb2485b 100644 --- a/tests/ffi/generator/structs_by_value_tests_generator.dart +++ b/tests/ffi/generator/structs_by_value_tests_generator.dart @@ -318,9 +318,10 @@ extension on CType { String cAllocateStatements(String variableName) { switch (this.runtimeType) { case FundamentalType: + return "${cType} ${variableName};\n"; case StructType: case UnionType: - return "${cType} ${variableName};\n"; + return "${cType} ${variableName} = {};\n"; } throw Exception("Not implemented for ${this.runtimeType}"); @@ -743,7 +744,7 @@ extension on FunctionType { break; case TestType.structReturn: body = """ - ${returnValue.cType} result; + ${returnValue.cType} result = {}; ${arguments.copyValueStatements("", "result.")} """;