From 7093fbaf4d5873cf9d541388b8363b9786bfbfd4 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Tue, 12 Nov 2024 19:18:58 +0000 Subject: [PATCH 01/12] analyzer: Use Registry.ruleRegistry instead of a rule provider in LinterRuleOptionsValidator. The theme of this change is that the Registry.ruleRegistry is always the source of truth for what lint rules are registered, even in tests. Before this change, there was a mechanism for passing a "rule provider" around different classes and functions, which is a function that returns a list of lint rules. This mechanism only existed for one test, `options_rule_validator_test.dart`. So this change instead makes that test use Registry.ruleRegistry, and removes all of the rule provider mechanisms. All in all: * Remove the LintRuleProvider type alias. * Remove the LinterRuleOptionsValidator constructor's `provider` parameter and corresponding field. * Remove the `provider` parameter from `analyzeAnalysisOptions()`. * Remove the `provider` parameter from `OptionsFileValidator()`. * In AbstractAnalysisOptionsTest, remove the `provider` parameter from `assertErrorsInCode`. * Rename `_validatePluginsOption` to `_validateLegacyPluginsOption` while I'm there. * In order to register the test LintRule classes, they need a proper `lintCode` property. So create a super class for them, simplifying each test LintRule class. Change-Id: Ic153bba006fe0fe2a94abb08ac55723ffb2c356e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/393907 Reviewed-by: Phil Quitslund Commit-Queue: Samuel Rawlins --- .../test/services/linter/linter_test.dart | 8 +- .../lib/src/lint/options_rule_validator.dart | 14 +- pkg/analyzer/lib/src/task/options.dart | 28 ++-- .../analysis_options_test_support.dart | 7 +- .../options/options_rule_validator_test.dart | 134 ++++++++---------- pkg/analyzer/test/src/task/options_test.dart | 1 - 6 files changed, 79 insertions(+), 113 deletions(-) diff --git a/pkg/analysis_server/test/services/linter/linter_test.dart b/pkg/analysis_server/test/services/linter/linter_test.dart index 3920a9f9b38c..adf761dd25d8 100644 --- a/pkg/analysis_server/test/services/linter/linter_test.dart +++ b/pkg/analysis_server/test/services/linter/linter_test.dart @@ -20,16 +20,14 @@ void main() { @reflectiveTest class LinterRuleOptionsValidatorTest { - final LinterRuleOptionsValidator validator = LinterRuleOptionsValidator(); - - final AnalysisOptionsProvider optionsProvider = AnalysisOptionsProvider(); - late RecordingErrorListener recorder; late ErrorReporter reporter; List get errors => recorder.errors; + LinterRuleOptionsValidator get validator => LinterRuleOptionsValidator(); + void setUp() { registerLintRules(); recorder = RecordingErrorListener(); @@ -72,7 +70,7 @@ linter: } void validate(String source, List expected) { - var options = optionsProvider.getOptionsFromString(source); + var options = AnalysisOptionsProvider().getOptionsFromString(source); validator.validate(reporter, options); expect( errors.map((AnalysisError e) => e.errorCode), diff --git a/pkg/analyzer/lib/src/lint/options_rule_validator.dart b/pkg/analyzer/lib/src/lint/options_rule_validator.dart index 98b6e95aa00e..b2d537801a6e 100644 --- a/pkg/analyzer/lib/src/lint/options_rule_validator.dart +++ b/pkg/analyzer/lib/src/lint/options_rule_validator.dart @@ -14,23 +14,18 @@ import 'package:collection/collection.dart'; import 'package:pub_semver/pub_semver.dart'; import 'package:yaml/yaml.dart'; -/// Rule provider. -typedef LintRuleProvider = Iterable Function(); - /// Validates `linter` rule configurations. class LinterRuleOptionsValidator extends OptionsValidator { static const linter = 'linter'; static const rulesKey = 'rules'; - final LintRuleProvider ruleProvider; final VersionConstraint? sdkVersionConstraint; final bool sourceIsOptionsForContextRoot; LinterRuleOptionsValidator({ - LintRuleProvider? provider, this.sdkVersionConstraint, this.sourceIsOptionsForContextRoot = true, - }) : ruleProvider = provider ?? (() => Registry.ruleRegistry.rules); + }); bool currentSdkAllows(Version? since) { if (since == null) return true; @@ -39,8 +34,8 @@ class LinterRuleOptionsValidator extends OptionsValidator { return sdk.allows(since); } - LintRule? getRegisteredLint(Object value) => - ruleProvider().firstWhereOrNull((rule) => rule.name == value); + LintRule? getRegisteredLint(Object value) => Registry.ruleRegistry.rules + .firstWhereOrNull((rule) => rule.name == value); bool isDeprecatedInCurrentSdk(DeprecatedState state) => currentSdkAllows(state.since); @@ -52,13 +47,12 @@ class LinterRuleOptionsValidator extends OptionsValidator { @override List validate(ErrorReporter reporter, YamlMap options) { - List errors = []; var node = options.valueAt(linter); if (node is YamlMap) { var rules = node.valueAt(rulesKey); _validateRules(rules, reporter); } - return errors; + return const []; } void _validateRules(YamlNode? rules, ErrorReporter reporter) { diff --git a/pkg/analyzer/lib/src/task/options.dart b/pkg/analyzer/lib/src/task/options.dart index 2d8f6e4ac6c3..75791cce00de 100644 --- a/pkg/analyzer/lib/src/task/options.dart +++ b/pkg/analyzer/lib/src/task/options.dart @@ -26,9 +26,8 @@ List analyzeAnalysisOptions( String content, SourceFactory sourceFactory, String contextRoot, - VersionConstraint? sdkVersionConstraint, { - LintRuleProvider? provider, -}) { + VersionConstraint? sdkVersionConstraint, +) { List errors = []; Source initialSource = source; SourceSpan? initialIncludeSpan; @@ -71,13 +70,12 @@ List analyzeAnalysisOptions( } // Validates the specified options and any included option files. - void validate(Source source, YamlMap options, LintRuleProvider? provider) { + void validate(Source source, YamlMap options) { var sourceIsOptionsForContextRoot = initialIncludeSpan == null; var validationErrors = OptionsFileValidator( source, sdkVersionConstraint: sdkVersionConstraint, sourceIsOptionsForContextRoot: sourceIsOptionsForContextRoot, - provider: provider, ).validate(options); addDirectErrorOrIncludedError(validationErrors, source, sourceIsOptionsForContextRoot: sourceIsOptionsForContextRoot); @@ -87,7 +85,7 @@ List analyzeAnalysisOptions( // Validate the 'plugins' option in [options], understanding that no other // options are included. addDirectErrorOrIncludedError( - _validatePluginsOption(source, options: options), source, + _validateLegacyPluginsOption(source, options: options), source, sourceIsOptionsForContextRoot: sourceIsOptionsForContextRoot); return; } @@ -145,12 +143,12 @@ List analyzeAnalysisOptions( try { var includedOptions = optionsProvider.getOptionsFromString(includedSource.contents.data); - validate(includedSource, includedOptions, provider); + validate(includedSource, includedOptions); firstPluginName ??= _firstPluginName(includedOptions); // Validate the 'plugins' option in [options], taking into account any // plugins enabled by [includedOptions]. addDirectErrorOrIncludedError( - _validatePluginsOption(source, + _validateLegacyPluginsOption(source, options: options, firstEnabledPluginName: firstPluginName), source, sourceIsOptionsForContextRoot: sourceIsOptionsForContextRoot, @@ -189,7 +187,7 @@ List analyzeAnalysisOptions( try { YamlMap options = optionsProvider.getOptionsFromString(content); - validate(source, options, provider); + validate(source, options); } on OptionsFormatException catch (e) { SourceSpan span = e.span!; errors.add( @@ -205,8 +203,8 @@ List analyzeAnalysisOptions( return errors; } -/// Returns the name of the first plugin, if one is specified in [options], -/// otherwise `null`. +/// Returns the name of the first legacy plugin, if one is specified in +/// [options], otherwise `null`. String? _firstPluginName(YamlMap options) { var analyzerMap = options.valueAt(AnalyzerOptions.analyzer); if (analyzerMap is! YamlMap) { @@ -224,9 +222,9 @@ String? _firstPluginName(YamlMap options) { } } -/// Validates the 'plugins' options in [options], given +/// Validates the legacy 'plugins' options in [options], given /// [firstEnabledPluginName]. -List _validatePluginsOption( +List _validateLegacyPluginsOption( Source source, { required YamlMap options, String? firstEnabledPluginName, @@ -365,16 +363,14 @@ class OptionsFileValidator { OptionsFileValidator( this._source, { - required VersionConstraint? sdkVersionConstraint, + VersionConstraint? sdkVersionConstraint, required bool sourceIsOptionsForContextRoot, - LintRuleProvider? provider, }) : _validators = [ AnalyzerOptionsValidator(), _CodeStyleOptionsValidator(), _FormatterOptionsValidator(), _LinterOptionsValidator(), LinterRuleOptionsValidator( - provider: provider, sdkVersionConstraint: sdkVersionConstraint, sourceIsOptionsForContextRoot: sourceIsOptionsForContextRoot, ), diff --git a/pkg/analyzer/test/src/diagnostics/analysis_options/analysis_options_test_support.dart b/pkg/analyzer/test/src/diagnostics/analysis_options/analysis_options_test_support.dart index f6b8ac28d413..7aab967cb1c0 100644 --- a/pkg/analyzer/test/src/diagnostics/analysis_options/analysis_options_test_support.dart +++ b/pkg/analyzer/test/src/diagnostics/analysis_options/analysis_options_test_support.dart @@ -6,7 +6,6 @@ import 'package:_fe_analyzer_shared/src/base/errors.dart'; import 'package:analyzer/src/context/source.dart'; import 'package:analyzer/src/file_system/file_system.dart'; import 'package:analyzer/src/generated/source.dart'; -import 'package:analyzer/src/lint/options_rule_validator.dart'; import 'package:analyzer/src/task/options.dart'; import 'package:analyzer/src/test_utilities/resource_provider_mixin.dart'; import 'package:pub_semver/pub_semver.dart'; @@ -19,10 +18,7 @@ abstract class AbstractAnalysisOptionsTest with ResourceProviderMixin { VersionConstraint? get sdkVersionConstraint => null; Future assertErrorsInCode( - String code, - List expectedErrors, { - LintRuleProvider? provider, - }) async { + String code, List expectedErrors) async { var path = convertPath('/analysis_options.yaml'); newFile(path, code); var diagnostics = analyzeAnalysisOptions( @@ -31,7 +27,6 @@ abstract class AbstractAnalysisOptionsTest with ResourceProviderMixin { sourceFactory, '/', sdkVersionConstraint, - provider: provider, ); var errorListener = GatheringErrorListener(); errorListener.addAll(diagnostics); diff --git a/pkg/analyzer/test/src/options/options_rule_validator_test.dart b/pkg/analyzer/test/src/options/options_rule_validator_test.dart index d3fbaa01c956..bcdf89c3b4b0 100644 --- a/pkg/analyzer/test/src/options/options_rule_validator_test.dart +++ b/pkg/analyzer/test/src/options/options_rule_validator_test.dart @@ -7,8 +7,8 @@ import 'package:analyzer/error/listener.dart'; import 'package:analyzer/src/analysis_options/error/option_codes.dart'; import 'package:analyzer/src/lint/linter.dart'; import 'package:analyzer/src/lint/options_rule_validator.dart'; +import 'package:analyzer/src/lint/registry.dart'; import 'package:analyzer/src/string_source.dart'; -import 'package:analyzer/src/test_utilities/resource_provider_mixin.dart'; import 'package:pub_semver/pub_semver.dart'; import 'package:test_reflective_loader/test_reflective_loader.dart'; import 'package:yaml/yaml.dart'; @@ -23,30 +23,23 @@ main() { }); } -class DeprecatedLint extends LintRule { - DeprecatedLint() - : super( - name: 'deprecated_lint', - state: State.deprecated(), - description: '', - ); +class DeprecatedLint extends TestLintRule { + DeprecatedLint() : super(name: 'deprecated_lint', state: State.deprecated()); } -class DeprecatedLintWithReplacement extends LintRule { +class DeprecatedLintWithReplacement extends TestLintRule { DeprecatedLintWithReplacement() : super( name: 'deprecated_lint_with_replacement', state: State.deprecated(replacedBy: 'replacing_lint'), - description: '', ); } -class DeprecatedSince3Lint extends LintRule { +class DeprecatedSince3Lint extends TestLintRule { DeprecatedSince3Lint() : super( name: 'deprecated_since_3_lint', state: State.deprecated(since: dart3), - description: '', ); } @@ -65,7 +58,6 @@ linter: include: included.yaml ''', [], - provider: () => rules, ); } @@ -81,20 +73,19 @@ linter: include: included.yaml ''', [], - provider: () => rules, ); } } @reflectiveTest -class OptionsRuleValidatorTest - with OptionsRuleValidatorTestMixin, ResourceProviderMixin { +class OptionsRuleValidatorTest extends AbstractAnalysisOptionsTest + with OptionsRuleValidatorTestMixin { test_deprecated_rule() { assertErrors(''' linter: rules: - deprecated_lint_with_replacement - ''', [AnalysisOptionsHintCode.DEPRECATED_LINT_WITH_REPLACEMENT]); +''', [AnalysisOptionsHintCode.DEPRECATED_LINT_WITH_REPLACEMENT]); } test_deprecated_rule_map() { @@ -102,7 +93,7 @@ linter: linter: rules: deprecated_lint: false - ''', [AnalysisOptionsHintCode.DEPRECATED_LINT]); +''', [AnalysisOptionsHintCode.DEPRECATED_LINT]); } test_deprecated_rule_withReplacement() { @@ -110,7 +101,7 @@ linter: linter: rules: - deprecated_lint - ''', [AnalysisOptionsHintCode.DEPRECATED_LINT]); +''', [AnalysisOptionsHintCode.DEPRECATED_LINT]); } test_deprecated_rule_withSince_inCurrentSdk() { @@ -119,7 +110,7 @@ linter: linter: rules: - deprecated_since_3_lint - ''', +''', [AnalysisOptionsHintCode.DEPRECATED_LINT], sdk: dart3, ); @@ -131,7 +122,7 @@ linter: linter: rules: - deprecated_since_3_lint - ''', +''', [], sdk: Version(2, 17, 0), ); @@ -143,7 +134,7 @@ linter: linter: rules: - deprecated_since_3_lint - ''', +''', // No error [], ); @@ -155,7 +146,7 @@ linter: rules: - stable_lint - stable_lint - ''', [AnalysisOptionsHintCode.DUPLICATE_RULE]); +''', [AnalysisOptionsHintCode.DUPLICATE_RULE]); } test_incompatible_rule() { @@ -164,7 +155,7 @@ linter: rules: - rule_pos - rule_neg - ''', [AnalysisOptionsWarningCode.INCOMPATIBLE_LINT]); +''', [AnalysisOptionsWarningCode.INCOMPATIBLE_LINT]); } test_incompatible_rule_map() { @@ -173,7 +164,7 @@ linter: rules: rule_pos: true rule_neg: true - ''', [AnalysisOptionsWarningCode.INCOMPATIBLE_LINT]); +''', [AnalysisOptionsWarningCode.INCOMPATIBLE_LINT]); } test_incompatible_rule_map_disabled() { @@ -182,7 +173,7 @@ linter: rules: rule_pos: true rule_neg: false - ''', []); +''', []); } test_removed_rule() { @@ -215,7 +206,7 @@ linter: linter: rules: - replaced_lint - ''', +''', [AnalysisOptionsWarningCode.REPLACED_LINT], sdk: dart3, ); @@ -226,7 +217,7 @@ linter: linter: rules: - stable_lint - ''', []); +''', []); } test_stable_rule_map() { @@ -234,7 +225,7 @@ linter: linter: rules: stable_lint: true - ''', []); +''', []); } test_undefined_rule() { @@ -242,7 +233,7 @@ linter: linter: rules: - this_rule_does_not_exist - ''', [AnalysisOptionsWarningCode.UNDEFINED_LINT]); +''', [AnalysisOptionsWarningCode.UNDEFINED_LINT]); } test_undefined_rule_map() { @@ -250,23 +241,11 @@ linter: linter: rules: this_rule_does_not_exist: false - ''', [AnalysisOptionsWarningCode.UNDEFINED_LINT]); +''', [AnalysisOptionsWarningCode.UNDEFINED_LINT]); } } -mixin OptionsRuleValidatorTestMixin { - final rules = [ - DeprecatedLint(), - DeprecatedSince3Lint(), - DeprecatedLintWithReplacement(), - StableLint(), - RuleNeg(), - RulePos(), - RemovedIn2_12Lint(), - ReplacedLint(), - ReplacingLint(), - ]; - +mixin OptionsRuleValidatorTestMixin on AbstractAnalysisOptionsTest { /// Assert that when the validator is used on the given [content] the /// [expectedErrorCodes] are produced. void assertErrors(String content, List expectedErrorCodes, @@ -276,66 +255,71 @@ mixin OptionsRuleValidatorTestMixin { listener, StringSource(content, 'analysis_options.yaml'), ); - var validator = LinterRuleOptionsValidator( - provider: () => rules, sdkVersionConstraint: sdk); + var validator = LinterRuleOptionsValidator(sdkVersionConstraint: sdk); validator.validate(reporter, loadYamlNode(content) as YamlMap); listener.assertErrorsWithCodes(expectedErrorCodes); } + + @override + void setUp() { + Registry.ruleRegistry + ..registerLintRule(DeprecatedLint()) + ..registerLintRule(DeprecatedSince3Lint()) + ..registerLintRule(DeprecatedLintWithReplacement()) + ..registerLintRule(StableLint()) + ..registerLintRule(RuleNeg()) + ..registerLintRule(RulePos()) + ..registerLintRule(RemovedIn2_12Lint()) + ..registerLintRule(ReplacedLint()) + ..registerLintRule(ReplacingLint()); + super.setUp(); + } } -class RemovedIn2_12Lint extends LintRule { +class RemovedIn2_12Lint extends TestLintRule { RemovedIn2_12Lint() : super( name: 'removed_in_2_12_lint', state: State.removed(since: dart2_12), - description: '', ); } -class ReplacedLint extends LintRule { +class ReplacedLint extends TestLintRule { ReplacedLint() : super( name: 'replaced_lint', state: State.removed(since: dart3, replacedBy: 'replacing_lint'), - description: '', ); } -class ReplacingLint extends LintRule { - ReplacingLint() - : super( - name: 'replacing_lint', - description: '', - ); +class ReplacingLint extends TestLintRule { + ReplacingLint() : super(name: 'replacing_lint'); } -class RuleNeg extends LintRule { - RuleNeg() - : super( - name: 'rule_neg', - description: '', - ); +class RuleNeg extends TestLintRule { + RuleNeg() : super(name: 'rule_neg'); @override List get incompatibleRules => ['rule_pos']; } -class RulePos extends LintRule { - RulePos() - : super( - name: 'rule_pos', - description: '', - ); +class RulePos extends TestLintRule { + RulePos() : super(name: 'rule_pos'); @override List get incompatibleRules => ['rule_neg']; } -class StableLint extends LintRule { - StableLint() - : super( - name: 'stable_lint', - state: State.stable(), - description: '', - ); +class StableLint extends TestLintRule { + StableLint() : super(name: 'stable_lint', state: State.stable()); +} + +abstract class TestLintRule extends LintRule { + static const LintCode code = + LintCode('lint_code', 'Lint code.', correctionMessage: 'Lint code.'); + + TestLintRule({required super.name, super.state}) : super(description: ''); + + @override + LintCode get lintCode => code; } diff --git a/pkg/analyzer/test/src/task/options_test.dart b/pkg/analyzer/test/src/task/options_test.dart index 3d709b4c106b..15b22af58b40 100644 --- a/pkg/analyzer/test/src/task/options_test.dart +++ b/pkg/analyzer/test/src/task/options_test.dart @@ -73,7 +73,6 @@ class ErrorCodeValuesTest { class OptionsFileValidatorTest { final OptionsFileValidator validator = OptionsFileValidator( TestSource(), - sdkVersionConstraint: null, sourceIsOptionsForContextRoot: true, ); final AnalysisOptionsProvider optionsProvider = AnalysisOptionsProvider(); From 104f4559763924cedd1dd87913f6151fc711c9c6 Mon Sep 17 00:00:00 2001 From: pq Date: Tue, 12 Nov 2024 19:20:37 +0000 Subject: [PATCH 02/12] [element model] migrate `use_key_in_widget_constructors` Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: I2355eda7d2516137f4bb31b12dc5403e3c003295 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/390502 Auto-Submit: Phil Quitslund Reviewed-by: Brian Wilkerson Commit-Queue: Phil Quitslund --- .../rules/use_key_in_widget_constructors.dart | 35 ++++++------ pkg/linter/lib/src/util/flutter_utils.dart | 57 ++++++++++++++++--- .../use_key_in_widget_constructors_test.dart | 18 ++++++ 3 files changed, 86 insertions(+), 24 deletions(-) diff --git a/pkg/linter/lib/src/rules/use_key_in_widget_constructors.dart b/pkg/linter/lib/src/rules/use_key_in_widget_constructors.dart index da7cf3f9dbee..3c9da8ac798f 100644 --- a/pkg/linter/lib/src/rules/use_key_in_widget_constructors.dart +++ b/pkg/linter/lib/src/rules/use_key_in_widget_constructors.dart @@ -4,7 +4,7 @@ import 'package:analyzer/dart/ast/ast.dart'; import 'package:analyzer/dart/ast/visitor.dart'; -import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/type.dart'; import '../analyzer.dart'; @@ -39,11 +39,11 @@ class _Visitor extends SimpleAstVisitor { @override void visitClassDeclaration(ClassDeclaration node) { - var classElement = node.declaredElement; + var classElement = node.declaredFragment?.element; if (classElement != null && classElement.isPublic && - hasWidgetAsAscendant(classElement) && - classElement.allConstructors.where((e) => !e.isSynthetic).isEmpty) { + classElement.extendsWidget && + classElement.constructors2.where((e) => !e.isSynthetic).isEmpty) { rule.reportLintForToken(node.name); } super.visitClassDeclaration(node); @@ -53,26 +53,26 @@ class _Visitor extends SimpleAstVisitor { void visitConstructorDeclaration(ConstructorDeclaration node) { if (node.isAugmentation) return; - var constructorElement = node.declaredElement; + var constructorElement = node.declaredFragment?.element; if (constructorElement == null) { return; } - var classElement = constructorElement.enclosingElement3; + var classElement = constructorElement.enclosingElement2; if (constructorElement.isPublic && !constructorElement.isFactory && classElement.isPublic && - classElement is ClassElement && - hasWidgetAsAscendant(classElement) && - !isExactWidget(classElement) && + classElement is ClassElement2 && + !classElement.isExactlyWidget && + classElement.extendsWidget && !_hasKeySuperParameterInitializerArg(node) && !node.initializers.any((initializer) { if (initializer is SuperConstructorInvocation) { - var staticElement = initializer.staticElement; + var staticElement = initializer.element; return staticElement != null && (!_defineKeyParameter(staticElement) || _defineKeyArgument(initializer.argumentList)); } else if (initializer is RedirectingConstructorInvocation) { - var staticElement = initializer.staticElement; + var staticElement = initializer.element; return staticElement != null && (!_defineKeyParameter(staticElement) || _defineKeyArgument(initializer.argumentList)); @@ -86,15 +86,16 @@ class _Visitor extends SimpleAstVisitor { } bool _defineKeyArgument(ArgumentList argumentList) => argumentList.arguments - .any((a) => a.staticParameterElement?.name == 'key'); + .any((a) => a.correspondingParameter?.name3 == 'key'); - bool _defineKeyParameter(ConstructorElement element) => - element.parameters.any((e) => e.name == 'key' && _isKeyType(e.type)); + bool _defineKeyParameter(ConstructorElement2 element) => + element.formalParameters + .any((e) => e.name3 == 'key' && _isKeyType(e.type)); bool _hasKeySuperParameterInitializerArg(ConstructorDeclaration node) { - for (var parameter in node.parameters.parameters) { - var element = parameter.declaredElement; - if (element is SuperFormalParameterElement && element.name == 'key') { + for (var parameter in node.parameters.parameterFragments) { + var element = parameter?.element; + if (element is SuperFormalParameterElement2 && element.name3 == 'key') { return true; } } diff --git a/pkg/linter/lib/src/util/flutter_utils.dart b/pkg/linter/lib/src/util/flutter_utils.dart index f78d2f989386..bfe459cf9c67 100644 --- a/pkg/linter/lib/src/util/flutter_utils.dart +++ b/pkg/linter/lib/src/util/flutter_utils.dart @@ -10,6 +10,13 @@ import 'package:analyzer/dart/element/type.dart'; import '../extensions.dart'; import '../util/dart_type_utilities.dart'; +const _nameBuildContext = 'BuildContext'; +const _nameContainer = 'Container'; +const _nameSizedBox = 'SizedBox'; +const _nameState = 'State'; +const _nameStatefulWidget = 'StatefulWidget'; +const _nameWidget = 'Widget'; + var _collectionInterfaces = [ InterfaceTypeDefinition('List', 'dart.core'), InterfaceTypeDefinition('Map', 'dart.core'), @@ -20,6 +27,10 @@ var _collectionInterfaces = [ _Flutter _flutterInstance = _Flutter('flutter', 'package:flutter'); +final Uri _uriFramework = Uri.parse( + 'package:flutter/src/widgets/framework.dart', +); + _Flutter get _flutter => _flutterInstance; bool hasWidgetAsAscendant(ClassElement element) => @@ -64,13 +75,6 @@ bool isWidgetType(DartType? type) => _flutter.isWidgetType(type); /// /// See pkg/analysis_server/lib/src/utilities/flutter.dart. class _Flutter { - static const _nameBuildContext = 'BuildContext'; - static const _nameContainer = 'Container'; - static const _nameSizedBox = 'SizedBox'; - static const _nameState = 'State'; - static const _nameStatefulWidget = 'StatefulWidget'; - static const _nameWidget = 'Widget'; - final String packageName; final String widgetsUri; @@ -122,6 +126,9 @@ class _Flutter { bool isExactWidget(ClassElement element) => isExactly(element, _nameWidget, _uriFramework); + bool isExactWidget2(ClassElement2 element) => + isExactly2(element, _nameWidget, _uriFramework); + bool isExactWidgetTypeContainer(DartType? type) => type is InterfaceType && isExactly(type.element, _nameContainer, _uriContainer); @@ -165,3 +172,39 @@ class _Flutter { bool isWidgetType(DartType? type) => type is InterfaceType && isWidget(type.element3); } + +// TODO(pq): based on similar extension in server. (Move and reuse.) +extension InterfaceElementExtension2 on InterfaceElement2? { + bool get extendsWidget => _hasWidgetAsAscendant(this, {}); + + bool get isExactlyWidget => _isExactly(_nameWidget, _uriFramework); + + /// Whether this is the Flutter class `Widget`, or a subtype. + bool get isWidget { + var self = this; + if (self is! ClassElement2) return false; + + if (isExactlyWidget) return true; + + return self.allSupertypes + .any((type) => type.element3._isExactly(_nameWidget, _uriFramework)); + } + + /// Whether this is the exact [type] defined in the file with the given [uri]. + bool _isExactly(String type, Uri uri) { + var self = this; + return self is ClassElement2 && + self.name3 == type && + self.firstFragment.libraryFragment.source.uri == uri; + } + + static bool _hasWidgetAsAscendant( + InterfaceElement2? element, Set alreadySeen) { + if (element == null) return false; + if (element.isExactlyWidget) return true; + + if (!alreadySeen.add(element)) return false; + + return _hasWidgetAsAscendant(element.supertype?.element3, alreadySeen); + } +} diff --git a/pkg/linter/test/rules/use_key_in_widget_constructors_test.dart b/pkg/linter/test/rules/use_key_in_widget_constructors_test.dart index 834e11871b03..712162f8e3e9 100644 --- a/pkg/linter/test/rules/use_key_in_widget_constructors_test.dart +++ b/pkg/linter/test/rules/use_key_in_widget_constructors_test.dart @@ -127,6 +127,24 @@ class MyWidget extends StatelessWidget { '''); } + test_implementsWidget() async { + await assertNoDiagnostics(r''' +import 'package:flutter/widgets.dart'; + +abstract class AbstractWidget implements Widget {} +'''); + } + + test_key_keyPassedToSuper() async { + await assertNoDiagnostics(r''' +import 'package:flutter/widgets.dart'; + +abstract class MyWidget extends StatelessWidget { + MyWidget({Key? key}) : super(key: key ?? Key('')); +} +'''); + } + test_keyUse_inAugmentedConstructor() async { newFile('$testPackageLibPath/a.dart', r''' part of 'test.dart'; From fc7f12d3ba88fc18e7a6b6326029fb3cb3f04021 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Tue, 12 Nov 2024 19:44:42 +0000 Subject: [PATCH 03/12] [analysis_server] Add enum support for editableArguments Change-Id: I453d54b837577a96c0459a9e729b16443ba3d7fd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394443 Reviewed-by: Brian Wilkerson Reviewed-by: Elliott Brooks Commit-Queue: Brian Wilkerson --- .../custom/handler_editable_arguments.dart | 39 ++++- .../test/lsp/editable_arguments_test.dart | 155 ++++++++++++++++-- .../lib/src/dart/element/element.dart | 8 +- 3 files changed, 179 insertions(+), 23 deletions(-) diff --git a/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_editable_arguments.dart b/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_editable_arguments.dart index 8567dff4888b..85d9334c0ba4 100644 --- a/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_editable_arguments.dart +++ b/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_editable_arguments.dart @@ -13,6 +13,7 @@ import 'package:analyzer/dart/analysis/results.dart'; import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/nullability_suffix.dart'; +import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/src/dart/ast/ast.dart'; import 'package:analyzer/src/dart/element/element.dart'; import 'package:analyzer/src/lint/linter.dart'; @@ -170,6 +171,13 @@ class EditableArgumentsHandler ); } + /// Returns the name of an enum constant prefixed with the enum name. + String? _qualifiedEnumConstant(FieldElement2 enumConstant) { + var enumName = enumConstant.enclosingElement2?.name3; + var name = enumConstant.name3; + return enumName != null && name != null ? '$enumName.$name' : null; + } + /// Converts a [parameter]/[argument] pair into an [EditableArgument] if it /// is an argument that can be edited. EditableArgument? _toEditableArgument( @@ -200,20 +208,43 @@ class EditableArgumentsHandler } else if (parameter.type.isDartCoreString) { type = 'string'; value = (values.argumentValue ?? values.parameterValue)?.toStringValue(); + } else if (parameter.type case InterfaceType(:EnumElement2 element3)) { + type = 'enum'; + options = + element3.constants2.map(_qualifiedEnumConstant).nonNulls.toList(); + + // Try to match the argument value up with the enum. + var valueObject = values.argumentValue ?? values.parameterValue; + if (valueObject?.type case InterfaceType( + element3: EnumElement2 valueElement, + ) when element3 == valueElement) { + var index = valueObject?.getField('index')?.toIntValue(); + if (index != null) { + var enumConstant = element3.constants2.elementAtOrNull(index); + if (enumConstant != null) { + value = _qualifiedEnumConstant(enumConstant); + } + } + } } else { - // TODO(dantup): Enums. - // TODO(dantup): Determine which parameters we don't include (such as // Widgets) and which we include just without values. return null; } + // If the value is not a literal, include the source as displayValue. + var displayValue = + valueExpression is! Literal ? valueExpression?.toSource() : null; + // Unless it turns out to match the value (converted to string). + if (displayValue != null && displayValue == value?.toString()) { + displayValue = null; + } + return EditableArgument( name: parameter.displayName, type: type, value: value, - displayValue: - valueExpression is! Literal ? valueExpression?.toSource() : null, + displayValue: displayValue, options: options, isDefault: values.isDefault, hasArgument: valueExpression != null, diff --git a/pkg/analysis_server/test/lsp/editable_arguments_test.dart b/pkg/analysis_server/test/lsp/editable_arguments_test.dart index a9c808feec73..a4c58ba7841d 100644 --- a/pkg/analysis_server/test/lsp/editable_arguments_test.dart +++ b/pkg/analysis_server/test/lsp/editable_arguments_test.dart @@ -64,6 +64,7 @@ $content Object? isDefault = anything, Object? isRequired = anything, Object? isNullable = anything, + Object? options = anything, }) { return isA() .having((arg) => arg.name, 'name', name) @@ -74,6 +75,7 @@ $content .having((arg) => arg.isDefault, 'isDefault', isDefault) .having((arg) => arg.isRequired, 'isRequired', isRequired) .having((arg) => arg.isNullable, 'isNullable', isNullable) + .having((arg) => arg.options, 'options', options) // Some extra checks that should be true for all. .having( (arg) => @@ -593,15 +595,20 @@ class MyWidget extends StatelessWidget { result, hasArgs( orderedEquals([ - // TODO(dantup): Should we be able to get the `value` here? - isArg('aVar', value: isNull, displayValue: 'myVar'), - isArg('aConst', value: true, displayValue: 'myConst'), + isArg('aVar', type: 'bool', value: isNull, displayValue: 'myVar'), + isArg('aConst', type: 'bool', value: true, displayValue: 'myConst'), isArg( 'aExpr', + type: 'bool', value: isNull, displayValue: 'DateTime.now().isBefore(DateTime.now())', ), - isArg('aConstExpr', value: false, displayValue: '1 == 2'), + isArg( + 'aConstExpr', + type: 'bool', + value: false, + displayValue: '1 == 2', + ), ]), ), ); @@ -693,15 +700,121 @@ class MyWidget extends StatelessWidget { result, hasArgs( orderedEquals([ - // TODO(dantup): Should we be able to get the `value` here? - isArg('aVar', value: isNull, displayValue: 'myVar'), - isArg('aConst', value: 1.0, displayValue: 'myConst'), + isArg('aVar', type: 'double', value: isNull, displayValue: 'myVar'), + isArg('aConst', type: 'double', value: 1.0, displayValue: 'myConst'), isArg( 'aExpr', + type: 'double', value: isNull, displayValue: 'DateTime.now().millisecondsSinceEpoch.toDouble()', ), - isArg('aConstExpr', value: 2.0, displayValue: '1.0 + myConst'), + isArg( + 'aConstExpr', + type: 'double', + value: 2.0, + displayValue: '1.0 + myConst', + ), + ]), + ), + ); + } + + test_type_enum() async { + var result = await getEditableArgumentsFor(''' +enum E { one, two } +class MyWidget extends StatelessWidget { + const MyWidget({ + E supplied = E.one, + E suppliedAsDefault = E.one, + E notSupplied = E.one, + }); + + @override + Widget build(BuildContext context) => MyW^idget( + supplied: E.two, + suppliedAsDefault: E.one, + ); +} +'''); + + var optionsMatcher = equals(['E.one', 'E.two']); + expect( + result, + hasArgs( + orderedEquals([ + isArg( + 'supplied', + type: 'enum', + value: 'E.two', + isDefault: false, + options: optionsMatcher, + ), + isArg( + 'suppliedAsDefault', + type: 'enum', + value: 'E.one', + isDefault: true, + options: optionsMatcher, + ), + isArg( + 'notSupplied', + type: 'enum', + value: 'E.one', + isDefault: true, + options: optionsMatcher, + ), + ]), + ), + ); + } + + test_type_enum_nonLiterals() async { + var result = await getEditableArgumentsFor(''' +enum E { one, two } +var myVar = E.one; +const myConst = E.one; +class MyWidget extends StatelessWidget { + const MyWidget({ + E? aVar, + E? aConst, + E? aExpr, + }); + + @override + Widget build(BuildContext context) => MyW^idget( + aVar: myVar, + aConst: myConst, + aExpr: E.values.first, + ); +} +'''); + + var optionsMatcher = equals(['E.one', 'E.two']); + expect( + result, + hasArgs( + orderedEquals([ + isArg( + 'aVar', + type: 'enum', + value: isNull, + displayValue: 'myVar', + options: optionsMatcher, + ), + isArg( + 'aConst', + type: 'enum', + value: 'E.one', + displayValue: 'myConst', + options: optionsMatcher, + ), + isArg( + 'aExpr', + type: 'enum', + value: isNull, + displayValue: 'E.values.first', + options: optionsMatcher, + ), ]), ), ); @@ -760,15 +873,20 @@ class MyWidget extends StatelessWidget { result, hasArgs( orderedEquals([ - // TODO(dantup): Should we be able to get the `value` here? - isArg('aVar', value: isNull, displayValue: 'myVar'), - isArg('aConst', value: 1, displayValue: 'myConst'), + isArg('aVar', type: 'int', value: isNull, displayValue: 'myVar'), + isArg('aConst', type: 'int', value: 1, displayValue: 'myConst'), isArg( 'aExpr', + type: 'int', value: isNull, displayValue: 'DateTime.now().millisecondsSinceEpoch', ), - isArg('aConstExpr', value: 2, displayValue: '1 + myConst'), + isArg( + 'aConstExpr', + type: 'int', + value: 2, + displayValue: '1 + myConst', + ), ]), ), ); @@ -832,15 +950,20 @@ class MyWidget extends StatelessWidget { result, hasArgs( orderedEquals([ - // TODO(dantup): Should we be able to get the `value` here? - isArg('aVar', value: isNull, displayValue: 'myVar'), - isArg('aConst', value: 'a', displayValue: 'myConst'), + isArg('aVar', type: 'string', value: isNull, displayValue: 'myVar'), + isArg('aConst', type: 'string', value: 'a', displayValue: 'myConst'), isArg( 'aExpr', + type: 'string', value: isNull, displayValue: 'DateTime.now().toString()', ), - isArg('aConstExpr', value: 'ab', displayValue: "'a' + 'b'"), + isArg( + 'aConstExpr', + type: 'string', + value: 'ab', + displayValue: "'a' + 'b'", + ), ]), ), ); diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart index 01257fe5c97d..97d30326fb45 100644 --- a/pkg/analyzer/lib/src/dart/element/element.dart +++ b/pkg/analyzer/lib/src/dart/element/element.dart @@ -3501,7 +3501,8 @@ class EnumElementImpl extends InterfaceElementImpl } @override - List get constants2 => constants.cast(); + List get constants2 => + constants.map((e) => e.asElement2 as FieldElement2).toList(); @override EnumElementImpl2 get element { @@ -3559,7 +3560,8 @@ class EnumElementImpl2 extends InterfaceElementImpl2 } @override - List get constants2 => constants.cast(); + List get constants2 => + constants.map((e) => e.asElement2 as FieldElement2).toList(); @override T? accept2(ElementVisitor2 visitor) { @@ -4201,7 +4203,7 @@ class FieldElementImpl2 extends PropertyInducingElementImpl2 ElementKind get kind => ElementKind.FIELD; @override - String? get name3 => firstFragment.name; + String get name3 => firstFragment.name; @override SetterElement? get setter2 => firstFragment.setter?.element as SetterElement?; From 01165dfc4346aa5368883d923f9926772792968e Mon Sep 17 00:00:00 2001 From: Brian Wilkerson Date: Tue, 12 Nov 2024 19:55:42 +0000 Subject: [PATCH 04/12] Migrate the diagnostic pages Change-Id: I8f3255bf07154ddc32c89535579dbbaa64351414 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394821 Commit-Queue: Brian Wilkerson Reviewed-by: Phil Quitslund --- .../analyzer_use_new_elements.txt | 4 - .../lib/src/status/ast_writer.dart | 55 ++++--- .../lib/src/status/diagnostics.dart | 15 +- .../lib/src/status/element_writer.dart | 143 +++++++++++------- .../lib/src/status/tree_writer.dart | 4 +- pkg/analyzer/lib/src/dart/ast/ast.dart | 5 + .../lib/src/dart/element/element.dart | 2 +- 7 files changed, 133 insertions(+), 95 deletions(-) diff --git a/pkg/analysis_server/analyzer_use_new_elements.txt b/pkg/analysis_server/analyzer_use_new_elements.txt index 6191869c7b5b..de0843b52ba1 100644 --- a/pkg/analysis_server/analyzer_use_new_elements.txt +++ b/pkg/analysis_server/analyzer_use_new_elements.txt @@ -91,10 +91,6 @@ lib/src/services/search/element_visitors.dart lib/src/services/search/hierarchy.dart lib/src/services/search/search_engine.dart lib/src/services/search/search_engine_internal.dart -lib/src/status/ast_writer.dart -lib/src/status/diagnostics.dart -lib/src/status/element_writer.dart -lib/src/status/tree_writer.dart lib/src/utilities/extensions/ast.dart lib/src/utilities/extensions/completion_request.dart lib/src/utilities/extensions/element.dart diff --git a/pkg/analysis_server/lib/src/status/ast_writer.dart b/pkg/analysis_server/lib/src/status/ast_writer.dart index 42bab04187b8..ca6dec32450d 100644 --- a/pkg/analysis_server/lib/src/status/ast_writer.dart +++ b/pkg/analysis_server/lib/src/status/ast_writer.dart @@ -34,34 +34,35 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter { properties['name'] = _getName(node); if (node is ArgumentListImpl) { - properties['static parameter types'] = node.correspondingStaticParameters; + properties['corresponding static parameters'] = + node.correspondingStaticParameters2; } else if (node is Annotation) { - properties['element'] = node.element; + properties['element'] = node.element2; properties['element annotation'] = node.elementAnnotation; } else if (node is BinaryExpression) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static type'] = node.staticType; } else if (node is ClassDeclaration) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; properties['abstract keyword'] = node.abstractKeyword; } else if (node is ClassTypeAlias) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; properties['abstract keyword'] = node.abstractKeyword; } else if (node is CompilationUnit) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; } else if (node is Configuration) { properties['uriSource'] = node.resolvedUri; } else if (node is ConstructorName) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; } else if (node is DeclaredIdentifier) { - properties['element'] = node.declaredElement; + properties['element'] = node.declaredElement2; properties['keyword'] = node.keyword; } else if (node is ExportDirective) { - properties['element'] = node.element; + properties['library export'] = node.libraryExport; } else if (node is FieldDeclaration) { properties['static keyword'] = node.staticKeyword; } else if (node is FormalParameter) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; if (node.isRequiredPositional) { properties['kind'] = 'required-positional'; } else if (node.isRequiredNamed) { @@ -74,26 +75,26 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter { properties['kind'] = 'unknown kind'; } } else if (node is FunctionDeclaration) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; properties['external keyword'] = node.externalKeyword; properties['property keyword'] = node.propertyKeyword; } else if (node is FunctionExpressionInvocation) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static invoke type'] = node.staticInvokeType; properties['static type'] = node.staticType; } else if (node is GenericFunctionType) { properties['type'] = node.type; } else if (node is ImportDirective) { - properties['element'] = node.element; + properties['library import'] = node.libraryImport; } else if (node is IndexExpression) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static type'] = node.staticType; } else if (node is InstanceCreationExpression) { properties['static type'] = node.staticType; } else if (node is LibraryDirective) { - properties['element'] = node.element; + properties['element'] = node.element2; } else if (node is MethodDeclaration) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; properties['external keyword'] = node.externalKeyword; properties['modifier keyword'] = node.modifierKeyword; properties['operator keyword'] = node.operatorKeyword; @@ -102,37 +103,35 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter { properties['static invoke type'] = node.staticInvokeType; properties['static type'] = node.staticType; } else if (node is PartDirective) { - properties['element'] = node.element; - } else if (node is PartOfDirective) { - properties['element'] = node.element; + properties['fragment include'] = node.fragmentInclude; } else if (node is PostfixExpression) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static type'] = node.staticType; } else if (node is PrefixExpression) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static type'] = node.staticType; } else if (node is RedirectingConstructorInvocation) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; } else if (node is SimpleIdentifier) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static type'] = node.staticType; } else if (node is SimpleStringLiteral) { properties['value'] = node.value; } else if (node is SuperConstructorInvocation) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; } else if (node is TypeAnnotation) { properties['type'] = node.type; } else if (node is VariableDeclarationList) { properties['keyword'] = node.keyword; } else if (node is Declaration) { - properties['declaredElement'] = node.declaredElement; + properties['declared fragment'] = node.declaredFragment; } else if (node is Expression) { properties['static type'] = node.staticType; } else if (node is FunctionBody) { - properties['isAsynchronous'] = node.isAsynchronous; - properties['isGenerator'] = node.isGenerator; + properties['is asynchronous'] = node.isAsynchronous; + properties['is generator'] = node.isGenerator; } else if (node is Identifier) { - properties['static element'] = node.staticElement; + properties['element'] = node.element; properties['static type'] = node.staticType; } diff --git a/pkg/analysis_server/lib/src/status/diagnostics.dart b/pkg/analysis_server/lib/src/status/diagnostics.dart index edd1183c33b7..3d24229bcca9 100644 --- a/pkg/analysis_server/lib/src/status/diagnostics.dart +++ b/pkg/analysis_server/lib/src/status/diagnostics.dart @@ -24,7 +24,6 @@ import 'package:analysis_server/src/status/pages.dart'; import 'package:analysis_server/src/utilities/profiling.dart'; import 'package:analyzer/dart/analysis/context_root.dart'; import 'package:analyzer/dart/analysis/results.dart'; -import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/src/context/source.dart'; import 'package:analyzer/src/dart/analysis/analysis_options_map.dart'; import 'package:analyzer/src/dart/analysis/driver.dart'; @@ -1306,13 +1305,17 @@ class ElementModelPage extends DiagnosticPageWithNav { return; } var result = await driver.getResolvedUnit(filePath); - CompilationUnitElement? compilationUnitElement; - if (result is ResolvedUnitResult) { - compilationUnitElement = result.unit.declaredElement; + if (result is! ResolvedUnitResult) { + p( + 'The file ${escape(filePath)} could not be resolved.', + raw: true, + ); + return; } - if (compilationUnitElement != null) { + var libraryFragment = result.unit.declaredFragment; + if (libraryFragment != null) { var writer = ElementWriter(buf); - compilationUnitElement.accept(writer); + writer.write(libraryFragment.element); } else { p( 'An element model could not be produced for the file ' diff --git a/pkg/analysis_server/lib/src/status/element_writer.dart b/pkg/analysis_server/lib/src/status/element_writer.dart index fd98b0a59c28..80659c1bc480 100644 --- a/pkg/analysis_server/lib/src/status/element_writer.dart +++ b/pkg/analysis_server/lib/src/status/element_writer.dart @@ -5,12 +5,11 @@ import 'dart:convert'; import 'package:analysis_server/src/status/tree_writer.dart'; -import 'package:analyzer/dart/element/element.dart'; -import 'package:analyzer/dart/element/visitor.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/src/dart/element/element.dart'; /// A visitor that will produce an HTML representation of an element structure. -class ElementWriter extends GeneralizingElementVisitor with TreeWriter { +class ElementWriter with TreeWriter { @override final StringBuffer buffer; @@ -18,13 +17,15 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter { /// of visited elements on the given [buffer]. ElementWriter(this.buffer); - @override - void visitElement(Element element) { + void write(Element2 element) { _writeElement(element); writeProperties(_computeProperties(element)); + _writeFragments(element); indentLevel++; try { - element.visitChildren(this); + for (var child in element.children2) { + write(child); + } } finally { indentLevel--; } @@ -32,29 +33,24 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter { /// Write a representation of the properties of the given [node] to the /// buffer. - Map _computeProperties(Element element) { + Map _computeProperties(Element2 element) { var properties = {}; - properties['metadata'] = element.metadata; - properties['nameOffset'] = element.nameOffset; - if (element is InterfaceElement) { + if (element case Annotatable element) { + properties['annotations'] = element.metadata2.annotations; + } + if (element is InterfaceElement2) { properties['interfaces'] = element.interfaces; - properties['isEnum'] = element is EnumElement; + properties['isEnum'] = element is EnumElement2; properties['mixins'] = element.mixins; properties['supertype'] = element.supertype; - if (element is ClassElement) { + if (element is ClassElement2) { properties['hasNonFinalField'] = element.hasNonFinalField; properties['isAbstract'] = element.isAbstract; properties['isMixinApplication'] = element.isMixinApplication; properties['isValidMixin'] = element.isValidMixin; } } - if (element is ClassMemberElement) { - properties['isStatic'] = element.isStatic; - } - if (element is CompilationUnitElement) { - properties['source'] = element.source; - } if (element is ConstFieldElementImpl) { properties['evaluationResult'] = element.evaluationResult; } @@ -64,54 +60,43 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter { if (element is ConstTopLevelVariableElementImpl) { properties['evaluationResult'] = element.evaluationResult; } - if (element is ConstructorElement) { + if (element is ConstructorElement2) { properties['isConst'] = element.isConst; properties['isDefaultConstructor'] = element.isDefaultConstructor; properties['isFactory'] = element.isFactory; - properties['redirectedConstructor'] = element.redirectedConstructor; + properties['redirectedConstructor'] = element.redirectedConstructor2; } - if (element is ExecutableElement) { + if (element is ExecutableElement2) { properties['hasImplicitReturnType'] = element.hasImplicitReturnType; properties['isAbstract'] = element.isAbstract; - properties['isAsynchronous'] = element.isAsynchronous; properties['isExternal'] = element.isExternal; - properties['isGenerator'] = element.isGenerator; - properties['isOperator'] = element.isOperator; + if (element is MethodElement2) { + properties['isOperator'] = element.isOperator; + } properties['isStatic'] = element.isStatic; - properties['isSynchronous'] = element.isSynchronous; properties['returnType'] = element.returnType; properties['type'] = element.type; } - if (element is LibraryExportElement) { - properties['combinators'] = element.combinators; - properties['library'] = element.exportedLibrary; - } - if (element is FieldElement) { + if (element is FieldElement2) { properties['isEnumConstant'] = element.isEnumConstant; } - if (element is FieldFormalParameterElement) { - properties['field'] = element.field; + if (element is FieldFormalParameterElement2) { + properties['field'] = element.field2; } - if (element is FunctionElement) { + if (element is TopLevelFunctionElement) { properties['isEntryPoint'] = element.isEntryPoint; } - if (element is FunctionTypedElement) { + if (element is FunctionTypedElement2) { properties['returnType'] = element.returnType; properties['type'] = element.type; } - if (element is LibraryImportElement) { - properties['combinators'] = element.combinators; - properties['isDeferred'] = element.prefix is DeferredImportElementPrefix; - properties['library'] = element.importedLibrary; - } - if (element is LibraryElement) { - properties['definingCompilationUnit'] = element.definingCompilationUnit; - properties['entryPoint'] = element.entryPoint; + if (element is LibraryElement2) { + properties['entryPoint'] = element.entryPoint2; properties['isDartAsync'] = element.isDartAsync; properties['isDartCore'] = element.isDartCore; properties['isInSdk'] = element.isInSdk; } - if (element is ParameterElement) { + if (element is FormalParameterElement) { properties['defaultValueCode'] = element.defaultValueCode; properties['isInitializingFormal'] = element.isInitializingFormal; if (element.isRequiredPositional) { @@ -126,20 +111,16 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter { properties['parameterKind'] = 'unknown kind'; } } - if (element is PropertyAccessorElement) { - properties['isGetter'] = element.isGetter; - properties['isSetter'] = element.isSetter; - } - if (element is PropertyInducingElement) { + if (element is PropertyInducingElement2) { properties['isStatic'] = element.isStatic; } - if (element is TypeParameterElement) { + if (element is TypeParameterElement2) { properties['bound'] = element.bound; } - if (element is TypeParameterizedElement) { - properties['typeParameters'] = element.typeParameters; + if (element is TypeParameterizedElement2) { + properties['typeParameters'] = element.typeParameters2; } - if (element is VariableElement) { + if (element is VariableElement2) { properties['hasImplicitType'] = element.hasImplicitType; properties['isConst'] = element.isConst; properties['isFinal'] = element.isFinal; @@ -150,8 +131,8 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter { return properties; } - /// Write a representation of the given [node] to the buffer. - void _writeElement(Element element) { + /// Write a representation of the given [element] to the buffer. + void _writeElement(Element2 element) { indent(); if (element.isSynthetic) { buffer.write(''); @@ -165,4 +146,58 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter { buffer.write(')'); buffer.write('
'); } + + /// Write a representation of the given [fragment] to the buffer. + void _writeFragment(Fragment fragment, int index) { + indent(); + buffer.write('fragments[$index]: '); + buffer.write(fragment.name2); + buffer.write(' ('); + buffer.write(fragment.runtimeType); + buffer.write(')'); + buffer.write('
'); + var properties = {}; + if (fragment is LibraryFragment) { + properties['source'] = fragment.source; + properties['imports'] = { + for (var import in fragment.libraryImports2) + { + // ignore: analyzer_use_new_elements + 'combinators': import.combinators, + if (import.prefix2 != null) 'prefix': import.prefix2?.name2, + 'isDeferred': import.prefix2?.isDeferred ?? false, + 'library': import.importedLibrary2, + }, + }; + properties['imports'] = { + for (var export in fragment.libraryExports2) + { + // ignore: analyzer_use_new_elements + 'combinators': export.combinators, + 'library': export.exportedLibrary2, + }, + }; + } + properties['nameOffset'] = fragment.nameOffset2; + if (fragment is ExecutableFragment) { + properties['isAsynchronous'] = fragment.isAsynchronous; + properties['isGenerator'] = fragment.isGenerator; + properties['isSynchronous'] = fragment.isSynchronous; + } + writeProperties(properties); + } + + void _writeFragments(Element2 element) { + indentLevel++; + try { + var index = 0; + Fragment? fragment = element.firstFragment; + while (fragment != null) { + _writeFragment(fragment, index++); + fragment = fragment.nextFragment; + } + } finally { + indentLevel--; + } + } } diff --git a/pkg/analysis_server/lib/src/status/tree_writer.dart b/pkg/analysis_server/lib/src/status/tree_writer.dart index 926c59cf0a0b..34f59432d337 100644 --- a/pkg/analysis_server/lib/src/status/tree_writer.dart +++ b/pkg/analysis_server/lib/src/status/tree_writer.dart @@ -4,7 +4,7 @@ import 'dart:convert'; -import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/exception/exception.dart'; import 'package:analyzer/source/source.dart'; import 'package:analyzer/src/dart/constant/value.dart'; @@ -66,7 +66,7 @@ mixin TreeWriter { return 'Source (uri="${value.uri}", path="${value.fullName}")'; } else if (value is ElementAnnotationImpl) { var buffer = StringBuffer(); - buffer.write(_toString(value.element)); + buffer.write(_toString(value.element2)); var result = value.evaluationResult; switch (result) { case null: diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart index c06a6744d11b..1080ef5908cd 100644 --- a/pkg/analyzer/lib/src/dart/ast/ast.dart +++ b/pkg/analyzer/lib/src/dart/ast/ast.dart @@ -452,6 +452,11 @@ final class ArgumentListImpl extends AstNodeImpl implements ArgumentList { _correspondingStaticParameters = parameters; } + List? get correspondingStaticParameters2 => + _correspondingStaticParameters + ?.map((parameter) => parameter.asElement2 as FormalParameterElement) + .toList(); + @override Token get endToken => rightParenthesis; diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart index 97d30326fb45..ca49e5135a92 100644 --- a/pkg/analyzer/lib/src/dart/element/element.dart +++ b/pkg/analyzer/lib/src/dart/element/element.dart @@ -6559,7 +6559,7 @@ class LibraryElementImpl extends ElementImpl @override TopLevelFunctionElement? get entryPoint2 => - entryPoint as TopLevelFunctionElement?; + entryPoint.asElement2 as TopLevelFunctionElement?; @override List get exportedLibraries { From 0a238b382891f8f3164d5ee561468e160f3c554f Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Tue, 12 Nov 2024 20:28:50 +0000 Subject: [PATCH 05/12] [vm] Update to C++20. - There is no C20, so that stays at C17 - Math between different enum types disallowed, use explicit cast - operator++ removed from volatile types - stream print for wchar_t removed TEST=build Bug: https://github.com/dart-lang/sdk/issues/42074 Change-Id: Ie552b0bf24f8ac8991336c61fd4bd4913da42909 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/393622 Commit-Queue: Ryan Macnak Reviewed-by: Alexander Aprelev --- build/config/compiler/BUILD.gn | 12 +- .../ffi_test/ffi_test_functions_generated.cc | 6359 ++++++++--------- runtime/tools/run_clang_tidy.dart | 2 +- runtime/vm/compiler/aot/precompiler.cc | 2 +- runtime/vm/compiler/assembler/assembler_arm.h | 83 +- runtime/vm/compiler/backend/code_statistics.h | 3 +- runtime/vm/compiler/jit/compiler.cc | 9 +- runtime/vm/constants_arm64.h | 66 +- runtime/vm/object.cc | 3 +- runtime/vm/object_graph.cc | 3 +- runtime/vm/thread_test.cc | 4 +- runtime/vm/type_testing_stubs.cc | 2 +- runtime/vm/unit_test.h | 2 +- .../structs_by_value_tests_generator.dart | 2 +- third_party/binaryen/BUILD.gn | 2 + 15 files changed, 2990 insertions(+), 3564 deletions(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 62fffd5f111c..ec354b66edd5 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -327,10 +327,10 @@ config("compiler") { cc_std = [ # This option fixes the value of the __cplusplus macro when using MSVC. "/Zc:__cplusplus", - "/std:c++17", + "/std:c++20", ] } else { - cc_std = [ "-std=c++17" ] + cc_std = [ "-std=c++20" ] } cflags_cc += cc_std cflags_objcc += cc_std @@ -433,10 +433,10 @@ config("compiler") { config("cxx_version_default") { if (is_win) { cflags_c = [ "/std:c17" ] - cc_std = [ "/std:c++17" ] + cc_std = [ "/std:c++20" ] } else { cflags_c = [ "-std=c17" ] - cc_std = [ "-std=c++17" ] + cc_std = [ "-std=c++20" ] } cflags_cc = cc_std cflags_objcc = cc_std @@ -480,10 +480,10 @@ config("cxx_version_17") { config("cxx_version_20") { if (is_win) { - cflags_c = [ "/std:c20" ] + cflags_c = [ "/std:c17" ] cc_std = [ "/std:c++20" ] } else { - cflags_c = [ "-std=c20" ] + cflags_c = [ "-std=c17" ] cc_std = [ "-std=c++20" ] } cflags_cc = cc_std diff --git a/runtime/bin/ffi_test/ffi_test_functions_generated.cc b/runtime/bin/ffi_test/ffi_test_functions_generated.cc index 1fdf90f18912..bc03f0b1f587 100644 --- a/runtime/bin/ffi_test/ffi_test_functions_generated.cc +++ b/runtime/bin/ffi_test/ffi_test_functions_generated.cc @@ -611,15 +611,14 @@ DART_EXPORT int64_t PassStruct1ByteIntx10(Struct1ByteInt a0, Struct1ByteInt a7, Struct1ByteInt a8, Struct1ByteInt a9) { - std::cout << "PassStruct1ByteIntx10" - << "((" << static_cast(a0.a0) << "), (" - << static_cast(a1.a0) << "), (" << static_cast(a2.a0) - << "), (" << static_cast(a3.a0) << "), (" - << static_cast(a4.a0) << "), (" << static_cast(a5.a0) - << "), (" << static_cast(a6.a0) << "), (" - << static_cast(a7.a0) << "), (" << static_cast(a8.a0) - << "), (" << static_cast(a9.a0) << "))" - << "\n"; + std::cout << "PassStruct1ByteIntx10" << "((" << static_cast(a0.a0) + << "), (" << static_cast(a1.a0) << "), (" + << static_cast(a2.a0) << "), (" << static_cast(a3.a0) + << "), (" << static_cast(a4.a0) << "), (" + << static_cast(a5.a0) << "), (" << static_cast(a6.a0) + << "), (" << static_cast(a7.a0) << "), (" + << static_cast(a8.a0) << "), (" << static_cast(a9.a0) + << "))" << "\n"; int64_t result = 0; @@ -653,29 +652,27 @@ PassStruct3BytesHomogeneousUint8x10(Struct3BytesHomogeneousUint8 a0, Struct3BytesHomogeneousUint8 a7, Struct3BytesHomogeneousUint8 a8, Struct3BytesHomogeneousUint8 a9) { - std::cout << "PassStruct3BytesHomogeneousUint8x10" - << "((" << static_cast(a0.a0) << ", " - << static_cast(a0.a1) << ", " << static_cast(a0.a2) - << "), (" << static_cast(a1.a0) << ", " - << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << "), (" << static_cast(a2.a0) << ", " - << static_cast(a2.a1) << ", " << static_cast(a2.a2) - << "), (" << static_cast(a3.a0) << ", " - << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << "), (" << static_cast(a4.a0) << ", " - << static_cast(a4.a1) << ", " << static_cast(a4.a2) - << "), (" << static_cast(a5.a0) << ", " - << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << "), (" << static_cast(a6.a0) << ", " - << static_cast(a6.a1) << ", " << static_cast(a6.a2) - << "), (" << static_cast(a7.a0) << ", " - << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << "), (" << static_cast(a8.a0) << ", " - << static_cast(a8.a1) << ", " << static_cast(a8.a2) - << "), (" << static_cast(a9.a0) << ", " - << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << "))" - << "\n"; + std::cout << "PassStruct3BytesHomogeneousUint8x10" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) + << ", " << static_cast(a0.a2) << "), (" + << static_cast(a1.a0) << ", " << static_cast(a1.a1) + << ", " << static_cast(a1.a2) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) + << ", " << static_cast(a2.a2) << "), (" + << static_cast(a3.a0) << ", " << static_cast(a3.a1) + << ", " << static_cast(a3.a2) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) + << ", " << static_cast(a4.a2) << "), (" + << static_cast(a5.a0) << ", " << static_cast(a5.a1) + << ", " << static_cast(a5.a2) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) + << ", " << static_cast(a6.a2) << "), (" + << static_cast(a7.a0) << ", " << static_cast(a7.a1) + << ", " << static_cast(a7.a2) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) + << ", " << static_cast(a8.a2) << "), (" + << static_cast(a9.a0) << ", " << static_cast(a9.a1) + << ", " << static_cast(a9.a2) << "))" << "\n"; int64_t result = 0; @@ -730,18 +727,17 @@ PassStruct3BytesInt2ByteAlignedx10(Struct3BytesInt2ByteAligned a0, Struct3BytesInt2ByteAligned a7, Struct3BytesInt2ByteAligned a8, Struct3BytesInt2ByteAligned a9) { - std::cout << "PassStruct3BytesInt2ByteAlignedx10" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "), (" - << a1.a0 << ", " << static_cast(a1.a1) << "), (" << a2.a0 - << ", " << static_cast(a2.a1) << "), (" << a3.a0 << ", " + std::cout << "PassStruct3BytesInt2ByteAlignedx10" << "((" << a0.a0 << ", " + << static_cast(a0.a1) << "), (" << a1.a0 << ", " + << static_cast(a1.a1) << "), (" << a2.a0 << ", " + << static_cast(a2.a1) << "), (" << a3.a0 << ", " << static_cast(a3.a1) << "), (" << a4.a0 << ", " << static_cast(a4.a1) << "), (" << a5.a0 << ", " << static_cast(a5.a1) << "), (" << a6.a0 << ", " << static_cast(a6.a1) << "), (" << a7.a0 << ", " << static_cast(a7.a1) << "), (" << a8.a0 << ", " << static_cast(a8.a1) << "), (" << a9.a0 << ", " - << static_cast(a9.a1) << "))" - << "\n"; + << static_cast(a9.a1) << "))" << "\n"; int64_t result = 0; @@ -785,14 +781,13 @@ PassStruct4BytesHomogeneousInt16x10(Struct4BytesHomogeneousInt16 a0, Struct4BytesHomogeneousInt16 a7, Struct4BytesHomogeneousInt16 a8, Struct4BytesHomogeneousInt16 a9) { - std::cout << "PassStruct4BytesHomogeneousInt16x10" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << "\n"; + std::cout << "PassStruct4BytesHomogeneousInt16x10" << "((" << a0.a0 << ", " + << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 << "), (" << a2.a0 + << ", " << a2.a1 << "), (" << a3.a0 << ", " << a3.a1 << "), (" + << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 + << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " + << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" << a9.a0 + << ", " << a9.a1 << "))" << "\n"; int64_t result = 0; @@ -837,43 +832,42 @@ PassStruct7BytesHomogeneousUint8x10(Struct7BytesHomogeneousUint8 a0, Struct7BytesHomogeneousUint8 a8, Struct7BytesHomogeneousUint8 a9) { std::cout - << "PassStruct7BytesHomogeneousUint8x10" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << "))" + << "PassStruct7BytesHomogeneousUint8x10" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << "))" << "\n"; int64_t result = 0; @@ -969,20 +963,19 @@ PassStruct7BytesInt4ByteAlignedx10(Struct7BytesInt4ByteAligned a0, Struct7BytesInt4ByteAligned a7, Struct7BytesInt4ByteAligned a8, Struct7BytesInt4ByteAligned a9) { - std::cout << "PassStruct7BytesInt4ByteAlignedx10" - << "((" << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) - << "), (" << a1.a0 << ", " << a1.a1 << ", " - << static_cast(a1.a2) << "), (" << a2.a0 << ", " << a2.a1 - << ", " << static_cast(a2.a2) << "), (" << a3.a0 << ", " - << a3.a1 << ", " << static_cast(a3.a2) << "), (" << a4.a0 - << ", " << a4.a1 << ", " << static_cast(a4.a2) << "), (" - << a5.a0 << ", " << a5.a1 << ", " << static_cast(a5.a2) - << "), (" << a6.a0 << ", " << a6.a1 << ", " - << static_cast(a6.a2) << "), (" << a7.a0 << ", " << a7.a1 - << ", " << static_cast(a7.a2) << "), (" << a8.a0 << ", " - << a8.a1 << ", " << static_cast(a8.a2) << "), (" << a9.a0 - << ", " << a9.a1 << ", " << static_cast(a9.a2) << "))" - << "\n"; + std::cout << "PassStruct7BytesInt4ByteAlignedx10" << "((" << a0.a0 << ", " + << a0.a1 << ", " << static_cast(a0.a2) << "), (" << a1.a0 + << ", " << a1.a1 << ", " << static_cast(a1.a2) << "), (" + << a2.a0 << ", " << a2.a1 << ", " << static_cast(a2.a2) + << "), (" << a3.a0 << ", " << a3.a1 << ", " + << static_cast(a3.a2) << "), (" << a4.a0 << ", " << a4.a1 + << ", " << static_cast(a4.a2) << "), (" << a5.a0 << ", " + << a5.a1 << ", " << static_cast(a5.a2) << "), (" << a6.a0 + << ", " << a6.a1 << ", " << static_cast(a6.a2) << "), (" + << a7.a0 << ", " << a7.a1 << ", " << static_cast(a7.a2) + << "), (" << a8.a0 << ", " << a8.a1 << ", " + << static_cast(a8.a2) << "), (" << a9.a0 << ", " << a9.a1 + << ", " << static_cast(a9.a2) << "))" << "\n"; int64_t result = 0; @@ -1035,17 +1028,16 @@ DART_EXPORT int64_t PassStruct8BytesIntx10(Struct8BytesInt a0, Struct8BytesInt a7, Struct8BytesInt a8, Struct8BytesInt a9) { - std::cout << "PassStruct8BytesIntx10" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << "), (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << "), (" - << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 - << ", " << a9.a1 << ", " << a9.a2 << "))" - << "\n"; + std::cout << "PassStruct8BytesIntx10" << "((" << a0.a0 << ", " << a0.a1 + << ", " << a0.a2 << "), (" << a1.a0 << ", " << a1.a1 << ", " + << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 + << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << "), (" + << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << "), (" << a5.a0 + << ", " << a5.a1 << ", " << a5.a2 << "), (" << a6.a0 << ", " + << a6.a1 << ", " << a6.a2 << "), (" << a7.a0 << ", " << a7.a1 + << ", " << a7.a2 << "), (" << a8.a0 << ", " << a8.a1 << ", " + << a8.a2 << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 + << "))" << "\n"; int64_t result = 0; @@ -1099,14 +1091,13 @@ DART_EXPORT float PassStruct8BytesHomogeneousFloatx10( Struct8BytesHomogeneousFloat a7, Struct8BytesHomogeneousFloat a8, Struct8BytesHomogeneousFloat a9) { - std::cout << "PassStruct8BytesHomogeneousFloatx10" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << "\n"; + std::cout << "PassStruct8BytesHomogeneousFloatx10" << "((" << a0.a0 << ", " + << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 << "), (" << a2.a0 + << ", " << a2.a1 << "), (" << a3.a0 << ", " << a3.a1 << "), (" + << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 + << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " + << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" << a9.a0 + << ", " << a9.a1 << "))" << "\n"; float result = 0; @@ -1149,17 +1140,16 @@ DART_EXPORT float PassStruct8BytesMixedx10(Struct8BytesMixed a0, Struct8BytesMixed a7, Struct8BytesMixed a8, Struct8BytesMixed a9) { - std::cout << "PassStruct8BytesMixedx10" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << "), (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << "), (" - << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 - << ", " << a9.a1 << ", " << a9.a2 << "))" - << "\n"; + std::cout << "PassStruct8BytesMixedx10" << "((" << a0.a0 << ", " << a0.a1 + << ", " << a0.a2 << "), (" << a1.a0 << ", " << a1.a1 << ", " + << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 + << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << "), (" + << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << "), (" << a5.a0 + << ", " << a5.a1 << ", " << a5.a2 << "), (" << a6.a0 << ", " + << a6.a1 << ", " << a6.a2 << "), (" << a7.a0 << ", " << a7.a1 + << ", " << a7.a2 << "), (" << a8.a0 << ", " << a8.a1 << ", " + << a8.a2 << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 + << "))" << "\n"; float result = 0; @@ -1217,53 +1207,52 @@ PassStruct9BytesHomogeneousUint8x10(Struct9BytesHomogeneousUint8 a0, Struct9BytesHomogeneousUint8 a8, Struct9BytesHomogeneousUint8 a9) { std::cout - << "PassStruct9BytesHomogeneousUint8x10" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << ", " << static_cast(a0.a7) - << ", " << static_cast(a0.a8) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << ", " << static_cast(a1.a7) << ", " << static_cast(a1.a8) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << ", " << static_cast(a2.a7) - << ", " << static_cast(a2.a8) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << ", " << static_cast(a3.a7) << ", " << static_cast(a3.a8) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << ", " << static_cast(a4.a7) - << ", " << static_cast(a4.a8) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << ", " << static_cast(a5.a7) << ", " << static_cast(a5.a8) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << ", " << static_cast(a6.a7) - << ", " << static_cast(a6.a8) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << ", " << static_cast(a7.a7) << ", " << static_cast(a7.a8) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << ", " << static_cast(a8.a7) - << ", " << static_cast(a8.a8) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << ", " << static_cast(a9.a7) << ", " << static_cast(a9.a8) - << "))" + << "PassStruct9BytesHomogeneousUint8x10" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << ", " << static_cast(a0.a7) << ", " + << static_cast(a0.a8) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << ", " + << static_cast(a1.a7) << ", " << static_cast(a1.a8) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << ", " << static_cast(a2.a7) << ", " + << static_cast(a2.a8) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << ", " + << static_cast(a3.a7) << ", " << static_cast(a3.a8) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << ", " << static_cast(a4.a7) << ", " + << static_cast(a4.a8) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << ", " + << static_cast(a5.a7) << ", " << static_cast(a5.a8) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << ", " << static_cast(a6.a7) << ", " + << static_cast(a6.a8) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << ", " + << static_cast(a7.a7) << ", " << static_cast(a7.a8) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << ", " << static_cast(a8.a7) << ", " + << static_cast(a8.a8) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << ", " + << static_cast(a9.a7) << ", " << static_cast(a9.a8) << "))" << "\n"; int64_t result = 0; @@ -1380,18 +1369,17 @@ PassStruct9BytesInt4Or8ByteAlignedx10(Struct9BytesInt4Or8ByteAligned a0, Struct9BytesInt4Or8ByteAligned a7, Struct9BytesInt4Or8ByteAligned a8, Struct9BytesInt4Or8ByteAligned a9) { - std::cout << "PassStruct9BytesInt4Or8ByteAlignedx10" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "), (" - << a1.a0 << ", " << static_cast(a1.a1) << "), (" << a2.a0 - << ", " << static_cast(a2.a1) << "), (" << a3.a0 << ", " + std::cout << "PassStruct9BytesInt4Or8ByteAlignedx10" << "((" << a0.a0 << ", " + << static_cast(a0.a1) << "), (" << a1.a0 << ", " + << static_cast(a1.a1) << "), (" << a2.a0 << ", " + << static_cast(a2.a1) << "), (" << a3.a0 << ", " << static_cast(a3.a1) << "), (" << a4.a0 << ", " << static_cast(a4.a1) << "), (" << a5.a0 << ", " << static_cast(a5.a1) << "), (" << a6.a0 << ", " << static_cast(a6.a1) << "), (" << a7.a0 << ", " << static_cast(a7.a1) << "), (" << a8.a0 << ", " << static_cast(a8.a1) << "), (" << a9.a0 << ", " - << static_cast(a9.a1) << "))" - << "\n"; + << static_cast(a9.a1) << "))" << "\n"; int64_t result = 0; @@ -1432,14 +1420,12 @@ DART_EXPORT float PassStruct12BytesHomogeneousFloatx6( Struct12BytesHomogeneousFloat a3, Struct12BytesHomogeneousFloat a4, Struct12BytesHomogeneousFloat a5) { - std::cout << "PassStruct12BytesHomogeneousFloatx6" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "))" - << "\n"; + std::cout << "PassStruct12BytesHomogeneousFloatx6" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 << ", " << a1.a1 + << ", " << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 << ", " + << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << "), (" + << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << "))" << "\n"; float result = 0; @@ -1477,14 +1463,13 @@ DART_EXPORT float PassStruct16BytesHomogeneousFloatx5( Struct16BytesHomogeneousFloat a2, Struct16BytesHomogeneousFloat a3, Struct16BytesHomogeneousFloat a4) { - std::cout << "PassStruct16BytesHomogeneousFloatx5" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " - << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 - << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " - << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "))" - << "\n"; + std::cout << "PassStruct16BytesHomogeneousFloatx5" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 + << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" + << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 + << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " + << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 + << ", " << a4.a3 << "))" << "\n"; float result = 0; @@ -1529,14 +1514,13 @@ DART_EXPORT double PassStruct16BytesMixedx10(Struct16BytesMixed a0, Struct16BytesMixed a7, Struct16BytesMixed a8, Struct16BytesMixed a9) { - std::cout << "PassStruct16BytesMixedx10" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << "\n"; + std::cout << "PassStruct16BytesMixedx10" << "((" << a0.a0 << ", " << a0.a1 + << "), (" << a1.a0 << ", " << a1.a1 << "), (" << a2.a0 << ", " + << a2.a1 << "), (" << a3.a0 << ", " << a3.a1 << "), (" << a4.a0 + << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 << "), (" + << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " << a7.a1 + << "), (" << a8.a0 << ", " << a8.a1 << "), (" << a9.a0 << ", " + << a9.a1 << "))" << "\n"; double result = 0; @@ -1581,20 +1565,18 @@ DART_EXPORT float PassStruct16BytesMixed2x10(Struct16BytesMixed2 a0, Struct16BytesMixed2 a7, Struct16BytesMixed2 a8, Struct16BytesMixed2 a9) { - std::cout << "PassStruct16BytesMixed2x10" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " - << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 - << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " - << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "), (" << a5.a0 << ", " - << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), (" << a6.a0 - << ", " << a6.a1 << ", " << a6.a2 << ", " << a6.a3 << "), (" - << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), (" << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " - << a8.a3 << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 - << ", " << a9.a3 << "))" - << "\n"; + std::cout << "PassStruct16BytesMixed2x10" << "((" << a0.a0 << ", " << a0.a1 + << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 << ", " + << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" << a2.a0 + << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << "), (" + << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 + << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << ", " + << a4.a3 << "), (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 + << ", " << a5.a3 << "), (" << a6.a0 << ", " << a6.a1 << ", " + << a6.a2 << ", " << a6.a3 << "), (" << a7.a0 << ", " << a7.a1 + << ", " << a7.a2 << ", " << a7.a3 << "), (" << a8.a0 << ", " + << a8.a1 << ", " << a8.a2 << ", " << a8.a3 << "), (" << a9.a0 + << ", " << a9.a1 << ", " << a9.a2 << ", " << a9.a3 << "))" << "\n"; float result = 0; @@ -1657,20 +1639,19 @@ DART_EXPORT int64_t PassStruct17BytesIntx10(Struct17BytesInt a0, Struct17BytesInt a7, Struct17BytesInt a8, Struct17BytesInt a9) { - std::cout << "PassStruct17BytesIntx10" - << "((" << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) - << "), (" << a1.a0 << ", " << a1.a1 << ", " - << static_cast(a1.a2) << "), (" << a2.a0 << ", " << a2.a1 - << ", " << static_cast(a2.a2) << "), (" << a3.a0 << ", " - << a3.a1 << ", " << static_cast(a3.a2) << "), (" << a4.a0 - << ", " << a4.a1 << ", " << static_cast(a4.a2) << "), (" - << a5.a0 << ", " << a5.a1 << ", " << static_cast(a5.a2) - << "), (" << a6.a0 << ", " << a6.a1 << ", " - << static_cast(a6.a2) << "), (" << a7.a0 << ", " << a7.a1 - << ", " << static_cast(a7.a2) << "), (" << a8.a0 << ", " - << a8.a1 << ", " << static_cast(a8.a2) << "), (" << a9.a0 - << ", " << a9.a1 << ", " << static_cast(a9.a2) << "))" - << "\n"; + std::cout << "PassStruct17BytesIntx10" << "((" << a0.a0 << ", " << a0.a1 + << ", " << static_cast(a0.a2) << "), (" << a1.a0 << ", " + << a1.a1 << ", " << static_cast(a1.a2) << "), (" << a2.a0 + << ", " << a2.a1 << ", " << static_cast(a2.a2) << "), (" + << a3.a0 << ", " << a3.a1 << ", " << static_cast(a3.a2) + << "), (" << a4.a0 << ", " << a4.a1 << ", " + << static_cast(a4.a2) << "), (" << a5.a0 << ", " << a5.a1 + << ", " << static_cast(a5.a2) << "), (" << a6.a0 << ", " + << a6.a1 << ", " << static_cast(a6.a2) << "), (" << a7.a0 + << ", " << a7.a1 << ", " << static_cast(a7.a2) << "), (" + << a8.a0 << ", " << a8.a1 << ", " << static_cast(a8.a2) + << "), (" << a9.a0 << ", " << a9.a1 << ", " + << static_cast(a9.a2) << "))" << "\n"; int64_t result = 0; @@ -1726,103 +1707,102 @@ PassStruct19BytesHomogeneousUint8x10(Struct19BytesHomogeneousUint8 a0, Struct19BytesHomogeneousUint8 a8, Struct19BytesHomogeneousUint8 a9) { std::cout - << "PassStruct19BytesHomogeneousUint8x10" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << ", " << static_cast(a0.a7) - << ", " << static_cast(a0.a8) << ", " << static_cast(a0.a9) - << ", " << static_cast(a0.a10) << ", " << static_cast(a0.a11) - << ", " << static_cast(a0.a12) << ", " << static_cast(a0.a13) - << ", " << static_cast(a0.a14) << ", " << static_cast(a0.a15) - << ", " << static_cast(a0.a16) << ", " << static_cast(a0.a17) - << ", " << static_cast(a0.a18) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << ", " << static_cast(a1.a7) << ", " << static_cast(a1.a8) - << ", " << static_cast(a1.a9) << ", " << static_cast(a1.a10) - << ", " << static_cast(a1.a11) << ", " << static_cast(a1.a12) - << ", " << static_cast(a1.a13) << ", " << static_cast(a1.a14) - << ", " << static_cast(a1.a15) << ", " << static_cast(a1.a16) - << ", " << static_cast(a1.a17) << ", " << static_cast(a1.a18) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << ", " << static_cast(a2.a7) - << ", " << static_cast(a2.a8) << ", " << static_cast(a2.a9) - << ", " << static_cast(a2.a10) << ", " << static_cast(a2.a11) - << ", " << static_cast(a2.a12) << ", " << static_cast(a2.a13) - << ", " << static_cast(a2.a14) << ", " << static_cast(a2.a15) - << ", " << static_cast(a2.a16) << ", " << static_cast(a2.a17) - << ", " << static_cast(a2.a18) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << ", " << static_cast(a3.a7) << ", " << static_cast(a3.a8) - << ", " << static_cast(a3.a9) << ", " << static_cast(a3.a10) - << ", " << static_cast(a3.a11) << ", " << static_cast(a3.a12) - << ", " << static_cast(a3.a13) << ", " << static_cast(a3.a14) - << ", " << static_cast(a3.a15) << ", " << static_cast(a3.a16) - << ", " << static_cast(a3.a17) << ", " << static_cast(a3.a18) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << ", " << static_cast(a4.a7) - << ", " << static_cast(a4.a8) << ", " << static_cast(a4.a9) - << ", " << static_cast(a4.a10) << ", " << static_cast(a4.a11) - << ", " << static_cast(a4.a12) << ", " << static_cast(a4.a13) - << ", " << static_cast(a4.a14) << ", " << static_cast(a4.a15) - << ", " << static_cast(a4.a16) << ", " << static_cast(a4.a17) - << ", " << static_cast(a4.a18) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << ", " << static_cast(a5.a7) << ", " << static_cast(a5.a8) - << ", " << static_cast(a5.a9) << ", " << static_cast(a5.a10) - << ", " << static_cast(a5.a11) << ", " << static_cast(a5.a12) - << ", " << static_cast(a5.a13) << ", " << static_cast(a5.a14) - << ", " << static_cast(a5.a15) << ", " << static_cast(a5.a16) - << ", " << static_cast(a5.a17) << ", " << static_cast(a5.a18) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << ", " << static_cast(a6.a7) - << ", " << static_cast(a6.a8) << ", " << static_cast(a6.a9) - << ", " << static_cast(a6.a10) << ", " << static_cast(a6.a11) - << ", " << static_cast(a6.a12) << ", " << static_cast(a6.a13) - << ", " << static_cast(a6.a14) << ", " << static_cast(a6.a15) - << ", " << static_cast(a6.a16) << ", " << static_cast(a6.a17) - << ", " << static_cast(a6.a18) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << ", " << static_cast(a7.a7) << ", " << static_cast(a7.a8) - << ", " << static_cast(a7.a9) << ", " << static_cast(a7.a10) - << ", " << static_cast(a7.a11) << ", " << static_cast(a7.a12) - << ", " << static_cast(a7.a13) << ", " << static_cast(a7.a14) - << ", " << static_cast(a7.a15) << ", " << static_cast(a7.a16) - << ", " << static_cast(a7.a17) << ", " << static_cast(a7.a18) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << ", " << static_cast(a8.a7) - << ", " << static_cast(a8.a8) << ", " << static_cast(a8.a9) - << ", " << static_cast(a8.a10) << ", " << static_cast(a8.a11) - << ", " << static_cast(a8.a12) << ", " << static_cast(a8.a13) - << ", " << static_cast(a8.a14) << ", " << static_cast(a8.a15) - << ", " << static_cast(a8.a16) << ", " << static_cast(a8.a17) - << ", " << static_cast(a8.a18) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << ", " << static_cast(a9.a7) << ", " << static_cast(a9.a8) - << ", " << static_cast(a9.a9) << ", " << static_cast(a9.a10) - << ", " << static_cast(a9.a11) << ", " << static_cast(a9.a12) - << ", " << static_cast(a9.a13) << ", " << static_cast(a9.a14) - << ", " << static_cast(a9.a15) << ", " << static_cast(a9.a16) - << ", " << static_cast(a9.a17) << ", " << static_cast(a9.a18) - << "))" + << "PassStruct19BytesHomogeneousUint8x10" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << ", " << static_cast(a0.a7) << ", " + << static_cast(a0.a8) << ", " << static_cast(a0.a9) << ", " + << static_cast(a0.a10) << ", " << static_cast(a0.a11) << ", " + << static_cast(a0.a12) << ", " << static_cast(a0.a13) << ", " + << static_cast(a0.a14) << ", " << static_cast(a0.a15) << ", " + << static_cast(a0.a16) << ", " << static_cast(a0.a17) << ", " + << static_cast(a0.a18) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << ", " + << static_cast(a1.a7) << ", " << static_cast(a1.a8) << ", " + << static_cast(a1.a9) << ", " << static_cast(a1.a10) << ", " + << static_cast(a1.a11) << ", " << static_cast(a1.a12) << ", " + << static_cast(a1.a13) << ", " << static_cast(a1.a14) << ", " + << static_cast(a1.a15) << ", " << static_cast(a1.a16) << ", " + << static_cast(a1.a17) << ", " << static_cast(a1.a18) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << ", " << static_cast(a2.a7) << ", " + << static_cast(a2.a8) << ", " << static_cast(a2.a9) << ", " + << static_cast(a2.a10) << ", " << static_cast(a2.a11) << ", " + << static_cast(a2.a12) << ", " << static_cast(a2.a13) << ", " + << static_cast(a2.a14) << ", " << static_cast(a2.a15) << ", " + << static_cast(a2.a16) << ", " << static_cast(a2.a17) << ", " + << static_cast(a2.a18) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << ", " + << static_cast(a3.a7) << ", " << static_cast(a3.a8) << ", " + << static_cast(a3.a9) << ", " << static_cast(a3.a10) << ", " + << static_cast(a3.a11) << ", " << static_cast(a3.a12) << ", " + << static_cast(a3.a13) << ", " << static_cast(a3.a14) << ", " + << static_cast(a3.a15) << ", " << static_cast(a3.a16) << ", " + << static_cast(a3.a17) << ", " << static_cast(a3.a18) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << ", " << static_cast(a4.a7) << ", " + << static_cast(a4.a8) << ", " << static_cast(a4.a9) << ", " + << static_cast(a4.a10) << ", " << static_cast(a4.a11) << ", " + << static_cast(a4.a12) << ", " << static_cast(a4.a13) << ", " + << static_cast(a4.a14) << ", " << static_cast(a4.a15) << ", " + << static_cast(a4.a16) << ", " << static_cast(a4.a17) << ", " + << static_cast(a4.a18) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << ", " + << static_cast(a5.a7) << ", " << static_cast(a5.a8) << ", " + << static_cast(a5.a9) << ", " << static_cast(a5.a10) << ", " + << static_cast(a5.a11) << ", " << static_cast(a5.a12) << ", " + << static_cast(a5.a13) << ", " << static_cast(a5.a14) << ", " + << static_cast(a5.a15) << ", " << static_cast(a5.a16) << ", " + << static_cast(a5.a17) << ", " << static_cast(a5.a18) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << ", " << static_cast(a6.a7) << ", " + << static_cast(a6.a8) << ", " << static_cast(a6.a9) << ", " + << static_cast(a6.a10) << ", " << static_cast(a6.a11) << ", " + << static_cast(a6.a12) << ", " << static_cast(a6.a13) << ", " + << static_cast(a6.a14) << ", " << static_cast(a6.a15) << ", " + << static_cast(a6.a16) << ", " << static_cast(a6.a17) << ", " + << static_cast(a6.a18) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << ", " + << static_cast(a7.a7) << ", " << static_cast(a7.a8) << ", " + << static_cast(a7.a9) << ", " << static_cast(a7.a10) << ", " + << static_cast(a7.a11) << ", " << static_cast(a7.a12) << ", " + << static_cast(a7.a13) << ", " << static_cast(a7.a14) << ", " + << static_cast(a7.a15) << ", " << static_cast(a7.a16) << ", " + << static_cast(a7.a17) << ", " << static_cast(a7.a18) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << ", " << static_cast(a8.a7) << ", " + << static_cast(a8.a8) << ", " << static_cast(a8.a9) << ", " + << static_cast(a8.a10) << ", " << static_cast(a8.a11) << ", " + << static_cast(a8.a12) << ", " << static_cast(a8.a13) << ", " + << static_cast(a8.a14) << ", " << static_cast(a8.a15) << ", " + << static_cast(a8.a16) << ", " << static_cast(a8.a17) << ", " + << static_cast(a8.a18) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << ", " + << static_cast(a9.a7) << ", " << static_cast(a9.a8) << ", " + << static_cast(a9.a9) << ", " << static_cast(a9.a10) << ", " + << static_cast(a9.a11) << ", " << static_cast(a9.a12) << ", " + << static_cast(a9.a13) << ", " << static_cast(a9.a14) << ", " + << static_cast(a9.a15) << ", " << static_cast(a9.a16) << ", " + << static_cast(a9.a17) << ", " << static_cast(a9.a18) << "))" << "\n"; int64_t result = 0; @@ -2039,22 +2019,21 @@ PassStruct20BytesHomogeneousInt32x10(Struct20BytesHomogeneousInt32 a0, Struct20BytesHomogeneousInt32 a7, Struct20BytesHomogeneousInt32 a8, Struct20BytesHomogeneousInt32 a9) { - std::cout << "PassStruct20BytesHomogeneousInt32x10" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << ", " - << a1.a2 << ", " << a1.a3 << ", " << a1.a4 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << ", " << a2.a4 - << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " - << a3.a3 << ", " << a3.a4 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << ", " << a4.a4 << "), (" - << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << ", " - << a5.a4 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << ", " << a6.a3 << ", " << a6.a4 << "), (" << a7.a0 << ", " - << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << ", " << a7.a4 - << "), (" << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " - << a8.a3 << ", " << a8.a4 << "), (" << a9.a0 << ", " << a9.a1 - << ", " << a9.a2 << ", " << a9.a3 << ", " << a9.a4 << "))" - << "\n"; + std::cout << "PassStruct20BytesHomogeneousInt32x10" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 + << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " + << a1.a3 << ", " << a1.a4 << "), (" << a2.a0 << ", " << a2.a1 + << ", " << a2.a2 << ", " << a2.a3 << ", " << a2.a4 << "), (" + << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << ", " + << a3.a4 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 + << ", " << a4.a3 << ", " << a4.a4 << "), (" << a5.a0 << ", " + << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << ", " << a5.a4 + << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 << ", " + << a6.a3 << ", " << a6.a4 << "), (" << a7.a0 << ", " << a7.a1 + << ", " << a7.a2 << ", " << a7.a3 << ", " << a7.a4 << "), (" + << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " << a8.a3 << ", " + << a8.a4 << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 + << ", " << a9.a3 << ", " << a9.a4 << "))" << "\n"; int32_t result = 0; @@ -2118,9 +2097,8 @@ PassStruct20BytesHomogeneousInt32x10(Struct20BytesHomogeneousInt32 a0, // Argument too big to go into FPU registers in hardfp and arm64. DART_EXPORT float PassStruct20BytesHomogeneousFloat( Struct20BytesHomogeneousFloat a0) { - std::cout << "PassStruct20BytesHomogeneousFloat" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" + std::cout << "PassStruct20BytesHomogeneousFloat" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 << "))" << "\n"; float result = 0; @@ -2145,14 +2123,13 @@ DART_EXPORT double PassStruct32BytesHomogeneousDoublex5( Struct32BytesHomogeneousDouble a2, Struct32BytesHomogeneousDouble a3, Struct32BytesHomogeneousDouble a4) { - std::cout << "PassStruct32BytesHomogeneousDoublex5" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " - << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 - << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " - << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "))" - << "\n"; + std::cout << "PassStruct32BytesHomogeneousDoublex5" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 + << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" + << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 + << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " + << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 + << ", " << a4.a3 << "))" << "\n"; double result = 0; @@ -2186,9 +2163,8 @@ DART_EXPORT double PassStruct32BytesHomogeneousDoublex5( // Argument too big to go into FPU registers in arm64. DART_EXPORT double PassStruct40BytesHomogeneousDouble( Struct40BytesHomogeneousDouble a0) { - std::cout << "PassStruct40BytesHomogeneousDouble" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" + std::cout << "PassStruct40BytesHomogeneousDouble" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 << "))" << "\n"; double result = 0; @@ -2208,44 +2184,43 @@ DART_EXPORT double PassStruct40BytesHomogeneousDouble( // Test 1kb struct. DART_EXPORT uint64_t PassStruct1024BytesHomogeneousUint64(Struct1024BytesHomogeneousUint64 a0) { - std::cout << "PassStruct1024BytesHomogeneousUint64" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << ", " << a0.a5 << ", " << a0.a6 << ", " << a0.a7 - << ", " << a0.a8 << ", " << a0.a9 << ", " << a0.a10 << ", " - << a0.a11 << ", " << a0.a12 << ", " << a0.a13 << ", " << a0.a14 - << ", " << a0.a15 << ", " << a0.a16 << ", " << a0.a17 << ", " - << a0.a18 << ", " << a0.a19 << ", " << a0.a20 << ", " << a0.a21 - << ", " << a0.a22 << ", " << a0.a23 << ", " << a0.a24 << ", " - << a0.a25 << ", " << a0.a26 << ", " << a0.a27 << ", " << a0.a28 - << ", " << a0.a29 << ", " << a0.a30 << ", " << a0.a31 << ", " - << a0.a32 << ", " << a0.a33 << ", " << a0.a34 << ", " << a0.a35 - << ", " << a0.a36 << ", " << a0.a37 << ", " << a0.a38 << ", " - << a0.a39 << ", " << a0.a40 << ", " << a0.a41 << ", " << a0.a42 - << ", " << a0.a43 << ", " << a0.a44 << ", " << a0.a45 << ", " - << a0.a46 << ", " << a0.a47 << ", " << a0.a48 << ", " << a0.a49 - << ", " << a0.a50 << ", " << a0.a51 << ", " << a0.a52 << ", " - << a0.a53 << ", " << a0.a54 << ", " << a0.a55 << ", " << a0.a56 - << ", " << a0.a57 << ", " << a0.a58 << ", " << a0.a59 << ", " - << a0.a60 << ", " << a0.a61 << ", " << a0.a62 << ", " << a0.a63 - << ", " << a0.a64 << ", " << a0.a65 << ", " << a0.a66 << ", " - << a0.a67 << ", " << a0.a68 << ", " << a0.a69 << ", " << a0.a70 - << ", " << a0.a71 << ", " << a0.a72 << ", " << a0.a73 << ", " - << a0.a74 << ", " << a0.a75 << ", " << a0.a76 << ", " << a0.a77 - << ", " << a0.a78 << ", " << a0.a79 << ", " << a0.a80 << ", " - << a0.a81 << ", " << a0.a82 << ", " << a0.a83 << ", " << a0.a84 - << ", " << a0.a85 << ", " << a0.a86 << ", " << a0.a87 << ", " - << a0.a88 << ", " << a0.a89 << ", " << a0.a90 << ", " << a0.a91 - << ", " << a0.a92 << ", " << a0.a93 << ", " << a0.a94 << ", " - << a0.a95 << ", " << a0.a96 << ", " << a0.a97 << ", " << a0.a98 - << ", " << a0.a99 << ", " << a0.a100 << ", " << a0.a101 << ", " - << a0.a102 << ", " << a0.a103 << ", " << a0.a104 << ", " << a0.a105 - << ", " << a0.a106 << ", " << a0.a107 << ", " << a0.a108 << ", " - << a0.a109 << ", " << a0.a110 << ", " << a0.a111 << ", " << a0.a112 - << ", " << a0.a113 << ", " << a0.a114 << ", " << a0.a115 << ", " - << a0.a116 << ", " << a0.a117 << ", " << a0.a118 << ", " << a0.a119 - << ", " << a0.a120 << ", " << a0.a121 << ", " << a0.a122 << ", " - << a0.a123 << ", " << a0.a124 << ", " << a0.a125 << ", " << a0.a126 - << ", " << a0.a127 << "))" + std::cout << "PassStruct1024BytesHomogeneousUint64" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 << ", " + << a0.a5 << ", " << a0.a6 << ", " << a0.a7 << ", " << a0.a8 << ", " + << a0.a9 << ", " << a0.a10 << ", " << a0.a11 << ", " << a0.a12 + << ", " << a0.a13 << ", " << a0.a14 << ", " << a0.a15 << ", " + << a0.a16 << ", " << a0.a17 << ", " << a0.a18 << ", " << a0.a19 + << ", " << a0.a20 << ", " << a0.a21 << ", " << a0.a22 << ", " + << a0.a23 << ", " << a0.a24 << ", " << a0.a25 << ", " << a0.a26 + << ", " << a0.a27 << ", " << a0.a28 << ", " << a0.a29 << ", " + << a0.a30 << ", " << a0.a31 << ", " << a0.a32 << ", " << a0.a33 + << ", " << a0.a34 << ", " << a0.a35 << ", " << a0.a36 << ", " + << a0.a37 << ", " << a0.a38 << ", " << a0.a39 << ", " << a0.a40 + << ", " << a0.a41 << ", " << a0.a42 << ", " << a0.a43 << ", " + << a0.a44 << ", " << a0.a45 << ", " << a0.a46 << ", " << a0.a47 + << ", " << a0.a48 << ", " << a0.a49 << ", " << a0.a50 << ", " + << a0.a51 << ", " << a0.a52 << ", " << a0.a53 << ", " << a0.a54 + << ", " << a0.a55 << ", " << a0.a56 << ", " << a0.a57 << ", " + << a0.a58 << ", " << a0.a59 << ", " << a0.a60 << ", " << a0.a61 + << ", " << a0.a62 << ", " << a0.a63 << ", " << a0.a64 << ", " + << a0.a65 << ", " << a0.a66 << ", " << a0.a67 << ", " << a0.a68 + << ", " << a0.a69 << ", " << a0.a70 << ", " << a0.a71 << ", " + << a0.a72 << ", " << a0.a73 << ", " << a0.a74 << ", " << a0.a75 + << ", " << a0.a76 << ", " << a0.a77 << ", " << a0.a78 << ", " + << a0.a79 << ", " << a0.a80 << ", " << a0.a81 << ", " << a0.a82 + << ", " << a0.a83 << ", " << a0.a84 << ", " << a0.a85 << ", " + << a0.a86 << ", " << a0.a87 << ", " << a0.a88 << ", " << a0.a89 + << ", " << a0.a90 << ", " << a0.a91 << ", " << a0.a92 << ", " + << a0.a93 << ", " << a0.a94 << ", " << a0.a95 << ", " << a0.a96 + << ", " << a0.a97 << ", " << a0.a98 << ", " << a0.a99 << ", " + << a0.a100 << ", " << a0.a101 << ", " << a0.a102 << ", " << a0.a103 + << ", " << a0.a104 << ", " << a0.a105 << ", " << a0.a106 << ", " + << a0.a107 << ", " << a0.a108 << ", " << a0.a109 << ", " << a0.a110 + << ", " << a0.a111 << ", " << a0.a112 << ", " << a0.a113 << ", " + << a0.a114 << ", " << a0.a115 << ", " << a0.a116 << ", " << a0.a117 + << ", " << a0.a118 << ", " << a0.a119 << ", " << a0.a120 << ", " + << a0.a121 << ", " << a0.a122 << ", " << a0.a123 << ", " << a0.a124 + << ", " << a0.a125 << ", " << a0.a126 << ", " << a0.a127 << "))" << "\n"; uint64_t result = 0; @@ -2396,14 +2371,13 @@ DART_EXPORT float PassFloatStruct16BytesHomogeneousFloatFloatStruct1( float a6, Struct16BytesHomogeneousFloat a7, float a8) { - std::cout << "PassFloatStruct16BytesHomogeneousFloatFloatStruct1" - << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << ", " << a1.a3 << "), " << a2 << ", (" << a3.a0 << ", " << a3.a1 - << ", " << a3.a2 << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 - << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 - << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), " << a8 << ")" - << "\n"; + std::cout << "PassFloatStruct16BytesHomogeneousFloatFloatStruct1" << "(" << a0 + << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 + << "), " << a2 << ", (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 << ", " << a5.a1 + << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 << ", (" << a7.a0 + << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << "), " << a8 + << ")" << "\n"; float result = 0; @@ -2446,14 +2420,13 @@ DART_EXPORT double PassFloatStruct32BytesHomogeneousDoubleFloatStruct( float a6, Struct32BytesHomogeneousDouble a7, float a8) { - std::cout << "PassFloatStruct32BytesHomogeneousDoubleFloatStruct" - << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << ", " << a1.a3 << "), " << a2 << ", (" << a3.a0 << ", " << a3.a1 - << ", " << a3.a2 << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 - << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 - << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), " << a8 << ")" - << "\n"; + std::cout << "PassFloatStruct32BytesHomogeneousDoubleFloatStruct" << "(" << a0 + << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 + << "), " << a2 << ", (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 << ", " << a5.a1 + << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 << ", (" << a7.a0 + << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << "), " << a8 + << ")" << "\n"; double result = 0; @@ -2500,13 +2473,12 @@ DART_EXPORT double PassInt8Struct16BytesMixedInt8Struct16BytesMixedIn( int8_t a6, Struct16BytesMixed a7, int8_t a8) { - std::cout << "PassInt8Struct16BytesMixedInt8Struct16BytesMixedIn" - << "(" << static_cast(a0) << ", (" << a1.a0 << ", " << a1.a1 - << "), " << static_cast(a2) << ", (" << a3.a0 << ", " << a3.a1 - << "), " << static_cast(a4) << ", (" << a5.a0 << ", " << a5.a1 - << "), " << static_cast(a6) << ", (" << a7.a0 << ", " << a7.a1 - << "), " << static_cast(a8) << ")" - << "\n"; + std::cout << "PassInt8Struct16BytesMixedInt8Struct16BytesMixedIn" << "(" + << static_cast(a0) << ", (" << a1.a0 << ", " << a1.a1 << "), " + << static_cast(a2) << ", (" << a3.a0 << ", " << a3.a1 << "), " + << static_cast(a4) << ", (" << a5.a0 << ", " << a5.a1 << "), " + << static_cast(a6) << ", (" << a7.a0 << ", " << a7.a1 << "), " + << static_cast(a8) << ")" << "\n"; double result = 0; @@ -2544,12 +2516,11 @@ DART_EXPORT double PassDoublex6Struct16BytesMixedx4Int32(double a0, Struct16BytesMixed a8, Struct16BytesMixed a9, int32_t a10) { - std::cout << "PassDoublex6Struct16BytesMixedx4Int32" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 - << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" - << a9.a0 << ", " << a9.a1 << "), " << a10 << ")" - << "\n"; + std::cout << "PassDoublex6Struct16BytesMixedx4Int32" << "(" << a0 << ", " + << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 + << ", (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " + << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" << a9.a0 + << ", " << a9.a1 << "), " << a10 << ")" << "\n"; double result = 0; @@ -2587,11 +2558,10 @@ DART_EXPORT double PassInt32x4Struct16BytesMixedx4Double(int32_t a0, Struct16BytesMixed a6, Struct16BytesMixed a7, double a8) { - std::cout << "PassInt32x4Struct16BytesMixedx4Double" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", (" - << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 - << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " - << a7.a1 << "), " << a8 << ")" + std::cout << "PassInt32x4Struct16BytesMixedx4Double" << "(" << a0 << ", " + << a1 << ", " << a2 << ", " << a3 << ", (" << a4.a0 << ", " << a4.a1 + << "), (" << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " + << a6.a1 << "), (" << a7.a0 << ", " << a7.a1 << "), " << a8 << ")" << "\n"; double result = 0; @@ -2622,11 +2592,10 @@ DART_EXPORT double PassStruct40BytesHomogeneousDoubleStruct4BytesHomo( Struct40BytesHomogeneousDouble a0, Struct4BytesHomogeneousInt16 a1, Struct8BytesHomogeneousFloat a2) { - std::cout << "PassStruct40BytesHomogeneousDoubleStruct4BytesHomo" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << "), (" - << a2.a0 << ", " << a2.a1 << "))" - << "\n"; + std::cout << "PassStruct40BytesHomogeneousDoubleStruct4BytesHomo" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << "), (" << a2.a0 + << ", " << a2.a1 << "))" << "\n"; double result = 0; @@ -2688,11 +2657,11 @@ DART_EXPORT double PassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( int64_t a37, int8_t a38, StructAlignmentInt64 a39) { - std::cout << "PassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " - << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 - << ", " << a14 << ", " << a15 << ", " << a16 << ", " + std::cout << "PassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " + << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " << a9 + << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 << ", " + << a14 << ", " << a15 << ", " << a16 << ", " << static_cast(a17) << ", (" << static_cast(a18.a0) << "), " << a19 << ", " << static_cast(a20) << ", (" << a21.a0 << ", " << a21.a1 << "), " << a22 << ", " << static_cast(a23) @@ -2707,8 +2676,7 @@ DART_EXPORT double PassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( << ", " << a36.a1 << ", " << static_cast(a36.a2) << "), " << a37 << ", " << static_cast(a38) << ", (" << static_cast(a39.a0) << ", " << a39.a1 << ", " - << static_cast(a39.a2) << "))" - << "\n"; + << static_cast(a39.a2) << "))" << "\n"; double result = 0; @@ -2773,10 +2741,8 @@ DART_EXPORT double PassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( // Used for testing structs and unions by value. // Test alignment and padding of 16 byte int within struct. DART_EXPORT int64_t PassStructAlignmentInt16(StructAlignmentInt16 a0) { - std::cout << "PassStructAlignmentInt16" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << "\n"; + std::cout << "PassStructAlignmentInt16" << "((" << static_cast(a0.a0) + << ", " << a0.a1 << ", " << static_cast(a0.a2) << "))" << "\n"; int64_t result = 0; @@ -2792,10 +2758,8 @@ DART_EXPORT int64_t PassStructAlignmentInt16(StructAlignmentInt16 a0) { // Used for testing structs and unions by value. // Test alignment and padding of 32 byte int within struct. DART_EXPORT int64_t PassStructAlignmentInt32(StructAlignmentInt32 a0) { - std::cout << "PassStructAlignmentInt32" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << "\n"; + std::cout << "PassStructAlignmentInt32" << "((" << static_cast(a0.a0) + << ", " << a0.a1 << ", " << static_cast(a0.a2) << "))" << "\n"; int64_t result = 0; @@ -2811,10 +2775,8 @@ DART_EXPORT int64_t PassStructAlignmentInt32(StructAlignmentInt32 a0) { // Used for testing structs and unions by value. // Test alignment and padding of 64 byte int within struct. DART_EXPORT int64_t PassStructAlignmentInt64(StructAlignmentInt64 a0) { - std::cout << "PassStructAlignmentInt64" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << "\n"; + std::cout << "PassStructAlignmentInt64" << "((" << static_cast(a0.a0) + << ", " << a0.a1 << ", " << static_cast(a0.a2) << "))" << "\n"; int64_t result = 0; @@ -2840,21 +2802,20 @@ DART_EXPORT int64_t PassStruct8BytesNestedIntx10(Struct8BytesNestedInt a0, Struct8BytesNestedInt a7, Struct8BytesNestedInt a8, Struct8BytesNestedInt a9) { - std::cout << "PassStruct8BytesNestedIntx10" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ", " << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 - << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")), ((" << a2.a0.a0 - << ", " << a2.a0.a1 << "), (" << a2.a1.a0 << ", " << a2.a1.a1 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 - << ", " << a3.a1.a1 << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 - << "), (" << a4.a1.a0 << ", " << a4.a1.a1 << ")), ((" << a5.a0.a0 - << ", " << a5.a0.a1 << "), (" << a5.a1.a0 << ", " << a5.a1.a1 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 - << ", " << a6.a1.a1 << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 - << "), (" << a7.a1.a0 << ", " << a7.a1.a1 << ")), ((" << a8.a0.a0 - << ", " << a8.a0.a1 << "), (" << a8.a1.a0 << ", " << a8.a1.a1 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 - << ", " << a9.a1.a1 << ")))" + std::cout << "PassStruct8BytesNestedIntx10" << "(((" << a0.a0.a0 << ", " + << a0.a0.a1 << "), (" << a0.a1.a0 << ", " << a0.a1.a1 << ")), ((" + << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 << ", " + << a1.a1.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << "), (" + << a2.a1.a0 << ", " << a2.a1.a1 << ")), ((" << a3.a0.a0 << ", " + << a3.a0.a1 << "), (" << a3.a1.a0 << ", " << a3.a1.a1 << ")), ((" + << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 << ", " + << a4.a1.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << "), (" + << a5.a1.a0 << ", " << a5.a1.a1 << ")), ((" << a6.a0.a0 << ", " + << a6.a0.a1 << "), (" << a6.a1.a0 << ", " << a6.a1.a1 << ")), ((" + << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 << ", " + << a7.a1.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << "), (" + << a8.a1.a0 << ", " << a8.a1.a1 << ")), ((" << a9.a0.a0 << ", " + << a9.a0.a1 << "), (" << a9.a1.a0 << ", " << a9.a1.a1 << ")))" << "\n"; int64_t result = 0; @@ -2918,15 +2879,14 @@ DART_EXPORT float PassStruct8BytesNestedFloatx10(Struct8BytesNestedFloat a0, Struct8BytesNestedFloat a7, Struct8BytesNestedFloat a8, Struct8BytesNestedFloat a9) { - std::cout << "PassStruct8BytesNestedFloatx10" - << "(((" << a0.a0.a0 << "), (" << a0.a1.a0 << ")), ((" << a1.a0.a0 - << "), (" << a1.a1.a0 << ")), ((" << a2.a0.a0 << "), (" << a2.a1.a0 - << ")), ((" << a3.a0.a0 << "), (" << a3.a1.a0 << ")), ((" - << a4.a0.a0 << "), (" << a4.a1.a0 << ")), ((" << a5.a0.a0 << "), (" - << a5.a1.a0 << ")), ((" << a6.a0.a0 << "), (" << a6.a1.a0 - << ")), ((" << a7.a0.a0 << "), (" << a7.a1.a0 << ")), ((" - << a8.a0.a0 << "), (" << a8.a1.a0 << ")), ((" << a9.a0.a0 << "), (" - << a9.a1.a0 << ")))" + std::cout << "PassStruct8BytesNestedFloatx10" << "(((" << a0.a0.a0 << "), (" + << a0.a1.a0 << ")), ((" << a1.a0.a0 << "), (" << a1.a1.a0 + << ")), ((" << a2.a0.a0 << "), (" << a2.a1.a0 << ")), ((" + << a3.a0.a0 << "), (" << a3.a1.a0 << ")), ((" << a4.a0.a0 << "), (" + << a4.a1.a0 << ")), ((" << a5.a0.a0 << "), (" << a5.a1.a0 + << ")), ((" << a6.a0.a0 << "), (" << a6.a1.a0 << ")), ((" + << a7.a0.a0 << "), (" << a7.a1.a0 << ")), ((" << a8.a0.a0 << "), (" + << a8.a1.a0 << ")), ((" << a9.a0.a0 << "), (" << a9.a1.a0 << ")))" << "\n"; float result = 0; @@ -2972,15 +2932,14 @@ DART_EXPORT float PassStruct8BytesNestedFloat2x10(Struct8BytesNestedFloat2 a0, Struct8BytesNestedFloat2 a7, Struct8BytesNestedFloat2 a8, Struct8BytesNestedFloat2 a9) { - std::cout << "PassStruct8BytesNestedFloat2x10" - << "(((" << a0.a0.a0 << "), " << a0.a1 << "), ((" << a1.a0.a0 - << "), " << a1.a1 << "), ((" << a2.a0.a0 << "), " << a2.a1 - << "), ((" << a3.a0.a0 << "), " << a3.a1 << "), ((" << a4.a0.a0 - << "), " << a4.a1 << "), ((" << a5.a0.a0 << "), " << a5.a1 - << "), ((" << a6.a0.a0 << "), " << a6.a1 << "), ((" << a7.a0.a0 - << "), " << a7.a1 << "), ((" << a8.a0.a0 << "), " << a8.a1 - << "), ((" << a9.a0.a0 << "), " << a9.a1 << "))" - << "\n"; + std::cout << "PassStruct8BytesNestedFloat2x10" << "(((" << a0.a0.a0 << "), " + << a0.a1 << "), ((" << a1.a0.a0 << "), " << a1.a1 << "), ((" + << a2.a0.a0 << "), " << a2.a1 << "), ((" << a3.a0.a0 << "), " + << a3.a1 << "), ((" << a4.a0.a0 << "), " << a4.a1 << "), ((" + << a5.a0.a0 << "), " << a5.a1 << "), ((" << a6.a0.a0 << "), " + << a6.a1 << "), ((" << a7.a0.a0 << "), " << a7.a1 << "), ((" + << a8.a0.a0 << "), " << a8.a1 << "), ((" << a9.a0.a0 << "), " + << a9.a1 << "))" << "\n"; float result = 0; @@ -3023,19 +2982,17 @@ DART_EXPORT double PassStruct8BytesNestedMixedx10(Struct8BytesNestedMixed a0, Struct8BytesNestedMixed a7, Struct8BytesNestedMixed a8, Struct8BytesNestedMixed a9) { - std::cout << "PassStruct8BytesNestedMixedx10" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 - << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << "), (" << a2.a1.a0 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 - << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 - << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << "), (" << a5.a1.a0 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 - << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 - << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << "), (" << a8.a1.a0 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 - << ")))" - << "\n"; + std::cout << "PassStruct8BytesNestedMixedx10" << "(((" << a0.a0.a0 << ", " + << a0.a0.a1 << "), (" << a0.a1.a0 << ")), ((" << a1.a0.a0 << ", " + << a1.a0.a1 << "), (" << a1.a1.a0 << ")), ((" << a2.a0.a0 << ", " + << a2.a0.a1 << "), (" << a2.a1.a0 << ")), ((" << a3.a0.a0 << ", " + << a3.a0.a1 << "), (" << a3.a1.a0 << ")), ((" << a4.a0.a0 << ", " + << a4.a0.a1 << "), (" << a4.a1.a0 << ")), ((" << a5.a0.a0 << ", " + << a5.a0.a1 << "), (" << a5.a1.a0 << ")), ((" << a6.a0.a0 << ", " + << a6.a0.a1 << "), (" << a6.a1.a0 << ")), ((" << a7.a0.a0 << ", " + << a7.a0.a1 << "), (" << a7.a1.a0 << ")), ((" << a8.a0.a0 << ", " + << a8.a0.a1 << "), (" << a8.a1.a0 << ")), ((" << a9.a0.a0 << ", " + << a9.a0.a1 << "), (" << a9.a1.a0 << ")))" << "\n"; double result = 0; @@ -3079,15 +3036,13 @@ DART_EXPORT double PassStruct8BytesNestedMixedx10(Struct8BytesNestedMixed a0, // Deeper nested struct to test recursive member access. DART_EXPORT int64_t PassStruct16BytesNestedIntx2(Struct16BytesNestedInt a0, Struct16BytesNestedInt a1) { - std::cout << "PassStruct16BytesNestedIntx2" - << "((((" << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" - << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 - << ", " << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " - << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 - << "), (" << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" - << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 - << ", " << a1.a1.a1.a1 << "))))" - << "\n"; + std::cout << "PassStruct16BytesNestedIntx2" << "((((" << a0.a0.a0.a0 << ", " + << a0.a0.a0.a1 << "), (" << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 + << ")), ((" << a0.a1.a0.a0 << ", " << a0.a1.a0.a1 << "), (" + << a0.a1.a1.a0 << ", " << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 + << ", " << a1.a0.a0.a1 << "), (" << a1.a0.a1.a0 << ", " + << a1.a0.a1.a1 << ")), ((" << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 + << "), (" << a1.a1.a1.a0 << ", " << a1.a1.a1.a1 << "))))" << "\n"; int64_t result = 0; @@ -3117,24 +3072,23 @@ DART_EXPORT int64_t PassStruct16BytesNestedIntx2(Struct16BytesNestedInt a0, // Even deeper nested struct to test recursive member access. DART_EXPORT int64_t PassStruct32BytesNestedIntx2(Struct32BytesNestedInt a0, Struct32BytesNestedInt a1) { - std::cout << "PassStruct32BytesNestedIntx2" - << "(((((" << a0.a0.a0.a0.a0 << ", " << a0.a0.a0.a0.a1 << "), (" - << a0.a0.a0.a1.a0 << ", " << a0.a0.a0.a1.a1 << ")), ((" - << a0.a0.a1.a0.a0 << ", " << a0.a0.a1.a0.a1 << "), (" - << a0.a0.a1.a1.a0 << ", " << a0.a0.a1.a1.a1 << "))), (((" - << a0.a1.a0.a0.a0 << ", " << a0.a1.a0.a0.a1 << "), (" - << a0.a1.a0.a1.a0 << ", " << a0.a1.a0.a1.a1 << ")), ((" - << a0.a1.a1.a0.a0 << ", " << a0.a1.a1.a0.a1 << "), (" - << a0.a1.a1.a1.a0 << ", " << a0.a1.a1.a1.a1 << ")))), ((((" - << a1.a0.a0.a0.a0 << ", " << a1.a0.a0.a0.a1 << "), (" - << a1.a0.a0.a1.a0 << ", " << a1.a0.a0.a1.a1 << ")), ((" - << a1.a0.a1.a0.a0 << ", " << a1.a0.a1.a0.a1 << "), (" - << a1.a0.a1.a1.a0 << ", " << a1.a0.a1.a1.a1 << "))), (((" - << a1.a1.a0.a0.a0 << ", " << a1.a1.a0.a0.a1 << "), (" - << a1.a1.a0.a1.a0 << ", " << a1.a1.a0.a1.a1 << ")), ((" - << a1.a1.a1.a0.a0 << ", " << a1.a1.a1.a0.a1 << "), (" - << a1.a1.a1.a1.a0 << ", " << a1.a1.a1.a1.a1 << ")))))" - << "\n"; + std::cout << "PassStruct32BytesNestedIntx2" << "(((((" << a0.a0.a0.a0.a0 + << ", " << a0.a0.a0.a0.a1 << "), (" << a0.a0.a0.a1.a0 << ", " + << a0.a0.a0.a1.a1 << ")), ((" << a0.a0.a1.a0.a0 << ", " + << a0.a0.a1.a0.a1 << "), (" << a0.a0.a1.a1.a0 << ", " + << a0.a0.a1.a1.a1 << "))), (((" << a0.a1.a0.a0.a0 << ", " + << a0.a1.a0.a0.a1 << "), (" << a0.a1.a0.a1.a0 << ", " + << a0.a1.a0.a1.a1 << ")), ((" << a0.a1.a1.a0.a0 << ", " + << a0.a1.a1.a0.a1 << "), (" << a0.a1.a1.a1.a0 << ", " + << a0.a1.a1.a1.a1 << ")))), ((((" << a1.a0.a0.a0.a0 << ", " + << a1.a0.a0.a0.a1 << "), (" << a1.a0.a0.a1.a0 << ", " + << a1.a0.a0.a1.a1 << ")), ((" << a1.a0.a1.a0.a0 << ", " + << a1.a0.a1.a0.a1 << "), (" << a1.a0.a1.a1.a0 << ", " + << a1.a0.a1.a1.a1 << "))), (((" << a1.a1.a0.a0.a0 << ", " + << a1.a1.a0.a0.a1 << "), (" << a1.a1.a0.a1.a0 << ", " + << a1.a1.a0.a1.a1 << ")), ((" << a1.a1.a1.a0.a0 << ", " + << a1.a1.a1.a0.a1 << "), (" << a1.a1.a1.a1.a0 << ", " + << a1.a1.a1.a1.a1 << ")))))" << "\n"; int64_t result = 0; @@ -3180,12 +3134,11 @@ DART_EXPORT int64_t PassStruct32BytesNestedIntx2(Struct32BytesNestedInt a0, // Test alignment and padding of nested struct with 16 byte int. DART_EXPORT int64_t PassStructNestedIntStructAlignmentInt16( StructNestedIntStructAlignmentInt16 a0) { - std::cout << "PassStructNestedIntStructAlignmentInt16" - << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " + std::cout << "PassStructNestedIntStructAlignmentInt16" << "(((" + << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << "\n"; + << static_cast(a0.a1.a2) << ")))" << "\n"; int64_t result = 0; @@ -3205,12 +3158,11 @@ DART_EXPORT int64_t PassStructNestedIntStructAlignmentInt16( // Test alignment and padding of nested struct with 32 byte int. DART_EXPORT int64_t PassStructNestedIntStructAlignmentInt32( StructNestedIntStructAlignmentInt32 a0) { - std::cout << "PassStructNestedIntStructAlignmentInt32" - << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " + std::cout << "PassStructNestedIntStructAlignmentInt32" << "(((" + << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << "\n"; + << static_cast(a0.a1.a2) << ")))" << "\n"; int64_t result = 0; @@ -3230,12 +3182,11 @@ DART_EXPORT int64_t PassStructNestedIntStructAlignmentInt32( // Test alignment and padding of nested struct with 64 byte int. DART_EXPORT int64_t PassStructNestedIntStructAlignmentInt64( StructNestedIntStructAlignmentInt64 a0) { - std::cout << "PassStructNestedIntStructAlignmentInt64" - << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " + std::cout << "PassStructNestedIntStructAlignmentInt64" << "(((" + << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << "\n"; + << static_cast(a0.a1.a2) << ")))" << "\n"; int64_t result = 0; @@ -3259,62 +3210,61 @@ DART_EXPORT double PassStructNestedIrregularEvenBiggerx4( StructNestedIrregularEvenBigger a2, StructNestedIrregularEvenBigger a3) { std::cout - << "PassStructNestedIrregularEvenBiggerx4" - << "((" << a0.a0 << ", ((" << a0.a1.a0.a0 << ", ((" << a0.a1.a0.a1.a0.a0 - << ", " << a0.a1.a0.a1.a0.a1 << "), (" << a0.a1.a0.a1.a1.a0 << ")), " - << a0.a1.a0.a2 << ", ((" << a0.a1.a0.a3.a0.a0 << "), " << a0.a1.a0.a3.a1 - << "), " << a0.a1.a0.a4 << ", ((" << a0.a1.a0.a5.a0.a0 << "), (" - << a0.a1.a0.a5.a1.a0 << ")), " << a0.a1.a0.a6 << "), ((" << a0.a1.a1.a0.a0 - << ", " << a0.a1.a1.a0.a1 << "), (" << a0.a1.a1.a1.a0 << ")), " - << a0.a1.a2 << ", " << a0.a1.a3 << "), ((" << a0.a2.a0.a0 << ", ((" - << a0.a2.a0.a1.a0.a0 << ", " << a0.a2.a0.a1.a0.a1 << "), (" - << a0.a2.a0.a1.a1.a0 << ")), " << a0.a2.a0.a2 << ", ((" - << a0.a2.a0.a3.a0.a0 << "), " << a0.a2.a0.a3.a1 << "), " << a0.a2.a0.a4 - << ", ((" << a0.a2.a0.a5.a0.a0 << "), (" << a0.a2.a0.a5.a1.a0 << ")), " - << a0.a2.a0.a6 << "), ((" << a0.a2.a1.a0.a0 << ", " << a0.a2.a1.a0.a1 - << "), (" << a0.a2.a1.a1.a0 << ")), " << a0.a2.a2 << ", " << a0.a2.a3 - << "), " << a0.a3 << "), (" << a1.a0 << ", ((" << a1.a1.a0.a0 << ", ((" - << a1.a1.a0.a1.a0.a0 << ", " << a1.a1.a0.a1.a0.a1 << "), (" - << a1.a1.a0.a1.a1.a0 << ")), " << a1.a1.a0.a2 << ", ((" - << a1.a1.a0.a3.a0.a0 << "), " << a1.a1.a0.a3.a1 << "), " << a1.a1.a0.a4 - << ", ((" << a1.a1.a0.a5.a0.a0 << "), (" << a1.a1.a0.a5.a1.a0 << ")), " - << a1.a1.a0.a6 << "), ((" << a1.a1.a1.a0.a0 << ", " << a1.a1.a1.a0.a1 - << "), (" << a1.a1.a1.a1.a0 << ")), " << a1.a1.a2 << ", " << a1.a1.a3 - << "), ((" << a1.a2.a0.a0 << ", ((" << a1.a2.a0.a1.a0.a0 << ", " - << a1.a2.a0.a1.a0.a1 << "), (" << a1.a2.a0.a1.a1.a0 << ")), " - << a1.a2.a0.a2 << ", ((" << a1.a2.a0.a3.a0.a0 << "), " << a1.a2.a0.a3.a1 - << "), " << a1.a2.a0.a4 << ", ((" << a1.a2.a0.a5.a0.a0 << "), (" - << a1.a2.a0.a5.a1.a0 << ")), " << a1.a2.a0.a6 << "), ((" << a1.a2.a1.a0.a0 - << ", " << a1.a2.a1.a0.a1 << "), (" << a1.a2.a1.a1.a0 << ")), " - << a1.a2.a2 << ", " << a1.a2.a3 << "), " << a1.a3 << "), (" << a2.a0 - << ", ((" << a2.a1.a0.a0 << ", ((" << a2.a1.a0.a1.a0.a0 << ", " - << a2.a1.a0.a1.a0.a1 << "), (" << a2.a1.a0.a1.a1.a0 << ")), " - << a2.a1.a0.a2 << ", ((" << a2.a1.a0.a3.a0.a0 << "), " << a2.a1.a0.a3.a1 - << "), " << a2.a1.a0.a4 << ", ((" << a2.a1.a0.a5.a0.a0 << "), (" - << a2.a1.a0.a5.a1.a0 << ")), " << a2.a1.a0.a6 << "), ((" << a2.a1.a1.a0.a0 - << ", " << a2.a1.a1.a0.a1 << "), (" << a2.a1.a1.a1.a0 << ")), " - << a2.a1.a2 << ", " << a2.a1.a3 << "), ((" << a2.a2.a0.a0 << ", ((" - << a2.a2.a0.a1.a0.a0 << ", " << a2.a2.a0.a1.a0.a1 << "), (" - << a2.a2.a0.a1.a1.a0 << ")), " << a2.a2.a0.a2 << ", ((" - << a2.a2.a0.a3.a0.a0 << "), " << a2.a2.a0.a3.a1 << "), " << a2.a2.a0.a4 - << ", ((" << a2.a2.a0.a5.a0.a0 << "), (" << a2.a2.a0.a5.a1.a0 << ")), " - << a2.a2.a0.a6 << "), ((" << a2.a2.a1.a0.a0 << ", " << a2.a2.a1.a0.a1 - << "), (" << a2.a2.a1.a1.a0 << ")), " << a2.a2.a2 << ", " << a2.a2.a3 - << "), " << a2.a3 << "), (" << a3.a0 << ", ((" << a3.a1.a0.a0 << ", ((" - << a3.a1.a0.a1.a0.a0 << ", " << a3.a1.a0.a1.a0.a1 << "), (" - << a3.a1.a0.a1.a1.a0 << ")), " << a3.a1.a0.a2 << ", ((" - << a3.a1.a0.a3.a0.a0 << "), " << a3.a1.a0.a3.a1 << "), " << a3.a1.a0.a4 - << ", ((" << a3.a1.a0.a5.a0.a0 << "), (" << a3.a1.a0.a5.a1.a0 << ")), " - << a3.a1.a0.a6 << "), ((" << a3.a1.a1.a0.a0 << ", " << a3.a1.a1.a0.a1 - << "), (" << a3.a1.a1.a1.a0 << ")), " << a3.a1.a2 << ", " << a3.a1.a3 - << "), ((" << a3.a2.a0.a0 << ", ((" << a3.a2.a0.a1.a0.a0 << ", " - << a3.a2.a0.a1.a0.a1 << "), (" << a3.a2.a0.a1.a1.a0 << ")), " - << a3.a2.a0.a2 << ", ((" << a3.a2.a0.a3.a0.a0 << "), " << a3.a2.a0.a3.a1 - << "), " << a3.a2.a0.a4 << ", ((" << a3.a2.a0.a5.a0.a0 << "), (" - << a3.a2.a0.a5.a1.a0 << ")), " << a3.a2.a0.a6 << "), ((" << a3.a2.a1.a0.a0 - << ", " << a3.a2.a1.a0.a1 << "), (" << a3.a2.a1.a1.a0 << ")), " - << a3.a2.a2 << ", " << a3.a2.a3 << "), " << a3.a3 << "))" - << "\n"; + << "PassStructNestedIrregularEvenBiggerx4" << "((" << a0.a0 << ", ((" + << a0.a1.a0.a0 << ", ((" << a0.a1.a0.a1.a0.a0 << ", " << a0.a1.a0.a1.a0.a1 + << "), (" << a0.a1.a0.a1.a1.a0 << ")), " << a0.a1.a0.a2 << ", ((" + << a0.a1.a0.a3.a0.a0 << "), " << a0.a1.a0.a3.a1 << "), " << a0.a1.a0.a4 + << ", ((" << a0.a1.a0.a5.a0.a0 << "), (" << a0.a1.a0.a5.a1.a0 << ")), " + << a0.a1.a0.a6 << "), ((" << a0.a1.a1.a0.a0 << ", " << a0.a1.a1.a0.a1 + << "), (" << a0.a1.a1.a1.a0 << ")), " << a0.a1.a2 << ", " << a0.a1.a3 + << "), ((" << a0.a2.a0.a0 << ", ((" << a0.a2.a0.a1.a0.a0 << ", " + << a0.a2.a0.a1.a0.a1 << "), (" << a0.a2.a0.a1.a1.a0 << ")), " + << a0.a2.a0.a2 << ", ((" << a0.a2.a0.a3.a0.a0 << "), " << a0.a2.a0.a3.a1 + << "), " << a0.a2.a0.a4 << ", ((" << a0.a2.a0.a5.a0.a0 << "), (" + << a0.a2.a0.a5.a1.a0 << ")), " << a0.a2.a0.a6 << "), ((" << a0.a2.a1.a0.a0 + << ", " << a0.a2.a1.a0.a1 << "), (" << a0.a2.a1.a1.a0 << ")), " + << a0.a2.a2 << ", " << a0.a2.a3 << "), " << a0.a3 << "), (" << a1.a0 + << ", ((" << a1.a1.a0.a0 << ", ((" << a1.a1.a0.a1.a0.a0 << ", " + << a1.a1.a0.a1.a0.a1 << "), (" << a1.a1.a0.a1.a1.a0 << ")), " + << a1.a1.a0.a2 << ", ((" << a1.a1.a0.a3.a0.a0 << "), " << a1.a1.a0.a3.a1 + << "), " << a1.a1.a0.a4 << ", ((" << a1.a1.a0.a5.a0.a0 << "), (" + << a1.a1.a0.a5.a1.a0 << ")), " << a1.a1.a0.a6 << "), ((" << a1.a1.a1.a0.a0 + << ", " << a1.a1.a1.a0.a1 << "), (" << a1.a1.a1.a1.a0 << ")), " + << a1.a1.a2 << ", " << a1.a1.a3 << "), ((" << a1.a2.a0.a0 << ", ((" + << a1.a2.a0.a1.a0.a0 << ", " << a1.a2.a0.a1.a0.a1 << "), (" + << a1.a2.a0.a1.a1.a0 << ")), " << a1.a2.a0.a2 << ", ((" + << a1.a2.a0.a3.a0.a0 << "), " << a1.a2.a0.a3.a1 << "), " << a1.a2.a0.a4 + << ", ((" << a1.a2.a0.a5.a0.a0 << "), (" << a1.a2.a0.a5.a1.a0 << ")), " + << a1.a2.a0.a6 << "), ((" << a1.a2.a1.a0.a0 << ", " << a1.a2.a1.a0.a1 + << "), (" << a1.a2.a1.a1.a0 << ")), " << a1.a2.a2 << ", " << a1.a2.a3 + << "), " << a1.a3 << "), (" << a2.a0 << ", ((" << a2.a1.a0.a0 << ", ((" + << a2.a1.a0.a1.a0.a0 << ", " << a2.a1.a0.a1.a0.a1 << "), (" + << a2.a1.a0.a1.a1.a0 << ")), " << a2.a1.a0.a2 << ", ((" + << a2.a1.a0.a3.a0.a0 << "), " << a2.a1.a0.a3.a1 << "), " << a2.a1.a0.a4 + << ", ((" << a2.a1.a0.a5.a0.a0 << "), (" << a2.a1.a0.a5.a1.a0 << ")), " + << a2.a1.a0.a6 << "), ((" << a2.a1.a1.a0.a0 << ", " << a2.a1.a1.a0.a1 + << "), (" << a2.a1.a1.a1.a0 << ")), " << a2.a1.a2 << ", " << a2.a1.a3 + << "), ((" << a2.a2.a0.a0 << ", ((" << a2.a2.a0.a1.a0.a0 << ", " + << a2.a2.a0.a1.a0.a1 << "), (" << a2.a2.a0.a1.a1.a0 << ")), " + << a2.a2.a0.a2 << ", ((" << a2.a2.a0.a3.a0.a0 << "), " << a2.a2.a0.a3.a1 + << "), " << a2.a2.a0.a4 << ", ((" << a2.a2.a0.a5.a0.a0 << "), (" + << a2.a2.a0.a5.a1.a0 << ")), " << a2.a2.a0.a6 << "), ((" << a2.a2.a1.a0.a0 + << ", " << a2.a2.a1.a0.a1 << "), (" << a2.a2.a1.a1.a0 << ")), " + << a2.a2.a2 << ", " << a2.a2.a3 << "), " << a2.a3 << "), (" << a3.a0 + << ", ((" << a3.a1.a0.a0 << ", ((" << a3.a1.a0.a1.a0.a0 << ", " + << a3.a1.a0.a1.a0.a1 << "), (" << a3.a1.a0.a1.a1.a0 << ")), " + << a3.a1.a0.a2 << ", ((" << a3.a1.a0.a3.a0.a0 << "), " << a3.a1.a0.a3.a1 + << "), " << a3.a1.a0.a4 << ", ((" << a3.a1.a0.a5.a0.a0 << "), (" + << a3.a1.a0.a5.a1.a0 << ")), " << a3.a1.a0.a6 << "), ((" << a3.a1.a1.a0.a0 + << ", " << a3.a1.a1.a0.a1 << "), (" << a3.a1.a1.a1.a0 << ")), " + << a3.a1.a2 << ", " << a3.a1.a3 << "), ((" << a3.a2.a0.a0 << ", ((" + << a3.a2.a0.a1.a0.a0 << ", " << a3.a2.a0.a1.a0.a1 << "), (" + << a3.a2.a0.a1.a1.a0 << ")), " << a3.a2.a0.a2 << ", ((" + << a3.a2.a0.a3.a0.a0 << "), " << a3.a2.a0.a3.a1 << "), " << a3.a2.a0.a4 + << ", ((" << a3.a2.a0.a5.a0.a0 << "), (" << a3.a2.a0.a5.a1.a0 << ")), " + << a3.a2.a0.a6 << "), ((" << a3.a2.a1.a0.a0 << ", " << a3.a2.a1.a0.a1 + << "), (" << a3.a2.a1.a1.a0 << ")), " << a3.a2.a2 << ", " << a3.a2.a3 + << "), " << a3.a3 << "))" << "\n"; double result = 0; @@ -3467,31 +3417,29 @@ PassStruct8BytesInlineArrayIntx4(Struct8BytesInlineArrayInt a0, Struct8BytesInlineArrayInt a1, Struct8BytesInlineArrayInt a2, Struct8BytesInlineArrayInt a3) { - std::cout << "PassStruct8BytesInlineArrayIntx4" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << "]), ([" - << static_cast(a1.a0[0]) << ", " << static_cast(a1.a0[1]) - << ", " << static_cast(a1.a0[2]) << ", " - << static_cast(a1.a0[3]) << ", " << static_cast(a1.a0[4]) - << ", " << static_cast(a1.a0[5]) << ", " - << static_cast(a1.a0[6]) << ", " << static_cast(a1.a0[7]) - << "]), ([" << static_cast(a2.a0[0]) << ", " - << static_cast(a2.a0[1]) << ", " << static_cast(a2.a0[2]) - << ", " << static_cast(a2.a0[3]) << ", " - << static_cast(a2.a0[4]) << ", " << static_cast(a2.a0[5]) - << ", " << static_cast(a2.a0[6]) << ", " - << static_cast(a2.a0[7]) << "]), ([" - << static_cast(a3.a0[0]) << ", " << static_cast(a3.a0[1]) - << ", " << static_cast(a3.a0[2]) << ", " - << static_cast(a3.a0[3]) << ", " << static_cast(a3.a0[4]) - << ", " << static_cast(a3.a0[5]) << ", " - << static_cast(a3.a0[6]) << ", " << static_cast(a3.a0[7]) - << "]))" - << "\n"; + std::cout << "PassStruct8BytesInlineArrayIntx4" << "(([" + << static_cast(a0.a0[0]) << ", " << static_cast(a0.a0[1]) + << ", " << static_cast(a0.a0[2]) << ", " + << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) + << ", " << static_cast(a0.a0[5]) << ", " + << static_cast(a0.a0[6]) << ", " << static_cast(a0.a0[7]) + << "]), ([" << static_cast(a1.a0[0]) << ", " + << static_cast(a1.a0[1]) << ", " << static_cast(a1.a0[2]) + << ", " << static_cast(a1.a0[3]) << ", " + << static_cast(a1.a0[4]) << ", " << static_cast(a1.a0[5]) + << ", " << static_cast(a1.a0[6]) << ", " + << static_cast(a1.a0[7]) << "]), ([" + << static_cast(a2.a0[0]) << ", " << static_cast(a2.a0[1]) + << ", " << static_cast(a2.a0[2]) << ", " + << static_cast(a2.a0[3]) << ", " << static_cast(a2.a0[4]) + << ", " << static_cast(a2.a0[5]) << ", " + << static_cast(a2.a0[6]) << ", " << static_cast(a2.a0[7]) + << "]), ([" << static_cast(a3.a0[0]) << ", " + << static_cast(a3.a0[1]) << ", " << static_cast(a3.a0[2]) + << ", " << static_cast(a3.a0[3]) << ", " + << static_cast(a3.a0[4]) << ", " << static_cast(a3.a0[5]) + << ", " << static_cast(a3.a0[6]) << ", " + << static_cast(a3.a0[7]) << "]))" << "\n"; int32_t result = 0; @@ -3540,20 +3488,19 @@ PassStructInlineArrayIrregularx4(StructInlineArrayIrregular a0, StructInlineArrayIrregular a1, StructInlineArrayIrregular a2, StructInlineArrayIrregular a3) { - std::cout << "PassStructInlineArrayIrregularx4" - << "(([(" << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) - << "), (" << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) - << ")], " << static_cast(a0.a1) << "), ([(" << a1.a0[0].a0 - << ", " << static_cast(a1.a0[0].a1) << "), (" << a1.a0[1].a0 - << ", " << static_cast(a1.a0[1].a1) << ")], " + std::cout << "PassStructInlineArrayIrregularx4" << "(([(" << a0.a0[0].a0 + << ", " << static_cast(a0.a0[0].a1) << "), (" << a0.a0[1].a0 + << ", " << static_cast(a0.a0[1].a1) << ")], " + << static_cast(a0.a1) << "), ([(" << a1.a0[0].a0 << ", " + << static_cast(a1.a0[0].a1) << "), (" << a1.a0[1].a0 << ", " + << static_cast(a1.a0[1].a1) << ")], " << static_cast(a1.a1) << "), ([(" << a2.a0[0].a0 << ", " << static_cast(a2.a0[0].a1) << "), (" << a2.a0[1].a0 << ", " << static_cast(a2.a0[1].a1) << ")], " << static_cast(a2.a1) << "), ([(" << a3.a0[0].a0 << ", " << static_cast(a3.a0[0].a1) << "), (" << a3.a0[1].a0 << ", " << static_cast(a3.a0[1].a1) << ")], " - << static_cast(a3.a1) << "))" - << "\n"; + << static_cast(a3.a1) << "))" << "\n"; int32_t result = 0; @@ -3588,75 +3535,74 @@ PassStructInlineArrayIrregularx4(StructInlineArrayIrregular a0, DART_EXPORT int32_t PassStructInlineArray100Bytes(StructInlineArray100Bytes a0) { std::cout - << "PassStructInlineArray100Bytes" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << ", " << static_cast(a0.a0[8]) - << ", " << static_cast(a0.a0[9]) << ", " - << static_cast(a0.a0[10]) << ", " << static_cast(a0.a0[11]) - << ", " << static_cast(a0.a0[12]) << ", " - << static_cast(a0.a0[13]) << ", " << static_cast(a0.a0[14]) - << ", " << static_cast(a0.a0[15]) << ", " - << static_cast(a0.a0[16]) << ", " << static_cast(a0.a0[17]) - << ", " << static_cast(a0.a0[18]) << ", " - << static_cast(a0.a0[19]) << ", " << static_cast(a0.a0[20]) - << ", " << static_cast(a0.a0[21]) << ", " - << static_cast(a0.a0[22]) << ", " << static_cast(a0.a0[23]) - << ", " << static_cast(a0.a0[24]) << ", " - << static_cast(a0.a0[25]) << ", " << static_cast(a0.a0[26]) - << ", " << static_cast(a0.a0[27]) << ", " - << static_cast(a0.a0[28]) << ", " << static_cast(a0.a0[29]) - << ", " << static_cast(a0.a0[30]) << ", " - << static_cast(a0.a0[31]) << ", " << static_cast(a0.a0[32]) - << ", " << static_cast(a0.a0[33]) << ", " - << static_cast(a0.a0[34]) << ", " << static_cast(a0.a0[35]) - << ", " << static_cast(a0.a0[36]) << ", " - << static_cast(a0.a0[37]) << ", " << static_cast(a0.a0[38]) - << ", " << static_cast(a0.a0[39]) << ", " - << static_cast(a0.a0[40]) << ", " << static_cast(a0.a0[41]) - << ", " << static_cast(a0.a0[42]) << ", " - << static_cast(a0.a0[43]) << ", " << static_cast(a0.a0[44]) - << ", " << static_cast(a0.a0[45]) << ", " - << static_cast(a0.a0[46]) << ", " << static_cast(a0.a0[47]) - << ", " << static_cast(a0.a0[48]) << ", " - << static_cast(a0.a0[49]) << ", " << static_cast(a0.a0[50]) - << ", " << static_cast(a0.a0[51]) << ", " - << static_cast(a0.a0[52]) << ", " << static_cast(a0.a0[53]) - << ", " << static_cast(a0.a0[54]) << ", " - << static_cast(a0.a0[55]) << ", " << static_cast(a0.a0[56]) - << ", " << static_cast(a0.a0[57]) << ", " - << static_cast(a0.a0[58]) << ", " << static_cast(a0.a0[59]) - << ", " << static_cast(a0.a0[60]) << ", " - << static_cast(a0.a0[61]) << ", " << static_cast(a0.a0[62]) - << ", " << static_cast(a0.a0[63]) << ", " - << static_cast(a0.a0[64]) << ", " << static_cast(a0.a0[65]) - << ", " << static_cast(a0.a0[66]) << ", " - << static_cast(a0.a0[67]) << ", " << static_cast(a0.a0[68]) - << ", " << static_cast(a0.a0[69]) << ", " - << static_cast(a0.a0[70]) << ", " << static_cast(a0.a0[71]) - << ", " << static_cast(a0.a0[72]) << ", " - << static_cast(a0.a0[73]) << ", " << static_cast(a0.a0[74]) - << ", " << static_cast(a0.a0[75]) << ", " - << static_cast(a0.a0[76]) << ", " << static_cast(a0.a0[77]) - << ", " << static_cast(a0.a0[78]) << ", " - << static_cast(a0.a0[79]) << ", " << static_cast(a0.a0[80]) - << ", " << static_cast(a0.a0[81]) << ", " - << static_cast(a0.a0[82]) << ", " << static_cast(a0.a0[83]) - << ", " << static_cast(a0.a0[84]) << ", " - << static_cast(a0.a0[85]) << ", " << static_cast(a0.a0[86]) - << ", " << static_cast(a0.a0[87]) << ", " - << static_cast(a0.a0[88]) << ", " << static_cast(a0.a0[89]) - << ", " << static_cast(a0.a0[90]) << ", " - << static_cast(a0.a0[91]) << ", " << static_cast(a0.a0[92]) - << ", " << static_cast(a0.a0[93]) << ", " - << static_cast(a0.a0[94]) << ", " << static_cast(a0.a0[95]) - << ", " << static_cast(a0.a0[96]) << ", " - << static_cast(a0.a0[97]) << ", " << static_cast(a0.a0[98]) - << ", " << static_cast(a0.a0[99]) << "]))" - << "\n"; + << "PassStructInlineArray100Bytes" << "(([" << static_cast(a0.a0[0]) + << ", " << static_cast(a0.a0[1]) << ", " + << static_cast(a0.a0[2]) << ", " << static_cast(a0.a0[3]) + << ", " << static_cast(a0.a0[4]) << ", " + << static_cast(a0.a0[5]) << ", " << static_cast(a0.a0[6]) + << ", " << static_cast(a0.a0[7]) << ", " + << static_cast(a0.a0[8]) << ", " << static_cast(a0.a0[9]) + << ", " << static_cast(a0.a0[10]) << ", " + << static_cast(a0.a0[11]) << ", " << static_cast(a0.a0[12]) + << ", " << static_cast(a0.a0[13]) << ", " + << static_cast(a0.a0[14]) << ", " << static_cast(a0.a0[15]) + << ", " << static_cast(a0.a0[16]) << ", " + << static_cast(a0.a0[17]) << ", " << static_cast(a0.a0[18]) + << ", " << static_cast(a0.a0[19]) << ", " + << static_cast(a0.a0[20]) << ", " << static_cast(a0.a0[21]) + << ", " << static_cast(a0.a0[22]) << ", " + << static_cast(a0.a0[23]) << ", " << static_cast(a0.a0[24]) + << ", " << static_cast(a0.a0[25]) << ", " + << static_cast(a0.a0[26]) << ", " << static_cast(a0.a0[27]) + << ", " << static_cast(a0.a0[28]) << ", " + << static_cast(a0.a0[29]) << ", " << static_cast(a0.a0[30]) + << ", " << static_cast(a0.a0[31]) << ", " + << static_cast(a0.a0[32]) << ", " << static_cast(a0.a0[33]) + << ", " << static_cast(a0.a0[34]) << ", " + << static_cast(a0.a0[35]) << ", " << static_cast(a0.a0[36]) + << ", " << static_cast(a0.a0[37]) << ", " + << static_cast(a0.a0[38]) << ", " << static_cast(a0.a0[39]) + << ", " << static_cast(a0.a0[40]) << ", " + << static_cast(a0.a0[41]) << ", " << static_cast(a0.a0[42]) + << ", " << static_cast(a0.a0[43]) << ", " + << static_cast(a0.a0[44]) << ", " << static_cast(a0.a0[45]) + << ", " << static_cast(a0.a0[46]) << ", " + << static_cast(a0.a0[47]) << ", " << static_cast(a0.a0[48]) + << ", " << static_cast(a0.a0[49]) << ", " + << static_cast(a0.a0[50]) << ", " << static_cast(a0.a0[51]) + << ", " << static_cast(a0.a0[52]) << ", " + << static_cast(a0.a0[53]) << ", " << static_cast(a0.a0[54]) + << ", " << static_cast(a0.a0[55]) << ", " + << static_cast(a0.a0[56]) << ", " << static_cast(a0.a0[57]) + << ", " << static_cast(a0.a0[58]) << ", " + << static_cast(a0.a0[59]) << ", " << static_cast(a0.a0[60]) + << ", " << static_cast(a0.a0[61]) << ", " + << static_cast(a0.a0[62]) << ", " << static_cast(a0.a0[63]) + << ", " << static_cast(a0.a0[64]) << ", " + << static_cast(a0.a0[65]) << ", " << static_cast(a0.a0[66]) + << ", " << static_cast(a0.a0[67]) << ", " + << static_cast(a0.a0[68]) << ", " << static_cast(a0.a0[69]) + << ", " << static_cast(a0.a0[70]) << ", " + << static_cast(a0.a0[71]) << ", " << static_cast(a0.a0[72]) + << ", " << static_cast(a0.a0[73]) << ", " + << static_cast(a0.a0[74]) << ", " << static_cast(a0.a0[75]) + << ", " << static_cast(a0.a0[76]) << ", " + << static_cast(a0.a0[77]) << ", " << static_cast(a0.a0[78]) + << ", " << static_cast(a0.a0[79]) << ", " + << static_cast(a0.a0[80]) << ", " << static_cast(a0.a0[81]) + << ", " << static_cast(a0.a0[82]) << ", " + << static_cast(a0.a0[83]) << ", " << static_cast(a0.a0[84]) + << ", " << static_cast(a0.a0[85]) << ", " + << static_cast(a0.a0[86]) << ", " << static_cast(a0.a0[87]) + << ", " << static_cast(a0.a0[88]) << ", " + << static_cast(a0.a0[89]) << ", " << static_cast(a0.a0[90]) + << ", " << static_cast(a0.a0[91]) << ", " + << static_cast(a0.a0[92]) << ", " << static_cast(a0.a0[93]) + << ", " << static_cast(a0.a0[94]) << ", " + << static_cast(a0.a0[95]) << ", " << static_cast(a0.a0[96]) + << ", " << static_cast(a0.a0[97]) << ", " + << static_cast(a0.a0[98]) << ", " << static_cast(a0.a0[99]) + << "]))" << "\n"; int32_t result = 0; @@ -3775,15 +3721,14 @@ DART_EXPORT float PassStructStruct16BytesHomogeneousFloat2x5( StructStruct16BytesHomogeneousFloat2 a2, StructStruct16BytesHomogeneousFloat2 a3, StructStruct16BytesHomogeneousFloat2 a4) { - std::cout << "PassStructStruct16BytesHomogeneousFloat2x5" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" - << a0.a1[1].a0 << ")], " << a0.a2 << "), ((" << a1.a0.a0 << "), [(" - << a1.a1[0].a0 << "), (" << a1.a1[1].a0 << ")], " << a1.a2 - << "), ((" << a2.a0.a0 << "), [(" << a2.a1[0].a0 << "), (" - << a2.a1[1].a0 << ")], " << a2.a2 << "), ((" << a3.a0.a0 << "), [(" - << a3.a1[0].a0 << "), (" << a3.a1[1].a0 << ")], " << a3.a2 - << "), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << "), (" - << a4.a1[1].a0 << ")], " << a4.a2 << "))" + std::cout << "PassStructStruct16BytesHomogeneousFloat2x5" << "(((" << a0.a0.a0 + << "), [(" << a0.a1[0].a0 << "), (" << a0.a1[1].a0 << ")], " + << a0.a2 << "), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 << "), (" + << a1.a1[1].a0 << ")], " << a1.a2 << "), ((" << a2.a0.a0 << "), [(" + << a2.a1[0].a0 << "), (" << a2.a1[1].a0 << ")], " << a2.a2 + << "), ((" << a3.a0.a0 << "), [(" << a3.a1[0].a0 << "), (" + << a3.a1[1].a0 << ")], " << a3.a2 << "), ((" << a4.a0.a0 << "), [(" + << a4.a1[0].a0 << "), (" << a4.a1[1].a0 << ")], " << a4.a2 << "))" << "\n"; float result = 0; @@ -3823,15 +3768,14 @@ DART_EXPORT double PassStructStruct32BytesHomogeneousDouble2x5( StructStruct32BytesHomogeneousDouble2 a2, StructStruct32BytesHomogeneousDouble2 a3, StructStruct32BytesHomogeneousDouble2 a4) { - std::cout << "PassStructStruct32BytesHomogeneousDouble2x5" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" - << a0.a1[1].a0 << ")], " << a0.a2 << "), ((" << a1.a0.a0 << "), [(" - << a1.a1[0].a0 << "), (" << a1.a1[1].a0 << ")], " << a1.a2 - << "), ((" << a2.a0.a0 << "), [(" << a2.a1[0].a0 << "), (" - << a2.a1[1].a0 << ")], " << a2.a2 << "), ((" << a3.a0.a0 << "), [(" - << a3.a1[0].a0 << "), (" << a3.a1[1].a0 << ")], " << a3.a2 - << "), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << "), (" - << a4.a1[1].a0 << ")], " << a4.a2 << "))" + std::cout << "PassStructStruct32BytesHomogeneousDouble2x5" << "(((" + << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" << a0.a1[1].a0 + << ")], " << a0.a2 << "), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 + << "), (" << a1.a1[1].a0 << ")], " << a1.a2 << "), ((" << a2.a0.a0 + << "), [(" << a2.a1[0].a0 << "), (" << a2.a1[1].a0 << ")], " + << a2.a2 << "), ((" << a3.a0.a0 << "), [(" << a3.a1[0].a0 << "), (" + << a3.a1[1].a0 << ")], " << a3.a2 << "), ((" << a4.a0.a0 << "), [(" + << a4.a1[0].a0 << "), (" << a4.a1[1].a0 << ")], " << a4.a2 << "))" << "\n"; double result = 0; @@ -3878,31 +3822,30 @@ DART_EXPORT float PassStructStruct16BytesMixed3x10( StructStruct16BytesMixed3 a7, StructStruct16BytesMixed3 a8, StructStruct16BytesMixed3 a9) { - std::cout << "PassStructStruct16BytesMixed3x10" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " - << a0.a1[0].a1 << ", " << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " - << a0.a2[1] << "]), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 - << ", " << a1.a1[0].a1 << ", " << a1.a1[0].a2 << ")], [" << a1.a2[0] - << ", " << a1.a2[1] << "]), ((" << a2.a0.a0 << "), [(" - << a2.a1[0].a0 << ", " << a2.a1[0].a1 << ", " << a2.a1[0].a2 - << ")], [" << a2.a2[0] << ", " << a2.a2[1] << "]), ((" << a3.a0.a0 - << "), [(" << a3.a1[0].a0 << ", " << a3.a1[0].a1 << ", " - << a3.a1[0].a2 << ")], [" << a3.a2[0] << ", " << a3.a2[1] - << "]), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << ", " - << a4.a1[0].a1 << ", " << a4.a1[0].a2 << ")], [" << a4.a2[0] << ", " - << a4.a2[1] << "]), ((" << a5.a0.a0 << "), [(" << a5.a1[0].a0 - << ", " << a5.a1[0].a1 << ", " << a5.a1[0].a2 << ")], [" << a5.a2[0] - << ", " << a5.a2[1] << "]), ((" << a6.a0.a0 << "), [(" - << a6.a1[0].a0 << ", " << a6.a1[0].a1 << ", " << a6.a1[0].a2 - << ")], [" << a6.a2[0] << ", " << a6.a2[1] << "]), ((" << a7.a0.a0 - << "), [(" << a7.a1[0].a0 << ", " << a7.a1[0].a1 << ", " - << a7.a1[0].a2 << ")], [" << a7.a2[0] << ", " << a7.a2[1] - << "]), ((" << a8.a0.a0 << "), [(" << a8.a1[0].a0 << ", " - << a8.a1[0].a1 << ", " << a8.a1[0].a2 << ")], [" << a8.a2[0] << ", " - << a8.a2[1] << "]), ((" << a9.a0.a0 << "), [(" << a9.a1[0].a0 - << ", " << a9.a1[0].a1 << ", " << a9.a1[0].a2 << ")], [" << a9.a2[0] - << ", " << a9.a2[1] << "]))" - << "\n"; + std::cout << "PassStructStruct16BytesMixed3x10" << "(((" << a0.a0.a0 + << "), [(" << a0.a1[0].a0 << ", " << a0.a1[0].a1 << ", " + << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " << a0.a2[1] + << "]), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 << ", " + << a1.a1[0].a1 << ", " << a1.a1[0].a2 << ")], [" << a1.a2[0] << ", " + << a1.a2[1] << "]), ((" << a2.a0.a0 << "), [(" << a2.a1[0].a0 + << ", " << a2.a1[0].a1 << ", " << a2.a1[0].a2 << ")], [" << a2.a2[0] + << ", " << a2.a2[1] << "]), ((" << a3.a0.a0 << "), [(" + << a3.a1[0].a0 << ", " << a3.a1[0].a1 << ", " << a3.a1[0].a2 + << ")], [" << a3.a2[0] << ", " << a3.a2[1] << "]), ((" << a4.a0.a0 + << "), [(" << a4.a1[0].a0 << ", " << a4.a1[0].a1 << ", " + << a4.a1[0].a2 << ")], [" << a4.a2[0] << ", " << a4.a2[1] + << "]), ((" << a5.a0.a0 << "), [(" << a5.a1[0].a0 << ", " + << a5.a1[0].a1 << ", " << a5.a1[0].a2 << ")], [" << a5.a2[0] << ", " + << a5.a2[1] << "]), ((" << a6.a0.a0 << "), [(" << a6.a1[0].a0 + << ", " << a6.a1[0].a1 << ", " << a6.a1[0].a2 << ")], [" << a6.a2[0] + << ", " << a6.a2[1] << "]), ((" << a7.a0.a0 << "), [(" + << a7.a1[0].a0 << ", " << a7.a1[0].a1 << ", " << a7.a1[0].a2 + << ")], [" << a7.a2[0] << ", " << a7.a2[1] << "]), ((" << a8.a0.a0 + << "), [(" << a8.a1[0].a0 << ", " << a8.a1[0].a1 << ", " + << a8.a1[0].a2 << ")], [" << a8.a2[0] << ", " << a8.a2[1] + << "]), ((" << a9.a0.a0 << "), [(" << a9.a1[0].a0 << ", " + << a9.a1[0].a1 << ", " << a9.a1[0].a2 << ")], [" << a9.a2[0] << ", " + << a9.a2[1] << "]))" << "\n"; float result = 0; @@ -3982,8 +3925,8 @@ DART_EXPORT uint32_t PassUint8Struct32BytesInlineArrayMultiDimensionalI( uint8_t a4, Struct8BytesInlineArrayMultiDimensionalInt a5, uint8_t a6) { - std::cout << "PassUint8Struct32BytesInlineArrayMultiDimensionalI" - << "(" << static_cast(a0) << ", ([[[[[" + std::cout << "PassUint8Struct32BytesInlineArrayMultiDimensionalI" << "(" + << static_cast(a0) << ", ([[[[[" << static_cast(a1.a0[0][0][0][0][0]) << ", " << static_cast(a1.a0[0][0][0][0][1]) << "], [" << static_cast(a1.a0[0][0][0][1][0]) << ", " @@ -4034,8 +3977,7 @@ DART_EXPORT uint32_t PassUint8Struct32BytesInlineArrayMultiDimensionalI( << static_cast(a5.a0[1][0][1]) << "], [" << static_cast(a5.a0[1][1][0]) << ", " << static_cast(a5.a0[1][1][1]) << "]]]), " - << static_cast(a6) << ")" - << "\n"; + << static_cast(a6) << ")" << "\n"; uint32_t result = 0; @@ -4103,14 +4045,13 @@ DART_EXPORT uint32_t PassUint8Struct4BytesInlineArrayMultiDimensionalIn( uint8_t a0, Struct4BytesInlineArrayMultiDimensionalInt a1, uint8_t a2) { - std::cout << "PassUint8Struct4BytesInlineArrayMultiDimensionalIn" - << "(" << static_cast(a0) << ", ([[(" + std::cout << "PassUint8Struct4BytesInlineArrayMultiDimensionalIn" << "(" + << static_cast(a0) << ", ([[(" << static_cast(a1.a0[0][0].a0) << "), (" << static_cast(a1.a0[0][1].a0) << ")], [(" << static_cast(a1.a0[1][0].a0) << "), (" << static_cast(a1.a0[1][1].a0) << ")]]), " - << static_cast(a2) << ")" - << "\n"; + << static_cast(a2) << ")" << "\n"; uint32_t result = 0; @@ -4138,18 +4079,16 @@ DART_EXPORT int64_t PassStruct3BytesPackedIntx10(Struct3BytesPackedInt a0, Struct3BytesPackedInt a7, Struct3BytesPackedInt a8, Struct3BytesPackedInt a9) { - std::cout << "PassStruct3BytesPackedIntx10" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << "), (" - << static_cast(a1.a0) << ", " << a1.a1 << "), (" - << static_cast(a2.a0) << ", " << a2.a1 << "), (" - << static_cast(a3.a0) << ", " << a3.a1 << "), (" + std::cout << "PassStruct3BytesPackedIntx10" << "((" << static_cast(a0.a0) + << ", " << a0.a1 << "), (" << static_cast(a1.a0) << ", " + << a1.a1 << "), (" << static_cast(a2.a0) << ", " << a2.a1 + << "), (" << static_cast(a3.a0) << ", " << a3.a1 << "), (" << static_cast(a4.a0) << ", " << a4.a1 << "), (" << static_cast(a5.a0) << ", " << a5.a1 << "), (" << static_cast(a6.a0) << ", " << a6.a1 << "), (" << static_cast(a7.a0) << ", " << a7.a1 << "), (" << static_cast(a8.a0) << ", " << a8.a1 << "), (" - << static_cast(a9.a0) << ", " << a9.a1 << "))" - << "\n"; + << static_cast(a9.a0) << ", " << a9.a1 << "))" << "\n"; int64_t result = 0; @@ -4191,11 +4130,10 @@ DART_EXPORT int64_t PassStruct8BytesPackedIntx10(Struct8BytesPackedInt a0, Struct8BytesPackedInt a7, Struct8BytesPackedInt a8, Struct8BytesPackedInt a9) { - std::cout << "PassStruct8BytesPackedIntx10" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << "), (" - << static_cast(a1.a0) << ", " << a1.a1 << ", " + std::cout << "PassStruct8BytesPackedIntx10" << "((" << static_cast(a0.a0) + << ", " << a0.a1 << ", " << static_cast(a0.a2) << ", " + << static_cast(a0.a3) << ", " << static_cast(a0.a4) + << "), (" << static_cast(a1.a0) << ", " << a1.a1 << ", " << static_cast(a1.a2) << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) << "), (" << static_cast(a2.a0) << ", " << a2.a1 << ", " @@ -4221,8 +4159,7 @@ DART_EXPORT int64_t PassStruct8BytesPackedIntx10(Struct8BytesPackedInt a0, << ", " << static_cast(a8.a4) << "), (" << static_cast(a9.a0) << ", " << a9.a1 << ", " << static_cast(a9.a2) << ", " << static_cast(a9.a3) - << ", " << static_cast(a9.a4) << "))" - << "\n"; + << ", " << static_cast(a9.a4) << "))" << "\n"; int64_t result = 0; @@ -4299,8 +4236,8 @@ DART_EXPORT double PassStruct9BytesPackedMixedx10DoubleInt32x2( double a10, int32_t a11, int32_t a12) { - std::cout << "PassStruct9BytesPackedMixedx10DoubleInt32x2" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << "), (" + std::cout << "PassStruct9BytesPackedMixedx10DoubleInt32x2" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << "), (" << static_cast(a1.a0) << ", " << a1.a1 << "), (" << static_cast(a2.a0) << ", " << a2.a1 << "), (" << static_cast(a3.a0) << ", " << a3.a1 << "), (" @@ -4310,8 +4247,7 @@ DART_EXPORT double PassStruct9BytesPackedMixedx10DoubleInt32x2( << static_cast(a7.a0) << ", " << a7.a1 << "), (" << static_cast(a8.a0) << ", " << a8.a1 << "), (" << static_cast(a9.a0) << ", " << a9.a1 << "), " << a10 << ", " - << a11 << ", " << a12 << ")" - << "\n"; + << a11 << ", " << a12 << ")" << "\n"; double result = 0; @@ -4347,9 +4283,8 @@ DART_EXPORT double PassStruct9BytesPackedMixedx10DoubleInt32x2( // Used for testing structs and unions by value. // This packed struct happens to have only aligned members. DART_EXPORT double PassStruct5BytesPackedMixed(Struct5BytesPackedMixed a0) { - std::cout << "PassStruct5BytesPackedMixed" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "))" - << "\n"; + std::cout << "PassStruct5BytesPackedMixed" << "((" << a0.a0 << ", " + << static_cast(a0.a1) << "))" << "\n"; double result = 0; @@ -4365,10 +4300,9 @@ DART_EXPORT double PassStruct5BytesPackedMixed(Struct5BytesPackedMixed a0) { // Check alignment of packed struct in non-packed struct. DART_EXPORT double PassStructNestedAlignmentStruct5BytesPackedMixed( StructNestedAlignmentStruct5BytesPackedMixed a0) { - std::cout << "PassStructNestedAlignmentStruct5BytesPackedMixed" - << "((" << static_cast(a0.a0) << ", (" << a0.a1.a0 << ", " - << static_cast(a0.a1.a1) << ")))" - << "\n"; + std::cout << "PassStructNestedAlignmentStruct5BytesPackedMixed" << "((" + << static_cast(a0.a0) << ", (" << a0.a1.a0 << ", " + << static_cast(a0.a1.a1) << ")))" << "\n"; double result = 0; @@ -4385,10 +4319,9 @@ DART_EXPORT double PassStructNestedAlignmentStruct5BytesPackedMixed( // Check alignment of packed struct array in non-packed struct. DART_EXPORT double PassStruct6BytesInlineArrayInt( Struct6BytesInlineArrayInt a0) { - std::cout << "PassStruct6BytesInlineArrayInt" - << "(([(" << static_cast(a0.a0[0].a0) << ", " << a0.a0[0].a1 - << "), (" << static_cast(a0.a0[1].a0) << ", " << a0.a0[1].a1 - << ")]))" + std::cout << "PassStruct6BytesInlineArrayInt" << "(([(" + << static_cast(a0.a0[0].a0) << ", " << a0.a0[0].a1 << "), (" + << static_cast(a0.a0[1].a0) << ", " << a0.a0[1].a1 << ")]))" << "\n"; double result = 0; @@ -4407,12 +4340,10 @@ DART_EXPORT double PassStruct6BytesInlineArrayInt( // Check alignment of packed struct array in non-packed struct. DART_EXPORT double PassStruct15BytesInlineArrayMixed( Struct15BytesInlineArrayMixed a0) { - std::cout << "PassStruct15BytesInlineArrayMixed" - << "(([(" << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) - << "), (" << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) - << "), (" << a0.a0[2].a0 << ", " << static_cast(a0.a0[2].a1) - << ")]))" - << "\n"; + std::cout << "PassStruct15BytesInlineArrayMixed" << "(([(" << a0.a0[0].a0 + << ", " << static_cast(a0.a0[0].a1) << "), (" << a0.a0[1].a0 + << ", " << static_cast(a0.a0[1].a1) << "), (" << a0.a0[2].a0 + << ", " << static_cast(a0.a0[2].a1) << ")]))" << "\n"; double result = 0; @@ -4440,11 +4371,10 @@ DART_EXPORT double PassUnion4BytesMixedx10(Union4BytesMixed a0, Union4BytesMixed a7, Union4BytesMixed a8, Union4BytesMixed a9) { - std::cout << "PassUnion4BytesMixedx10" - << "((" << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" - << a3.a0 << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 - << "), (" << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" - << "\n"; + std::cout << "PassUnion4BytesMixedx10" << "((" << a0.a0 << "), (" << a1.a0 + << "), (" << a2.a0 << "), (" << a3.a0 << "), (" << a4.a0 << "), (" + << a5.a0 << "), (" << a6.a0 << "), (" << a7.a0 << "), (" << a8.a0 + << "), (" << a9.a0 << "))" << "\n"; double result = 0; @@ -4476,11 +4406,10 @@ DART_EXPORT double PassUnion8BytesNestedFloatx10(Union8BytesNestedFloat a0, Union8BytesNestedFloat a7, Union8BytesNestedFloat a8, Union8BytesNestedFloat a9) { - std::cout << "PassUnion8BytesNestedFloatx10" - << "((" << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" - << a3.a0 << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 - << "), (" << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" - << "\n"; + std::cout << "PassUnion8BytesNestedFloatx10" << "((" << a0.a0 << "), (" + << a1.a0 << "), (" << a2.a0 << "), (" << a3.a0 << "), (" << a4.a0 + << "), (" << a5.a0 << "), (" << a6.a0 << "), (" << a7.a0 << "), (" + << a8.a0 << "), (" << a9.a0 << "))" << "\n"; double result = 0; @@ -4512,19 +4441,17 @@ DART_EXPORT double PassUnion9BytesNestedIntx10(Union9BytesNestedInt a0, Union9BytesNestedInt a7, Union9BytesNestedInt a8, Union9BytesNestedInt a9) { - std::cout << "PassUnion9BytesNestedIntx10" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << ", " << a0.a0.a2 - << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << ", " << a1.a0.a2 - << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << ", " << a2.a0.a2 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << ", " << a3.a0.a2 - << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << ", " << a4.a0.a2 - << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << ", " << a5.a0.a2 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << ", " << a6.a0.a2 - << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << ", " << a7.a0.a2 - << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << ", " << a8.a0.a2 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << ", " << a9.a0.a2 - << ")))" - << "\n"; + std::cout << "PassUnion9BytesNestedIntx10" << "(((" << a0.a0.a0 << ", " + << a0.a0.a1 << ", " << a0.a0.a2 << ")), ((" << a1.a0.a0 << ", " + << a1.a0.a1 << ", " << a1.a0.a2 << ")), ((" << a2.a0.a0 << ", " + << a2.a0.a1 << ", " << a2.a0.a2 << ")), ((" << a3.a0.a0 << ", " + << a3.a0.a1 << ", " << a3.a0.a2 << ")), ((" << a4.a0.a0 << ", " + << a4.a0.a1 << ", " << a4.a0.a2 << ")), ((" << a5.a0.a0 << ", " + << a5.a0.a1 << ", " << a5.a0.a2 << ")), ((" << a6.a0.a0 << ", " + << a6.a0.a1 << ", " << a6.a0.a2 << ")), ((" << a7.a0.a0 << ", " + << a7.a0.a1 << ", " << a7.a0.a2 << ")), ((" << a8.a0.a0 << ", " + << a8.a0.a1 << ", " << a8.a0.a2 << ")), ((" << a9.a0.a0 << ", " + << a9.a0.a1 << ", " << a9.a0.a2 << ")))" << "\n"; double result = 0; @@ -4577,21 +4504,20 @@ DART_EXPORT double PassUnion16BytesNestedInlineArrayFloatx10( Union16BytesNestedInlineArrayFloat a7, Union16BytesNestedInlineArrayFloat a8, Union16BytesNestedInlineArrayFloat a9) { - std::cout << "PassUnion16BytesNestedInlineArrayFloatx10" - << "(([" << a0.a0[0] << ", " << a0.a0[1] << ", " << a0.a0[2] << ", " - << a0.a0[3] << "]), ([" << a1.a0[0] << ", " << a1.a0[1] << ", " - << a1.a0[2] << ", " << a1.a0[3] << "]), ([" << a2.a0[0] << ", " - << a2.a0[1] << ", " << a2.a0[2] << ", " << a2.a0[3] << "]), ([" - << a3.a0[0] << ", " << a3.a0[1] << ", " << a3.a0[2] << ", " - << a3.a0[3] << "]), ([" << a4.a0[0] << ", " << a4.a0[1] << ", " - << a4.a0[2] << ", " << a4.a0[3] << "]), ([" << a5.a0[0] << ", " - << a5.a0[1] << ", " << a5.a0[2] << ", " << a5.a0[3] << "]), ([" - << a6.a0[0] << ", " << a6.a0[1] << ", " << a6.a0[2] << ", " - << a6.a0[3] << "]), ([" << a7.a0[0] << ", " << a7.a0[1] << ", " - << a7.a0[2] << ", " << a7.a0[3] << "]), ([" << a8.a0[0] << ", " - << a8.a0[1] << ", " << a8.a0[2] << ", " << a8.a0[3] << "]), ([" - << a9.a0[0] << ", " << a9.a0[1] << ", " << a9.a0[2] << ", " - << a9.a0[3] << "]))" + std::cout << "PassUnion16BytesNestedInlineArrayFloatx10" << "(([" << a0.a0[0] + << ", " << a0.a0[1] << ", " << a0.a0[2] << ", " << a0.a0[3] + << "]), ([" << a1.a0[0] << ", " << a1.a0[1] << ", " << a1.a0[2] + << ", " << a1.a0[3] << "]), ([" << a2.a0[0] << ", " << a2.a0[1] + << ", " << a2.a0[2] << ", " << a2.a0[3] << "]), ([" << a3.a0[0] + << ", " << a3.a0[1] << ", " << a3.a0[2] << ", " << a3.a0[3] + << "]), ([" << a4.a0[0] << ", " << a4.a0[1] << ", " << a4.a0[2] + << ", " << a4.a0[3] << "]), ([" << a5.a0[0] << ", " << a5.a0[1] + << ", " << a5.a0[2] << ", " << a5.a0[3] << "]), ([" << a6.a0[0] + << ", " << a6.a0[1] << ", " << a6.a0[2] << ", " << a6.a0[3] + << "]), ([" << a7.a0[0] << ", " << a7.a0[1] << ", " << a7.a0[2] + << ", " << a7.a0[3] << "]), ([" << a8.a0[0] << ", " << a8.a0[1] + << ", " << a8.a0[2] << ", " << a8.a0[3] << "]), ([" << a9.a0[0] + << ", " << a9.a0[1] << ", " << a9.a0[2] << ", " << a9.a0[3] << "]))" << "\n"; double result = 0; @@ -4654,15 +4580,14 @@ DART_EXPORT double PassUnion16BytesNestedFloatx10(Union16BytesNestedFloat a0, Union16BytesNestedFloat a7, Union16BytesNestedFloat a8, Union16BytesNestedFloat a9) { - std::cout << "PassUnion16BytesNestedFloatx10" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << ")), ((" << a1.a0.a0 - << ", " << a1.a0.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << ")), ((" << a4.a0.a0 - << ", " << a4.a0.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << ")), ((" << a7.a0.a0 - << ", " << a7.a0.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << ")))" - << "\n"; + std::cout << "PassUnion16BytesNestedFloatx10" << "(((" << a0.a0.a0 << ", " + << a0.a0.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << ")), ((" + << a2.a0.a0 << ", " << a2.a0.a1 << ")), ((" << a3.a0.a0 << ", " + << a3.a0.a1 << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << ")), ((" + << a5.a0.a0 << ", " << a5.a0.a1 << ")), ((" << a6.a0.a0 << ", " + << a6.a0.a1 << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << ")), ((" + << a8.a0.a0 << ", " << a8.a0.a1 << ")), ((" << a9.a0.a0 << ", " + << a9.a0.a1 << ")))" << "\n"; double result = 0; @@ -4709,14 +4634,13 @@ DART_EXPORT int32_t PassUint8Boolx9Struct10BytesHomogeneousBoolBool( bool a9, Struct10BytesHomogeneousBool a10, bool a11) { - std::cout << "PassUint8Boolx9Struct10BytesHomogeneousBoolBool" - << "(" << static_cast(a0) << ", " << a1 << ", " << a2 << ", " - << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 - << ", " << a8 << ", " << a9 << ", (" << a10.a0 << ", " << a10.a1 - << ", " << a10.a2 << ", " << a10.a3 << ", " << a10.a4 << ", " - << a10.a5 << ", " << a10.a6 << ", " << a10.a7 << ", " << a10.a8 - << ", " << a10.a9 << "), " << a11 << ")" - << "\n"; + std::cout << "PassUint8Boolx9Struct10BytesHomogeneousBoolBool" << "(" + << static_cast(a0) << ", " << a1 << ", " << a2 << ", " << a3 + << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 << ", " + << a8 << ", " << a9 << ", (" << a10.a0 << ", " << a10.a1 << ", " + << a10.a2 << ", " << a10.a3 << ", " << a10.a4 << ", " << a10.a5 + << ", " << a10.a6 << ", " << a10.a7 << ", " << a10.a8 << ", " + << a10.a9 << "), " << a11 << ")" << "\n"; int32_t result = 0; @@ -4764,14 +4688,13 @@ DART_EXPORT int32_t PassUint8Boolx9Struct10BytesInlineArrayBoolBool( bool a9, Struct10BytesInlineArrayBool a10, bool a11) { - std::cout << "PassUint8Boolx9Struct10BytesInlineArrayBoolBool" - << "(" << static_cast(a0) << ", " << a1 << ", " << a2 << ", " - << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 - << ", " << a8 << ", " << a9 << ", ([" << a10.a0[0] << ", " - << a10.a0[1] << ", " << a10.a0[2] << ", " << a10.a0[3] << ", " - << a10.a0[4] << ", " << a10.a0[5] << ", " << a10.a0[6] << ", " - << a10.a0[7] << ", " << a10.a0[8] << ", " << a10.a0[9] << "]), " - << a11 << ")" + std::cout << "PassUint8Boolx9Struct10BytesInlineArrayBoolBool" << "(" + << static_cast(a0) << ", " << a1 << ", " << a2 << ", " << a3 + << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 << ", " + << a8 << ", " << a9 << ", ([" << a10.a0[0] << ", " << a10.a0[1] + << ", " << a10.a0[2] << ", " << a10.a0[3] << ", " << a10.a0[4] + << ", " << a10.a0[5] << ", " << a10.a0[6] << ", " << a10.a0[7] + << ", " << a10.a0[8] << ", " << a10.a0[9] << "]), " << a11 << ")" << "\n"; int32_t result = 0; @@ -4806,9 +4729,8 @@ DART_EXPORT int32_t PassUint8Boolx9Struct10BytesInlineArrayBoolBool( // Used for testing structs and unions by value. // Returning a bool. DART_EXPORT bool PassUint8Struct1ByteBool(uint8_t a0, Struct1ByteBool a1) { - std::cout << "PassUint8Struct1ByteBool" - << "(" << static_cast(a0) << ", (" << a1.a0 << "))" - << "\n"; + std::cout << "PassUint8Struct1ByteBool" << "(" << static_cast(a0) + << ", (" << a1.a0 << "))" << "\n"; uint64_t result = 0; @@ -4829,12 +4751,15 @@ DART_EXPORT wchar_t PassWCharStructInlineArrayIntUintPtrx2LongUnsigned( uintptr_t a3, /* NOLINT(runtime/int) */ long a4, /* NOLINT(runtime/int) */ unsigned long a5) { - std::cout << "PassWCharStructInlineArrayIntUintPtrx2LongUnsigned" - << "(" << a0 << ", ([" << a1.a0[0] << ", " << a1.a0[1] << ", " - << a1.a0[2] << ", " << a1.a0[3] << ", " << a1.a0[4] << ", " - << a1.a0[5] << ", " << a1.a0[6] << ", " << a1.a0[7] << ", " - << a1.a0[8] << ", " << a1.a0[9] << "]), " << a2 << ", " << a3 - << ", " << a4 << ", " << a5 << ")" + std::cout << "PassWCharStructInlineArrayIntUintPtrx2LongUnsigned" << "(" + << static_cast(a0) << ", ([" << static_cast(a1.a0[0]) + << ", " << static_cast(a1.a0[1]) << ", " + << static_cast(a1.a0[2]) << ", " << static_cast(a1.a0[3]) + << ", " << static_cast(a1.a0[4]) << ", " + << static_cast(a1.a0[5]) << ", " << static_cast(a1.a0[6]) + << ", " << static_cast(a1.a0[7]) << ", " + << static_cast(a1.a0[8]) << ", " << static_cast(a1.a0[9]) + << "]), " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ")" << "\n"; wchar_t result = 0; @@ -4855,7 +4780,7 @@ DART_EXPORT wchar_t PassWCharStructInlineArrayIntUintPtrx2LongUnsigned( result += a4; result += a5; - std::cout << "result = " << result << "\n"; + std::cout << "result = " << static_cast(result) << "\n"; return result; } @@ -4871,11 +4796,10 @@ PassInt64x7Struct12BytesHomogeneousInt32(int64_t a0, int64_t a5, int64_t a6, Struct12BytesHomogeneousInt32 a7) { - std::cout << "PassInt64x7Struct12BytesHomogeneousInt32" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "))" - << "\n"; + std::cout << "PassInt64x7Struct12BytesHomogeneousInt32" << "(" << a0 << ", " + << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 + << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 + << "))" << "\n"; int64_t result = 0; @@ -4899,9 +4823,8 @@ PassInt64x7Struct12BytesHomogeneousInt32(int64_t a0, // Passing a pointer to a struct DART_EXPORT int64_t PassPointerStruct12BytesHomogeneousInt32(Struct12BytesHomogeneousInt32* a0) { - std::cout << "PassPointerStruct12BytesHomogeneousInt32" - << "((" << a0->a0 << ", " << a0->a1 << ", " << a0->a2 << "))" - << "\n"; + std::cout << "PassPointerStruct12BytesHomogeneousInt32" << "((" << a0->a0 + << ", " << a0->a1 << ", " << a0->a2 << "))" << "\n"; int64_t result = 0; @@ -4918,8 +4841,8 @@ PassPointerStruct12BytesHomogeneousInt32(Struct12BytesHomogeneousInt32* a0) { // Variable length array DART_EXPORT int64_t PassPointerStructInlineArrayVariable(StructInlineArrayVariable* a0) { - std::cout << "PassPointerStructInlineArrayVariable" - << "((" << a0->a0 << ", [" << static_cast(a0->a1[0]) << ", " + std::cout << "PassPointerStructInlineArrayVariable" << "((" << a0->a0 << ", [" + << static_cast(a0->a1[0]) << ", " << static_cast(a0->a1[1]) << ", " << static_cast(a0->a1[2]) << ", " << static_cast(a0->a1[3]) << ", " @@ -4928,8 +4851,7 @@ PassPointerStructInlineArrayVariable(StructInlineArrayVariable* a0) { << static_cast(a0->a1[6]) << ", " << static_cast(a0->a1[7]) << ", " << static_cast(a0->a1[8]) << ", " - << static_cast(a0->a1[9]) << "]))" - << "\n"; + << static_cast(a0->a1[9]) << "]))" << "\n"; int64_t result = 0; @@ -4955,8 +4877,8 @@ PassPointerStructInlineArrayVariable(StructInlineArrayVariable* a0) { // the rest of the struct. DART_EXPORT int64_t PassPointerStructInlineArrayVariableAlign(StructInlineArrayVariableAlign* a0) { - std::cout << "PassPointerStructInlineArrayVariableAlign" - << "((" << static_cast(a0->a0) << ", [" << a0->a1[0] << ", " + std::cout << "PassPointerStructInlineArrayVariableAlign" << "((" + << static_cast(a0->a0) << ", [" << a0->a1[0] << ", " << a0->a1[1] << ", " << a0->a1[2] << ", " << a0->a1[3] << ", " << a0->a1[4] << ", " << a0->a1[5] << ", " << a0->a1[6] << ", " << a0->a1[7] << ", " << a0->a1[8] << ", " << a0->a1[9] << "]))" @@ -4984,17 +4906,14 @@ PassPointerStructInlineArrayVariableAlign(StructInlineArrayVariableAlign* a0) { // Used for testing structs and unions by value. // Smallest struct with data. DART_EXPORT Struct1ByteInt ReturnStruct1ByteInt(int8_t a0) { - std::cout << "ReturnStruct1ByteInt" - << "(" << static_cast(a0) << ")" + std::cout << "ReturnStruct1ByteInt" << "(" << static_cast(a0) << ")" << "\n"; Struct1ByteInt result = {}; result.a0 = a0; - std::cout << "result = " - << "(" << static_cast(result.a0) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ")" << "\n"; return result; } @@ -5003,10 +4922,9 @@ DART_EXPORT Struct1ByteInt ReturnStruct1ByteInt(int8_t a0) { // Smaller than word size return value on all architectures. DART_EXPORT Struct3BytesHomogeneousUint8 ReturnStruct3BytesHomogeneousUint8(uint8_t a0, uint8_t a1, uint8_t a2) { - std::cout << "ReturnStruct3BytesHomogeneousUint8" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ")" - << "\n"; + std::cout << "ReturnStruct3BytesHomogeneousUint8" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ")" << "\n"; Struct3BytesHomogeneousUint8 result = {}; @@ -5014,11 +4932,9 @@ ReturnStruct3BytesHomogeneousUint8(uint8_t a0, uint8_t a1, uint8_t a2) { result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " - << static_cast(result.a2) << ")" - << "\n"; + << static_cast(result.a2) << ")" << "\n"; return result; } @@ -5028,18 +4944,16 @@ ReturnStruct3BytesHomogeneousUint8(uint8_t a0, uint8_t a1, uint8_t a2) { // With alignment rules taken into account size is 4 bytes. DART_EXPORT Struct3BytesInt2ByteAligned ReturnStruct3BytesInt2ByteAligned(int16_t a0, int8_t a1) { - std::cout << "ReturnStruct3BytesInt2ByteAligned" - << "(" << a0 << ", " << static_cast(a1) << ")" - << "\n"; + std::cout << "ReturnStruct3BytesInt2ByteAligned" << "(" << a0 << ", " + << static_cast(a1) << ")" << "\n"; Struct3BytesInt2ByteAligned result = {}; result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << result.a0 << ", " << static_cast(result.a1) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " + << static_cast(result.a1) << ")" << "\n"; return result; } @@ -5048,17 +4962,15 @@ ReturnStruct3BytesInt2ByteAligned(int16_t a0, int8_t a1) { // Word size return value on 32 bit architectures.. DART_EXPORT Struct4BytesHomogeneousInt16 ReturnStruct4BytesHomogeneousInt16(int16_t a0, int16_t a1) { - std::cout << "ReturnStruct4BytesHomogeneousInt16" - << "(" << a0 << ", " << a1 << ")" - << "\n"; + std::cout << "ReturnStruct4BytesHomogeneousInt16" << "(" << a0 << ", " << a1 + << ")" << "\n"; Struct4BytesHomogeneousInt16 result = {}; result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; return result; @@ -5074,12 +4986,11 @@ ReturnStruct7BytesHomogeneousUint8(uint8_t a0, uint8_t a4, uint8_t a5, uint8_t a6) { - std::cout << "ReturnStruct7BytesHomogeneousUint8" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ")" - << "\n"; + std::cout << "ReturnStruct7BytesHomogeneousUint8" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ")" << "\n"; Struct7BytesHomogeneousUint8 result = {}; @@ -5091,15 +5002,13 @@ ReturnStruct7BytesHomogeneousUint8(uint8_t a0, result.a5 = a5; result.a6 = a6; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " << static_cast(result.a4) << ", " << static_cast(result.a5) << ", " - << static_cast(result.a6) << ")" - << "\n"; + << static_cast(result.a6) << ")" << "\n"; return result; } @@ -5109,9 +5018,8 @@ ReturnStruct7BytesHomogeneousUint8(uint8_t a0, // With alignment rules taken into account size is 8 bytes. DART_EXPORT Struct7BytesInt4ByteAligned ReturnStruct7BytesInt4ByteAligned(int32_t a0, int16_t a1, int8_t a2) { - std::cout << "ReturnStruct7BytesInt4ByteAligned" - << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" - << "\n"; + std::cout << "ReturnStruct7BytesInt4ByteAligned" << "(" << a0 << ", " << a1 + << ", " << static_cast(a2) << ")" << "\n"; Struct7BytesInt4ByteAligned result = {}; @@ -5119,10 +5027,8 @@ ReturnStruct7BytesInt4ByteAligned(int32_t a0, int16_t a1, int8_t a2) { result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << static_cast(result.a2) << ")" << "\n"; return result; } @@ -5132,9 +5038,8 @@ ReturnStruct7BytesInt4ByteAligned(int32_t a0, int16_t a1, int8_t a2) { DART_EXPORT Struct8BytesInt ReturnStruct8BytesInt(int16_t a0, int16_t a1, int32_t a2) { - std::cout << "ReturnStruct8BytesInt" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << "\n"; + std::cout << "ReturnStruct8BytesInt" << "(" << a0 << ", " << a1 << ", " << a2 + << ")" << "\n"; Struct8BytesInt result = {}; @@ -5142,9 +5047,8 @@ DART_EXPORT Struct8BytesInt ReturnStruct8BytesInt(int16_t a0, result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ")" << "\n"; return result; } @@ -5153,17 +5057,15 @@ DART_EXPORT Struct8BytesInt ReturnStruct8BytesInt(int16_t a0, // Return value in FP registers on many architectures. DART_EXPORT Struct8BytesHomogeneousFloat ReturnStruct8BytesHomogeneousFloat(float a0, float a1) { - std::cout << "ReturnStruct8BytesHomogeneousFloat" - << "(" << a0 << ", " << a1 << ")" - << "\n"; + std::cout << "ReturnStruct8BytesHomogeneousFloat" << "(" << a0 << ", " << a1 + << ")" << "\n"; Struct8BytesHomogeneousFloat result = {}; result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; return result; @@ -5174,9 +5076,8 @@ ReturnStruct8BytesHomogeneousFloat(float a0, float a1) { DART_EXPORT Struct8BytesMixed ReturnStruct8BytesMixed(float a0, int16_t a1, int16_t a2) { - std::cout << "ReturnStruct8BytesMixed" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << "\n"; + std::cout << "ReturnStruct8BytesMixed" << "(" << a0 << ", " << a1 << ", " + << a2 << ")" << "\n"; Struct8BytesMixed result = {}; @@ -5184,9 +5085,8 @@ DART_EXPORT Struct8BytesMixed ReturnStruct8BytesMixed(float a0, result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ")" << "\n"; return result; } @@ -5205,13 +5105,12 @@ ReturnStruct9BytesHomogeneousUint8(uint8_t a0, uint8_t a6, uint8_t a7, uint8_t a8) { - std::cout << "ReturnStruct9BytesHomogeneousUint8" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ", " << static_cast(a7) - << ", " << static_cast(a8) << ")" - << "\n"; + std::cout << "ReturnStruct9BytesHomogeneousUint8" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ", " << static_cast(a7) << ", " + << static_cast(a8) << ")" << "\n"; Struct9BytesHomogeneousUint8 result = {}; @@ -5225,8 +5124,7 @@ ReturnStruct9BytesHomogeneousUint8(uint8_t a0, result.a7 = a7; result.a8 = a8; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " @@ -5234,8 +5132,7 @@ ReturnStruct9BytesHomogeneousUint8(uint8_t a0, << static_cast(result.a5) << ", " << static_cast(result.a6) << ", " << static_cast(result.a7) << ", " - << static_cast(result.a8) << ")" - << "\n"; + << static_cast(result.a8) << ")" << "\n"; return result; } @@ -5245,18 +5142,16 @@ ReturnStruct9BytesHomogeneousUint8(uint8_t a0, // With alignment rules taken into account size is 12 or 16 bytes. DART_EXPORT Struct9BytesInt4Or8ByteAligned ReturnStruct9BytesInt4Or8ByteAligned(int64_t a0, int8_t a1) { - std::cout << "ReturnStruct9BytesInt4Or8ByteAligned" - << "(" << a0 << ", " << static_cast(a1) << ")" - << "\n"; + std::cout << "ReturnStruct9BytesInt4Or8ByteAligned" << "(" << a0 << ", " + << static_cast(a1) << ")" << "\n"; Struct9BytesInt4Or8ByteAligned result = {}; result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << result.a0 << ", " << static_cast(result.a1) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " + << static_cast(result.a1) << ")" << "\n"; return result; } @@ -5266,9 +5161,8 @@ ReturnStruct9BytesInt4Or8ByteAligned(int64_t a0, int8_t a1) { // and arm64. DART_EXPORT Struct12BytesHomogeneousFloat ReturnStruct12BytesHomogeneousFloat(float a0, float a1, float a2) { - std::cout << "ReturnStruct12BytesHomogeneousFloat" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << "\n"; + std::cout << "ReturnStruct12BytesHomogeneousFloat" << "(" << a0 << ", " << a1 + << ", " << a2 << ")" << "\n"; Struct12BytesHomogeneousFloat result = {}; @@ -5276,9 +5170,8 @@ ReturnStruct12BytesHomogeneousFloat(float a0, float a1, float a2) { result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ")" << "\n"; return result; } @@ -5287,9 +5180,8 @@ ReturnStruct12BytesHomogeneousFloat(float a0, float a1, float a2) { // Return value in FPU registers on arm hardfp and arm64. DART_EXPORT Struct16BytesHomogeneousFloat ReturnStruct16BytesHomogeneousFloat(float a0, float a1, float a2, float a3) { - std::cout << "ReturnStruct16BytesHomogeneousFloat" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << "\n"; + std::cout << "ReturnStruct16BytesHomogeneousFloat" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ")" << "\n"; Struct16BytesHomogeneousFloat result = {}; @@ -5298,10 +5190,8 @@ ReturnStruct16BytesHomogeneousFloat(float a0, float a1, float a2, float a3) { result.a2 = a2; result.a3 = a3; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ")" << "\n"; return result; } @@ -5309,8 +5199,7 @@ ReturnStruct16BytesHomogeneousFloat(float a0, float a1, float a2, float a3) { // Used for testing structs and unions by value. // Return value split over FP and integer register in x64. DART_EXPORT Struct16BytesMixed ReturnStruct16BytesMixed(double a0, int64_t a1) { - std::cout << "ReturnStruct16BytesMixed" - << "(" << a0 << ", " << a1 << ")" + std::cout << "ReturnStruct16BytesMixed" << "(" << a0 << ", " << a1 << ")" << "\n"; Struct16BytesMixed result = {}; @@ -5318,8 +5207,7 @@ DART_EXPORT Struct16BytesMixed ReturnStruct16BytesMixed(double a0, int64_t a1) { result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; return result; @@ -5332,9 +5220,8 @@ DART_EXPORT Struct16BytesMixed2 ReturnStruct16BytesMixed2(float a0, float a1, float a2, int32_t a3) { - std::cout << "ReturnStruct16BytesMixed2" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << "\n"; + std::cout << "ReturnStruct16BytesMixed2" << "(" << a0 << ", " << a1 << ", " + << a2 << ", " << a3 << ")" << "\n"; Struct16BytesMixed2 result = {}; @@ -5343,10 +5230,8 @@ DART_EXPORT Struct16BytesMixed2 ReturnStruct16BytesMixed2(float a0, result.a2 = a2; result.a3 = a3; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ")" << "\n"; return result; } @@ -5358,9 +5243,8 @@ DART_EXPORT Struct16BytesMixed2 ReturnStruct16BytesMixed2(float a0, DART_EXPORT Struct17BytesInt ReturnStruct17BytesInt(int64_t a0, int64_t a1, int8_t a2) { - std::cout << "ReturnStruct17BytesInt" - << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" - << "\n"; + std::cout << "ReturnStruct17BytesInt" << "(" << a0 << ", " << a1 << ", " + << static_cast(a2) << ")" << "\n"; Struct17BytesInt result = {}; @@ -5368,10 +5252,8 @@ DART_EXPORT Struct17BytesInt ReturnStruct17BytesInt(int64_t a0, result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << static_cast(result.a2) << ")" << "\n"; return result; } @@ -5400,18 +5282,17 @@ ReturnStruct19BytesHomogeneousUint8(uint8_t a0, uint8_t a16, uint8_t a17, uint8_t a18) { - std::cout << "ReturnStruct19BytesHomogeneousUint8" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ", " << static_cast(a7) - << ", " << static_cast(a8) << ", " << static_cast(a9) - << ", " << static_cast(a10) << ", " << static_cast(a11) - << ", " << static_cast(a12) << ", " << static_cast(a13) - << ", " << static_cast(a14) << ", " << static_cast(a15) - << ", " << static_cast(a16) << ", " << static_cast(a17) - << ", " << static_cast(a18) << ")" - << "\n"; + std::cout << "ReturnStruct19BytesHomogeneousUint8" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ", " << static_cast(a7) << ", " + << static_cast(a8) << ", " << static_cast(a9) << ", " + << static_cast(a10) << ", " << static_cast(a11) << ", " + << static_cast(a12) << ", " << static_cast(a13) << ", " + << static_cast(a14) << ", " << static_cast(a15) << ", " + << static_cast(a16) << ", " << static_cast(a17) << ", " + << static_cast(a18) << ")" << "\n"; Struct19BytesHomogeneousUint8 result = {}; @@ -5435,8 +5316,7 @@ ReturnStruct19BytesHomogeneousUint8(uint8_t a0, result.a17 = a17; result.a18 = a18; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " @@ -5454,8 +5334,7 @@ ReturnStruct19BytesHomogeneousUint8(uint8_t a0, << static_cast(result.a15) << ", " << static_cast(result.a16) << ", " << static_cast(result.a17) << ", " - << static_cast(result.a18) << ")" - << "\n"; + << static_cast(result.a18) << ")" << "\n"; return result; } @@ -5468,10 +5347,8 @@ ReturnStruct20BytesHomogeneousInt32(int32_t a0, int32_t a2, int32_t a3, int32_t a4) { - std::cout << "ReturnStruct20BytesHomogeneousInt32" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << "\n"; + std::cout << "ReturnStruct20BytesHomogeneousInt32" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << "\n"; Struct20BytesHomogeneousInt32 result = {}; @@ -5481,9 +5358,8 @@ ReturnStruct20BytesHomogeneousInt32(int32_t a0, result.a3 = a3; result.a4 = a4; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; return result; @@ -5497,10 +5373,8 @@ ReturnStruct20BytesHomogeneousFloat(float a0, float a2, float a3, float a4) { - std::cout << "ReturnStruct20BytesHomogeneousFloat" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << "\n"; + std::cout << "ReturnStruct20BytesHomogeneousFloat" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << "\n"; Struct20BytesHomogeneousFloat result = {}; @@ -5510,9 +5384,8 @@ ReturnStruct20BytesHomogeneousFloat(float a0, result.a3 = a3; result.a4 = a4; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; return result; @@ -5525,9 +5398,8 @@ ReturnStruct32BytesHomogeneousDouble(double a0, double a1, double a2, double a3) { - std::cout << "ReturnStruct32BytesHomogeneousDouble" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << "\n"; + std::cout << "ReturnStruct32BytesHomogeneousDouble" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ")" << "\n"; Struct32BytesHomogeneousDouble result = {}; @@ -5536,10 +5408,8 @@ ReturnStruct32BytesHomogeneousDouble(double a0, result.a2 = a2; result.a3 = a3; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ")" << "\n"; return result; } @@ -5552,10 +5422,8 @@ ReturnStruct40BytesHomogeneousDouble(double a0, double a2, double a3, double a4) { - std::cout << "ReturnStruct40BytesHomogeneousDouble" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << "\n"; + std::cout << "ReturnStruct40BytesHomogeneousDouble" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << "\n"; Struct40BytesHomogeneousDouble result = {}; @@ -5565,9 +5433,8 @@ ReturnStruct40BytesHomogeneousDouble(double a0, result.a3 = a3; result.a4 = a4; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; return result; @@ -5704,37 +5571,36 @@ ReturnStruct1024BytesHomogeneousUint64(uint64_t a0, uint64_t a125, uint64_t a126, uint64_t a127) { - std::cout << "ReturnStruct1024BytesHomogeneousUint64" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " - << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 - << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " - << a18 << ", " << a19 << ", " << a20 << ", " << a21 << ", " << a22 - << ", " << a23 << ", " << a24 << ", " << a25 << ", " << a26 << ", " - << a27 << ", " << a28 << ", " << a29 << ", " << a30 << ", " << a31 - << ", " << a32 << ", " << a33 << ", " << a34 << ", " << a35 << ", " - << a36 << ", " << a37 << ", " << a38 << ", " << a39 << ", " << a40 - << ", " << a41 << ", " << a42 << ", " << a43 << ", " << a44 << ", " - << a45 << ", " << a46 << ", " << a47 << ", " << a48 << ", " << a49 - << ", " << a50 << ", " << a51 << ", " << a52 << ", " << a53 << ", " - << a54 << ", " << a55 << ", " << a56 << ", " << a57 << ", " << a58 - << ", " << a59 << ", " << a60 << ", " << a61 << ", " << a62 << ", " - << a63 << ", " << a64 << ", " << a65 << ", " << a66 << ", " << a67 - << ", " << a68 << ", " << a69 << ", " << a70 << ", " << a71 << ", " - << a72 << ", " << a73 << ", " << a74 << ", " << a75 << ", " << a76 - << ", " << a77 << ", " << a78 << ", " << a79 << ", " << a80 << ", " - << a81 << ", " << a82 << ", " << a83 << ", " << a84 << ", " << a85 - << ", " << a86 << ", " << a87 << ", " << a88 << ", " << a89 << ", " - << a90 << ", " << a91 << ", " << a92 << ", " << a93 << ", " << a94 - << ", " << a95 << ", " << a96 << ", " << a97 << ", " << a98 << ", " - << a99 << ", " << a100 << ", " << a101 << ", " << a102 << ", " - << a103 << ", " << a104 << ", " << a105 << ", " << a106 << ", " - << a107 << ", " << a108 << ", " << a109 << ", " << a110 << ", " - << a111 << ", " << a112 << ", " << a113 << ", " << a114 << ", " - << a115 << ", " << a116 << ", " << a117 << ", " << a118 << ", " - << a119 << ", " << a120 << ", " << a121 << ", " << a122 << ", " - << a123 << ", " << a124 << ", " << a125 << ", " << a126 << ", " - << a127 << ")" + std::cout << "ReturnStruct1024BytesHomogeneousUint64" << "(" << a0 << ", " + << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 + << ", " << a6 << ", " << a7 << ", " << a8 << ", " << a9 << ", " + << a10 << ", " << a11 << ", " << a12 << ", " << a13 << ", " << a14 + << ", " << a15 << ", " << a16 << ", " << a17 << ", " << a18 << ", " + << a19 << ", " << a20 << ", " << a21 << ", " << a22 << ", " << a23 + << ", " << a24 << ", " << a25 << ", " << a26 << ", " << a27 << ", " + << a28 << ", " << a29 << ", " << a30 << ", " << a31 << ", " << a32 + << ", " << a33 << ", " << a34 << ", " << a35 << ", " << a36 << ", " + << a37 << ", " << a38 << ", " << a39 << ", " << a40 << ", " << a41 + << ", " << a42 << ", " << a43 << ", " << a44 << ", " << a45 << ", " + << a46 << ", " << a47 << ", " << a48 << ", " << a49 << ", " << a50 + << ", " << a51 << ", " << a52 << ", " << a53 << ", " << a54 << ", " + << a55 << ", " << a56 << ", " << a57 << ", " << a58 << ", " << a59 + << ", " << a60 << ", " << a61 << ", " << a62 << ", " << a63 << ", " + << a64 << ", " << a65 << ", " << a66 << ", " << a67 << ", " << a68 + << ", " << a69 << ", " << a70 << ", " << a71 << ", " << a72 << ", " + << a73 << ", " << a74 << ", " << a75 << ", " << a76 << ", " << a77 + << ", " << a78 << ", " << a79 << ", " << a80 << ", " << a81 << ", " + << a82 << ", " << a83 << ", " << a84 << ", " << a85 << ", " << a86 + << ", " << a87 << ", " << a88 << ", " << a89 << ", " << a90 << ", " + << a91 << ", " << a92 << ", " << a93 << ", " << a94 << ", " << a95 + << ", " << a96 << ", " << a97 << ", " << a98 << ", " << a99 << ", " + << a100 << ", " << a101 << ", " << a102 << ", " << a103 << ", " + << a104 << ", " << a105 << ", " << a106 << ", " << a107 << ", " + << a108 << ", " << a109 << ", " << a110 << ", " << a111 << ", " + << a112 << ", " << a113 << ", " << a114 << ", " << a115 << ", " + << a116 << ", " << a117 << ", " << a118 << ", " << a119 << ", " + << a120 << ", " << a121 << ", " << a122 << ", " << a123 << ", " + << a124 << ", " << a125 << ", " << a126 << ", " << a127 << ")" << "\n"; Struct1024BytesHomogeneousUint64 result = {}; @@ -5868,50 +5734,49 @@ ReturnStruct1024BytesHomogeneousUint64(uint64_t a0, result.a126 = a126; result.a127 = a127; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ", " << result.a5 - << ", " << result.a6 << ", " << result.a7 << ", " << result.a8 - << ", " << result.a9 << ", " << result.a10 << ", " << result.a11 - << ", " << result.a12 << ", " << result.a13 << ", " << result.a14 - << ", " << result.a15 << ", " << result.a16 << ", " << result.a17 - << ", " << result.a18 << ", " << result.a19 << ", " << result.a20 - << ", " << result.a21 << ", " << result.a22 << ", " << result.a23 - << ", " << result.a24 << ", " << result.a25 << ", " << result.a26 - << ", " << result.a27 << ", " << result.a28 << ", " << result.a29 - << ", " << result.a30 << ", " << result.a31 << ", " << result.a32 - << ", " << result.a33 << ", " << result.a34 << ", " << result.a35 - << ", " << result.a36 << ", " << result.a37 << ", " << result.a38 - << ", " << result.a39 << ", " << result.a40 << ", " << result.a41 - << ", " << result.a42 << ", " << result.a43 << ", " << result.a44 - << ", " << result.a45 << ", " << result.a46 << ", " << result.a47 - << ", " << result.a48 << ", " << result.a49 << ", " << result.a50 - << ", " << result.a51 << ", " << result.a52 << ", " << result.a53 - << ", " << result.a54 << ", " << result.a55 << ", " << result.a56 - << ", " << result.a57 << ", " << result.a58 << ", " << result.a59 - << ", " << result.a60 << ", " << result.a61 << ", " << result.a62 - << ", " << result.a63 << ", " << result.a64 << ", " << result.a65 - << ", " << result.a66 << ", " << result.a67 << ", " << result.a68 - << ", " << result.a69 << ", " << result.a70 << ", " << result.a71 - << ", " << result.a72 << ", " << result.a73 << ", " << result.a74 - << ", " << result.a75 << ", " << result.a76 << ", " << result.a77 - << ", " << result.a78 << ", " << result.a79 << ", " << result.a80 - << ", " << result.a81 << ", " << result.a82 << ", " << result.a83 - << ", " << result.a84 << ", " << result.a85 << ", " << result.a86 - << ", " << result.a87 << ", " << result.a88 << ", " << result.a89 - << ", " << result.a90 << ", " << result.a91 << ", " << result.a92 - << ", " << result.a93 << ", " << result.a94 << ", " << result.a95 - << ", " << result.a96 << ", " << result.a97 << ", " << result.a98 - << ", " << result.a99 << ", " << result.a100 << ", " << result.a101 - << ", " << result.a102 << ", " << result.a103 << ", " << result.a104 - << ", " << result.a105 << ", " << result.a106 << ", " << result.a107 - << ", " << result.a108 << ", " << result.a109 << ", " << result.a110 - << ", " << result.a111 << ", " << result.a112 << ", " << result.a113 - << ", " << result.a114 << ", " << result.a115 << ", " << result.a116 - << ", " << result.a117 << ", " << result.a118 << ", " << result.a119 - << ", " << result.a120 << ", " << result.a121 << ", " << result.a122 - << ", " << result.a123 << ", " << result.a124 << ", " << result.a125 - << ", " << result.a126 << ", " << result.a127 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ", " + << result.a5 << ", " << result.a6 << ", " << result.a7 << ", " + << result.a8 << ", " << result.a9 << ", " << result.a10 << ", " + << result.a11 << ", " << result.a12 << ", " << result.a13 << ", " + << result.a14 << ", " << result.a15 << ", " << result.a16 << ", " + << result.a17 << ", " << result.a18 << ", " << result.a19 << ", " + << result.a20 << ", " << result.a21 << ", " << result.a22 << ", " + << result.a23 << ", " << result.a24 << ", " << result.a25 << ", " + << result.a26 << ", " << result.a27 << ", " << result.a28 << ", " + << result.a29 << ", " << result.a30 << ", " << result.a31 << ", " + << result.a32 << ", " << result.a33 << ", " << result.a34 << ", " + << result.a35 << ", " << result.a36 << ", " << result.a37 << ", " + << result.a38 << ", " << result.a39 << ", " << result.a40 << ", " + << result.a41 << ", " << result.a42 << ", " << result.a43 << ", " + << result.a44 << ", " << result.a45 << ", " << result.a46 << ", " + << result.a47 << ", " << result.a48 << ", " << result.a49 << ", " + << result.a50 << ", " << result.a51 << ", " << result.a52 << ", " + << result.a53 << ", " << result.a54 << ", " << result.a55 << ", " + << result.a56 << ", " << result.a57 << ", " << result.a58 << ", " + << result.a59 << ", " << result.a60 << ", " << result.a61 << ", " + << result.a62 << ", " << result.a63 << ", " << result.a64 << ", " + << result.a65 << ", " << result.a66 << ", " << result.a67 << ", " + << result.a68 << ", " << result.a69 << ", " << result.a70 << ", " + << result.a71 << ", " << result.a72 << ", " << result.a73 << ", " + << result.a74 << ", " << result.a75 << ", " << result.a76 << ", " + << result.a77 << ", " << result.a78 << ", " << result.a79 << ", " + << result.a80 << ", " << result.a81 << ", " << result.a82 << ", " + << result.a83 << ", " << result.a84 << ", " << result.a85 << ", " + << result.a86 << ", " << result.a87 << ", " << result.a88 << ", " + << result.a89 << ", " << result.a90 << ", " << result.a91 << ", " + << result.a92 << ", " << result.a93 << ", " << result.a94 << ", " + << result.a95 << ", " << result.a96 << ", " << result.a97 << ", " + << result.a98 << ", " << result.a99 << ", " << result.a100 << ", " + << result.a101 << ", " << result.a102 << ", " << result.a103 << ", " + << result.a104 << ", " << result.a105 << ", " << result.a106 << ", " + << result.a107 << ", " << result.a108 << ", " << result.a109 << ", " + << result.a110 << ", " << result.a111 << ", " << result.a112 << ", " + << result.a113 << ", " << result.a114 << ", " << result.a115 << ", " + << result.a116 << ", " << result.a117 << ", " << result.a118 << ", " + << result.a119 << ", " << result.a120 << ", " << result.a121 << ", " + << result.a122 << ", " << result.a123 << ", " << result.a124 << ", " + << result.a125 << ", " << result.a126 << ", " << result.a127 << ")" << "\n"; return result; @@ -5921,18 +5786,16 @@ ReturnStruct1024BytesHomogeneousUint64(uint64_t a0, // Small struct with mis-aligned member. DART_EXPORT Struct3BytesPackedInt ReturnStruct3BytesPackedInt(int8_t a0, int16_t a1) { - std::cout << "ReturnStruct3BytesPackedInt" - << "(" << static_cast(a0) << ", " << a1 << ")" - << "\n"; + std::cout << "ReturnStruct3BytesPackedInt" << "(" << static_cast(a0) + << ", " << a1 << ")" << "\n"; Struct3BytesPackedInt result = {}; result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ")" << "\n"; return result; } @@ -5944,10 +5807,9 @@ DART_EXPORT Struct8BytesPackedInt ReturnStruct8BytesPackedInt(uint8_t a0, uint8_t a2, uint8_t a3, uint8_t a4) { - std::cout << "ReturnStruct8BytesPackedInt" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ", " << static_cast(a3) << ", " - << static_cast(a4) << ")" + std::cout << "ReturnStruct8BytesPackedInt" << "(" << static_cast(a0) + << ", " << a1 << ", " << static_cast(a2) << ", " + << static_cast(a3) << ", " << static_cast(a4) << ")" << "\n"; Struct8BytesPackedInt result = {}; @@ -5958,12 +5820,10 @@ DART_EXPORT Struct8BytesPackedInt ReturnStruct8BytesPackedInt(uint8_t a0, result.a3 = a3; result.a4 = a4; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " - << static_cast(result.a4) << ")" - << "\n"; + << static_cast(result.a4) << ")" << "\n"; return result; } @@ -5973,18 +5833,16 @@ DART_EXPORT Struct8BytesPackedInt ReturnStruct8BytesPackedInt(uint8_t a0, // Tests backfilling of CPU and FPU registers. DART_EXPORT Struct9BytesPackedMixed ReturnStruct9BytesPackedMixed(uint8_t a0, double a1) { - std::cout << "ReturnStruct9BytesPackedMixed" - << "(" << static_cast(a0) << ", " << a1 << ")" - << "\n"; + std::cout << "ReturnStruct9BytesPackedMixed" << "(" << static_cast(a0) + << ", " << a1 << ")" << "\n"; Struct9BytesPackedMixed result = {}; result.a0 = a0; result.a1 = a1; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ")" << "\n"; return result; } @@ -5992,17 +5850,13 @@ DART_EXPORT Struct9BytesPackedMixed ReturnStruct9BytesPackedMixed(uint8_t a0, // Used for testing structs and unions by value. // Returning a mixed integer/float union. DART_EXPORT Union4BytesMixed ReturnUnion4BytesMixed(uint32_t a0) { - std::cout << "ReturnUnion4BytesMixed" - << "(" << a0 << ")" - << "\n"; + std::cout << "ReturnUnion4BytesMixed" << "(" << a0 << ")" << "\n"; Union4BytesMixed result = {}; result.a0 = a0; - std::cout << "result = " - << "(" << result.a0 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ")" << "\n"; return result; } @@ -6010,17 +5864,13 @@ DART_EXPORT Union4BytesMixed ReturnUnion4BytesMixed(uint32_t a0) { // Used for testing structs and unions by value. // Returning a floating point only union. DART_EXPORT Union8BytesNestedFloat ReturnUnion8BytesNestedFloat(double a0) { - std::cout << "ReturnUnion8BytesNestedFloat" - << "(" << a0 << ")" - << "\n"; + std::cout << "ReturnUnion8BytesNestedFloat" << "(" << a0 << ")" << "\n"; Union8BytesNestedFloat result = {}; result.a0 = a0; - std::cout << "result = " - << "(" << result.a0 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ")" << "\n"; return result; } @@ -6029,9 +5879,8 @@ DART_EXPORT Union8BytesNestedFloat ReturnUnion8BytesNestedFloat(double a0) { // Returning a mixed-size union. DART_EXPORT Union9BytesNestedInt ReturnUnion9BytesNestedInt(Struct8BytesInt a0) { - std::cout << "ReturnUnion9BytesNestedInt" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "))" - << "\n"; + std::cout << "ReturnUnion9BytesNestedInt" << "((" << a0.a0 << ", " << a0.a1 + << ", " << a0.a2 << "))" << "\n"; Union9BytesNestedInt result = {}; @@ -6039,10 +5888,8 @@ ReturnUnion9BytesNestedInt(Struct8BytesInt a0) { result.a0.a1 = a0.a1; result.a0.a2 = a0.a2; - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << ", " - << result.a0.a2 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << ", " << result.a0.a2 << "))" << "\n"; return result; } @@ -6051,18 +5898,16 @@ ReturnUnion9BytesNestedInt(Struct8BytesInt a0) { // Returning union with homogenous floats. DART_EXPORT Union16BytesNestedFloat ReturnUnion16BytesNestedFloat(Struct8BytesHomogeneousFloat a0) { - std::cout << "ReturnUnion16BytesNestedFloat" - << "((" << a0.a0 << ", " << a0.a1 << "))" - << "\n"; + std::cout << "ReturnUnion16BytesNestedFloat" << "((" << a0.a0 << ", " << a0.a1 + << "))" << "\n"; Union16BytesNestedFloat result = {}; result.a0.a0 = a0.a0; result.a0.a1 = a0.a1; - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << "))" << "\n"; return result; } @@ -6073,15 +5918,12 @@ ReturnUnion16BytesNestedFloat(Struct8BytesHomogeneousFloat a0) { // Struct is passed in int registers in most ABIs. DART_EXPORT Struct1ByteInt ReturnStructArgumentStruct1ByteInt(Struct1ByteInt a0) { - std::cout << "ReturnStructArgumentStruct1ByteInt" - << "((" << static_cast(a0.a0) << "))" - << "\n"; + std::cout << "ReturnStructArgumentStruct1ByteInt" << "((" + << static_cast(a0.a0) << "))" << "\n"; Struct1ByteInt result = a0; - std::cout << "result = " - << "(" << static_cast(result.a0) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ")" << "\n"; return result; } @@ -6100,17 +5942,14 @@ ReturnStructArgumentInt32x8Struct1ByteInt(int32_t a0, int32_t a6, int32_t a7, Struct1ByteInt a8) { - std::cout << "ReturnStructArgumentInt32x8Struct1ByteInt" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", (" - << static_cast(a8.a0) << "))" - << "\n"; + std::cout << "ReturnStructArgumentInt32x8Struct1ByteInt" << "(" << a0 << ", " + << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 + << ", " << a6 << ", " << a7 << ", (" << static_cast(a8.a0) + << "))" << "\n"; Struct1ByteInt result = a8; - std::cout << "result = " - << "(" << static_cast(result.a0) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ")" << "\n"; return result; } @@ -6122,14 +5961,12 @@ ReturnStructArgumentInt32x8Struct1ByteInt(int32_t a0, DART_EXPORT Struct8BytesHomogeneousFloat ReturnStructArgumentStruct8BytesHomogeneousFloat( Struct8BytesHomogeneousFloat a0) { - std::cout << "ReturnStructArgumentStruct8BytesHomogeneousFloat" - << "((" << a0.a0 << ", " << a0.a1 << "))" - << "\n"; + std::cout << "ReturnStructArgumentStruct8BytesHomogeneousFloat" << "((" + << a0.a0 << ", " << a0.a1 << "))" << "\n"; Struct8BytesHomogeneousFloat result = a0; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; return result; @@ -6140,16 +5977,14 @@ ReturnStructArgumentStruct8BytesHomogeneousFloat( DART_EXPORT Struct20BytesHomogeneousInt32 ReturnStructArgumentStruct20BytesHomogeneousInt32( Struct20BytesHomogeneousInt32 a0) { - std::cout << "ReturnStructArgumentStruct20BytesHomogeneousInt32" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << "\n"; + std::cout << "ReturnStructArgumentStruct20BytesHomogeneousInt32" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "))" << "\n"; Struct20BytesHomogeneousInt32 result = a0; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; return result; @@ -6169,47 +6004,42 @@ ReturnStructArgumentInt32x8Struct20BytesHomogeneou( int32_t a6, int32_t a7, Struct20BytesHomogeneousInt32 a8) { - std::cout << "ReturnStructArgumentInt32x8Struct20BytesHomogeneou" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", (" << a8.a0 << ", " - << a8.a1 << ", " << a8.a2 << ", " << a8.a3 << ", " << a8.a4 << "))" - << "\n"; + std::cout << "ReturnStructArgumentInt32x8Struct20BytesHomogeneou" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " + << a5 << ", " << a6 << ", " << a7 << ", (" << a8.a0 << ", " << a8.a1 + << ", " << a8.a2 << ", " << a8.a3 << ", " << a8.a4 << "))" << "\n"; Struct20BytesHomogeneousInt32 result = a8; - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; return result; } -// Used for testing structs and unions by value. -// Test returning struct with inline array. -DART_EXPORT Struct8BytesInlineArrayInt -ReturnStructArgumentStruct8BytesInlineArrayInt(Struct8BytesInlineArrayInt a0) { - std::cout << "ReturnStructArgumentStruct8BytesInlineArrayInt" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << "]))" - << "\n"; +// Used for testing structs and unions by value. +// Test returning struct with inline array. +DART_EXPORT Struct8BytesInlineArrayInt +ReturnStructArgumentStruct8BytesInlineArrayInt(Struct8BytesInlineArrayInt a0) { + std::cout << "ReturnStructArgumentStruct8BytesInlineArrayInt" << "(([" + << static_cast(a0.a0[0]) << ", " << static_cast(a0.a0[1]) + << ", " << static_cast(a0.a0[2]) << ", " + << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) + << ", " << static_cast(a0.a0[5]) << ", " + << static_cast(a0.a0[6]) << ", " << static_cast(a0.a0[7]) + << "]))" << "\n"; Struct8BytesInlineArrayInt result = a0; - std::cout << "result = " - << "([" << static_cast(result.a0[0]) << ", " + std::cout << "result = " << "([" << static_cast(result.a0[0]) << ", " << static_cast(result.a0[1]) << ", " << static_cast(result.a0[2]) << ", " << static_cast(result.a0[3]) << ", " << static_cast(result.a0[4]) << ", " << static_cast(result.a0[5]) << ", " << static_cast(result.a0[6]) << ", " - << static_cast(result.a0[7]) << "])" - << "\n"; + << static_cast(result.a0[7]) << "])" << "\n"; return result; } @@ -6219,17 +6049,14 @@ ReturnStructArgumentStruct8BytesInlineArrayInt(Struct8BytesInlineArrayInt a0) { DART_EXPORT StructStruct16BytesHomogeneousFloat2 ReturnStructArgumentStructStruct16BytesHomogeneous( StructStruct16BytesHomogeneousFloat2 a0) { - std::cout << "ReturnStructArgumentStructStruct16BytesHomogeneous" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" - << a0.a1[1].a0 << ")], " << a0.a2 << "))" - << "\n"; + std::cout << "ReturnStructArgumentStructStruct16BytesHomogeneous" << "(((" + << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" << a0.a1[1].a0 + << ")], " << a0.a2 << "))" << "\n"; StructStruct16BytesHomogeneousFloat2 result = a0; - std::cout << "result = " - << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 << "), (" - << result.a1[1].a0 << ")], " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 + << "), (" << result.a1[1].a0 << ")], " << result.a2 << ")" << "\n"; return result; } @@ -6239,17 +6066,14 @@ ReturnStructArgumentStructStruct16BytesHomogeneous( DART_EXPORT StructStruct32BytesHomogeneousDouble2 ReturnStructArgumentStructStruct32BytesHomogeneous( StructStruct32BytesHomogeneousDouble2 a0) { - std::cout << "ReturnStructArgumentStructStruct32BytesHomogeneous" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" - << a0.a1[1].a0 << ")], " << a0.a2 << "))" - << "\n"; + std::cout << "ReturnStructArgumentStructStruct32BytesHomogeneous" << "(((" + << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" << a0.a1[1].a0 + << ")], " << a0.a2 << "))" << "\n"; StructStruct32BytesHomogeneousDouble2 result = a0; - std::cout << "result = " - << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 << "), (" - << result.a1[1].a0 << ")], " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 + << "), (" << result.a1[1].a0 << ")], " << result.a2 << ")" << "\n"; return result; } @@ -6258,19 +6082,16 @@ ReturnStructArgumentStructStruct32BytesHomogeneous( // On x64 Linux, return value is split over FP and int registers. DART_EXPORT StructStruct16BytesMixed3 ReturnStructArgumentStructStruct16BytesMixed3(StructStruct16BytesMixed3 a0) { - std::cout << "ReturnStructArgumentStructStruct16BytesMixed3" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " - << a0.a1[0].a1 << ", " << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " - << a0.a2[1] << "]))" + std::cout << "ReturnStructArgumentStructStruct16BytesMixed3" << "(((" + << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " << a0.a1[0].a1 << ", " + << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " << a0.a2[1] << "]))" << "\n"; StructStruct16BytesMixed3 result = a0; - std::cout << "result = " - << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 << ", " - << result.a1[0].a1 << ", " << result.a1[0].a2 << ")], [" - << result.a2[0] << ", " << result.a2[1] << "])" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 + << ", " << result.a1[0].a1 << ", " << result.a1[0].a2 << ")], [" + << result.a2[0] << ", " << result.a2[1] << "])" << "\n"; return result; } @@ -6280,10 +6101,8 @@ ReturnStructArgumentStructStruct16BytesMixed3(StructStruct16BytesMixed3 a0) { DART_EXPORT StructAlignmentInt16 ReturnStructAlignmentInt16(int8_t a0, int16_t a1, int8_t a2) { - std::cout << "ReturnStructAlignmentInt16" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << "\n"; + std::cout << "ReturnStructAlignmentInt16" << "(" << static_cast(a0) + << ", " << a1 << ", " << static_cast(a2) << ")" << "\n"; StructAlignmentInt16 result = {}; @@ -6291,10 +6110,8 @@ DART_EXPORT StructAlignmentInt16 ReturnStructAlignmentInt16(int8_t a0, result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ")" << "\n"; return result; } @@ -6304,10 +6121,8 @@ DART_EXPORT StructAlignmentInt16 ReturnStructAlignmentInt16(int8_t a0, DART_EXPORT StructAlignmentInt32 ReturnStructAlignmentInt32(int8_t a0, int32_t a1, int8_t a2) { - std::cout << "ReturnStructAlignmentInt32" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << "\n"; + std::cout << "ReturnStructAlignmentInt32" << "(" << static_cast(a0) + << ", " << a1 << ", " << static_cast(a2) << ")" << "\n"; StructAlignmentInt32 result = {}; @@ -6315,10 +6130,8 @@ DART_EXPORT StructAlignmentInt32 ReturnStructAlignmentInt32(int8_t a0, result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ")" << "\n"; return result; } @@ -6328,10 +6141,8 @@ DART_EXPORT StructAlignmentInt32 ReturnStructAlignmentInt32(int8_t a0, DART_EXPORT StructAlignmentInt64 ReturnStructAlignmentInt64(int8_t a0, int64_t a1, int8_t a2) { - std::cout << "ReturnStructAlignmentInt64" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << "\n"; + std::cout << "ReturnStructAlignmentInt64" << "(" << static_cast(a0) + << ", " << a1 << ", " << static_cast(a2) << ")" << "\n"; StructAlignmentInt64 result = {}; @@ -6339,10 +6150,8 @@ DART_EXPORT StructAlignmentInt64 ReturnStructAlignmentInt64(int8_t a0, result.a1 = a1; result.a2 = a2; - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ")" << "\n"; return result; } @@ -6352,10 +6161,8 @@ DART_EXPORT StructAlignmentInt64 ReturnStructAlignmentInt64(int8_t a0, DART_EXPORT Struct8BytesNestedInt ReturnStruct8BytesNestedInt(Struct4BytesHomogeneousInt16 a0, Struct4BytesHomogeneousInt16 a1) { - std::cout << "ReturnStruct8BytesNestedInt" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "))" - << "\n"; + std::cout << "ReturnStruct8BytesNestedInt" << "((" << a0.a0 << ", " << a0.a1 + << "), (" << a1.a0 << ", " << a1.a1 << "))" << "\n"; Struct8BytesNestedInt result = {}; @@ -6364,10 +6171,8 @@ ReturnStruct8BytesNestedInt(Struct4BytesHomogeneousInt16 a0, result.a1.a0 = a1.a0; result.a1.a1 = a1.a1; - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << "), (" - << result.a1.a0 << ", " << result.a1.a1 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << "), (" << result.a1.a0 << ", " << result.a1.a1 << "))" << "\n"; return result; } @@ -6376,18 +6181,16 @@ ReturnStruct8BytesNestedInt(Struct4BytesHomogeneousInt16 a0, // Simple nested struct with floats. DART_EXPORT Struct8BytesNestedFloat ReturnStruct8BytesNestedFloat(Struct4BytesFloat a0, Struct4BytesFloat a1) { - std::cout << "ReturnStruct8BytesNestedFloat" - << "((" << a0.a0 << "), (" << a1.a0 << "))" - << "\n"; + std::cout << "ReturnStruct8BytesNestedFloat" << "((" << a0.a0 << "), (" + << a1.a0 << "))" << "\n"; Struct8BytesNestedFloat result = {}; result.a0.a0 = a0.a0; result.a1.a0 = a1.a0; - std::cout << "result = " - << "((" << result.a0.a0 << "), (" << result.a1.a0 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), (" << result.a1.a0 + << "))" << "\n"; return result; } @@ -6397,17 +6200,15 @@ ReturnStruct8BytesNestedFloat(Struct4BytesFloat a0, Struct4BytesFloat a1) { // and the fpu register usage on x64. DART_EXPORT Struct8BytesNestedFloat2 ReturnStruct8BytesNestedFloat2(Struct4BytesFloat a0, float a1) { - std::cout << "ReturnStruct8BytesNestedFloat2" - << "((" << a0.a0 << "), " << a1 << ")" - << "\n"; + std::cout << "ReturnStruct8BytesNestedFloat2" << "((" << a0.a0 << "), " << a1 + << ")" << "\n"; Struct8BytesNestedFloat2 result = {}; result.a0.a0 = a0.a0; result.a1 = a1; - std::cout << "result = " - << "((" << result.a0.a0 << "), " << result.a1 << ")" + std::cout << "result = " << "((" << result.a0.a0 << "), " << result.a1 << ")" << "\n"; return result; @@ -6418,9 +6219,8 @@ ReturnStruct8BytesNestedFloat2(Struct4BytesFloat a0, float a1) { DART_EXPORT Struct8BytesNestedMixed ReturnStruct8BytesNestedMixed(Struct4BytesHomogeneousInt16 a0, Struct4BytesFloat a1) { - std::cout << "ReturnStruct8BytesNestedMixed" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << "))" - << "\n"; + std::cout << "ReturnStruct8BytesNestedMixed" << "((" << a0.a0 << ", " << a0.a1 + << "), (" << a1.a0 << "))" << "\n"; Struct8BytesNestedMixed result = {}; @@ -6428,10 +6228,8 @@ ReturnStruct8BytesNestedMixed(Struct4BytesHomogeneousInt16 a0, result.a0.a1 = a0.a1; result.a1.a0 = a1.a0; - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << "), (" - << result.a1.a0 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << "), (" << result.a1.a0 << "))" << "\n"; return result; } @@ -6441,11 +6239,10 @@ ReturnStruct8BytesNestedMixed(Struct4BytesHomogeneousInt16 a0, DART_EXPORT Struct16BytesNestedInt ReturnStruct16BytesNestedInt(Struct8BytesNestedInt a0, Struct8BytesNestedInt a1) { - std::cout << "ReturnStruct16BytesNestedInt" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ", " << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 - << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")))" - << "\n"; + std::cout << "ReturnStruct16BytesNestedInt" << "(((" << a0.a0.a0 << ", " + << a0.a0.a1 << "), (" << a0.a1.a0 << ", " << a0.a1.a1 << ")), ((" + << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 << ", " + << a1.a1.a1 << ")))" << "\n"; Struct16BytesNestedInt result = {}; @@ -6458,12 +6255,11 @@ ReturnStruct16BytesNestedInt(Struct8BytesNestedInt a0, result.a1.a1.a0 = a1.a1.a0; result.a1.a1.a1 = a1.a1.a1; - std::cout << "result = " - << "(((" << result.a0.a0.a0 << ", " << result.a0.a0.a1 << "), (" - << result.a0.a1.a0 << ", " << result.a0.a1.a1 << ")), ((" - << result.a1.a0.a0 << ", " << result.a1.a0.a1 << "), (" - << result.a1.a1.a0 << ", " << result.a1.a1.a1 << ")))" - << "\n"; + std::cout << "result = " << "(((" << result.a0.a0.a0 << ", " + << result.a0.a0.a1 << "), (" << result.a0.a1.a0 << ", " + << result.a0.a1.a1 << ")), ((" << result.a1.a0.a0 << ", " + << result.a1.a0.a1 << "), (" << result.a1.a1.a0 << ", " + << result.a1.a1.a1 << ")))" << "\n"; return result; } @@ -6473,15 +6269,13 @@ ReturnStruct16BytesNestedInt(Struct8BytesNestedInt a0, DART_EXPORT Struct32BytesNestedInt ReturnStruct32BytesNestedInt(Struct16BytesNestedInt a0, Struct16BytesNestedInt a1) { - std::cout << "ReturnStruct32BytesNestedInt" - << "((((" << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" - << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 - << ", " << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " - << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 - << "), (" << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" - << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 - << ", " << a1.a1.a1.a1 << "))))" - << "\n"; + std::cout << "ReturnStruct32BytesNestedInt" << "((((" << a0.a0.a0.a0 << ", " + << a0.a0.a0.a1 << "), (" << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 + << ")), ((" << a0.a1.a0.a0 << ", " << a0.a1.a0.a1 << "), (" + << a0.a1.a1.a0 << ", " << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 + << ", " << a1.a0.a0.a1 << "), (" << a1.a0.a1.a0 << ", " + << a1.a0.a1.a1 << ")), ((" << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 + << "), (" << a1.a1.a1.a0 << ", " << a1.a1.a1.a1 << "))))" << "\n"; Struct32BytesNestedInt result = {}; @@ -6502,17 +6296,15 @@ ReturnStruct32BytesNestedInt(Struct16BytesNestedInt a0, result.a1.a1.a1.a0 = a1.a1.a1.a0; result.a1.a1.a1.a1 = a1.a1.a1.a1; - std::cout << "result = " - << "((((" << result.a0.a0.a0.a0 << ", " << result.a0.a0.a0.a1 - << "), (" << result.a0.a0.a1.a0 << ", " << result.a0.a0.a1.a1 - << ")), ((" << result.a0.a1.a0.a0 << ", " << result.a0.a1.a0.a1 - << "), (" << result.a0.a1.a1.a0 << ", " << result.a0.a1.a1.a1 - << "))), (((" << result.a1.a0.a0.a0 << ", " << result.a1.a0.a0.a1 - << "), (" << result.a1.a0.a1.a0 << ", " << result.a1.a0.a1.a1 - << ")), ((" << result.a1.a1.a0.a0 << ", " << result.a1.a1.a0.a1 - << "), (" << result.a1.a1.a1.a0 << ", " << result.a1.a1.a1.a1 - << "))))" - << "\n"; + std::cout << "result = " << "((((" << result.a0.a0.a0.a0 << ", " + << result.a0.a0.a0.a1 << "), (" << result.a0.a0.a1.a0 << ", " + << result.a0.a0.a1.a1 << ")), ((" << result.a0.a1.a0.a0 << ", " + << result.a0.a1.a0.a1 << "), (" << result.a0.a1.a1.a0 << ", " + << result.a0.a1.a1.a1 << "))), (((" << result.a1.a0.a0.a0 << ", " + << result.a1.a0.a0.a1 << "), (" << result.a1.a0.a1.a0 << ", " + << result.a1.a0.a1.a1 << ")), ((" << result.a1.a1.a0.a0 << ", " + << result.a1.a1.a0.a1 << "), (" << result.a1.a1.a1.a0 << ", " + << result.a1.a1.a1.a1 << "))))" << "\n"; return result; } @@ -6522,11 +6314,10 @@ ReturnStruct32BytesNestedInt(Struct16BytesNestedInt a0, DART_EXPORT StructNestedIntStructAlignmentInt16 ReturnStructNestedIntStructAlignmentInt16(StructAlignmentInt16 a0, StructAlignmentInt16 a1) { - std::cout << "ReturnStructNestedIntStructAlignmentInt16" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "ReturnStructNestedIntStructAlignmentInt16" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << static_cast(a1.a0) - << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" - << "\n"; + << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << "\n"; StructNestedIntStructAlignmentInt16 result = {}; @@ -6537,12 +6328,10 @@ ReturnStructNestedIntStructAlignmentInt16(StructAlignmentInt16 a0, result.a1.a1 = a1.a1; result.a1.a2 = a1.a2; - std::cout << "result = " - << "((" << static_cast(result.a0.a0) << ", " << result.a0.a1 - << ", " << static_cast(result.a0.a2) << "), (" + std::cout << "result = " << "((" << static_cast(result.a0.a0) << ", " + << result.a0.a1 << ", " << static_cast(result.a0.a2) << "), (" << static_cast(result.a1.a0) << ", " << result.a1.a1 << ", " - << static_cast(result.a1.a2) << "))" - << "\n"; + << static_cast(result.a1.a2) << "))" << "\n"; return result; } @@ -6552,11 +6341,10 @@ ReturnStructNestedIntStructAlignmentInt16(StructAlignmentInt16 a0, DART_EXPORT StructNestedIntStructAlignmentInt32 ReturnStructNestedIntStructAlignmentInt32(StructAlignmentInt32 a0, StructAlignmentInt32 a1) { - std::cout << "ReturnStructNestedIntStructAlignmentInt32" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "ReturnStructNestedIntStructAlignmentInt32" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << static_cast(a1.a0) - << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" - << "\n"; + << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << "\n"; StructNestedIntStructAlignmentInt32 result = {}; @@ -6567,12 +6355,10 @@ ReturnStructNestedIntStructAlignmentInt32(StructAlignmentInt32 a0, result.a1.a1 = a1.a1; result.a1.a2 = a1.a2; - std::cout << "result = " - << "((" << static_cast(result.a0.a0) << ", " << result.a0.a1 - << ", " << static_cast(result.a0.a2) << "), (" + std::cout << "result = " << "((" << static_cast(result.a0.a0) << ", " + << result.a0.a1 << ", " << static_cast(result.a0.a2) << "), (" << static_cast(result.a1.a0) << ", " << result.a1.a1 << ", " - << static_cast(result.a1.a2) << "))" - << "\n"; + << static_cast(result.a1.a2) << "))" << "\n"; return result; } @@ -6582,11 +6368,10 @@ ReturnStructNestedIntStructAlignmentInt32(StructAlignmentInt32 a0, DART_EXPORT StructNestedIntStructAlignmentInt64 ReturnStructNestedIntStructAlignmentInt64(StructAlignmentInt64 a0, StructAlignmentInt64 a1) { - std::cout << "ReturnStructNestedIntStructAlignmentInt64" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "ReturnStructNestedIntStructAlignmentInt64" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << static_cast(a1.a0) - << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" - << "\n"; + << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << "\n"; StructNestedIntStructAlignmentInt64 result = {}; @@ -6597,12 +6382,10 @@ ReturnStructNestedIntStructAlignmentInt64(StructAlignmentInt64 a0, result.a1.a1 = a1.a1; result.a1.a2 = a1.a2; - std::cout << "result = " - << "((" << static_cast(result.a0.a0) << ", " << result.a0.a1 - << ", " << static_cast(result.a0.a2) << "), (" + std::cout << "result = " << "((" << static_cast(result.a0.a0) << ", " + << result.a0.a1 << ", " << static_cast(result.a0.a2) << "), (" << static_cast(result.a1.a0) << ", " << result.a1.a1 << ", " - << static_cast(result.a1.a2) << "))" - << "\n"; + << static_cast(result.a1.a2) << "))" << "\n"; return result; } @@ -6614,21 +6397,20 @@ ReturnStructNestedIrregularEvenBigger(uint64_t a0, StructNestedIrregularBigger a1, StructNestedIrregularBigger a2, double a3) { - std::cout << "ReturnStructNestedIrregularEvenBigger" - << "(" << a0 << ", ((" << a1.a0.a0 << ", ((" << a1.a0.a1.a0.a0 - << ", " << a1.a0.a1.a0.a1 << "), (" << a1.a0.a1.a1.a0 << ")), " - << a1.a0.a2 << ", ((" << a1.a0.a3.a0.a0 << "), " << a1.a0.a3.a1 - << "), " << a1.a0.a4 << ", ((" << a1.a0.a5.a0.a0 << "), (" - << a1.a0.a5.a1.a0 << ")), " << a1.a0.a6 << "), ((" << a1.a1.a0.a0 - << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ")), " << a1.a2 - << ", " << a1.a3 << "), ((" << a2.a0.a0 << ", ((" << a2.a0.a1.a0.a0 - << ", " << a2.a0.a1.a0.a1 << "), (" << a2.a0.a1.a1.a0 << ")), " - << a2.a0.a2 << ", ((" << a2.a0.a3.a0.a0 << "), " << a2.a0.a3.a1 - << "), " << a2.a0.a4 << ", ((" << a2.a0.a5.a0.a0 << "), (" - << a2.a0.a5.a1.a0 << ")), " << a2.a0.a6 << "), ((" << a2.a1.a0.a0 - << ", " << a2.a1.a0.a1 << "), (" << a2.a1.a1.a0 << ")), " << a2.a2 - << ", " << a2.a3 << "), " << a3 << ")" - << "\n"; + std::cout << "ReturnStructNestedIrregularEvenBigger" << "(" << a0 << ", ((" + << a1.a0.a0 << ", ((" << a1.a0.a1.a0.a0 << ", " << a1.a0.a1.a0.a1 + << "), (" << a1.a0.a1.a1.a0 << ")), " << a1.a0.a2 << ", ((" + << a1.a0.a3.a0.a0 << "), " << a1.a0.a3.a1 << "), " << a1.a0.a4 + << ", ((" << a1.a0.a5.a0.a0 << "), (" << a1.a0.a5.a1.a0 << ")), " + << a1.a0.a6 << "), ((" << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 + << "), (" << a1.a1.a1.a0 << ")), " << a1.a2 << ", " << a1.a3 + << "), ((" << a2.a0.a0 << ", ((" << a2.a0.a1.a0.a0 << ", " + << a2.a0.a1.a0.a1 << "), (" << a2.a0.a1.a1.a0 << ")), " << a2.a0.a2 + << ", ((" << a2.a0.a3.a0.a0 << "), " << a2.a0.a3.a1 << "), " + << a2.a0.a4 << ", ((" << a2.a0.a5.a0.a0 << "), (" << a2.a0.a5.a1.a0 + << ")), " << a2.a0.a6 << "), ((" << a2.a1.a0.a0 << ", " + << a2.a1.a0.a1 << "), (" << a2.a1.a1.a0 << ")), " << a2.a2 << ", " + << a2.a3 << "), " << a3 << ")" << "\n"; StructNestedIrregularEvenBigger result = {}; @@ -6667,15 +6449,14 @@ ReturnStructNestedIrregularEvenBigger(uint64_t a0, result.a2.a3 = a2.a3; result.a3 = a3; - std::cout << "result = " - << "(" << result.a0 << ", ((" << result.a1.a0.a0 << ", ((" - << result.a1.a0.a1.a0.a0 << ", " << result.a1.a0.a1.a0.a1 << "), (" - << result.a1.a0.a1.a1.a0 << ")), " << result.a1.a0.a2 << ", ((" - << result.a1.a0.a3.a0.a0 << "), " << result.a1.a0.a3.a1 << "), " - << result.a1.a0.a4 << ", ((" << result.a1.a0.a5.a0.a0 << "), (" - << result.a1.a0.a5.a1.a0 << ")), " << result.a1.a0.a6 << "), ((" - << result.a1.a1.a0.a0 << ", " << result.a1.a1.a0.a1 << "), (" - << result.a1.a1.a1.a0 << ")), " << result.a1.a2 << ", " + std::cout << "result = " << "(" << result.a0 << ", ((" << result.a1.a0.a0 + << ", ((" << result.a1.a0.a1.a0.a0 << ", " << result.a1.a0.a1.a0.a1 + << "), (" << result.a1.a0.a1.a1.a0 << ")), " << result.a1.a0.a2 + << ", ((" << result.a1.a0.a3.a0.a0 << "), " << result.a1.a0.a3.a1 + << "), " << result.a1.a0.a4 << ", ((" << result.a1.a0.a5.a0.a0 + << "), (" << result.a1.a0.a5.a1.a0 << ")), " << result.a1.a0.a6 + << "), ((" << result.a1.a1.a0.a0 << ", " << result.a1.a1.a0.a1 + << "), (" << result.a1.a1.a1.a0 << ")), " << result.a1.a2 << ", " << result.a1.a3 << "), ((" << result.a2.a0.a0 << ", ((" << result.a2.a0.a1.a0.a0 << ", " << result.a2.a0.a1.a0.a1 << "), (" << result.a2.a0.a1.a1.a0 << ")), " << result.a2.a0.a2 << ", ((" @@ -6684,8 +6465,7 @@ ReturnStructNestedIrregularEvenBigger(uint64_t a0, << result.a2.a0.a5.a1.a0 << ")), " << result.a2.a0.a6 << "), ((" << result.a2.a1.a0.a0 << ", " << result.a2.a1.a0.a1 << "), (" << result.a2.a1.a1.a0 << ")), " << result.a2.a2 << ", " - << result.a2.a3 << "), " << result.a3 << ")" - << "\n"; + << result.a2.a3 << "), " << result.a3 << ")" << "\n"; return result; } @@ -6727,15 +6507,14 @@ DART_EXPORT intptr_t TestPassStruct1ByteIntx10( a8.a0 = -9; a9.a0 = 10; - std::cout << "Calling TestPassStruct1ByteIntx10(" - << "((" << static_cast(a0.a0) << "), (" - << static_cast(a1.a0) << "), (" << static_cast(a2.a0) - << "), (" << static_cast(a3.a0) << "), (" - << static_cast(a4.a0) << "), (" << static_cast(a5.a0) - << "), (" << static_cast(a6.a0) << "), (" - << static_cast(a7.a0) << "), (" << static_cast(a8.a0) - << "), (" << static_cast(a9.a0) << "))" - << ")\n"; + std::cout << "Calling TestPassStruct1ByteIntx10(" << "((" + << static_cast(a0.a0) << "), (" << static_cast(a1.a0) + << "), (" << static_cast(a2.a0) << "), (" + << static_cast(a3.a0) << "), (" << static_cast(a4.a0) + << "), (" << static_cast(a5.a0) << "), (" + << static_cast(a6.a0) << "), (" << static_cast(a7.a0) + << "), (" << static_cast(a8.a0) << "), (" + << static_cast(a9.a0) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -6817,29 +6596,27 @@ DART_EXPORT intptr_t TestPassStruct3BytesHomogeneousUint8x10( a9.a1 = 29; a9.a2 = 30; - std::cout << "Calling TestPassStruct3BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " - << static_cast(a0.a1) << ", " << static_cast(a0.a2) - << "), (" << static_cast(a1.a0) << ", " - << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << "), (" << static_cast(a2.a0) << ", " - << static_cast(a2.a1) << ", " << static_cast(a2.a2) - << "), (" << static_cast(a3.a0) << ", " - << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << "), (" << static_cast(a4.a0) << ", " - << static_cast(a4.a1) << ", " << static_cast(a4.a2) - << "), (" << static_cast(a5.a0) << ", " - << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << "), (" << static_cast(a6.a0) << ", " - << static_cast(a6.a1) << ", " << static_cast(a6.a2) - << "), (" << static_cast(a7.a0) << ", " - << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << "), (" << static_cast(a8.a0) << ", " - << static_cast(a8.a1) << ", " << static_cast(a8.a2) - << "), (" << static_cast(a9.a0) << ", " - << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << "))" - << ")\n"; + std::cout << "Calling TestPassStruct3BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) + << ", " << static_cast(a0.a2) << "), (" + << static_cast(a1.a0) << ", " << static_cast(a1.a1) + << ", " << static_cast(a1.a2) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) + << ", " << static_cast(a2.a2) << "), (" + << static_cast(a3.a0) << ", " << static_cast(a3.a1) + << ", " << static_cast(a3.a2) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) + << ", " << static_cast(a4.a2) << "), (" + << static_cast(a5.a0) << ", " << static_cast(a5.a1) + << ", " << static_cast(a5.a2) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) + << ", " << static_cast(a6.a2) << "), (" + << static_cast(a7.a0) << ", " << static_cast(a7.a1) + << ", " << static_cast(a7.a2) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) + << ", " << static_cast(a8.a2) << "), (" + << static_cast(a9.a0) << ", " << static_cast(a9.a1) + << ", " << static_cast(a9.a2) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -6912,18 +6689,17 @@ DART_EXPORT intptr_t TestPassStruct3BytesInt2ByteAlignedx10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestPassStruct3BytesInt2ByteAlignedx10(" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "), (" - << a1.a0 << ", " << static_cast(a1.a1) << "), (" << a2.a0 - << ", " << static_cast(a2.a1) << "), (" << a3.a0 << ", " + std::cout << "Calling TestPassStruct3BytesInt2ByteAlignedx10(" << "((" + << a0.a0 << ", " << static_cast(a0.a1) << "), (" << a1.a0 + << ", " << static_cast(a1.a1) << "), (" << a2.a0 << ", " + << static_cast(a2.a1) << "), (" << a3.a0 << ", " << static_cast(a3.a1) << "), (" << a4.a0 << ", " << static_cast(a4.a1) << "), (" << a5.a0 << ", " << static_cast(a5.a1) << "), (" << a6.a0 << ", " << static_cast(a6.a1) << "), (" << a7.a0 << ", " << static_cast(a7.a1) << "), (" << a8.a0 << ", " << static_cast(a8.a1) << "), (" << a9.a0 << ", " - << static_cast(a9.a1) << "))" - << ")\n"; + << static_cast(a9.a1) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -6995,14 +6771,13 @@ DART_EXPORT intptr_t TestPassStruct4BytesHomogeneousInt16x10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestPassStruct4BytesHomogeneousInt16x10(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct4BytesHomogeneousInt16x10(" << "((" + << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 + << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 << ", " + << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 + << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 << "), (" + << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 + << "), (" << a9.a0 << ", " << a9.a1 << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7125,43 +6900,42 @@ DART_EXPORT intptr_t TestPassStruct7BytesHomogeneousUint8x10( a9.a6 = 70; std::cout - << "Calling TestPassStruct7BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << "))" + << "Calling TestPassStruct7BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7245,8 +7019,8 @@ DART_EXPORT intptr_t TestPassStruct7BytesInt4ByteAlignedx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestPassStruct7BytesInt4ByteAlignedx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) + std::cout << "Calling TestPassStruct7BytesInt4ByteAlignedx10(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << a1.a0 << ", " << a1.a1 << ", " << static_cast(a1.a2) << "), (" << a2.a0 << ", " << a2.a1 << ", " << static_cast(a2.a2) << "), (" << a3.a0 << ", " @@ -7340,17 +7114,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesIntx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestPassStruct8BytesIntx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << "), (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << "), (" - << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 - << ", " << a9.a1 << ", " << a9.a2 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct8BytesIntx10(" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 << ", " << a1.a1 + << ", " << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 << ", " + << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << "), (" + << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << "), (" << a6.a0 + << ", " << a6.a1 << ", " << a6.a2 << "), (" << a7.a0 << ", " + << a7.a1 << ", " << a7.a2 << "), (" << a8.a0 << ", " << a8.a1 + << ", " << a8.a2 << "), (" << a9.a0 << ", " << a9.a1 << ", " + << a9.a2 << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7422,14 +7195,13 @@ DART_EXPORT intptr_t TestPassStruct8BytesHomogeneousFloatx10( a9.a0 = -19.0; a9.a1 = 20.0; - std::cout << "Calling TestPassStruct8BytesHomogeneousFloatx10(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct8BytesHomogeneousFloatx10(" << "((" + << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 + << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 << ", " + << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 + << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 << "), (" + << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 + << "), (" << a9.a0 << ", " << a9.a1 << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7511,17 +7283,16 @@ DART_EXPORT intptr_t TestPassStruct8BytesMixedx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestPassStruct8BytesMixedx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << "), (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << "), (" - << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 - << ", " << a9.a1 << ", " << a9.a2 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct8BytesMixedx10(" << "((" << a0.a0 << ", " + << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 << ", " << a1.a1 + << ", " << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 << ", " + << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << "), (" + << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << "), (" << a6.a0 + << ", " << a6.a1 << ", " << a6.a2 << "), (" << a7.a0 << ", " + << a7.a1 << ", " << a7.a2 << "), (" << a8.a0 << ", " << a8.a1 + << ", " << a8.a2 << "), (" << a9.a0 << ", " << a9.a1 << ", " + << a9.a2 << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7667,53 +7438,52 @@ DART_EXPORT intptr_t TestPassStruct9BytesHomogeneousUint8x10( a9.a8 = 90; std::cout - << "Calling TestPassStruct9BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << ", " << static_cast(a0.a7) - << ", " << static_cast(a0.a8) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << ", " << static_cast(a1.a7) << ", " << static_cast(a1.a8) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << ", " << static_cast(a2.a7) - << ", " << static_cast(a2.a8) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << ", " << static_cast(a3.a7) << ", " << static_cast(a3.a8) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << ", " << static_cast(a4.a7) - << ", " << static_cast(a4.a8) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << ", " << static_cast(a5.a7) << ", " << static_cast(a5.a8) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << ", " << static_cast(a6.a7) - << ", " << static_cast(a6.a8) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << ", " << static_cast(a7.a7) << ", " << static_cast(a7.a8) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << ", " << static_cast(a8.a7) - << ", " << static_cast(a8.a8) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << ", " << static_cast(a9.a7) << ", " << static_cast(a9.a8) - << "))" + << "Calling TestPassStruct9BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << ", " << static_cast(a0.a7) << ", " + << static_cast(a0.a8) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << ", " + << static_cast(a1.a7) << ", " << static_cast(a1.a8) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << ", " << static_cast(a2.a7) << ", " + << static_cast(a2.a8) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << ", " + << static_cast(a3.a7) << ", " << static_cast(a3.a8) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << ", " << static_cast(a4.a7) << ", " + << static_cast(a4.a8) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << ", " + << static_cast(a5.a7) << ", " << static_cast(a5.a8) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << ", " << static_cast(a6.a7) << ", " + << static_cast(a6.a8) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << ", " + << static_cast(a7.a7) << ", " << static_cast(a7.a8) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << ", " << static_cast(a8.a7) << ", " + << static_cast(a8.a8) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << ", " + << static_cast(a9.a7) << ", " << static_cast(a9.a8) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7788,18 +7558,17 @@ DART_EXPORT intptr_t TestPassStruct9BytesInt4Or8ByteAlignedx10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestPassStruct9BytesInt4Or8ByteAlignedx10(" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "), (" - << a1.a0 << ", " << static_cast(a1.a1) << "), (" << a2.a0 - << ", " << static_cast(a2.a1) << "), (" << a3.a0 << ", " + std::cout << "Calling TestPassStruct9BytesInt4Or8ByteAlignedx10(" << "((" + << a0.a0 << ", " << static_cast(a0.a1) << "), (" << a1.a0 + << ", " << static_cast(a1.a1) << "), (" << a2.a0 << ", " + << static_cast(a2.a1) << "), (" << a3.a0 << ", " << static_cast(a3.a1) << "), (" << a4.a0 << ", " << static_cast(a4.a1) << "), (" << a5.a0 << ", " << static_cast(a5.a1) << "), (" << a6.a0 << ", " << static_cast(a6.a1) << "), (" << a7.a0 << ", " << static_cast(a7.a1) << "), (" << a8.a0 << ", " << static_cast(a8.a1) << "), (" << a9.a0 << ", " - << static_cast(a9.a1) << "))" - << ")\n"; + << static_cast(a9.a1) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -7862,14 +7631,13 @@ DART_EXPORT intptr_t TestPassStruct12BytesHomogeneousFloatx6( a5.a1 = -17.0; a5.a2 = 18.0; - std::cout << "Calling TestPassStruct12BytesHomogeneousFloatx6(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct12BytesHomogeneousFloatx6(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 + << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 << ", " + << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 + << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 << ", " + << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 + << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5); @@ -7932,14 +7700,13 @@ DART_EXPORT intptr_t TestPassStruct16BytesHomogeneousFloatx5( a4.a2 = -19.0; a4.a3 = 20.0; - std::cout << "Calling TestPassStruct16BytesHomogeneousFloatx5(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 + std::cout << "Calling TestPassStruct16BytesHomogeneousFloatx5(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "))" - << ")\n"; + << ", " << a4.a2 << ", " << a4.a3 << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4); @@ -8013,14 +7780,13 @@ DART_EXPORT intptr_t TestPassStruct16BytesMixedx10( a9.a0 = -19.0; a9.a1 = 20; - std::cout << "Calling TestPassStruct16BytesMixedx10(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct16BytesMixedx10(" << "((" << a0.a0 << ", " + << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 << "), (" << a2.a0 + << ", " << a2.a1 << "), (" << a3.a0 << ", " << a3.a1 << "), (" + << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 + << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " + << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" << a9.a0 + << ", " << a9.a1 << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -8114,20 +7880,19 @@ DART_EXPORT intptr_t TestPassStruct16BytesMixed2x10( a9.a2 = -39.0; a9.a3 = 40; - std::cout << "Calling TestPassStruct16BytesMixed2x10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " - << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 - << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " - << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "), (" << a5.a0 << ", " - << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), (" << a6.a0 - << ", " << a6.a1 << ", " << a6.a2 << ", " << a6.a3 << "), (" - << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), (" << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " - << a8.a3 << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 - << ", " << a9.a3 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct16BytesMixed2x10(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" + << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 + << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " + << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 << ", " + << a4.a2 << ", " << a4.a3 << "), (" << a5.a0 << ", " << a5.a1 + << ", " << a5.a2 << ", " << a5.a3 << "), (" << a6.a0 << ", " + << a6.a1 << ", " << a6.a2 << ", " << a6.a3 << "), (" << a7.a0 + << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << "), (" + << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " << a8.a3 + << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 << ", " + << a9.a3 << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -8209,20 +7974,19 @@ DART_EXPORT intptr_t TestPassStruct17BytesIntx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestPassStruct17BytesIntx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) - << "), (" << a1.a0 << ", " << a1.a1 << ", " - << static_cast(a1.a2) << "), (" << a2.a0 << ", " << a2.a1 - << ", " << static_cast(a2.a2) << "), (" << a3.a0 << ", " - << a3.a1 << ", " << static_cast(a3.a2) << "), (" << a4.a0 - << ", " << a4.a1 << ", " << static_cast(a4.a2) << "), (" - << a5.a0 << ", " << a5.a1 << ", " << static_cast(a5.a2) - << "), (" << a6.a0 << ", " << a6.a1 << ", " - << static_cast(a6.a2) << "), (" << a7.a0 << ", " << a7.a1 - << ", " << static_cast(a7.a2) << "), (" << a8.a0 << ", " - << a8.a1 << ", " << static_cast(a8.a2) << "), (" << a9.a0 - << ", " << a9.a1 << ", " << static_cast(a9.a2) << "))" - << ")\n"; + std::cout << "Calling TestPassStruct17BytesIntx10(" << "((" << a0.a0 << ", " + << a0.a1 << ", " << static_cast(a0.a2) << "), (" << a1.a0 + << ", " << a1.a1 << ", " << static_cast(a1.a2) << "), (" + << a2.a0 << ", " << a2.a1 << ", " << static_cast(a2.a2) + << "), (" << a3.a0 << ", " << a3.a1 << ", " + << static_cast(a3.a2) << "), (" << a4.a0 << ", " << a4.a1 + << ", " << static_cast(a4.a2) << "), (" << a5.a0 << ", " + << a5.a1 << ", " << static_cast(a5.a2) << "), (" << a6.a0 + << ", " << a6.a1 << ", " << static_cast(a6.a2) << "), (" + << a7.a0 << ", " << a7.a1 << ", " << static_cast(a7.a2) + << "), (" << a8.a0 << ", " << a8.a1 << ", " + << static_cast(a8.a2) << "), (" << a9.a0 << ", " << a9.a1 + << ", " << static_cast(a9.a2) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -8466,103 +8230,102 @@ DART_EXPORT intptr_t TestPassStruct19BytesHomogeneousUint8x10( a9.a18 = 190; std::cout - << "Calling TestPassStruct19BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << ", " << static_cast(a0.a7) - << ", " << static_cast(a0.a8) << ", " << static_cast(a0.a9) - << ", " << static_cast(a0.a10) << ", " << static_cast(a0.a11) - << ", " << static_cast(a0.a12) << ", " << static_cast(a0.a13) - << ", " << static_cast(a0.a14) << ", " << static_cast(a0.a15) - << ", " << static_cast(a0.a16) << ", " << static_cast(a0.a17) - << ", " << static_cast(a0.a18) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << ", " << static_cast(a1.a7) << ", " << static_cast(a1.a8) - << ", " << static_cast(a1.a9) << ", " << static_cast(a1.a10) - << ", " << static_cast(a1.a11) << ", " << static_cast(a1.a12) - << ", " << static_cast(a1.a13) << ", " << static_cast(a1.a14) - << ", " << static_cast(a1.a15) << ", " << static_cast(a1.a16) - << ", " << static_cast(a1.a17) << ", " << static_cast(a1.a18) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << ", " << static_cast(a2.a7) - << ", " << static_cast(a2.a8) << ", " << static_cast(a2.a9) - << ", " << static_cast(a2.a10) << ", " << static_cast(a2.a11) - << ", " << static_cast(a2.a12) << ", " << static_cast(a2.a13) - << ", " << static_cast(a2.a14) << ", " << static_cast(a2.a15) - << ", " << static_cast(a2.a16) << ", " << static_cast(a2.a17) - << ", " << static_cast(a2.a18) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << ", " << static_cast(a3.a7) << ", " << static_cast(a3.a8) - << ", " << static_cast(a3.a9) << ", " << static_cast(a3.a10) - << ", " << static_cast(a3.a11) << ", " << static_cast(a3.a12) - << ", " << static_cast(a3.a13) << ", " << static_cast(a3.a14) - << ", " << static_cast(a3.a15) << ", " << static_cast(a3.a16) - << ", " << static_cast(a3.a17) << ", " << static_cast(a3.a18) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << ", " << static_cast(a4.a7) - << ", " << static_cast(a4.a8) << ", " << static_cast(a4.a9) - << ", " << static_cast(a4.a10) << ", " << static_cast(a4.a11) - << ", " << static_cast(a4.a12) << ", " << static_cast(a4.a13) - << ", " << static_cast(a4.a14) << ", " << static_cast(a4.a15) - << ", " << static_cast(a4.a16) << ", " << static_cast(a4.a17) - << ", " << static_cast(a4.a18) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << ", " << static_cast(a5.a7) << ", " << static_cast(a5.a8) - << ", " << static_cast(a5.a9) << ", " << static_cast(a5.a10) - << ", " << static_cast(a5.a11) << ", " << static_cast(a5.a12) - << ", " << static_cast(a5.a13) << ", " << static_cast(a5.a14) - << ", " << static_cast(a5.a15) << ", " << static_cast(a5.a16) - << ", " << static_cast(a5.a17) << ", " << static_cast(a5.a18) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << ", " << static_cast(a6.a7) - << ", " << static_cast(a6.a8) << ", " << static_cast(a6.a9) - << ", " << static_cast(a6.a10) << ", " << static_cast(a6.a11) - << ", " << static_cast(a6.a12) << ", " << static_cast(a6.a13) - << ", " << static_cast(a6.a14) << ", " << static_cast(a6.a15) - << ", " << static_cast(a6.a16) << ", " << static_cast(a6.a17) - << ", " << static_cast(a6.a18) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << ", " << static_cast(a7.a7) << ", " << static_cast(a7.a8) - << ", " << static_cast(a7.a9) << ", " << static_cast(a7.a10) - << ", " << static_cast(a7.a11) << ", " << static_cast(a7.a12) - << ", " << static_cast(a7.a13) << ", " << static_cast(a7.a14) - << ", " << static_cast(a7.a15) << ", " << static_cast(a7.a16) - << ", " << static_cast(a7.a17) << ", " << static_cast(a7.a18) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << ", " << static_cast(a8.a7) - << ", " << static_cast(a8.a8) << ", " << static_cast(a8.a9) - << ", " << static_cast(a8.a10) << ", " << static_cast(a8.a11) - << ", " << static_cast(a8.a12) << ", " << static_cast(a8.a13) - << ", " << static_cast(a8.a14) << ", " << static_cast(a8.a15) - << ", " << static_cast(a8.a16) << ", " << static_cast(a8.a17) - << ", " << static_cast(a8.a18) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << ", " << static_cast(a9.a7) << ", " << static_cast(a9.a8) - << ", " << static_cast(a9.a9) << ", " << static_cast(a9.a10) - << ", " << static_cast(a9.a11) << ", " << static_cast(a9.a12) - << ", " << static_cast(a9.a13) << ", " << static_cast(a9.a14) - << ", " << static_cast(a9.a15) << ", " << static_cast(a9.a16) - << ", " << static_cast(a9.a17) << ", " << static_cast(a9.a18) - << "))" + << "Calling TestPassStruct19BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << ", " << static_cast(a0.a7) << ", " + << static_cast(a0.a8) << ", " << static_cast(a0.a9) << ", " + << static_cast(a0.a10) << ", " << static_cast(a0.a11) << ", " + << static_cast(a0.a12) << ", " << static_cast(a0.a13) << ", " + << static_cast(a0.a14) << ", " << static_cast(a0.a15) << ", " + << static_cast(a0.a16) << ", " << static_cast(a0.a17) << ", " + << static_cast(a0.a18) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << ", " + << static_cast(a1.a7) << ", " << static_cast(a1.a8) << ", " + << static_cast(a1.a9) << ", " << static_cast(a1.a10) << ", " + << static_cast(a1.a11) << ", " << static_cast(a1.a12) << ", " + << static_cast(a1.a13) << ", " << static_cast(a1.a14) << ", " + << static_cast(a1.a15) << ", " << static_cast(a1.a16) << ", " + << static_cast(a1.a17) << ", " << static_cast(a1.a18) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << ", " << static_cast(a2.a7) << ", " + << static_cast(a2.a8) << ", " << static_cast(a2.a9) << ", " + << static_cast(a2.a10) << ", " << static_cast(a2.a11) << ", " + << static_cast(a2.a12) << ", " << static_cast(a2.a13) << ", " + << static_cast(a2.a14) << ", " << static_cast(a2.a15) << ", " + << static_cast(a2.a16) << ", " << static_cast(a2.a17) << ", " + << static_cast(a2.a18) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << ", " + << static_cast(a3.a7) << ", " << static_cast(a3.a8) << ", " + << static_cast(a3.a9) << ", " << static_cast(a3.a10) << ", " + << static_cast(a3.a11) << ", " << static_cast(a3.a12) << ", " + << static_cast(a3.a13) << ", " << static_cast(a3.a14) << ", " + << static_cast(a3.a15) << ", " << static_cast(a3.a16) << ", " + << static_cast(a3.a17) << ", " << static_cast(a3.a18) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << ", " << static_cast(a4.a7) << ", " + << static_cast(a4.a8) << ", " << static_cast(a4.a9) << ", " + << static_cast(a4.a10) << ", " << static_cast(a4.a11) << ", " + << static_cast(a4.a12) << ", " << static_cast(a4.a13) << ", " + << static_cast(a4.a14) << ", " << static_cast(a4.a15) << ", " + << static_cast(a4.a16) << ", " << static_cast(a4.a17) << ", " + << static_cast(a4.a18) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << ", " + << static_cast(a5.a7) << ", " << static_cast(a5.a8) << ", " + << static_cast(a5.a9) << ", " << static_cast(a5.a10) << ", " + << static_cast(a5.a11) << ", " << static_cast(a5.a12) << ", " + << static_cast(a5.a13) << ", " << static_cast(a5.a14) << ", " + << static_cast(a5.a15) << ", " << static_cast(a5.a16) << ", " + << static_cast(a5.a17) << ", " << static_cast(a5.a18) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << ", " << static_cast(a6.a7) << ", " + << static_cast(a6.a8) << ", " << static_cast(a6.a9) << ", " + << static_cast(a6.a10) << ", " << static_cast(a6.a11) << ", " + << static_cast(a6.a12) << ", " << static_cast(a6.a13) << ", " + << static_cast(a6.a14) << ", " << static_cast(a6.a15) << ", " + << static_cast(a6.a16) << ", " << static_cast(a6.a17) << ", " + << static_cast(a6.a18) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << ", " + << static_cast(a7.a7) << ", " << static_cast(a7.a8) << ", " + << static_cast(a7.a9) << ", " << static_cast(a7.a10) << ", " + << static_cast(a7.a11) << ", " << static_cast(a7.a12) << ", " + << static_cast(a7.a13) << ", " << static_cast(a7.a14) << ", " + << static_cast(a7.a15) << ", " << static_cast(a7.a16) << ", " + << static_cast(a7.a17) << ", " << static_cast(a7.a18) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << ", " << static_cast(a8.a7) << ", " + << static_cast(a8.a8) << ", " << static_cast(a8.a9) << ", " + << static_cast(a8.a10) << ", " << static_cast(a8.a11) << ", " + << static_cast(a8.a12) << ", " << static_cast(a8.a13) << ", " + << static_cast(a8.a14) << ", " << static_cast(a8.a15) << ", " + << static_cast(a8.a16) << ", " << static_cast(a8.a17) << ", " + << static_cast(a8.a18) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << ", " + << static_cast(a9.a7) << ", " << static_cast(a9.a8) << ", " + << static_cast(a9.a9) << ", " << static_cast(a9.a10) << ", " + << static_cast(a9.a11) << ", " << static_cast(a9.a12) << ", " + << static_cast(a9.a13) << ", " << static_cast(a9.a14) << ", " + << static_cast(a9.a15) << ", " << static_cast(a9.a16) << ", " + << static_cast(a9.a17) << ", " << static_cast(a9.a18) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -8667,11 +8430,11 @@ DART_EXPORT intptr_t TestPassStruct20BytesHomogeneousInt32x10( a9.a3 = -49; a9.a4 = 50; - std::cout << "Calling TestPassStruct20BytesHomogeneousInt32x10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << ", " - << a1.a2 << ", " << a1.a3 << ", " << a1.a4 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << ", " << a2.a4 + std::cout << "Calling TestPassStruct20BytesHomogeneousInt32x10(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 + << ", " << a1.a3 << ", " << a1.a4 << "), (" << a2.a0 << ", " + << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << ", " << a2.a4 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << ", " << a3.a4 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << ", " << a4.a3 << ", " << a4.a4 << "), (" @@ -8681,8 +8444,7 @@ DART_EXPORT intptr_t TestPassStruct20BytesHomogeneousInt32x10( << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << ", " << a7.a4 << "), (" << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " << a8.a3 << ", " << a8.a4 << "), (" << a9.a0 << ", " << a9.a1 - << ", " << a9.a2 << ", " << a9.a3 << ", " << a9.a4 << "))" - << ")\n"; + << ", " << a9.a2 << ", " << a9.a3 << ", " << a9.a4 << "))" << ")\n"; int32_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -8720,10 +8482,9 @@ DART_EXPORT intptr_t TestPassStruct20BytesHomogeneousFloat( a0.a3 = 4.0; a0.a4 = -5.0; - std::cout << "Calling TestPassStruct20BytesHomogeneousFloat(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct20BytesHomogeneousFloat(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 + << "))" << ")\n"; float result = f(a0); @@ -8785,14 +8546,13 @@ DART_EXPORT intptr_t TestPassStruct32BytesHomogeneousDoublex5( a4.a2 = -19.0; a4.a3 = 20.0; - std::cout << "Calling TestPassStruct32BytesHomogeneousDoublex5(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 + std::cout << "Calling TestPassStruct32BytesHomogeneousDoublex5(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "))" - << ")\n"; + << ", " << a4.a2 << ", " << a4.a3 << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4); @@ -8830,10 +8590,9 @@ DART_EXPORT intptr_t TestPassStruct40BytesHomogeneousDouble( a0.a3 = 4.0; a0.a4 = -5.0; - std::cout << "Calling TestPassStruct40BytesHomogeneousDouble(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct40BytesHomogeneousDouble(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "))" << ")\n"; double result = f(a0); @@ -8994,45 +8753,44 @@ DART_EXPORT intptr_t TestPassStruct1024BytesHomogeneousUint64( a0.a126 = 127; a0.a127 = 128; - std::cout << "Calling TestPassStruct1024BytesHomogeneousUint64(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << ", " << a0.a5 << ", " << a0.a6 << ", " << a0.a7 - << ", " << a0.a8 << ", " << a0.a9 << ", " << a0.a10 << ", " - << a0.a11 << ", " << a0.a12 << ", " << a0.a13 << ", " << a0.a14 - << ", " << a0.a15 << ", " << a0.a16 << ", " << a0.a17 << ", " - << a0.a18 << ", " << a0.a19 << ", " << a0.a20 << ", " << a0.a21 - << ", " << a0.a22 << ", " << a0.a23 << ", " << a0.a24 << ", " - << a0.a25 << ", " << a0.a26 << ", " << a0.a27 << ", " << a0.a28 - << ", " << a0.a29 << ", " << a0.a30 << ", " << a0.a31 << ", " - << a0.a32 << ", " << a0.a33 << ", " << a0.a34 << ", " << a0.a35 - << ", " << a0.a36 << ", " << a0.a37 << ", " << a0.a38 << ", " - << a0.a39 << ", " << a0.a40 << ", " << a0.a41 << ", " << a0.a42 - << ", " << a0.a43 << ", " << a0.a44 << ", " << a0.a45 << ", " - << a0.a46 << ", " << a0.a47 << ", " << a0.a48 << ", " << a0.a49 - << ", " << a0.a50 << ", " << a0.a51 << ", " << a0.a52 << ", " - << a0.a53 << ", " << a0.a54 << ", " << a0.a55 << ", " << a0.a56 - << ", " << a0.a57 << ", " << a0.a58 << ", " << a0.a59 << ", " - << a0.a60 << ", " << a0.a61 << ", " << a0.a62 << ", " << a0.a63 - << ", " << a0.a64 << ", " << a0.a65 << ", " << a0.a66 << ", " - << a0.a67 << ", " << a0.a68 << ", " << a0.a69 << ", " << a0.a70 - << ", " << a0.a71 << ", " << a0.a72 << ", " << a0.a73 << ", " - << a0.a74 << ", " << a0.a75 << ", " << a0.a76 << ", " << a0.a77 - << ", " << a0.a78 << ", " << a0.a79 << ", " << a0.a80 << ", " - << a0.a81 << ", " << a0.a82 << ", " << a0.a83 << ", " << a0.a84 - << ", " << a0.a85 << ", " << a0.a86 << ", " << a0.a87 << ", " - << a0.a88 << ", " << a0.a89 << ", " << a0.a90 << ", " << a0.a91 - << ", " << a0.a92 << ", " << a0.a93 << ", " << a0.a94 << ", " - << a0.a95 << ", " << a0.a96 << ", " << a0.a97 << ", " << a0.a98 - << ", " << a0.a99 << ", " << a0.a100 << ", " << a0.a101 << ", " - << a0.a102 << ", " << a0.a103 << ", " << a0.a104 << ", " << a0.a105 - << ", " << a0.a106 << ", " << a0.a107 << ", " << a0.a108 << ", " - << a0.a109 << ", " << a0.a110 << ", " << a0.a111 << ", " << a0.a112 - << ", " << a0.a113 << ", " << a0.a114 << ", " << a0.a115 << ", " - << a0.a116 << ", " << a0.a117 << ", " << a0.a118 << ", " << a0.a119 - << ", " << a0.a120 << ", " << a0.a121 << ", " << a0.a122 << ", " - << a0.a123 << ", " << a0.a124 << ", " << a0.a125 << ", " << a0.a126 - << ", " << a0.a127 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct1024BytesHomogeneousUint64(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << ", " << a0.a5 << ", " << a0.a6 << ", " << a0.a7 << ", " + << a0.a8 << ", " << a0.a9 << ", " << a0.a10 << ", " << a0.a11 + << ", " << a0.a12 << ", " << a0.a13 << ", " << a0.a14 << ", " + << a0.a15 << ", " << a0.a16 << ", " << a0.a17 << ", " << a0.a18 + << ", " << a0.a19 << ", " << a0.a20 << ", " << a0.a21 << ", " + << a0.a22 << ", " << a0.a23 << ", " << a0.a24 << ", " << a0.a25 + << ", " << a0.a26 << ", " << a0.a27 << ", " << a0.a28 << ", " + << a0.a29 << ", " << a0.a30 << ", " << a0.a31 << ", " << a0.a32 + << ", " << a0.a33 << ", " << a0.a34 << ", " << a0.a35 << ", " + << a0.a36 << ", " << a0.a37 << ", " << a0.a38 << ", " << a0.a39 + << ", " << a0.a40 << ", " << a0.a41 << ", " << a0.a42 << ", " + << a0.a43 << ", " << a0.a44 << ", " << a0.a45 << ", " << a0.a46 + << ", " << a0.a47 << ", " << a0.a48 << ", " << a0.a49 << ", " + << a0.a50 << ", " << a0.a51 << ", " << a0.a52 << ", " << a0.a53 + << ", " << a0.a54 << ", " << a0.a55 << ", " << a0.a56 << ", " + << a0.a57 << ", " << a0.a58 << ", " << a0.a59 << ", " << a0.a60 + << ", " << a0.a61 << ", " << a0.a62 << ", " << a0.a63 << ", " + << a0.a64 << ", " << a0.a65 << ", " << a0.a66 << ", " << a0.a67 + << ", " << a0.a68 << ", " << a0.a69 << ", " << a0.a70 << ", " + << a0.a71 << ", " << a0.a72 << ", " << a0.a73 << ", " << a0.a74 + << ", " << a0.a75 << ", " << a0.a76 << ", " << a0.a77 << ", " + << a0.a78 << ", " << a0.a79 << ", " << a0.a80 << ", " << a0.a81 + << ", " << a0.a82 << ", " << a0.a83 << ", " << a0.a84 << ", " + << a0.a85 << ", " << a0.a86 << ", " << a0.a87 << ", " << a0.a88 + << ", " << a0.a89 << ", " << a0.a90 << ", " << a0.a91 << ", " + << a0.a92 << ", " << a0.a93 << ", " << a0.a94 << ", " << a0.a95 + << ", " << a0.a96 << ", " << a0.a97 << ", " << a0.a98 << ", " + << a0.a99 << ", " << a0.a100 << ", " << a0.a101 << ", " << a0.a102 + << ", " << a0.a103 << ", " << a0.a104 << ", " << a0.a105 << ", " + << a0.a106 << ", " << a0.a107 << ", " << a0.a108 << ", " << a0.a109 + << ", " << a0.a110 << ", " << a0.a111 << ", " << a0.a112 << ", " + << a0.a113 << ", " << a0.a114 << ", " << a0.a115 << ", " << a0.a116 + << ", " << a0.a117 << ", " << a0.a118 << ", " << a0.a119 << ", " + << a0.a120 << ", " << a0.a121 << ", " << a0.a122 << ", " << a0.a123 + << ", " << a0.a124 << ", " << a0.a125 << ", " << a0.a126 << ", " + << a0.a127 << "))" << ")\n"; uint64_t result = f(a0); @@ -9108,8 +8866,7 @@ DART_EXPORT intptr_t TestPassFloatStruct16BytesHomogeneousFloatFloatStruct1( << ", " << a3.a2 << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), " << a8 << ")" - << ")\n"; + << "), " << a8 << ")" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); @@ -9185,8 +8942,7 @@ DART_EXPORT intptr_t TestPassFloatStruct32BytesHomogeneousDoubleFloatStruct( << ", " << a3.a2 << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), " << a8 << ")" - << ")\n"; + << "), " << a8 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); @@ -9257,8 +9013,7 @@ DART_EXPORT intptr_t TestPassInt8Struct16BytesMixedInt8Struct16BytesMixedIn( << "), " << static_cast(a2) << ", (" << a3.a0 << ", " << a3.a1 << "), " << static_cast(a4) << ", (" << a5.a0 << ", " << a5.a1 << "), " << static_cast(a6) << ", (" << a7.a0 << ", " << a7.a1 - << "), " << static_cast(a8) << ")" - << ")\n"; + << "), " << static_cast(a8) << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); @@ -9328,12 +9083,11 @@ DART_EXPORT intptr_t TestPassDoublex6Struct16BytesMixedx4Int32( a9.a1 = 14; a10 = -15; - std::cout << "Calling TestPassDoublex6Struct16BytesMixedx4Int32(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 - << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" - << a9.a0 << ", " << a9.a1 << "), " << a10 << ")" - << ")\n"; + std::cout << "Calling TestPassDoublex6Struct16BytesMixedx4Int32(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " + << a5 << ", (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " + << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" << a9.a0 + << ", " << a9.a1 << "), " << a10 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); @@ -9397,12 +9151,11 @@ DART_EXPORT intptr_t TestPassInt32x4Struct16BytesMixedx4Double( a7.a1 = 12; a8 = -13.0; - std::cout << "Calling TestPassInt32x4Struct16BytesMixedx4Double(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", (" - << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 - << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " - << a7.a1 << "), " << a8 << ")" - << ")\n"; + std::cout << "Calling TestPassInt32x4Struct16BytesMixedx4Double(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", (" << a4.a0 << ", " + << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 + << ", " << a6.a1 << "), (" << a7.a0 << ", " << a7.a1 << "), " << a8 + << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); @@ -9452,8 +9205,7 @@ DART_EXPORT intptr_t TestPassStruct40BytesHomogeneousDoubleStruct4BytesHomo( std::cout << "Calling TestPassStruct40BytesHomogeneousDoubleStruct4BytesHomo(" << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << "), (" - << a2.a0 << ", " << a2.a1 << "))" - << ")\n"; + << a2.a0 << ", " << a2.a1 << "))" << ")\n"; double result = f(a0, a1, a2); @@ -9635,8 +9387,7 @@ DART_EXPORT intptr_t TestPassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( << ", " << a36.a1 << ", " << static_cast(a36.a2) << "), " << a37 << ", " << static_cast(a38) << ", (" << static_cast(a39.a0) << ", " << a39.a1 << ", " - << static_cast(a39.a2) << "))" - << ")\n"; + << static_cast(a39.a2) << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, @@ -9679,10 +9430,9 @@ DART_EXPORT intptr_t TestPassStructAlignmentInt16( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestPassStructAlignmentInt16(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << ")\n"; + std::cout << "Calling TestPassStructAlignmentInt16(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " + << static_cast(a0.a2) << "))" << ")\n"; int64_t result = f(a0); @@ -9718,10 +9468,9 @@ DART_EXPORT intptr_t TestPassStructAlignmentInt32( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestPassStructAlignmentInt32(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << ")\n"; + std::cout << "Calling TestPassStructAlignmentInt32(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " + << static_cast(a0.a2) << "))" << ")\n"; int64_t result = f(a0); @@ -9757,10 +9506,9 @@ DART_EXPORT intptr_t TestPassStructAlignmentInt64( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestPassStructAlignmentInt64(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << ")\n"; + std::cout << "Calling TestPassStructAlignmentInt64(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " + << static_cast(a0.a2) << "))" << ")\n"; int64_t result = f(a0); @@ -9852,22 +9600,21 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedIntx10( a9.a1.a0 = -39; a9.a1.a1 = 40; - std::cout << "Calling TestPassStruct8BytesNestedIntx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ", " << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 - << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")), ((" << a2.a0.a0 - << ", " << a2.a0.a1 << "), (" << a2.a1.a0 << ", " << a2.a1.a1 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 - << ", " << a3.a1.a1 << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 - << "), (" << a4.a1.a0 << ", " << a4.a1.a1 << ")), ((" << a5.a0.a0 - << ", " << a5.a0.a1 << "), (" << a5.a1.a0 << ", " << a5.a1.a1 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 - << ", " << a6.a1.a1 << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 - << "), (" << a7.a1.a0 << ", " << a7.a1.a1 << ")), ((" << a8.a0.a0 - << ", " << a8.a0.a1 << "), (" << a8.a1.a0 << ", " << a8.a1.a1 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 - << ", " << a9.a1.a1 << ")))" - << ")\n"; + std::cout << "Calling TestPassStruct8BytesNestedIntx10(" << "(((" << a0.a0.a0 + << ", " << a0.a0.a1 << "), (" << a0.a1.a0 << ", " << a0.a1.a1 + << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 + << ", " << a1.a1.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 + << "), (" << a2.a1.a0 << ", " << a2.a1.a1 << ")), ((" << a3.a0.a0 + << ", " << a3.a0.a1 << "), (" << a3.a1.a0 << ", " << a3.a1.a1 + << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 + << ", " << a4.a1.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 + << "), (" << a5.a1.a0 << ", " << a5.a1.a1 << ")), ((" << a6.a0.a0 + << ", " << a6.a0.a1 << "), (" << a6.a1.a0 << ", " << a6.a1.a1 + << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 + << ", " << a7.a1.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 + << "), (" << a8.a1.a0 << ", " << a8.a1.a1 << ")), ((" << a9.a0.a0 + << ", " << a9.a0.a1 << "), (" << a9.a1.a0 << ", " << a9.a1.a1 + << ")))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -9939,16 +9686,15 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedFloatx10( a9.a0.a0 = -19.0; a9.a1.a0 = 20.0; - std::cout << "Calling TestPassStruct8BytesNestedFloatx10(" - << "(((" << a0.a0.a0 << "), (" << a0.a1.a0 << ")), ((" << a1.a0.a0 - << "), (" << a1.a1.a0 << ")), ((" << a2.a0.a0 << "), (" << a2.a1.a0 + std::cout << "Calling TestPassStruct8BytesNestedFloatx10(" << "(((" + << a0.a0.a0 << "), (" << a0.a1.a0 << ")), ((" << a1.a0.a0 << "), (" + << a1.a1.a0 << ")), ((" << a2.a0.a0 << "), (" << a2.a1.a0 << ")), ((" << a3.a0.a0 << "), (" << a3.a1.a0 << ")), ((" << a4.a0.a0 << "), (" << a4.a1.a0 << ")), ((" << a5.a0.a0 << "), (" << a5.a1.a0 << ")), ((" << a6.a0.a0 << "), (" << a6.a1.a0 << ")), ((" << a7.a0.a0 << "), (" << a7.a1.a0 << ")), ((" << a8.a0.a0 << "), (" << a8.a1.a0 << ")), ((" << a9.a0.a0 << "), (" - << a9.a1.a0 << ")))" - << ")\n"; + << a9.a1.a0 << ")))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -10022,15 +9768,14 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedFloat2x10( a9.a0.a0 = -19.0; a9.a1 = 20.0; - std::cout << "Calling TestPassStruct8BytesNestedFloat2x10(" - << "(((" << a0.a0.a0 << "), " << a0.a1 << "), ((" << a1.a0.a0 - << "), " << a1.a1 << "), ((" << a2.a0.a0 << "), " << a2.a1 - << "), ((" << a3.a0.a0 << "), " << a3.a1 << "), ((" << a4.a0.a0 - << "), " << a4.a1 << "), ((" << a5.a0.a0 << "), " << a5.a1 - << "), ((" << a6.a0.a0 << "), " << a6.a1 << "), ((" << a7.a0.a0 - << "), " << a7.a1 << "), ((" << a8.a0.a0 << "), " << a8.a1 - << "), ((" << a9.a0.a0 << "), " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestPassStruct8BytesNestedFloat2x10(" << "(((" + << a0.a0.a0 << "), " << a0.a1 << "), ((" << a1.a0.a0 << "), " + << a1.a1 << "), ((" << a2.a0.a0 << "), " << a2.a1 << "), ((" + << a3.a0.a0 << "), " << a3.a1 << "), ((" << a4.a0.a0 << "), " + << a4.a1 << "), ((" << a5.a0.a0 << "), " << a5.a1 << "), ((" + << a6.a0.a0 << "), " << a6.a1 << "), ((" << a7.a0.a0 << "), " + << a7.a1 << "), ((" << a8.a0.a0 << "), " << a8.a1 << "), ((" + << a9.a0.a0 << "), " << a9.a1 << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -10112,18 +9857,17 @@ DART_EXPORT intptr_t TestPassStruct8BytesNestedMixedx10( a9.a0.a1 = -29; a9.a1.a0 = 30.0; - std::cout << "Calling TestPassStruct8BytesNestedMixedx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 - << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << "), (" << a2.a1.a0 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 - << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 - << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << "), (" << a5.a1.a0 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 - << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 - << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << "), (" << a8.a1.a0 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 - << ")))" + std::cout << "Calling TestPassStruct8BytesNestedMixedx10(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 << ")), ((" + << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 << ")), ((" + << a2.a0.a0 << ", " << a2.a0.a1 << "), (" << a2.a1.a0 << ")), ((" + << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 << ")), ((" + << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 << ")), ((" + << a5.a0.a0 << ", " << a5.a0.a1 << "), (" << a5.a1.a0 << ")), ((" + << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 << ")), ((" + << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 << ")), ((" + << a8.a0.a0 << ", " << a8.a0.a1 << "), (" << a8.a1.a0 << ")), ((" + << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 << ")))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -10174,15 +9918,14 @@ DART_EXPORT intptr_t TestPassStruct16BytesNestedIntx2( a1.a1.a1.a0 = -15; a1.a1.a1.a1 = 16; - std::cout << "Calling TestPassStruct16BytesNestedIntx2(" - << "((((" << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" - << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 - << ", " << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " - << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 - << "), (" << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" - << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 - << ", " << a1.a1.a1.a1 << "))))" - << ")\n"; + std::cout << "Calling TestPassStruct16BytesNestedIntx2(" << "((((" + << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" << a0.a0.a1.a0 + << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 << ", " + << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " << a0.a1.a1.a1 + << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 << "), (" + << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" << a1.a1.a0.a0 + << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ", " + << a1.a1.a1.a1 << "))))" << ")\n"; int64_t result = f(a0, a1); @@ -10248,8 +9991,8 @@ DART_EXPORT intptr_t TestPassStruct32BytesNestedIntx2( a1.a1.a1.a1.a0 = -31; a1.a1.a1.a1.a1 = 32; - std::cout << "Calling TestPassStruct32BytesNestedIntx2(" - << "(((((" << a0.a0.a0.a0.a0 << ", " << a0.a0.a0.a0.a1 << "), (" + std::cout << "Calling TestPassStruct32BytesNestedIntx2(" << "(((((" + << a0.a0.a0.a0.a0 << ", " << a0.a0.a0.a0.a1 << "), (" << a0.a0.a0.a1.a0 << ", " << a0.a0.a0.a1.a1 << ")), ((" << a0.a0.a1.a0.a0 << ", " << a0.a0.a1.a0.a1 << "), (" << a0.a0.a1.a1.a0 << ", " << a0.a0.a1.a1.a1 << "))), (((" @@ -10264,8 +10007,7 @@ DART_EXPORT intptr_t TestPassStruct32BytesNestedIntx2( << a1.a1.a0.a0.a0 << ", " << a1.a1.a0.a0.a1 << "), (" << a1.a1.a0.a1.a0 << ", " << a1.a1.a0.a1.a1 << ")), ((" << a1.a1.a1.a0.a0 << ", " << a1.a1.a1.a0.a1 << "), (" - << a1.a1.a1.a1.a0 << ", " << a1.a1.a1.a1.a1 << ")))))" - << ")\n"; + << a1.a1.a1.a1.a0 << ", " << a1.a1.a1.a1.a1 << ")))))" << ")\n"; int64_t result = f(a0, a1); @@ -10304,12 +10046,11 @@ DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt16( a0.a1.a1 = -5; a0.a1.a2 = 6; - std::cout << "Calling TestPassStructNestedIntStructAlignmentInt16(" - << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " + std::cout << "Calling TestPassStructNestedIntStructAlignmentInt16(" << "(((" + << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << ")\n"; + << static_cast(a0.a1.a2) << ")))" << ")\n"; int64_t result = f(a0); @@ -10348,12 +10089,11 @@ DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt32( a0.a1.a1 = -5; a0.a1.a2 = 6; - std::cout << "Calling TestPassStructNestedIntStructAlignmentInt32(" - << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " + std::cout << "Calling TestPassStructNestedIntStructAlignmentInt32(" << "(((" + << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << ")\n"; + << static_cast(a0.a1.a2) << ")))" << ")\n"; int64_t result = f(a0); @@ -10392,12 +10132,11 @@ DART_EXPORT intptr_t TestPassStructNestedIntStructAlignmentInt64( a0.a1.a1 = -5; a0.a1.a2 = 6; - std::cout << "Calling TestPassStructNestedIntStructAlignmentInt64(" - << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " + std::cout << "Calling TestPassStructNestedIntStructAlignmentInt64(" << "(((" + << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << ")\n"; + << static_cast(a0.a1.a2) << ")))" << ")\n"; int64_t result = f(a0); @@ -10573,9 +10312,9 @@ DART_EXPORT intptr_t TestPassStructNestedIrregularEvenBiggerx4( a3.a3 = 136.0; std::cout - << "Calling TestPassStructNestedIrregularEvenBiggerx4(" - << "((" << a0.a0 << ", ((" << a0.a1.a0.a0 << ", ((" << a0.a1.a0.a1.a0.a0 - << ", " << a0.a1.a0.a1.a0.a1 << "), (" << a0.a1.a0.a1.a1.a0 << ")), " + << "Calling TestPassStructNestedIrregularEvenBiggerx4(" << "((" << a0.a0 + << ", ((" << a0.a1.a0.a0 << ", ((" << a0.a1.a0.a1.a0.a0 << ", " + << a0.a1.a0.a1.a0.a1 << "), (" << a0.a1.a0.a1.a1.a0 << ")), " << a0.a1.a0.a2 << ", ((" << a0.a1.a0.a3.a0.a0 << "), " << a0.a1.a0.a3.a1 << "), " << a0.a1.a0.a4 << ", ((" << a0.a1.a0.a5.a0.a0 << "), (" << a0.a1.a0.a5.a1.a0 << ")), " << a0.a1.a0.a6 << "), ((" << a0.a1.a1.a0.a0 @@ -10627,8 +10366,7 @@ DART_EXPORT intptr_t TestPassStructNestedIrregularEvenBiggerx4( << "), " << a3.a2.a0.a4 << ", ((" << a3.a2.a0.a5.a0.a0 << "), (" << a3.a2.a0.a5.a1.a0 << ")), " << a3.a2.a0.a6 << "), ((" << a3.a2.a1.a0.a0 << ", " << a3.a2.a1.a0.a1 << "), (" << a3.a2.a1.a1.a0 << ")), " - << a3.a2.a2 << ", " << a3.a2.a3 << "), " << a3.a3 << "))" - << ")\n"; + << a3.a2.a2 << ", " << a3.a2.a3 << "), " << a3.a3 << "))" << ")\n"; double result = f(a0, a1, a2, a3); @@ -10699,31 +10437,29 @@ DART_EXPORT intptr_t TestPassStruct8BytesInlineArrayIntx4( a3.a0[6] = 31; a3.a0[7] = 32; - std::cout << "Calling TestPassStruct8BytesInlineArrayIntx4(" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << "]), ([" - << static_cast(a1.a0[0]) << ", " << static_cast(a1.a0[1]) - << ", " << static_cast(a1.a0[2]) << ", " - << static_cast(a1.a0[3]) << ", " << static_cast(a1.a0[4]) - << ", " << static_cast(a1.a0[5]) << ", " - << static_cast(a1.a0[6]) << ", " << static_cast(a1.a0[7]) - << "]), ([" << static_cast(a2.a0[0]) << ", " - << static_cast(a2.a0[1]) << ", " << static_cast(a2.a0[2]) - << ", " << static_cast(a2.a0[3]) << ", " - << static_cast(a2.a0[4]) << ", " << static_cast(a2.a0[5]) - << ", " << static_cast(a2.a0[6]) << ", " - << static_cast(a2.a0[7]) << "]), ([" - << static_cast(a3.a0[0]) << ", " << static_cast(a3.a0[1]) - << ", " << static_cast(a3.a0[2]) << ", " - << static_cast(a3.a0[3]) << ", " << static_cast(a3.a0[4]) - << ", " << static_cast(a3.a0[5]) << ", " - << static_cast(a3.a0[6]) << ", " << static_cast(a3.a0[7]) - << "]))" - << ")\n"; + std::cout << "Calling TestPassStruct8BytesInlineArrayIntx4(" << "(([" + << static_cast(a0.a0[0]) << ", " << static_cast(a0.a0[1]) + << ", " << static_cast(a0.a0[2]) << ", " + << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) + << ", " << static_cast(a0.a0[5]) << ", " + << static_cast(a0.a0[6]) << ", " << static_cast(a0.a0[7]) + << "]), ([" << static_cast(a1.a0[0]) << ", " + << static_cast(a1.a0[1]) << ", " << static_cast(a1.a0[2]) + << ", " << static_cast(a1.a0[3]) << ", " + << static_cast(a1.a0[4]) << ", " << static_cast(a1.a0[5]) + << ", " << static_cast(a1.a0[6]) << ", " + << static_cast(a1.a0[7]) << "]), ([" + << static_cast(a2.a0[0]) << ", " << static_cast(a2.a0[1]) + << ", " << static_cast(a2.a0[2]) << ", " + << static_cast(a2.a0[3]) << ", " << static_cast(a2.a0[4]) + << ", " << static_cast(a2.a0[5]) << ", " + << static_cast(a2.a0[6]) << ", " << static_cast(a2.a0[7]) + << "]), ([" << static_cast(a3.a0[0]) << ", " + << static_cast(a3.a0[1]) << ", " << static_cast(a3.a0[2]) + << ", " << static_cast(a3.a0[3]) << ", " + << static_cast(a3.a0[4]) << ", " << static_cast(a3.a0[5]) + << ", " << static_cast(a3.a0[6]) << ", " + << static_cast(a3.a0[7]) << "]))" << ")\n"; int32_t result = f(a0, a1, a2, a3); @@ -10782,20 +10518,19 @@ DART_EXPORT intptr_t TestPassStructInlineArrayIrregularx4( a3.a0[1].a1 = -19; a3.a1 = 20; - std::cout << "Calling TestPassStructInlineArrayIrregularx4(" - << "(([(" << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) - << "), (" << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) - << ")], " << static_cast(a0.a1) << "), ([(" << a1.a0[0].a0 - << ", " << static_cast(a1.a0[0].a1) << "), (" << a1.a0[1].a0 - << ", " << static_cast(a1.a0[1].a1) << ")], " + std::cout << "Calling TestPassStructInlineArrayIrregularx4(" << "(([(" + << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) << "), (" + << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) << ")], " + << static_cast(a0.a1) << "), ([(" << a1.a0[0].a0 << ", " + << static_cast(a1.a0[0].a1) << "), (" << a1.a0[1].a0 << ", " + << static_cast(a1.a0[1].a1) << ")], " << static_cast(a1.a1) << "), ([(" << a2.a0[0].a0 << ", " << static_cast(a2.a0[0].a1) << "), (" << a2.a0[1].a0 << ", " << static_cast(a2.a0[1].a1) << ")], " << static_cast(a2.a1) << "), ([(" << a3.a0[0].a0 << ", " << static_cast(a3.a0[0].a1) << "), (" << a3.a0[1].a0 << ", " << static_cast(a3.a0[1].a1) << ")], " - << static_cast(a3.a1) << "))" - << ")\n"; + << static_cast(a3.a1) << "))" << ")\n"; int32_t result = f(a0, a1, a2, a3); @@ -10929,75 +10664,74 @@ DART_EXPORT intptr_t TestPassStructInlineArray100Bytes( a0.a0[99] = 100; std::cout - << "Calling TestPassStructInlineArray100Bytes(" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << ", " << static_cast(a0.a0[8]) - << ", " << static_cast(a0.a0[9]) << ", " - << static_cast(a0.a0[10]) << ", " << static_cast(a0.a0[11]) - << ", " << static_cast(a0.a0[12]) << ", " - << static_cast(a0.a0[13]) << ", " << static_cast(a0.a0[14]) - << ", " << static_cast(a0.a0[15]) << ", " - << static_cast(a0.a0[16]) << ", " << static_cast(a0.a0[17]) - << ", " << static_cast(a0.a0[18]) << ", " - << static_cast(a0.a0[19]) << ", " << static_cast(a0.a0[20]) - << ", " << static_cast(a0.a0[21]) << ", " - << static_cast(a0.a0[22]) << ", " << static_cast(a0.a0[23]) - << ", " << static_cast(a0.a0[24]) << ", " - << static_cast(a0.a0[25]) << ", " << static_cast(a0.a0[26]) - << ", " << static_cast(a0.a0[27]) << ", " - << static_cast(a0.a0[28]) << ", " << static_cast(a0.a0[29]) - << ", " << static_cast(a0.a0[30]) << ", " - << static_cast(a0.a0[31]) << ", " << static_cast(a0.a0[32]) - << ", " << static_cast(a0.a0[33]) << ", " - << static_cast(a0.a0[34]) << ", " << static_cast(a0.a0[35]) - << ", " << static_cast(a0.a0[36]) << ", " - << static_cast(a0.a0[37]) << ", " << static_cast(a0.a0[38]) - << ", " << static_cast(a0.a0[39]) << ", " - << static_cast(a0.a0[40]) << ", " << static_cast(a0.a0[41]) - << ", " << static_cast(a0.a0[42]) << ", " - << static_cast(a0.a0[43]) << ", " << static_cast(a0.a0[44]) - << ", " << static_cast(a0.a0[45]) << ", " - << static_cast(a0.a0[46]) << ", " << static_cast(a0.a0[47]) - << ", " << static_cast(a0.a0[48]) << ", " - << static_cast(a0.a0[49]) << ", " << static_cast(a0.a0[50]) - << ", " << static_cast(a0.a0[51]) << ", " - << static_cast(a0.a0[52]) << ", " << static_cast(a0.a0[53]) - << ", " << static_cast(a0.a0[54]) << ", " - << static_cast(a0.a0[55]) << ", " << static_cast(a0.a0[56]) - << ", " << static_cast(a0.a0[57]) << ", " - << static_cast(a0.a0[58]) << ", " << static_cast(a0.a0[59]) - << ", " << static_cast(a0.a0[60]) << ", " - << static_cast(a0.a0[61]) << ", " << static_cast(a0.a0[62]) - << ", " << static_cast(a0.a0[63]) << ", " - << static_cast(a0.a0[64]) << ", " << static_cast(a0.a0[65]) - << ", " << static_cast(a0.a0[66]) << ", " - << static_cast(a0.a0[67]) << ", " << static_cast(a0.a0[68]) - << ", " << static_cast(a0.a0[69]) << ", " - << static_cast(a0.a0[70]) << ", " << static_cast(a0.a0[71]) - << ", " << static_cast(a0.a0[72]) << ", " - << static_cast(a0.a0[73]) << ", " << static_cast(a0.a0[74]) - << ", " << static_cast(a0.a0[75]) << ", " - << static_cast(a0.a0[76]) << ", " << static_cast(a0.a0[77]) - << ", " << static_cast(a0.a0[78]) << ", " - << static_cast(a0.a0[79]) << ", " << static_cast(a0.a0[80]) - << ", " << static_cast(a0.a0[81]) << ", " - << static_cast(a0.a0[82]) << ", " << static_cast(a0.a0[83]) - << ", " << static_cast(a0.a0[84]) << ", " - << static_cast(a0.a0[85]) << ", " << static_cast(a0.a0[86]) - << ", " << static_cast(a0.a0[87]) << ", " - << static_cast(a0.a0[88]) << ", " << static_cast(a0.a0[89]) - << ", " << static_cast(a0.a0[90]) << ", " - << static_cast(a0.a0[91]) << ", " << static_cast(a0.a0[92]) - << ", " << static_cast(a0.a0[93]) << ", " - << static_cast(a0.a0[94]) << ", " << static_cast(a0.a0[95]) - << ", " << static_cast(a0.a0[96]) << ", " - << static_cast(a0.a0[97]) << ", " << static_cast(a0.a0[98]) - << ", " << static_cast(a0.a0[99]) << "]))" - << ")\n"; + << "Calling TestPassStructInlineArray100Bytes(" << "(([" + << static_cast(a0.a0[0]) << ", " << static_cast(a0.a0[1]) + << ", " << static_cast(a0.a0[2]) << ", " + << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) + << ", " << static_cast(a0.a0[5]) << ", " + << static_cast(a0.a0[6]) << ", " << static_cast(a0.a0[7]) + << ", " << static_cast(a0.a0[8]) << ", " + << static_cast(a0.a0[9]) << ", " << static_cast(a0.a0[10]) + << ", " << static_cast(a0.a0[11]) << ", " + << static_cast(a0.a0[12]) << ", " << static_cast(a0.a0[13]) + << ", " << static_cast(a0.a0[14]) << ", " + << static_cast(a0.a0[15]) << ", " << static_cast(a0.a0[16]) + << ", " << static_cast(a0.a0[17]) << ", " + << static_cast(a0.a0[18]) << ", " << static_cast(a0.a0[19]) + << ", " << static_cast(a0.a0[20]) << ", " + << static_cast(a0.a0[21]) << ", " << static_cast(a0.a0[22]) + << ", " << static_cast(a0.a0[23]) << ", " + << static_cast(a0.a0[24]) << ", " << static_cast(a0.a0[25]) + << ", " << static_cast(a0.a0[26]) << ", " + << static_cast(a0.a0[27]) << ", " << static_cast(a0.a0[28]) + << ", " << static_cast(a0.a0[29]) << ", " + << static_cast(a0.a0[30]) << ", " << static_cast(a0.a0[31]) + << ", " << static_cast(a0.a0[32]) << ", " + << static_cast(a0.a0[33]) << ", " << static_cast(a0.a0[34]) + << ", " << static_cast(a0.a0[35]) << ", " + << static_cast(a0.a0[36]) << ", " << static_cast(a0.a0[37]) + << ", " << static_cast(a0.a0[38]) << ", " + << static_cast(a0.a0[39]) << ", " << static_cast(a0.a0[40]) + << ", " << static_cast(a0.a0[41]) << ", " + << static_cast(a0.a0[42]) << ", " << static_cast(a0.a0[43]) + << ", " << static_cast(a0.a0[44]) << ", " + << static_cast(a0.a0[45]) << ", " << static_cast(a0.a0[46]) + << ", " << static_cast(a0.a0[47]) << ", " + << static_cast(a0.a0[48]) << ", " << static_cast(a0.a0[49]) + << ", " << static_cast(a0.a0[50]) << ", " + << static_cast(a0.a0[51]) << ", " << static_cast(a0.a0[52]) + << ", " << static_cast(a0.a0[53]) << ", " + << static_cast(a0.a0[54]) << ", " << static_cast(a0.a0[55]) + << ", " << static_cast(a0.a0[56]) << ", " + << static_cast(a0.a0[57]) << ", " << static_cast(a0.a0[58]) + << ", " << static_cast(a0.a0[59]) << ", " + << static_cast(a0.a0[60]) << ", " << static_cast(a0.a0[61]) + << ", " << static_cast(a0.a0[62]) << ", " + << static_cast(a0.a0[63]) << ", " << static_cast(a0.a0[64]) + << ", " << static_cast(a0.a0[65]) << ", " + << static_cast(a0.a0[66]) << ", " << static_cast(a0.a0[67]) + << ", " << static_cast(a0.a0[68]) << ", " + << static_cast(a0.a0[69]) << ", " << static_cast(a0.a0[70]) + << ", " << static_cast(a0.a0[71]) << ", " + << static_cast(a0.a0[72]) << ", " << static_cast(a0.a0[73]) + << ", " << static_cast(a0.a0[74]) << ", " + << static_cast(a0.a0[75]) << ", " << static_cast(a0.a0[76]) + << ", " << static_cast(a0.a0[77]) << ", " + << static_cast(a0.a0[78]) << ", " << static_cast(a0.a0[79]) + << ", " << static_cast(a0.a0[80]) << ", " + << static_cast(a0.a0[81]) << ", " << static_cast(a0.a0[82]) + << ", " << static_cast(a0.a0[83]) << ", " + << static_cast(a0.a0[84]) << ", " << static_cast(a0.a0[85]) + << ", " << static_cast(a0.a0[86]) << ", " + << static_cast(a0.a0[87]) << ", " << static_cast(a0.a0[88]) + << ", " << static_cast(a0.a0[89]) << ", " + << static_cast(a0.a0[90]) << ", " << static_cast(a0.a0[91]) + << ", " << static_cast(a0.a0[92]) << ", " + << static_cast(a0.a0[93]) << ", " << static_cast(a0.a0[94]) + << ", " << static_cast(a0.a0[95]) << ", " + << static_cast(a0.a0[96]) << ", " << static_cast(a0.a0[97]) + << ", " << static_cast(a0.a0[98]) << ", " + << static_cast(a0.a0[99]) << "]))" << ")\n"; int32_t result = f(a0); @@ -11067,8 +10801,7 @@ DART_EXPORT intptr_t TestPassStructStruct16BytesHomogeneousFloat2x5( << a2.a1[1].a0 << ")], " << a2.a2 << "), ((" << a3.a0.a0 << "), [(" << a3.a1[0].a0 << "), (" << a3.a1[1].a0 << ")], " << a3.a2 << "), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << "), (" - << a4.a1[1].a0 << ")], " << a4.a2 << "))" - << ")\n"; + << a4.a1[1].a0 << ")], " << a4.a2 << "))" << ")\n"; float result = f(a0, a1, a2, a3, a4); @@ -11138,8 +10871,7 @@ DART_EXPORT intptr_t TestPassStructStruct32BytesHomogeneousDouble2x5( << a2.a1[1].a0 << ")], " << a2.a2 << "), ((" << a3.a0.a0 << "), [(" << a3.a1[0].a0 << "), (" << a3.a1[1].a0 << ")], " << a3.a2 << "), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << "), (" - << a4.a1[1].a0 << ")], " << a4.a2 << "))" - << ")\n"; + << a4.a1[1].a0 << ")], " << a4.a2 << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4); @@ -11253,31 +10985,30 @@ DART_EXPORT intptr_t TestPassStructStruct16BytesMixed3x10( a9.a2[0] = -59; a9.a2[1] = 60; - std::cout << "Calling TestPassStructStruct16BytesMixed3x10(" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " - << a0.a1[0].a1 << ", " << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " - << a0.a2[1] << "]), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 - << ", " << a1.a1[0].a1 << ", " << a1.a1[0].a2 << ")], [" << a1.a2[0] - << ", " << a1.a2[1] << "]), ((" << a2.a0.a0 << "), [(" - << a2.a1[0].a0 << ", " << a2.a1[0].a1 << ", " << a2.a1[0].a2 - << ")], [" << a2.a2[0] << ", " << a2.a2[1] << "]), ((" << a3.a0.a0 - << "), [(" << a3.a1[0].a0 << ", " << a3.a1[0].a1 << ", " - << a3.a1[0].a2 << ")], [" << a3.a2[0] << ", " << a3.a2[1] - << "]), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << ", " - << a4.a1[0].a1 << ", " << a4.a1[0].a2 << ")], [" << a4.a2[0] << ", " - << a4.a2[1] << "]), ((" << a5.a0.a0 << "), [(" << a5.a1[0].a0 - << ", " << a5.a1[0].a1 << ", " << a5.a1[0].a2 << ")], [" << a5.a2[0] - << ", " << a5.a2[1] << "]), ((" << a6.a0.a0 << "), [(" - << a6.a1[0].a0 << ", " << a6.a1[0].a1 << ", " << a6.a1[0].a2 - << ")], [" << a6.a2[0] << ", " << a6.a2[1] << "]), ((" << a7.a0.a0 - << "), [(" << a7.a1[0].a0 << ", " << a7.a1[0].a1 << ", " - << a7.a1[0].a2 << ")], [" << a7.a2[0] << ", " << a7.a2[1] - << "]), ((" << a8.a0.a0 << "), [(" << a8.a1[0].a0 << ", " - << a8.a1[0].a1 << ", " << a8.a1[0].a2 << ")], [" << a8.a2[0] << ", " - << a8.a2[1] << "]), ((" << a9.a0.a0 << "), [(" << a9.a1[0].a0 - << ", " << a9.a1[0].a1 << ", " << a9.a1[0].a2 << ")], [" << a9.a2[0] - << ", " << a9.a2[1] << "]))" - << ")\n"; + std::cout << "Calling TestPassStructStruct16BytesMixed3x10(" << "(((" + << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " << a0.a1[0].a1 << ", " + << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " << a0.a2[1] + << "]), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 << ", " + << a1.a1[0].a1 << ", " << a1.a1[0].a2 << ")], [" << a1.a2[0] << ", " + << a1.a2[1] << "]), ((" << a2.a0.a0 << "), [(" << a2.a1[0].a0 + << ", " << a2.a1[0].a1 << ", " << a2.a1[0].a2 << ")], [" << a2.a2[0] + << ", " << a2.a2[1] << "]), ((" << a3.a0.a0 << "), [(" + << a3.a1[0].a0 << ", " << a3.a1[0].a1 << ", " << a3.a1[0].a2 + << ")], [" << a3.a2[0] << ", " << a3.a2[1] << "]), ((" << a4.a0.a0 + << "), [(" << a4.a1[0].a0 << ", " << a4.a1[0].a1 << ", " + << a4.a1[0].a2 << ")], [" << a4.a2[0] << ", " << a4.a2[1] + << "]), ((" << a5.a0.a0 << "), [(" << a5.a1[0].a0 << ", " + << a5.a1[0].a1 << ", " << a5.a1[0].a2 << ")], [" << a5.a2[0] << ", " + << a5.a2[1] << "]), ((" << a6.a0.a0 << "), [(" << a6.a1[0].a0 + << ", " << a6.a1[0].a1 << ", " << a6.a1[0].a2 << ")], [" << a6.a2[0] + << ", " << a6.a2[1] << "]), ((" << a7.a0.a0 << "), [(" + << a7.a1[0].a0 << ", " << a7.a1[0].a1 << ", " << a7.a1[0].a2 + << ")], [" << a7.a2[0] << ", " << a7.a2[1] << "]), ((" << a8.a0.a0 + << "), [(" << a8.a1[0].a0 << ", " << a8.a1[0].a1 << ", " + << a8.a1[0].a2 << ")], [" << a8.a2[0] << ", " << a8.a2[1] + << "]), ((" << a9.a0.a0 << "), [(" << a9.a1[0].a0 << ", " + << a9.a1[0].a1 << ", " << a9.a1[0].a2 << ")], [" << a9.a2[0] << ", " + << a9.a2[1] << "]))" << ")\n"; float result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -11426,8 +11157,7 @@ DART_EXPORT intptr_t TestPassUint8Struct32BytesInlineArrayMultiDimensionalI( << static_cast(a5.a0[1][0][1]) << "], [" << static_cast(a5.a0[1][1][0]) << ", " << static_cast(a5.a0[1][1][1]) << "]]]), " - << static_cast(a6) << ")" - << ")\n"; + << static_cast(a6) << ")" << ")\n"; uint32_t result = f(a0, a1, a2, a3, a4, a5, a6); @@ -11476,8 +11206,7 @@ DART_EXPORT intptr_t TestPassUint8Struct4BytesInlineArrayMultiDimensionalIn( << static_cast(a1.a0[0][1].a0) << ")], [(" << static_cast(a1.a0[1][0].a0) << "), (" << static_cast(a1.a0[1][1].a0) << ")]]), " - << static_cast(a2) << ")" - << ")\n"; + << static_cast(a2) << ")" << ")\n"; uint32_t result = f(a0, a1, a2); @@ -11548,8 +11277,8 @@ DART_EXPORT intptr_t TestPassStruct3BytesPackedIntx10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestPassStruct3BytesPackedIntx10(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << "), (" + std::cout << "Calling TestPassStruct3BytesPackedIntx10(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << "), (" << static_cast(a1.a0) << ", " << a1.a1 << "), (" << static_cast(a2.a0) << ", " << a2.a1 << "), (" << static_cast(a3.a0) << ", " << a3.a1 << "), (" @@ -11558,8 +11287,7 @@ DART_EXPORT intptr_t TestPassStruct3BytesPackedIntx10( << static_cast(a6.a0) << ", " << a6.a1 << "), (" << static_cast(a7.a0) << ", " << a7.a1 << "), (" << static_cast(a8.a0) << ", " << a8.a1 << "), (" - << static_cast(a9.a0) << ", " << a9.a1 << "))" - << ")\n"; + << static_cast(a9.a0) << ", " << a9.a1 << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -11660,8 +11388,8 @@ DART_EXPORT intptr_t TestPassStruct8BytesPackedIntx10( a9.a3 = 49; a9.a4 = 50; - std::cout << "Calling TestPassStruct8BytesPackedIntx10(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "Calling TestPassStruct8BytesPackedIntx10(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " << static_cast(a0.a4) << "), (" << static_cast(a1.a0) << ", " << a1.a1 << ", " @@ -11690,8 +11418,7 @@ DART_EXPORT intptr_t TestPassStruct8BytesPackedIntx10( << ", " << static_cast(a8.a4) << "), (" << static_cast(a9.a0) << ", " << a9.a1 << ", " << static_cast(a9.a2) << ", " << static_cast(a9.a3) - << ", " << static_cast(a9.a4) << "))" - << ")\n"; + << ", " << static_cast(a9.a4) << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -11783,8 +11510,7 @@ DART_EXPORT intptr_t TestPassStruct9BytesPackedMixedx10DoubleInt32x2( << static_cast(a7.a0) << ", " << a7.a1 << "), (" << static_cast(a8.a0) << ", " << a8.a1 << "), (" << static_cast(a9.a0) << ", " << a9.a1 << "), " << a10 << ", " - << a11 << ", " << a12 << ")" - << ")\n"; + << a11 << ", " << a12 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); @@ -11819,9 +11545,8 @@ DART_EXPORT intptr_t TestPassStruct5BytesPackedMixed( a0.a0 = -1.0; a0.a1 = 2; - std::cout << "Calling TestPassStruct5BytesPackedMixed(" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "))" - << ")\n"; + std::cout << "Calling TestPassStruct5BytesPackedMixed(" << "((" << a0.a0 + << ", " << static_cast(a0.a1) << "))" << ")\n"; double result = f(a0); @@ -11859,8 +11584,7 @@ DART_EXPORT intptr_t TestPassStructNestedAlignmentStruct5BytesPackedMixed( std::cout << "Calling TestPassStructNestedAlignmentStruct5BytesPackedMixed(" << "((" << static_cast(a0.a0) << ", (" << a0.a1.a0 << ", " - << static_cast(a0.a1.a1) << ")))" - << ")\n"; + << static_cast(a0.a1.a1) << ")))" << ")\n"; double result = f(a0); @@ -11897,10 +11621,9 @@ DART_EXPORT intptr_t TestPassStruct6BytesInlineArrayInt( a0.a0[1].a0 = -3; a0.a0[1].a1 = 4; - std::cout << "Calling TestPassStruct6BytesInlineArrayInt(" - << "(([(" << static_cast(a0.a0[0].a0) << ", " << a0.a0[0].a1 - << "), (" << static_cast(a0.a0[1].a0) << ", " << a0.a0[1].a1 - << ")]))" + std::cout << "Calling TestPassStruct6BytesInlineArrayInt(" << "(([(" + << static_cast(a0.a0[0].a0) << ", " << a0.a0[0].a1 << "), (" + << static_cast(a0.a0[1].a0) << ", " << a0.a0[1].a1 << ")]))" << ")\n"; double result = f(a0); @@ -11940,11 +11663,10 @@ DART_EXPORT intptr_t TestPassStruct15BytesInlineArrayMixed( a0.a0[2].a0 = -5.0; a0.a0[2].a1 = 6; - std::cout << "Calling TestPassStruct15BytesInlineArrayMixed(" - << "(([(" << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) - << "), (" << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) - << "), (" << a0.a0[2].a0 << ", " << static_cast(a0.a0[2].a1) - << ")]))" + std::cout << "Calling TestPassStruct15BytesInlineArrayMixed(" << "(([(" + << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) << "), (" + << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) << "), (" + << a0.a0[2].a0 << ", " << static_cast(a0.a0[2].a1) << ")]))" << ")\n"; double result = f(a0); @@ -12006,11 +11728,10 @@ DART_EXPORT intptr_t TestPassUnion4BytesMixedx10( a8.a0 = 9; a9.a0 = 10; - std::cout << "Calling TestPassUnion4BytesMixedx10(" - << "((" << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" - << a3.a0 << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 - << "), (" << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" - << ")\n"; + std::cout << "Calling TestPassUnion4BytesMixedx10(" << "((" << a0.a0 << "), (" + << a1.a0 << "), (" << a2.a0 << "), (" << a3.a0 << "), (" << a4.a0 + << "), (" << a5.a0 << "), (" << a6.a0 << "), (" << a7.a0 << "), (" + << a8.a0 << "), (" << a9.a0 << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -12071,11 +11792,10 @@ DART_EXPORT intptr_t TestPassUnion8BytesNestedFloatx10( a8.a0 = -9.0; a9.a0 = 10.0; - std::cout << "Calling TestPassUnion8BytesNestedFloatx10(" - << "((" << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" - << a3.a0 << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 - << "), (" << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" - << ")\n"; + std::cout << "Calling TestPassUnion8BytesNestedFloatx10(" << "((" << a0.a0 + << "), (" << a1.a0 << "), (" << a2.a0 << "), (" << a3.a0 << "), (" + << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 << "), (" << a7.a0 + << "), (" << a8.a0 << "), (" << a9.a0 << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -12156,19 +11876,17 @@ DART_EXPORT intptr_t TestPassUnion9BytesNestedIntx10( a9.a0.a1 = -29; a9.a0.a2 = 30; - std::cout << "Calling TestPassUnion9BytesNestedIntx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << ", " << a0.a0.a2 - << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << ", " << a1.a0.a2 - << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << ", " << a2.a0.a2 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << ", " << a3.a0.a2 - << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << ", " << a4.a0.a2 - << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << ", " << a5.a0.a2 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << ", " << a6.a0.a2 - << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << ", " << a7.a0.a2 - << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << ", " << a8.a0.a2 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << ", " << a9.a0.a2 - << ")))" - << ")\n"; + std::cout << "Calling TestPassUnion9BytesNestedIntx10(" << "(((" << a0.a0.a0 + << ", " << a0.a0.a1 << ", " << a0.a0.a2 << ")), ((" << a1.a0.a0 + << ", " << a1.a0.a1 << ", " << a1.a0.a2 << ")), ((" << a2.a0.a0 + << ", " << a2.a0.a1 << ", " << a2.a0.a2 << ")), ((" << a3.a0.a0 + << ", " << a3.a0.a1 << ", " << a3.a0.a2 << ")), ((" << a4.a0.a0 + << ", " << a4.a0.a1 << ", " << a4.a0.a2 << ")), ((" << a5.a0.a0 + << ", " << a5.a0.a1 << ", " << a5.a0.a2 << ")), ((" << a6.a0.a0 + << ", " << a6.a0.a1 << ", " << a6.a0.a2 << ")), ((" << a7.a0.a0 + << ", " << a7.a0.a1 << ", " << a7.a0.a2 << ")), ((" << a8.a0.a0 + << ", " << a8.a0.a1 << ", " << a8.a0.a2 << ")), ((" << a9.a0.a0 + << ", " << a9.a0.a1 << ", " << a9.a0.a2 << ")))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -12259,8 +11977,8 @@ DART_EXPORT intptr_t TestPassUnion16BytesNestedInlineArrayFloatx10( a9.a0[2] = -39.0; a9.a0[3] = 40.0; - std::cout << "Calling TestPassUnion16BytesNestedInlineArrayFloatx10(" - << "(([" << a0.a0[0] << ", " << a0.a0[1] << ", " << a0.a0[2] << ", " + std::cout << "Calling TestPassUnion16BytesNestedInlineArrayFloatx10(" << "(([" + << a0.a0[0] << ", " << a0.a0[1] << ", " << a0.a0[2] << ", " << a0.a0[3] << "]), ([" << a1.a0[0] << ", " << a1.a0[1] << ", " << a1.a0[2] << ", " << a1.a0[3] << "]), ([" << a2.a0[0] << ", " << a2.a0[1] << ", " << a2.a0[2] << ", " << a2.a0[3] << "]), ([" @@ -12273,8 +11991,7 @@ DART_EXPORT intptr_t TestPassUnion16BytesNestedInlineArrayFloatx10( << a7.a0[2] << ", " << a7.a0[3] << "]), ([" << a8.a0[0] << ", " << a8.a0[1] << ", " << a8.a0[2] << ", " << a8.a0[3] << "]), ([" << a9.a0[0] << ", " << a9.a0[1] << ", " << a9.a0[2] << ", " - << a9.a0[3] << "]))" - << ")\n"; + << a9.a0[3] << "]))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -12345,15 +12062,14 @@ DART_EXPORT intptr_t TestPassUnion16BytesNestedFloatx10( a9.a0.a0 = -19.0; a9.a0.a1 = 20.0; - std::cout << "Calling TestPassUnion16BytesNestedFloatx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << ")), ((" << a1.a0.a0 - << ", " << a1.a0.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << ")), ((" << a4.a0.a0 - << ", " << a4.a0.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << ")), ((" << a7.a0.a0 - << ", " << a7.a0.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << ")))" - << ")\n"; + std::cout << "Calling TestPassUnion16BytesNestedFloatx10(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << ")), ((" << a1.a0.a0 << ", " + << a1.a0.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << ")), ((" + << a3.a0.a0 << ", " << a3.a0.a1 << ")), ((" << a4.a0.a0 << ", " + << a4.a0.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << ")), ((" + << a6.a0.a0 << ", " << a6.a0.a1 << ")), ((" << a7.a0.a0 << ", " + << a7.a0.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << ")), ((" + << a9.a0.a0 << ", " << a9.a0.a1 << ")))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -12437,8 +12153,7 @@ DART_EXPORT intptr_t TestPassUint8Boolx9Struct10BytesHomogeneousBoolBool( << ", " << a8 << ", " << a9 << ", (" << a10.a0 << ", " << a10.a1 << ", " << a10.a2 << ", " << a10.a3 << ", " << a10.a4 << ", " << a10.a5 << ", " << a10.a6 << ", " << a10.a7 << ", " << a10.a8 - << ", " << a10.a9 << "), " << a11 << ")" - << ")\n"; + << ", " << a10.a9 << "), " << a11 << ")" << ")\n"; int32_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); @@ -12523,8 +12238,7 @@ DART_EXPORT intptr_t TestPassUint8Boolx9Struct10BytesInlineArrayBoolBool( << a10.a0[1] << ", " << a10.a0[2] << ", " << a10.a0[3] << ", " << a10.a0[4] << ", " << a10.a0[5] << ", " << a10.a0[6] << ", " << a10.a0[7] << ", " << a10.a0[8] << ", " << a10.a0[9] << "]), " - << a11 << ")" - << ")\n"; + << a11 << ")" << ")\n"; int32_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); @@ -12560,9 +12274,8 @@ DART_EXPORT intptr_t TestPassUint8Struct1ByteBool( a0 = 1; a1.a0 = false; - std::cout << "Calling TestPassUint8Struct1ByteBool(" - << "(" << static_cast(a0) << ", (" << a1.a0 << "))" - << ")\n"; + std::cout << "Calling TestPassUint8Struct1ByteBool(" << "(" + << static_cast(a0) << ", (" << a1.a0 << "))" << ")\n"; bool result = f(a0, a1); @@ -12621,16 +12334,19 @@ DART_EXPORT intptr_t TestPassWCharStructInlineArrayIntUintPtrx2LongUnsigned( a5 = 15; std::cout << "Calling TestPassWCharStructInlineArrayIntUintPtrx2LongUnsigned(" - << "(" << a0 << ", ([" << a1.a0[0] << ", " << a1.a0[1] << ", " - << a1.a0[2] << ", " << a1.a0[3] << ", " << a1.a0[4] << ", " - << a1.a0[5] << ", " << a1.a0[6] << ", " << a1.a0[7] << ", " - << a1.a0[8] << ", " << a1.a0[9] << "]), " << a2 << ", " << a3 - << ", " << a4 << ", " << a5 << ")" - << ")\n"; + << "(" << static_cast(a0) << ", ([" + << static_cast(a1.a0[0]) << ", " << static_cast(a1.a0[1]) + << ", " << static_cast(a1.a0[2]) << ", " + << static_cast(a1.a0[3]) << ", " << static_cast(a1.a0[4]) + << ", " << static_cast(a1.a0[5]) << ", " + << static_cast(a1.a0[6]) << ", " << static_cast(a1.a0[7]) + << ", " << static_cast(a1.a0[8]) << ", " + << static_cast(a1.a0[9]) << "]), " << a2 << ", " << a3 << ", " + << a4 << ", " << a5 << ")" << ")\n"; wchar_t result = f(a0, a1, a2, a3, a4, a5); - std::cout << "result = " << result << "\n"; + std::cout << "result = " << static_cast(result) << "\n"; CHECK_EQ(120, result); @@ -12683,11 +12399,10 @@ DART_EXPORT intptr_t TestPassInt64x7Struct12BytesHomogeneousInt32( a7.a1 = -9; a7.a2 = 10; - std::cout << "Calling TestPassInt64x7Struct12BytesHomogeneousInt32(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 + std::cout << "Calling TestPassInt64x7Struct12BytesHomogeneousInt32(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "))" - << ")\n"; + << ", " << a7.a2 << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7); @@ -12725,9 +12440,8 @@ DART_EXPORT intptr_t TestPassPointerStruct12BytesHomogeneousInt32( a0->a1 = 2; a0->a2 = -3; - std::cout << "Calling TestPassPointerStruct12BytesHomogeneousInt32(" - << "((" << a0->a0 << ", " << a0->a1 << ", " << a0->a2 << "))" - << ")\n"; + std::cout << "Calling TestPassPointerStruct12BytesHomogeneousInt32(" << "((" + << a0->a0 << ", " << a0->a1 << ", " << a0->a2 << "))" << ")\n"; int64_t result = f(a0); @@ -12774,8 +12488,8 @@ DART_EXPORT intptr_t TestPassPointerStructInlineArrayVariable( a0->a1[8] = 10; a0->a1[9] = 11; - std::cout << "Calling TestPassPointerStructInlineArrayVariable(" - << "((" << a0->a0 << ", [" << static_cast(a0->a1[0]) << ", " + std::cout << "Calling TestPassPointerStructInlineArrayVariable(" << "((" + << a0->a0 << ", [" << static_cast(a0->a1[0]) << ", " << static_cast(a0->a1[1]) << ", " << static_cast(a0->a1[2]) << ", " << static_cast(a0->a1[3]) << ", " @@ -12784,8 +12498,7 @@ DART_EXPORT intptr_t TestPassPointerStructInlineArrayVariable( << static_cast(a0->a1[6]) << ", " << static_cast(a0->a1[7]) << ", " << static_cast(a0->a1[8]) << ", " - << static_cast(a0->a1[9]) << "]))" - << ")\n"; + << static_cast(a0->a1[9]) << "]))" << ")\n"; int64_t result = f(a0); @@ -12834,8 +12547,8 @@ DART_EXPORT intptr_t TestPassPointerStructInlineArrayVariableAlign( a0->a1[8] = 10; a0->a1[9] = 11; - std::cout << "Calling TestPassPointerStructInlineArrayVariableAlign(" - << "((" << static_cast(a0->a0) << ", [" << a0->a1[0] << ", " + std::cout << "Calling TestPassPointerStructInlineArrayVariableAlign(" << "((" + << static_cast(a0->a0) << ", [" << a0->a1[0] << ", " << a0->a1[1] << ", " << a0->a1[2] << ", " << a0->a1[3] << ", " << a0->a1[4] << ", " << a0->a1[5] << ", " << a0->a1[6] << ", " << a0->a1[7] << ", " << a0->a1[8] << ", " << a0->a1[9] << "]))" @@ -12875,15 +12588,12 @@ DART_EXPORT intptr_t TestReturnStruct1ByteInt( a0 = -1; - std::cout << "Calling TestReturnStruct1ByteInt(" - << "(" << static_cast(a0) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct1ByteInt(" << "(" + << static_cast(a0) << ")" << ")\n"; Struct1ByteInt result = f(a0); - std::cout << "result = " - << "(" << static_cast(result.a0) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ")" << "\n"; CHECK_EQ(a0, result.a0); @@ -12917,18 +12627,15 @@ DART_EXPORT intptr_t TestReturnStruct3BytesHomogeneousUint8( a1 = 2; a2 = 3; - std::cout << "Calling TestReturnStruct3BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct3BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ")" << ")\n"; Struct3BytesHomogeneousUint8 result = f(a0, a1, a2); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " - << static_cast(result.a2) << ")" - << "\n"; + << static_cast(result.a2) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -12967,15 +12674,13 @@ DART_EXPORT intptr_t TestReturnStruct3BytesInt2ByteAligned( a0 = -1; a1 = 2; - std::cout << "Calling TestReturnStruct3BytesInt2ByteAligned(" - << "(" << a0 << ", " << static_cast(a1) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct3BytesInt2ByteAligned(" << "(" << a0 + << ", " << static_cast(a1) << ")" << ")\n"; Struct3BytesInt2ByteAligned result = f(a0, a1); - std::cout << "result = " - << "(" << result.a0 << ", " << static_cast(result.a1) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " + << static_cast(result.a1) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13010,14 +12715,12 @@ DART_EXPORT intptr_t TestReturnStruct4BytesHomogeneousInt16( a0 = -1; a1 = 2; - std::cout << "Calling TestReturnStruct4BytesHomogeneousInt16(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct4BytesHomogeneousInt16(" << "(" << a0 + << ", " << a1 << ")" << ")\n"; Struct4BytesHomogeneousInt16 result = f(a0, a1); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; CHECK_EQ(a0, result.a0); @@ -13069,24 +12772,21 @@ DART_EXPORT intptr_t TestReturnStruct7BytesHomogeneousUint8( a5 = 6; a6 = 7; - std::cout << "Calling TestReturnStruct7BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct7BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ")" << ")\n"; Struct7BytesHomogeneousUint8 result = f(a0, a1, a2, a3, a4, a5, a6); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " << static_cast(result.a4) << ", " << static_cast(result.a5) << ", " - << static_cast(result.a6) << ")" - << "\n"; + << static_cast(result.a6) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13139,16 +12839,13 @@ DART_EXPORT intptr_t TestReturnStruct7BytesInt4ByteAligned( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStruct7BytesInt4ByteAligned(" - << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct7BytesInt4ByteAligned(" << "(" << a0 + << ", " << a1 << ", " << static_cast(a2) << ")" << ")\n"; Struct7BytesInt4ByteAligned result = f(a0, a1, a2); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << static_cast(result.a2) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13188,15 +12885,13 @@ DART_EXPORT intptr_t TestReturnStruct8BytesInt( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStruct8BytesInt(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct8BytesInt(" << "(" << a0 << ", " << a1 + << ", " << a2 << ")" << ")\n"; Struct8BytesInt result = f(a0, a1, a2); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13234,14 +12929,12 @@ DART_EXPORT intptr_t TestReturnStruct8BytesHomogeneousFloat( a0 = -1.0; a1 = 2.0; - std::cout << "Calling TestReturnStruct8BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct8BytesHomogeneousFloat(" << "(" << a0 + << ", " << a1 << ")" << ")\n"; Struct8BytesHomogeneousFloat result = f(a0, a1); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; CHECK_APPROX(a0, result.a0); @@ -13279,15 +12972,13 @@ DART_EXPORT intptr_t TestReturnStruct8BytesMixed( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStruct8BytesMixed(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct8BytesMixed(" << "(" << a0 << ", " << a1 + << ", " << a2 << ")" << ")\n"; Struct8BytesMixed result = f(a0, a1, a2); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ")" << "\n"; CHECK_APPROX(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13349,18 +13040,16 @@ DART_EXPORT intptr_t TestReturnStruct9BytesHomogeneousUint8( a7 = 8; a8 = 9; - std::cout << "Calling TestReturnStruct9BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ", " << static_cast(a7) - << ", " << static_cast(a8) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct9BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ", " << static_cast(a7) << ", " + << static_cast(a8) << ")" << ")\n"; Struct9BytesHomogeneousUint8 result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " @@ -13368,8 +13057,7 @@ DART_EXPORT intptr_t TestReturnStruct9BytesHomogeneousUint8( << static_cast(result.a5) << ", " << static_cast(result.a6) << ", " << static_cast(result.a7) << ", " - << static_cast(result.a8) << ")" - << "\n"; + << static_cast(result.a8) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13426,15 +13114,13 @@ DART_EXPORT intptr_t TestReturnStruct9BytesInt4Or8ByteAligned( a0 = -1; a1 = 2; - std::cout << "Calling TestReturnStruct9BytesInt4Or8ByteAligned(" - << "(" << a0 << ", " << static_cast(a1) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct9BytesInt4Or8ByteAligned(" << "(" << a0 + << ", " << static_cast(a1) << ")" << ")\n"; Struct9BytesInt4Or8ByteAligned result = f(a0, a1); - std::cout << "result = " - << "(" << result.a0 << ", " << static_cast(result.a1) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " + << static_cast(result.a1) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13472,15 +13158,13 @@ DART_EXPORT intptr_t TestReturnStruct12BytesHomogeneousFloat( a1 = 2.0; a2 = -3.0; - std::cout << "Calling TestReturnStruct12BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct12BytesHomogeneousFloat(" << "(" << a0 + << ", " << a1 << ", " << a2 << ")" << ")\n"; Struct12BytesHomogeneousFloat result = f(a0, a1, a2); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ")" << "\n"; CHECK_APPROX(a0, result.a0); CHECK_APPROX(a1, result.a1); @@ -13523,16 +13207,13 @@ DART_EXPORT intptr_t TestReturnStruct16BytesHomogeneousFloat( a2 = -3.0; a3 = 4.0; - std::cout << "Calling TestReturnStruct16BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct16BytesHomogeneousFloat(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ")" << ")\n"; Struct16BytesHomogeneousFloat result = f(a0, a1, a2, a3); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ")" << "\n"; CHECK_APPROX(a0, result.a0); CHECK_APPROX(a1, result.a1); @@ -13573,14 +13254,12 @@ DART_EXPORT intptr_t TestReturnStruct16BytesMixed( a0 = -1.0; a1 = 2; - std::cout << "Calling TestReturnStruct16BytesMixed(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct16BytesMixed(" << "(" << a0 << ", " + << a1 << ")" << ")\n"; Struct16BytesMixed result = f(a0, a1); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; CHECK_APPROX(a0, result.a0); @@ -13621,16 +13300,13 @@ DART_EXPORT intptr_t TestReturnStruct16BytesMixed2( a2 = -3.0; a3 = 4; - std::cout << "Calling TestReturnStruct16BytesMixed2(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct16BytesMixed2(" << "(" << a0 << ", " + << a1 << ", " << a2 << ", " << a3 << ")" << ")\n"; Struct16BytesMixed2 result = f(a0, a1, a2, a3); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ")" << "\n"; CHECK_APPROX(a0, result.a0); CHECK_APPROX(a1, result.a1); @@ -13675,16 +13351,13 @@ DART_EXPORT intptr_t TestReturnStruct17BytesInt( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStruct17BytesInt(" - << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct17BytesInt(" << "(" << a0 << ", " << a1 + << ", " << static_cast(a2) << ")" << ")\n"; Struct17BytesInt result = f(a0, a1, a2); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << static_cast(result.a2) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13776,25 +13449,23 @@ DART_EXPORT intptr_t TestReturnStruct19BytesHomogeneousUint8( a17 = 18; a18 = 19; - std::cout << "Calling TestReturnStruct19BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ", " << static_cast(a7) - << ", " << static_cast(a8) << ", " << static_cast(a9) - << ", " << static_cast(a10) << ", " << static_cast(a11) - << ", " << static_cast(a12) << ", " << static_cast(a13) - << ", " << static_cast(a14) << ", " << static_cast(a15) - << ", " << static_cast(a16) << ", " << static_cast(a17) - << ", " << static_cast(a18) << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct19BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ", " << static_cast(a7) << ", " + << static_cast(a8) << ", " << static_cast(a9) << ", " + << static_cast(a10) << ", " << static_cast(a11) << ", " + << static_cast(a12) << ", " << static_cast(a13) << ", " + << static_cast(a14) << ", " << static_cast(a15) << ", " + << static_cast(a16) << ", " << static_cast(a17) << ", " + << static_cast(a18) << ")" << ")\n"; Struct19BytesHomogeneousUint8 result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " << static_cast(result.a1) << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " @@ -13812,8 +13483,7 @@ DART_EXPORT intptr_t TestReturnStruct19BytesHomogeneousUint8( << static_cast(result.a15) << ", " << static_cast(result.a16) << ", " << static_cast(result.a17) << ", " - << static_cast(result.a18) << ")" - << "\n"; + << static_cast(result.a18) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -13908,16 +13578,14 @@ DART_EXPORT intptr_t TestReturnStruct20BytesHomogeneousInt32( a3 = 4; a4 = -5; - std::cout << "Calling TestReturnStruct20BytesHomogeneousInt32(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" + std::cout << "Calling TestReturnStruct20BytesHomogeneousInt32(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; Struct20BytesHomogeneousInt32 result = f(a0, a1, a2, a3, a4); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; CHECK_EQ(a0, result.a0); @@ -13969,16 +13637,14 @@ DART_EXPORT intptr_t TestReturnStruct20BytesHomogeneousFloat( a3 = 4.0; a4 = -5.0; - std::cout << "Calling TestReturnStruct20BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" + std::cout << "Calling TestReturnStruct20BytesHomogeneousFloat(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; Struct20BytesHomogeneousFloat result = f(a0, a1, a2, a3, a4); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; CHECK_APPROX(a0, result.a0); @@ -14028,16 +13694,13 @@ DART_EXPORT intptr_t TestReturnStruct32BytesHomogeneousDouble( a2 = -3.0; a3 = 4.0; - std::cout << "Calling TestReturnStruct32BytesHomogeneousDouble(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct32BytesHomogeneousDouble(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ")" << ")\n"; Struct32BytesHomogeneousDouble result = f(a0, a1, a2, a3); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ")" << "\n"; CHECK_APPROX(a0, result.a0); CHECK_APPROX(a1, result.a1); @@ -14085,16 +13748,14 @@ DART_EXPORT intptr_t TestReturnStruct40BytesHomogeneousDouble( a3 = 4.0; a4 = -5.0; - std::cout << "Calling TestReturnStruct40BytesHomogeneousDouble(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" + std::cout << "Calling TestReturnStruct40BytesHomogeneousDouble(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; Struct40BytesHomogeneousDouble result = f(a0, a1, a2, a3, a4); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; CHECK_APPROX(a0, result.a0); @@ -14518,8 +14179,8 @@ DART_EXPORT intptr_t TestReturnStruct1024BytesHomogeneousUint64( a126 = 127; a127 = 128; - std::cout << "Calling TestReturnStruct1024BytesHomogeneousUint64(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 + std::cout << "Calling TestReturnStruct1024BytesHomogeneousUint64(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " @@ -14548,8 +14209,7 @@ DART_EXPORT intptr_t TestReturnStruct1024BytesHomogeneousUint64( << a115 << ", " << a116 << ", " << a117 << ", " << a118 << ", " << a119 << ", " << a120 << ", " << a121 << ", " << a122 << ", " << a123 << ", " << a124 << ", " << a125 << ", " << a126 << ", " - << a127 << ")" - << ")\n"; + << a127 << ")" << ")\n"; Struct1024BytesHomogeneousUint64 result = f( a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, @@ -14562,50 +14222,49 @@ DART_EXPORT intptr_t TestReturnStruct1024BytesHomogeneousUint64( a105, a106, a107, a108, a109, a110, a111, a112, a113, a114, a115, a116, a117, a118, a119, a120, a121, a122, a123, a124, a125, a126, a127); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ", " << result.a5 - << ", " << result.a6 << ", " << result.a7 << ", " << result.a8 - << ", " << result.a9 << ", " << result.a10 << ", " << result.a11 - << ", " << result.a12 << ", " << result.a13 << ", " << result.a14 - << ", " << result.a15 << ", " << result.a16 << ", " << result.a17 - << ", " << result.a18 << ", " << result.a19 << ", " << result.a20 - << ", " << result.a21 << ", " << result.a22 << ", " << result.a23 - << ", " << result.a24 << ", " << result.a25 << ", " << result.a26 - << ", " << result.a27 << ", " << result.a28 << ", " << result.a29 - << ", " << result.a30 << ", " << result.a31 << ", " << result.a32 - << ", " << result.a33 << ", " << result.a34 << ", " << result.a35 - << ", " << result.a36 << ", " << result.a37 << ", " << result.a38 - << ", " << result.a39 << ", " << result.a40 << ", " << result.a41 - << ", " << result.a42 << ", " << result.a43 << ", " << result.a44 - << ", " << result.a45 << ", " << result.a46 << ", " << result.a47 - << ", " << result.a48 << ", " << result.a49 << ", " << result.a50 - << ", " << result.a51 << ", " << result.a52 << ", " << result.a53 - << ", " << result.a54 << ", " << result.a55 << ", " << result.a56 - << ", " << result.a57 << ", " << result.a58 << ", " << result.a59 - << ", " << result.a60 << ", " << result.a61 << ", " << result.a62 - << ", " << result.a63 << ", " << result.a64 << ", " << result.a65 - << ", " << result.a66 << ", " << result.a67 << ", " << result.a68 - << ", " << result.a69 << ", " << result.a70 << ", " << result.a71 - << ", " << result.a72 << ", " << result.a73 << ", " << result.a74 - << ", " << result.a75 << ", " << result.a76 << ", " << result.a77 - << ", " << result.a78 << ", " << result.a79 << ", " << result.a80 - << ", " << result.a81 << ", " << result.a82 << ", " << result.a83 - << ", " << result.a84 << ", " << result.a85 << ", " << result.a86 - << ", " << result.a87 << ", " << result.a88 << ", " << result.a89 - << ", " << result.a90 << ", " << result.a91 << ", " << result.a92 - << ", " << result.a93 << ", " << result.a94 << ", " << result.a95 - << ", " << result.a96 << ", " << result.a97 << ", " << result.a98 - << ", " << result.a99 << ", " << result.a100 << ", " << result.a101 - << ", " << result.a102 << ", " << result.a103 << ", " << result.a104 - << ", " << result.a105 << ", " << result.a106 << ", " << result.a107 - << ", " << result.a108 << ", " << result.a109 << ", " << result.a110 - << ", " << result.a111 << ", " << result.a112 << ", " << result.a113 - << ", " << result.a114 << ", " << result.a115 << ", " << result.a116 - << ", " << result.a117 << ", " << result.a118 << ", " << result.a119 - << ", " << result.a120 << ", " << result.a121 << ", " << result.a122 - << ", " << result.a123 << ", " << result.a124 << ", " << result.a125 - << ", " << result.a126 << ", " << result.a127 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ", " + << result.a5 << ", " << result.a6 << ", " << result.a7 << ", " + << result.a8 << ", " << result.a9 << ", " << result.a10 << ", " + << result.a11 << ", " << result.a12 << ", " << result.a13 << ", " + << result.a14 << ", " << result.a15 << ", " << result.a16 << ", " + << result.a17 << ", " << result.a18 << ", " << result.a19 << ", " + << result.a20 << ", " << result.a21 << ", " << result.a22 << ", " + << result.a23 << ", " << result.a24 << ", " << result.a25 << ", " + << result.a26 << ", " << result.a27 << ", " << result.a28 << ", " + << result.a29 << ", " << result.a30 << ", " << result.a31 << ", " + << result.a32 << ", " << result.a33 << ", " << result.a34 << ", " + << result.a35 << ", " << result.a36 << ", " << result.a37 << ", " + << result.a38 << ", " << result.a39 << ", " << result.a40 << ", " + << result.a41 << ", " << result.a42 << ", " << result.a43 << ", " + << result.a44 << ", " << result.a45 << ", " << result.a46 << ", " + << result.a47 << ", " << result.a48 << ", " << result.a49 << ", " + << result.a50 << ", " << result.a51 << ", " << result.a52 << ", " + << result.a53 << ", " << result.a54 << ", " << result.a55 << ", " + << result.a56 << ", " << result.a57 << ", " << result.a58 << ", " + << result.a59 << ", " << result.a60 << ", " << result.a61 << ", " + << result.a62 << ", " << result.a63 << ", " << result.a64 << ", " + << result.a65 << ", " << result.a66 << ", " << result.a67 << ", " + << result.a68 << ", " << result.a69 << ", " << result.a70 << ", " + << result.a71 << ", " << result.a72 << ", " << result.a73 << ", " + << result.a74 << ", " << result.a75 << ", " << result.a76 << ", " + << result.a77 << ", " << result.a78 << ", " << result.a79 << ", " + << result.a80 << ", " << result.a81 << ", " << result.a82 << ", " + << result.a83 << ", " << result.a84 << ", " << result.a85 << ", " + << result.a86 << ", " << result.a87 << ", " << result.a88 << ", " + << result.a89 << ", " << result.a90 << ", " << result.a91 << ", " + << result.a92 << ", " << result.a93 << ", " << result.a94 << ", " + << result.a95 << ", " << result.a96 << ", " << result.a97 << ", " + << result.a98 << ", " << result.a99 << ", " << result.a100 << ", " + << result.a101 << ", " << result.a102 << ", " << result.a103 << ", " + << result.a104 << ", " << result.a105 << ", " << result.a106 << ", " + << result.a107 << ", " << result.a108 << ", " << result.a109 << ", " + << result.a110 << ", " << result.a111 << ", " << result.a112 << ", " + << result.a113 << ", " << result.a114 << ", " << result.a115 << ", " + << result.a116 << ", " << result.a117 << ", " << result.a118 << ", " + << result.a119 << ", " << result.a120 << ", " << result.a121 << ", " + << result.a122 << ", " << result.a123 << ", " << result.a124 << ", " + << result.a125 << ", " << result.a126 << ", " << result.a127 << ")" << "\n"; CHECK_EQ(a0, result.a0); @@ -15037,15 +14696,13 @@ DART_EXPORT intptr_t TestReturnStruct3BytesPackedInt( a0 = -1; a1 = 2; - std::cout << "Calling TestReturnStruct3BytesPackedInt(" - << "(" << static_cast(a0) << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct3BytesPackedInt(" << "(" + << static_cast(a0) << ", " << a1 << ")" << ")\n"; Struct3BytesPackedInt result = f(a0, a1); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -15087,20 +14744,17 @@ DART_EXPORT intptr_t TestReturnStruct8BytesPackedInt( a3 = 4; a4 = 5; - std::cout << "Calling TestReturnStruct8BytesPackedInt(" - << "(" << static_cast(a0) << ", " << a1 << ", " + std::cout << "Calling TestReturnStruct8BytesPackedInt(" << "(" + << static_cast(a0) << ", " << a1 << ", " << static_cast(a2) << ", " << static_cast(a3) << ", " - << static_cast(a4) << ")" - << ")\n"; + << static_cast(a4) << ")" << ")\n"; Struct8BytesPackedInt result = f(a0, a1, a2, a3, a4); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ", " + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ", " << static_cast(result.a3) << ", " - << static_cast(result.a4) << ")" - << "\n"; + << static_cast(result.a4) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -15145,15 +14799,13 @@ DART_EXPORT intptr_t TestReturnStruct9BytesPackedMixed( a0 = 1; a1 = 2.0; - std::cout << "Calling TestReturnStruct9BytesPackedMixed(" - << "(" << static_cast(a0) << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct9BytesPackedMixed(" << "(" + << static_cast(a0) << ", " << a1 << ")" << ")\n"; Struct9BytesPackedMixed result = f(a0, a1); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_APPROX(a1, result.a1); @@ -15186,15 +14838,12 @@ DART_EXPORT intptr_t TestReturnUnion4BytesMixed( a0 = 1; - std::cout << "Calling TestReturnUnion4BytesMixed(" - << "(" << a0 << ")" + std::cout << "Calling TestReturnUnion4BytesMixed(" << "(" << a0 << ")" << ")\n"; Union4BytesMixed result = f(a0); - std::cout << "result = " - << "(" << result.a0 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ")" << "\n"; CHECK_EQ(a0, result.a0); @@ -15224,15 +14873,12 @@ DART_EXPORT intptr_t TestReturnUnion8BytesNestedFloat( a0 = -1.0; - std::cout << "Calling TestReturnUnion8BytesNestedFloat(" - << "(" << a0 << ")" + std::cout << "Calling TestReturnUnion8BytesNestedFloat(" << "(" << a0 << ")" << ")\n"; Union8BytesNestedFloat result = f(a0); - std::cout << "result = " - << "(" << result.a0 << ")" - << "\n"; + std::cout << "result = " << "(" << result.a0 << ")" << "\n"; CHECK_APPROX(a0, result.a0); @@ -15264,16 +14910,13 @@ DART_EXPORT intptr_t TestReturnUnion9BytesNestedInt( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestReturnUnion9BytesNestedInt(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "))" - << ")\n"; + std::cout << "Calling TestReturnUnion9BytesNestedInt(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << "))" << ")\n"; Union9BytesNestedInt result = f(a0); - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << ", " - << result.a0.a2 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << ", " << result.a0.a2 << "))" << "\n"; CHECK_EQ(a0.a0, result.a0.a0); CHECK_EQ(a0.a1, result.a0.a1); @@ -15310,15 +14953,13 @@ DART_EXPORT intptr_t TestReturnUnion16BytesNestedFloat( a0.a0 = -1.0; a0.a1 = 2.0; - std::cout << "Calling TestReturnUnion16BytesNestedFloat(" - << "((" << a0.a0 << ", " << a0.a1 << "))" - << ")\n"; + std::cout << "Calling TestReturnUnion16BytesNestedFloat(" << "((" << a0.a0 + << ", " << a0.a1 << "))" << ")\n"; Union16BytesNestedFloat result = f(a0); - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << "))" << "\n"; CHECK_APPROX(a0.a0, result.a0.a0); CHECK_APPROX(a0.a1, result.a0.a1); @@ -15353,15 +14994,12 @@ DART_EXPORT intptr_t TestReturnStructArgumentStruct1ByteInt( a0.a0 = -1; - std::cout << "Calling TestReturnStructArgumentStruct1ByteInt(" - << "((" << static_cast(a0.a0) << "))" - << ")\n"; + std::cout << "Calling TestReturnStructArgumentStruct1ByteInt(" << "((" + << static_cast(a0.a0) << "))" << ")\n"; Struct1ByteInt result = f(a0); - std::cout << "result = " - << "(" << static_cast(result.a0) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ")" << "\n"; CHECK_EQ(a0.a0, result.a0); @@ -15417,17 +15055,14 @@ DART_EXPORT intptr_t TestReturnStructArgumentInt32x8Struct1ByteInt( a7 = 8; a8.a0 = -9; - std::cout << "Calling TestReturnStructArgumentInt32x8Struct1ByteInt(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 + std::cout << "Calling TestReturnStructArgumentInt32x8Struct1ByteInt(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 << ", (" - << static_cast(a8.a0) << "))" - << ")\n"; + << static_cast(a8.a0) << "))" << ")\n"; Struct1ByteInt result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); - std::cout << "result = " - << "(" << static_cast(result.a0) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ")" << "\n"; CHECK_EQ(a8.a0, result.a0); @@ -15461,13 +15096,11 @@ DART_EXPORT intptr_t TestReturnStructArgumentStruct8BytesHomogeneousFloat( a0.a1 = 2.0; std::cout << "Calling TestReturnStructArgumentStruct8BytesHomogeneousFloat(" - << "((" << a0.a0 << ", " << a0.a1 << "))" - << ")\n"; + << "((" << a0.a0 << ", " << a0.a1 << "))" << ")\n"; Struct8BytesHomogeneousFloat result = f(a0); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ")" << "\n"; CHECK_APPROX(a0.a0, result.a0); @@ -15507,14 +15140,12 @@ DART_EXPORT intptr_t TestReturnStructArgumentStruct20BytesHomogeneousInt32( std::cout << "Calling TestReturnStructArgumentStruct20BytesHomogeneousInt32(" << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << ")\n"; + << ", " << a0.a4 << "))" << ")\n"; Struct20BytesHomogeneousInt32 result = f(a0); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; CHECK_EQ(a0.a0, result.a0); @@ -15594,9 +15225,8 @@ DART_EXPORT intptr_t TestReturnStructArgumentInt32x8Struct20BytesHomogeneou( Struct20BytesHomogeneousInt32 result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); - std::cout << "result = " - << "(" << result.a0 << ", " << result.a1 << ", " << result.a2 - << ", " << result.a3 << ", " << result.a4 << ")" + std::cout << "result = " << "(" << result.a0 << ", " << result.a1 << ", " + << result.a2 << ", " << result.a3 << ", " << result.a4 << ")" << "\n"; CHECK_EQ(a8.a0, result.a0); @@ -15652,21 +15282,18 @@ DART_EXPORT intptr_t TestReturnStructArgumentStruct8BytesInlineArrayInt( << ", " << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << "]))" - << ")\n"; + << static_cast(a0.a0[7]) << "]))" << ")\n"; Struct8BytesInlineArrayInt result = f(a0); - std::cout << "result = " - << "([" << static_cast(result.a0[0]) << ", " + std::cout << "result = " << "([" << static_cast(result.a0[0]) << ", " << static_cast(result.a0[1]) << ", " << static_cast(result.a0[2]) << ", " << static_cast(result.a0[3]) << ", " << static_cast(result.a0[4]) << ", " << static_cast(result.a0[5]) << ", " << static_cast(result.a0[6]) << ", " - << static_cast(result.a0[7]) << "])" - << "\n"; + << static_cast(result.a0[7]) << "])" << "\n"; for (intptr_t i = 0; i < 8; i++) { CHECK_EQ(a0.a0[i], result.a0[i]); @@ -15708,15 +15335,12 @@ DART_EXPORT intptr_t TestReturnStructArgumentStructStruct16BytesHomogeneous( std::cout << "Calling TestReturnStructArgumentStructStruct16BytesHomogeneous(" << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" - << a0.a1[1].a0 << ")], " << a0.a2 << "))" - << ")\n"; + << a0.a1[1].a0 << ")], " << a0.a2 << "))" << ")\n"; StructStruct16BytesHomogeneousFloat2 result = f(a0); - std::cout << "result = " - << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 << "), (" - << result.a1[1].a0 << ")], " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 + << "), (" << result.a1[1].a0 << ")], " << result.a2 << ")" << "\n"; CHECK_APPROX(a0.a0.a0, result.a0.a0); for (intptr_t i = 0; i < 2; i++) { @@ -15764,15 +15388,12 @@ DART_EXPORT intptr_t TestReturnStructArgumentStructStruct32BytesHomogeneous( std::cout << "Calling TestReturnStructArgumentStructStruct32BytesHomogeneous(" << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" - << a0.a1[1].a0 << ")], " << a0.a2 << "))" - << ")\n"; + << a0.a1[1].a0 << ")], " << a0.a2 << "))" << ")\n"; StructStruct32BytesHomogeneousDouble2 result = f(a0); - std::cout << "result = " - << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 << "), (" - << result.a1[1].a0 << ")], " << result.a2 << ")" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 + << "), (" << result.a1[1].a0 << ")], " << result.a2 << ")" << "\n"; CHECK_APPROX(a0.a0.a0, result.a0.a0); for (intptr_t i = 0; i < 2; i++) { @@ -15822,16 +15443,13 @@ DART_EXPORT intptr_t TestReturnStructArgumentStructStruct16BytesMixed3( std::cout << "Calling TestReturnStructArgumentStructStruct16BytesMixed3(" << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " << a0.a1[0].a1 << ", " << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " - << a0.a2[1] << "]))" - << ")\n"; + << a0.a2[1] << "]))" << ")\n"; StructStruct16BytesMixed3 result = f(a0); - std::cout << "result = " - << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 << ", " - << result.a1[0].a1 << ", " << result.a1[0].a2 << ")], [" - << result.a2[0] << ", " << result.a2[1] << "])" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), [(" << result.a1[0].a0 + << ", " << result.a1[0].a1 << ", " << result.a1[0].a2 << ")], [" + << result.a2[0] << ", " << result.a2[1] << "])" << "\n"; CHECK_APPROX(a0.a0.a0, result.a0.a0); for (intptr_t i = 0; i < 1; i++) { @@ -15889,17 +15507,14 @@ DART_EXPORT intptr_t TestReturnStructAlignmentInt16( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStructAlignmentInt16(" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestReturnStructAlignmentInt16(" << "(" + << static_cast(a0) << ", " << a1 << ", " + << static_cast(a2) << ")" << ")\n"; StructAlignmentInt16 result = f(a0, a1, a2); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -15939,17 +15554,14 @@ DART_EXPORT intptr_t TestReturnStructAlignmentInt32( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStructAlignmentInt32(" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestReturnStructAlignmentInt32(" << "(" + << static_cast(a0) << ", " << a1 << ", " + << static_cast(a2) << ")" << ")\n"; StructAlignmentInt32 result = f(a0, a1, a2); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -15989,17 +15601,14 @@ DART_EXPORT intptr_t TestReturnStructAlignmentInt64( a1 = 2; a2 = -3; - std::cout << "Calling TestReturnStructAlignmentInt64(" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestReturnStructAlignmentInt64(" << "(" + << static_cast(a0) << ", " << a1 << ", " + << static_cast(a2) << ")" << ")\n"; StructAlignmentInt64 result = f(a0, a1, a2); - std::cout << "result = " - << "(" << static_cast(result.a0) << ", " << result.a1 << ", " - << static_cast(result.a2) << ")" - << "\n"; + std::cout << "result = " << "(" << static_cast(result.a0) << ", " + << result.a1 << ", " << static_cast(result.a2) << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1, result.a1); @@ -16040,17 +15649,14 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedInt( a1.a0 = -3; a1.a1 = 4; - std::cout << "Calling TestReturnStruct8BytesNestedInt(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "))" + std::cout << "Calling TestReturnStruct8BytesNestedInt(" << "((" << a0.a0 + << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 << "))" << ")\n"; Struct8BytesNestedInt result = f(a0, a1); - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << "), (" - << result.a1.a0 << ", " << result.a1.a1 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << "), (" << result.a1.a0 << ", " << result.a1.a1 << "))" << "\n"; CHECK_EQ(a0.a0, result.a0.a0); CHECK_EQ(a0.a1, result.a0.a1); @@ -16091,15 +15697,13 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedFloat( a0.a0 = -1.0; a1.a0 = 2.0; - std::cout << "Calling TestReturnStruct8BytesNestedFloat(" - << "((" << a0.a0 << "), (" << a1.a0 << "))" - << ")\n"; + std::cout << "Calling TestReturnStruct8BytesNestedFloat(" << "((" << a0.a0 + << "), (" << a1.a0 << "))" << ")\n"; Struct8BytesNestedFloat result = f(a0, a1); - std::cout << "result = " - << "((" << result.a0.a0 << "), (" << result.a1.a0 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << "), (" << result.a1.a0 + << "))" << "\n"; CHECK_APPROX(a0.a0, result.a0.a0); CHECK_APPROX(a1.a0, result.a1.a0); @@ -16135,14 +15739,12 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedFloat2( a0.a0 = -1.0; a1 = 2.0; - std::cout << "Calling TestReturnStruct8BytesNestedFloat2(" - << "((" << a0.a0 << "), " << a1 << ")" - << ")\n"; + std::cout << "Calling TestReturnStruct8BytesNestedFloat2(" << "((" << a0.a0 + << "), " << a1 << ")" << ")\n"; Struct8BytesNestedFloat2 result = f(a0, a1); - std::cout << "result = " - << "((" << result.a0.a0 << "), " << result.a1 << ")" + std::cout << "result = " << "((" << result.a0.a0 << "), " << result.a1 << ")" << "\n"; CHECK_APPROX(a0.a0, result.a0.a0); @@ -16180,16 +15782,13 @@ DART_EXPORT intptr_t TestReturnStruct8BytesNestedMixed( a0.a1 = 2; a1.a0 = -3.0; - std::cout << "Calling TestReturnStruct8BytesNestedMixed(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << "))" - << ")\n"; + std::cout << "Calling TestReturnStruct8BytesNestedMixed(" << "((" << a0.a0 + << ", " << a0.a1 << "), (" << a1.a0 << "))" << ")\n"; Struct8BytesNestedMixed result = f(a0, a1); - std::cout << "result = " - << "((" << result.a0.a0 << ", " << result.a0.a1 << "), (" - << result.a1.a0 << "))" - << "\n"; + std::cout << "result = " << "((" << result.a0.a0 << ", " << result.a0.a1 + << "), (" << result.a1.a0 << "))" << "\n"; CHECK_EQ(a0.a0, result.a0.a0); CHECK_EQ(a0.a1, result.a0.a1); @@ -16234,20 +15833,18 @@ DART_EXPORT intptr_t TestReturnStruct16BytesNestedInt( a1.a1.a0 = -7; a1.a1.a1 = 8; - std::cout << "Calling TestReturnStruct16BytesNestedInt(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ", " << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 - << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")))" - << ")\n"; + std::cout << "Calling TestReturnStruct16BytesNestedInt(" << "(((" << a0.a0.a0 + << ", " << a0.a0.a1 << "), (" << a0.a1.a0 << ", " << a0.a1.a1 + << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 + << ", " << a1.a1.a1 << ")))" << ")\n"; Struct16BytesNestedInt result = f(a0, a1); - std::cout << "result = " - << "(((" << result.a0.a0.a0 << ", " << result.a0.a0.a1 << "), (" - << result.a0.a1.a0 << ", " << result.a0.a1.a1 << ")), ((" - << result.a1.a0.a0 << ", " << result.a1.a0.a1 << "), (" - << result.a1.a1.a0 << ", " << result.a1.a1.a1 << ")))" - << "\n"; + std::cout << "result = " << "(((" << result.a0.a0.a0 << ", " + << result.a0.a0.a1 << "), (" << result.a0.a1.a0 << ", " + << result.a0.a1.a1 << ")), ((" << result.a1.a0.a0 << ", " + << result.a1.a0.a1 << "), (" << result.a1.a1.a0 << ", " + << result.a1.a1.a1 << ")))" << "\n"; CHECK_EQ(a0.a0.a0, result.a0.a0.a0); CHECK_EQ(a0.a0.a1, result.a0.a0.a1); @@ -16315,29 +15912,26 @@ DART_EXPORT intptr_t TestReturnStruct32BytesNestedInt( a1.a1.a1.a0 = -15; a1.a1.a1.a1 = 16; - std::cout << "Calling TestReturnStruct32BytesNestedInt(" - << "((((" << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" - << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 - << ", " << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " - << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 - << "), (" << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" - << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 - << ", " << a1.a1.a1.a1 << "))))" - << ")\n"; + std::cout << "Calling TestReturnStruct32BytesNestedInt(" << "((((" + << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" << a0.a0.a1.a0 + << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 << ", " + << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " << a0.a1.a1.a1 + << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 << "), (" + << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" << a1.a1.a0.a0 + << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ", " + << a1.a1.a1.a1 << "))))" << ")\n"; Struct32BytesNestedInt result = f(a0, a1); - std::cout << "result = " - << "((((" << result.a0.a0.a0.a0 << ", " << result.a0.a0.a0.a1 - << "), (" << result.a0.a0.a1.a0 << ", " << result.a0.a0.a1.a1 - << ")), ((" << result.a0.a1.a0.a0 << ", " << result.a0.a1.a0.a1 - << "), (" << result.a0.a1.a1.a0 << ", " << result.a0.a1.a1.a1 - << "))), (((" << result.a1.a0.a0.a0 << ", " << result.a1.a0.a0.a1 - << "), (" << result.a1.a0.a1.a0 << ", " << result.a1.a0.a1.a1 - << ")), ((" << result.a1.a1.a0.a0 << ", " << result.a1.a1.a0.a1 - << "), (" << result.a1.a1.a1.a0 << ", " << result.a1.a1.a1.a1 - << "))))" - << "\n"; + std::cout << "result = " << "((((" << result.a0.a0.a0.a0 << ", " + << result.a0.a0.a0.a1 << "), (" << result.a0.a0.a1.a0 << ", " + << result.a0.a0.a1.a1 << ")), ((" << result.a0.a1.a0.a0 << ", " + << result.a0.a1.a0.a1 << "), (" << result.a0.a1.a1.a0 << ", " + << result.a0.a1.a1.a1 << "))), (((" << result.a1.a0.a0.a0 << ", " + << result.a1.a0.a0.a1 << "), (" << result.a1.a0.a1.a0 << ", " + << result.a1.a0.a1.a1 << ")), ((" << result.a1.a1.a0.a0 << ", " + << result.a1.a1.a0.a1 << "), (" << result.a1.a1.a1.a0 << ", " + << result.a1.a1.a1.a1 << "))))" << "\n"; CHECK_EQ(a0.a0.a0.a0, result.a0.a0.a0.a0); CHECK_EQ(a0.a0.a0.a1, result.a0.a0.a0.a1); @@ -16419,20 +16013,18 @@ DART_EXPORT intptr_t TestReturnStructNestedIntStructAlignmentInt16( a1.a1 = -5; a1.a2 = 6; - std::cout << "Calling TestReturnStructNestedIntStructAlignmentInt16(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "Calling TestReturnStructNestedIntStructAlignmentInt16(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << static_cast(a1.a0) << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << ")\n"; StructNestedIntStructAlignmentInt16 result = f(a0, a1); - std::cout << "result = " - << "((" << static_cast(result.a0.a0) << ", " << result.a0.a1 - << ", " << static_cast(result.a0.a2) << "), (" + std::cout << "result = " << "((" << static_cast(result.a0.a0) << ", " + << result.a0.a1 << ", " << static_cast(result.a0.a2) << "), (" << static_cast(result.a1.a0) << ", " << result.a1.a1 << ", " - << static_cast(result.a1.a2) << "))" - << "\n"; + << static_cast(result.a1.a2) << "))" << "\n"; CHECK_EQ(a0.a0, result.a0.a0); CHECK_EQ(a0.a1, result.a0.a1); @@ -16484,20 +16076,18 @@ DART_EXPORT intptr_t TestReturnStructNestedIntStructAlignmentInt32( a1.a1 = -5; a1.a2 = 6; - std::cout << "Calling TestReturnStructNestedIntStructAlignmentInt32(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "Calling TestReturnStructNestedIntStructAlignmentInt32(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << static_cast(a1.a0) << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << ")\n"; StructNestedIntStructAlignmentInt32 result = f(a0, a1); - std::cout << "result = " - << "((" << static_cast(result.a0.a0) << ", " << result.a0.a1 - << ", " << static_cast(result.a0.a2) << "), (" + std::cout << "result = " << "((" << static_cast(result.a0.a0) << ", " + << result.a0.a1 << ", " << static_cast(result.a0.a2) << "), (" << static_cast(result.a1.a0) << ", " << result.a1.a1 << ", " - << static_cast(result.a1.a2) << "))" - << "\n"; + << static_cast(result.a1.a2) << "))" << "\n"; CHECK_EQ(a0.a0, result.a0.a0); CHECK_EQ(a0.a1, result.a0.a1); @@ -16549,20 +16139,18 @@ DART_EXPORT intptr_t TestReturnStructNestedIntStructAlignmentInt64( a1.a1 = -5; a1.a2 = 6; - std::cout << "Calling TestReturnStructNestedIntStructAlignmentInt64(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "Calling TestReturnStructNestedIntStructAlignmentInt64(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << static_cast(a1.a0) << ", " << a1.a1 << ", " << static_cast(a1.a2) << "))" << ")\n"; StructNestedIntStructAlignmentInt64 result = f(a0, a1); - std::cout << "result = " - << "((" << static_cast(result.a0.a0) << ", " << result.a0.a1 - << ", " << static_cast(result.a0.a2) << "), (" + std::cout << "result = " << "((" << static_cast(result.a0.a0) << ", " + << result.a0.a1 << ", " << static_cast(result.a0.a2) << "), (" << static_cast(result.a1.a0) << ", " << result.a1.a1 << ", " - << static_cast(result.a1.a2) << "))" - << "\n"; + << static_cast(result.a1.a2) << "))" << "\n"; CHECK_EQ(a0.a0, result.a0.a0); CHECK_EQ(a0.a1, result.a0.a1); @@ -16646,33 +16234,31 @@ DART_EXPORT intptr_t TestReturnStructNestedIrregularEvenBigger( a2.a3 = -33.0; a3 = 34.0; - std::cout << "Calling TestReturnStructNestedIrregularEvenBigger(" - << "(" << a0 << ", ((" << a1.a0.a0 << ", ((" << a1.a0.a1.a0.a0 - << ", " << a1.a0.a1.a0.a1 << "), (" << a1.a0.a1.a1.a0 << ")), " - << a1.a0.a2 << ", ((" << a1.a0.a3.a0.a0 << "), " << a1.a0.a3.a1 - << "), " << a1.a0.a4 << ", ((" << a1.a0.a5.a0.a0 << "), (" - << a1.a0.a5.a1.a0 << ")), " << a1.a0.a6 << "), ((" << a1.a1.a0.a0 - << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ")), " << a1.a2 - << ", " << a1.a3 << "), ((" << a2.a0.a0 << ", ((" << a2.a0.a1.a0.a0 - << ", " << a2.a0.a1.a0.a1 << "), (" << a2.a0.a1.a1.a0 << ")), " - << a2.a0.a2 << ", ((" << a2.a0.a3.a0.a0 << "), " << a2.a0.a3.a1 - << "), " << a2.a0.a4 << ", ((" << a2.a0.a5.a0.a0 << "), (" - << a2.a0.a5.a1.a0 << ")), " << a2.a0.a6 << "), ((" << a2.a1.a0.a0 - << ", " << a2.a1.a0.a1 << "), (" << a2.a1.a1.a0 << ")), " << a2.a2 - << ", " << a2.a3 << "), " << a3 << ")" - << ")\n"; + std::cout << "Calling TestReturnStructNestedIrregularEvenBigger(" << "(" << a0 + << ", ((" << a1.a0.a0 << ", ((" << a1.a0.a1.a0.a0 << ", " + << a1.a0.a1.a0.a1 << "), (" << a1.a0.a1.a1.a0 << ")), " << a1.a0.a2 + << ", ((" << a1.a0.a3.a0.a0 << "), " << a1.a0.a3.a1 << "), " + << a1.a0.a4 << ", ((" << a1.a0.a5.a0.a0 << "), (" << a1.a0.a5.a1.a0 + << ")), " << a1.a0.a6 << "), ((" << a1.a1.a0.a0 << ", " + << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ")), " << a1.a2 << ", " + << a1.a3 << "), ((" << a2.a0.a0 << ", ((" << a2.a0.a1.a0.a0 << ", " + << a2.a0.a1.a0.a1 << "), (" << a2.a0.a1.a1.a0 << ")), " << a2.a0.a2 + << ", ((" << a2.a0.a3.a0.a0 << "), " << a2.a0.a3.a1 << "), " + << a2.a0.a4 << ", ((" << a2.a0.a5.a0.a0 << "), (" << a2.a0.a5.a1.a0 + << ")), " << a2.a0.a6 << "), ((" << a2.a1.a0.a0 << ", " + << a2.a1.a0.a1 << "), (" << a2.a1.a1.a0 << ")), " << a2.a2 << ", " + << a2.a3 << "), " << a3 << ")" << ")\n"; StructNestedIrregularEvenBigger result = f(a0, a1, a2, a3); - std::cout << "result = " - << "(" << result.a0 << ", ((" << result.a1.a0.a0 << ", ((" - << result.a1.a0.a1.a0.a0 << ", " << result.a1.a0.a1.a0.a1 << "), (" - << result.a1.a0.a1.a1.a0 << ")), " << result.a1.a0.a2 << ", ((" - << result.a1.a0.a3.a0.a0 << "), " << result.a1.a0.a3.a1 << "), " - << result.a1.a0.a4 << ", ((" << result.a1.a0.a5.a0.a0 << "), (" - << result.a1.a0.a5.a1.a0 << ")), " << result.a1.a0.a6 << "), ((" - << result.a1.a1.a0.a0 << ", " << result.a1.a1.a0.a1 << "), (" - << result.a1.a1.a1.a0 << ")), " << result.a1.a2 << ", " + std::cout << "result = " << "(" << result.a0 << ", ((" << result.a1.a0.a0 + << ", ((" << result.a1.a0.a1.a0.a0 << ", " << result.a1.a0.a1.a0.a1 + << "), (" << result.a1.a0.a1.a1.a0 << ")), " << result.a1.a0.a2 + << ", ((" << result.a1.a0.a3.a0.a0 << "), " << result.a1.a0.a3.a1 + << "), " << result.a1.a0.a4 << ", ((" << result.a1.a0.a5.a0.a0 + << "), (" << result.a1.a0.a5.a1.a0 << ")), " << result.a1.a0.a6 + << "), ((" << result.a1.a1.a0.a0 << ", " << result.a1.a1.a0.a1 + << "), (" << result.a1.a1.a1.a0 << ")), " << result.a1.a2 << ", " << result.a1.a3 << "), ((" << result.a2.a0.a0 << ", ((" << result.a2.a0.a1.a0.a0 << ", " << result.a2.a0.a1.a0.a1 << "), (" << result.a2.a0.a1.a1.a0 << ")), " << result.a2.a0.a2 << ", ((" @@ -16681,8 +16267,7 @@ DART_EXPORT intptr_t TestReturnStructNestedIrregularEvenBigger( << result.a2.a0.a5.a1.a0 << ")), " << result.a2.a0.a6 << "), ((" << result.a2.a1.a0.a0 << ", " << result.a2.a1.a0.a1 << "), (" << result.a2.a1.a1.a0 << ")), " << result.a2.a2 << ", " - << result.a2.a3 << "), " << result.a3 << ")" - << "\n"; + << result.a2.a3 << "), " << result.a3 << ")" << "\n"; CHECK_EQ(a0, result.a0); CHECK_EQ(a1.a0.a0, result.a1.a0.a0); @@ -16839,15 +16424,14 @@ DART_EXPORT void TestAsyncPassStruct1ByteIntx10( a8.a0 = -9; a9.a0 = 10; - std::cout << "Calling TestAsyncPassStruct1ByteIntx10(" - << "((" << static_cast(a0.a0) << "), (" - << static_cast(a1.a0) << "), (" << static_cast(a2.a0) - << "), (" << static_cast(a3.a0) << "), (" - << static_cast(a4.a0) << "), (" << static_cast(a5.a0) - << "), (" << static_cast(a6.a0) << "), (" - << static_cast(a7.a0) << "), (" << static_cast(a8.a0) - << "), (" << static_cast(a9.a0) << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct1ByteIntx10(" << "((" + << static_cast(a0.a0) << "), (" << static_cast(a1.a0) + << "), (" << static_cast(a2.a0) << "), (" + << static_cast(a3.a0) << "), (" << static_cast(a4.a0) + << "), (" << static_cast(a5.a0) << "), (" + << static_cast(a6.a0) << "), (" << static_cast(a7.a0) + << "), (" << static_cast(a8.a0) << "), (" + << static_cast(a9.a0) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -16909,29 +16493,27 @@ DART_EXPORT void TestAsyncPassStruct3BytesHomogeneousUint8x10( a9.a1 = 29; a9.a2 = 30; - std::cout << "Calling TestAsyncPassStruct3BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " - << static_cast(a0.a1) << ", " << static_cast(a0.a2) - << "), (" << static_cast(a1.a0) << ", " - << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << "), (" << static_cast(a2.a0) << ", " - << static_cast(a2.a1) << ", " << static_cast(a2.a2) - << "), (" << static_cast(a3.a0) << ", " - << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << "), (" << static_cast(a4.a0) << ", " - << static_cast(a4.a1) << ", " << static_cast(a4.a2) - << "), (" << static_cast(a5.a0) << ", " - << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << "), (" << static_cast(a6.a0) << ", " - << static_cast(a6.a1) << ", " << static_cast(a6.a2) - << "), (" << static_cast(a7.a0) << ", " - << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << "), (" << static_cast(a8.a0) << ", " - << static_cast(a8.a1) << ", " << static_cast(a8.a2) - << "), (" << static_cast(a9.a0) << ", " - << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct3BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) + << ", " << static_cast(a0.a2) << "), (" + << static_cast(a1.a0) << ", " << static_cast(a1.a1) + << ", " << static_cast(a1.a2) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) + << ", " << static_cast(a2.a2) << "), (" + << static_cast(a3.a0) << ", " << static_cast(a3.a1) + << ", " << static_cast(a3.a2) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) + << ", " << static_cast(a4.a2) << "), (" + << static_cast(a5.a0) << ", " << static_cast(a5.a1) + << ", " << static_cast(a5.a2) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) + << ", " << static_cast(a6.a2) << "), (" + << static_cast(a7.a0) << ", " << static_cast(a7.a1) + << ", " << static_cast(a7.a2) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) + << ", " << static_cast(a8.a2) << "), (" + << static_cast(a9.a0) << ", " << static_cast(a9.a1) + << ", " << static_cast(a9.a2) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -16984,18 +16566,17 @@ DART_EXPORT void TestAsyncPassStruct3BytesInt2ByteAlignedx10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestAsyncPassStruct3BytesInt2ByteAlignedx10(" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "), (" - << a1.a0 << ", " << static_cast(a1.a1) << "), (" << a2.a0 - << ", " << static_cast(a2.a1) << "), (" << a3.a0 << ", " + std::cout << "Calling TestAsyncPassStruct3BytesInt2ByteAlignedx10(" << "((" + << a0.a0 << ", " << static_cast(a0.a1) << "), (" << a1.a0 + << ", " << static_cast(a1.a1) << "), (" << a2.a0 << ", " + << static_cast(a2.a1) << "), (" << a3.a0 << ", " << static_cast(a3.a1) << "), (" << a4.a0 << ", " << static_cast(a4.a1) << "), (" << a5.a0 << ", " << static_cast(a5.a1) << "), (" << a6.a0 << ", " << static_cast(a6.a1) << "), (" << a7.a0 << ", " << static_cast(a7.a1) << "), (" << a8.a0 << ", " << static_cast(a8.a1) << "), (" << a9.a0 << ", " - << static_cast(a9.a1) << "))" - << ")\n"; + << static_cast(a9.a1) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17047,14 +16628,13 @@ DART_EXPORT void TestAsyncPassStruct4BytesHomogeneousInt16x10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestAsyncPassStruct4BytesHomogeneousInt16x10(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct4BytesHomogeneousInt16x10(" << "((" + << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 + << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 << ", " + << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 + << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 << "), (" + << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 + << "), (" << a9.a0 << ", " << a9.a1 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17157,43 +16737,42 @@ DART_EXPORT void TestAsyncPassStruct7BytesHomogeneousUint8x10( a9.a6 = 70; std::cout - << "Calling TestAsyncPassStruct7BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << "))" + << "Calling TestAsyncPassStruct7BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -17257,8 +16836,8 @@ DART_EXPORT void TestAsyncPassStruct7BytesInt4ByteAlignedx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestAsyncPassStruct7BytesInt4ByteAlignedx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) + std::cout << "Calling TestAsyncPassStruct7BytesInt4ByteAlignedx10(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" << a1.a0 << ", " << a1.a1 << ", " << static_cast(a1.a2) << "), (" << a2.a0 << ", " << a2.a1 << ", " << static_cast(a2.a2) << "), (" << a3.a0 << ", " @@ -17332,17 +16911,16 @@ DART_EXPORT void TestAsyncPassStruct8BytesIntx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestAsyncPassStruct8BytesIntx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << "), (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << "), (" - << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 - << ", " << a9.a1 << ", " << a9.a2 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct8BytesIntx10(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 << ", " + << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 + << ", " << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 << ", " + << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 + << "), (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << "), (" + << a6.a0 << ", " << a6.a1 << ", " << a6.a2 << "), (" << a7.a0 + << ", " << a7.a1 << ", " << a7.a2 << "), (" << a8.a0 << ", " + << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 << ", " << a9.a1 + << ", " << a9.a2 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17394,14 +16972,13 @@ DART_EXPORT void TestAsyncPassStruct8BytesHomogeneousFloatx10( a9.a0 = -19.0; a9.a1 = 20.0; - std::cout << "Calling TestAsyncPassStruct8BytesHomogeneousFloatx10(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct8BytesHomogeneousFloatx10(" << "((" + << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 + << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 << ", " + << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 + << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 << "), (" + << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 + << "), (" << a9.a0 << ", " << a9.a1 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17463,17 +17040,16 @@ DART_EXPORT void TestAsyncPassStruct8BytesMixedx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestAsyncPassStruct8BytesMixedx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "), (" << a6.a0 << ", " << a6.a1 << ", " << a6.a2 - << "), (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << "), (" - << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 - << ", " << a9.a1 << ", " << a9.a2 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct8BytesMixedx10(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 << ", " + << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 << ", " << a2.a1 + << ", " << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 << ", " + << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 + << "), (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << "), (" + << a6.a0 << ", " << a6.a1 << ", " << a6.a2 << "), (" << a7.a0 + << ", " << a7.a1 << ", " << a7.a2 << "), (" << a8.a0 << ", " + << a8.a1 << ", " << a8.a2 << "), (" << a9.a0 << ", " << a9.a1 + << ", " << a9.a2 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17599,53 +17175,52 @@ DART_EXPORT void TestAsyncPassStruct9BytesHomogeneousUint8x10( a9.a8 = 90; std::cout - << "Calling TestAsyncPassStruct9BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << ", " << static_cast(a0.a7) - << ", " << static_cast(a0.a8) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << ", " << static_cast(a1.a7) << ", " << static_cast(a1.a8) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << ", " << static_cast(a2.a7) - << ", " << static_cast(a2.a8) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << ", " << static_cast(a3.a7) << ", " << static_cast(a3.a8) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << ", " << static_cast(a4.a7) - << ", " << static_cast(a4.a8) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << ", " << static_cast(a5.a7) << ", " << static_cast(a5.a8) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << ", " << static_cast(a6.a7) - << ", " << static_cast(a6.a8) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << ", " << static_cast(a7.a7) << ", " << static_cast(a7.a8) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << ", " << static_cast(a8.a7) - << ", " << static_cast(a8.a8) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << ", " << static_cast(a9.a7) << ", " << static_cast(a9.a8) - << "))" + << "Calling TestAsyncPassStruct9BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << ", " << static_cast(a0.a7) << ", " + << static_cast(a0.a8) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << ", " + << static_cast(a1.a7) << ", " << static_cast(a1.a8) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << ", " << static_cast(a2.a7) << ", " + << static_cast(a2.a8) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << ", " + << static_cast(a3.a7) << ", " << static_cast(a3.a8) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << ", " << static_cast(a4.a7) << ", " + << static_cast(a4.a8) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << ", " + << static_cast(a5.a7) << ", " << static_cast(a5.a8) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << ", " << static_cast(a6.a7) << ", " + << static_cast(a6.a8) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << ", " + << static_cast(a7.a7) << ", " << static_cast(a7.a8) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << ", " << static_cast(a8.a7) << ", " + << static_cast(a8.a8) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << ", " + << static_cast(a9.a7) << ", " << static_cast(a9.a8) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -17700,18 +17275,17 @@ DART_EXPORT void TestAsyncPassStruct9BytesInt4Or8ByteAlignedx10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestAsyncPassStruct9BytesInt4Or8ByteAlignedx10(" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "), (" - << a1.a0 << ", " << static_cast(a1.a1) << "), (" << a2.a0 - << ", " << static_cast(a2.a1) << "), (" << a3.a0 << ", " + std::cout << "Calling TestAsyncPassStruct9BytesInt4Or8ByteAlignedx10(" << "((" + << a0.a0 << ", " << static_cast(a0.a1) << "), (" << a1.a0 + << ", " << static_cast(a1.a1) << "), (" << a2.a0 << ", " + << static_cast(a2.a1) << "), (" << a3.a0 << ", " << static_cast(a3.a1) << "), (" << a4.a0 << ", " << static_cast(a4.a1) << "), (" << a5.a0 << ", " << static_cast(a5.a1) << "), (" << a6.a0 << ", " << static_cast(a6.a1) << "), (" << a7.a0 << ", " << static_cast(a7.a1) << "), (" << a8.a0 << ", " << static_cast(a8.a1) << "), (" << a9.a0 << ", " - << static_cast(a9.a1) << "))" - << ")\n"; + << static_cast(a9.a1) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17754,14 +17328,13 @@ DART_EXPORT void TestAsyncPassStruct12BytesHomogeneousFloatx6( a5.a1 = -17.0; a5.a2 = 18.0; - std::cout << "Calling TestAsyncPassStruct12BytesHomogeneousFloatx6(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" - << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " - << a5.a2 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct12BytesHomogeneousFloatx6(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), (" << a1.a0 + << ", " << a1.a1 << ", " << a1.a2 << "), (" << a2.a0 << ", " + << a2.a1 << ", " << a2.a2 << "), (" << a3.a0 << ", " << a3.a1 + << ", " << a3.a2 << "), (" << a4.a0 << ", " << a4.a1 << ", " + << a4.a2 << "), (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 + << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5); } @@ -17804,14 +17377,13 @@ DART_EXPORT void TestAsyncPassStruct16BytesHomogeneousFloatx5( a4.a2 = -19.0; a4.a3 = 20.0; - std::cout << "Calling TestAsyncPassStruct16BytesHomogeneousFloatx5(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 + std::cout << "Calling TestAsyncPassStruct16BytesHomogeneousFloatx5(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "))" - << ")\n"; + << ", " << a4.a2 << ", " << a4.a3 << "))" << ")\n"; f(a0, a1, a2, a3, a4); } @@ -17865,14 +17437,13 @@ DART_EXPORT void TestAsyncPassStruct16BytesMixedx10( a9.a0 = -19.0; a9.a1 = 20; - std::cout << "Calling TestAsyncPassStruct16BytesMixedx10(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "), (" << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 - << ", " << a3.a1 << "), (" << a4.a0 << ", " << a4.a1 << "), (" - << a5.a0 << ", " << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 - << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " - << a8.a1 << "), (" << a9.a0 << ", " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct16BytesMixedx10(" << "((" << a0.a0 + << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 << "), (" + << a2.a0 << ", " << a2.a1 << "), (" << a3.a0 << ", " << a3.a1 + << "), (" << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " + << a5.a1 << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 + << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" + << a9.a0 << ", " << a9.a1 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -17946,20 +17517,19 @@ DART_EXPORT void TestAsyncPassStruct16BytesMixed2x10( a9.a2 = -39.0; a9.a3 = 40; - std::cout << "Calling TestAsyncPassStruct16BytesMixed2x10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " - << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 - << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " - << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "), (" << a5.a0 << ", " - << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), (" << a6.a0 - << ", " << a6.a1 << ", " << a6.a2 << ", " << a6.a3 << "), (" - << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 - << "), (" << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " - << a8.a3 << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 - << ", " << a9.a3 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct16BytesMixed2x10(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" + << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 + << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " + << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 + << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 << ", " + << a4.a2 << ", " << a4.a3 << "), (" << a5.a0 << ", " << a5.a1 + << ", " << a5.a2 << ", " << a5.a3 << "), (" << a6.a0 << ", " + << a6.a1 << ", " << a6.a2 << ", " << a6.a3 << "), (" << a7.a0 + << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << "), (" + << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " << a8.a3 + << "), (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 << ", " + << a9.a3 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -18021,20 +17591,19 @@ DART_EXPORT void TestAsyncPassStruct17BytesIntx10( a9.a1 = -29; a9.a2 = 30; - std::cout << "Calling TestAsyncPassStruct17BytesIntx10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << static_cast(a0.a2) - << "), (" << a1.a0 << ", " << a1.a1 << ", " - << static_cast(a1.a2) << "), (" << a2.a0 << ", " << a2.a1 - << ", " << static_cast(a2.a2) << "), (" << a3.a0 << ", " - << a3.a1 << ", " << static_cast(a3.a2) << "), (" << a4.a0 - << ", " << a4.a1 << ", " << static_cast(a4.a2) << "), (" - << a5.a0 << ", " << a5.a1 << ", " << static_cast(a5.a2) - << "), (" << a6.a0 << ", " << a6.a1 << ", " - << static_cast(a6.a2) << "), (" << a7.a0 << ", " << a7.a1 - << ", " << static_cast(a7.a2) << "), (" << a8.a0 << ", " - << a8.a1 << ", " << static_cast(a8.a2) << "), (" << a9.a0 - << ", " << a9.a1 << ", " << static_cast(a9.a2) << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct17BytesIntx10(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << static_cast(a0.a2) << "), (" + << a1.a0 << ", " << a1.a1 << ", " << static_cast(a1.a2) + << "), (" << a2.a0 << ", " << a2.a1 << ", " + << static_cast(a2.a2) << "), (" << a3.a0 << ", " << a3.a1 + << ", " << static_cast(a3.a2) << "), (" << a4.a0 << ", " + << a4.a1 << ", " << static_cast(a4.a2) << "), (" << a5.a0 + << ", " << a5.a1 << ", " << static_cast(a5.a2) << "), (" + << a6.a0 << ", " << a6.a1 << ", " << static_cast(a6.a2) + << "), (" << a7.a0 << ", " << a7.a1 << ", " + << static_cast(a7.a2) << "), (" << a8.a0 << ", " << a8.a1 + << ", " << static_cast(a8.a2) << "), (" << a9.a0 << ", " + << a9.a1 << ", " << static_cast(a9.a2) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -18258,103 +17827,102 @@ DART_EXPORT void TestAsyncPassStruct19BytesHomogeneousUint8x10( a9.a18 = 190; std::cout - << "Calling TestAsyncPassStruct19BytesHomogeneousUint8x10(" - << "((" << static_cast(a0.a0) << ", " << static_cast(a0.a1) - << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) - << ", " << static_cast(a0.a4) << ", " << static_cast(a0.a5) - << ", " << static_cast(a0.a6) << ", " << static_cast(a0.a7) - << ", " << static_cast(a0.a8) << ", " << static_cast(a0.a9) - << ", " << static_cast(a0.a10) << ", " << static_cast(a0.a11) - << ", " << static_cast(a0.a12) << ", " << static_cast(a0.a13) - << ", " << static_cast(a0.a14) << ", " << static_cast(a0.a15) - << ", " << static_cast(a0.a16) << ", " << static_cast(a0.a17) - << ", " << static_cast(a0.a18) << "), (" << static_cast(a1.a0) - << ", " << static_cast(a1.a1) << ", " << static_cast(a1.a2) - << ", " << static_cast(a1.a3) << ", " << static_cast(a1.a4) - << ", " << static_cast(a1.a5) << ", " << static_cast(a1.a6) - << ", " << static_cast(a1.a7) << ", " << static_cast(a1.a8) - << ", " << static_cast(a1.a9) << ", " << static_cast(a1.a10) - << ", " << static_cast(a1.a11) << ", " << static_cast(a1.a12) - << ", " << static_cast(a1.a13) << ", " << static_cast(a1.a14) - << ", " << static_cast(a1.a15) << ", " << static_cast(a1.a16) - << ", " << static_cast(a1.a17) << ", " << static_cast(a1.a18) - << "), (" << static_cast(a2.a0) << ", " << static_cast(a2.a1) - << ", " << static_cast(a2.a2) << ", " << static_cast(a2.a3) - << ", " << static_cast(a2.a4) << ", " << static_cast(a2.a5) - << ", " << static_cast(a2.a6) << ", " << static_cast(a2.a7) - << ", " << static_cast(a2.a8) << ", " << static_cast(a2.a9) - << ", " << static_cast(a2.a10) << ", " << static_cast(a2.a11) - << ", " << static_cast(a2.a12) << ", " << static_cast(a2.a13) - << ", " << static_cast(a2.a14) << ", " << static_cast(a2.a15) - << ", " << static_cast(a2.a16) << ", " << static_cast(a2.a17) - << ", " << static_cast(a2.a18) << "), (" << static_cast(a3.a0) - << ", " << static_cast(a3.a1) << ", " << static_cast(a3.a2) - << ", " << static_cast(a3.a3) << ", " << static_cast(a3.a4) - << ", " << static_cast(a3.a5) << ", " << static_cast(a3.a6) - << ", " << static_cast(a3.a7) << ", " << static_cast(a3.a8) - << ", " << static_cast(a3.a9) << ", " << static_cast(a3.a10) - << ", " << static_cast(a3.a11) << ", " << static_cast(a3.a12) - << ", " << static_cast(a3.a13) << ", " << static_cast(a3.a14) - << ", " << static_cast(a3.a15) << ", " << static_cast(a3.a16) - << ", " << static_cast(a3.a17) << ", " << static_cast(a3.a18) - << "), (" << static_cast(a4.a0) << ", " << static_cast(a4.a1) - << ", " << static_cast(a4.a2) << ", " << static_cast(a4.a3) - << ", " << static_cast(a4.a4) << ", " << static_cast(a4.a5) - << ", " << static_cast(a4.a6) << ", " << static_cast(a4.a7) - << ", " << static_cast(a4.a8) << ", " << static_cast(a4.a9) - << ", " << static_cast(a4.a10) << ", " << static_cast(a4.a11) - << ", " << static_cast(a4.a12) << ", " << static_cast(a4.a13) - << ", " << static_cast(a4.a14) << ", " << static_cast(a4.a15) - << ", " << static_cast(a4.a16) << ", " << static_cast(a4.a17) - << ", " << static_cast(a4.a18) << "), (" << static_cast(a5.a0) - << ", " << static_cast(a5.a1) << ", " << static_cast(a5.a2) - << ", " << static_cast(a5.a3) << ", " << static_cast(a5.a4) - << ", " << static_cast(a5.a5) << ", " << static_cast(a5.a6) - << ", " << static_cast(a5.a7) << ", " << static_cast(a5.a8) - << ", " << static_cast(a5.a9) << ", " << static_cast(a5.a10) - << ", " << static_cast(a5.a11) << ", " << static_cast(a5.a12) - << ", " << static_cast(a5.a13) << ", " << static_cast(a5.a14) - << ", " << static_cast(a5.a15) << ", " << static_cast(a5.a16) - << ", " << static_cast(a5.a17) << ", " << static_cast(a5.a18) - << "), (" << static_cast(a6.a0) << ", " << static_cast(a6.a1) - << ", " << static_cast(a6.a2) << ", " << static_cast(a6.a3) - << ", " << static_cast(a6.a4) << ", " << static_cast(a6.a5) - << ", " << static_cast(a6.a6) << ", " << static_cast(a6.a7) - << ", " << static_cast(a6.a8) << ", " << static_cast(a6.a9) - << ", " << static_cast(a6.a10) << ", " << static_cast(a6.a11) - << ", " << static_cast(a6.a12) << ", " << static_cast(a6.a13) - << ", " << static_cast(a6.a14) << ", " << static_cast(a6.a15) - << ", " << static_cast(a6.a16) << ", " << static_cast(a6.a17) - << ", " << static_cast(a6.a18) << "), (" << static_cast(a7.a0) - << ", " << static_cast(a7.a1) << ", " << static_cast(a7.a2) - << ", " << static_cast(a7.a3) << ", " << static_cast(a7.a4) - << ", " << static_cast(a7.a5) << ", " << static_cast(a7.a6) - << ", " << static_cast(a7.a7) << ", " << static_cast(a7.a8) - << ", " << static_cast(a7.a9) << ", " << static_cast(a7.a10) - << ", " << static_cast(a7.a11) << ", " << static_cast(a7.a12) - << ", " << static_cast(a7.a13) << ", " << static_cast(a7.a14) - << ", " << static_cast(a7.a15) << ", " << static_cast(a7.a16) - << ", " << static_cast(a7.a17) << ", " << static_cast(a7.a18) - << "), (" << static_cast(a8.a0) << ", " << static_cast(a8.a1) - << ", " << static_cast(a8.a2) << ", " << static_cast(a8.a3) - << ", " << static_cast(a8.a4) << ", " << static_cast(a8.a5) - << ", " << static_cast(a8.a6) << ", " << static_cast(a8.a7) - << ", " << static_cast(a8.a8) << ", " << static_cast(a8.a9) - << ", " << static_cast(a8.a10) << ", " << static_cast(a8.a11) - << ", " << static_cast(a8.a12) << ", " << static_cast(a8.a13) - << ", " << static_cast(a8.a14) << ", " << static_cast(a8.a15) - << ", " << static_cast(a8.a16) << ", " << static_cast(a8.a17) - << ", " << static_cast(a8.a18) << "), (" << static_cast(a9.a0) - << ", " << static_cast(a9.a1) << ", " << static_cast(a9.a2) - << ", " << static_cast(a9.a3) << ", " << static_cast(a9.a4) - << ", " << static_cast(a9.a5) << ", " << static_cast(a9.a6) - << ", " << static_cast(a9.a7) << ", " << static_cast(a9.a8) - << ", " << static_cast(a9.a9) << ", " << static_cast(a9.a10) - << ", " << static_cast(a9.a11) << ", " << static_cast(a9.a12) - << ", " << static_cast(a9.a13) << ", " << static_cast(a9.a14) - << ", " << static_cast(a9.a15) << ", " << static_cast(a9.a16) - << ", " << static_cast(a9.a17) << ", " << static_cast(a9.a18) - << "))" + << "Calling TestAsyncPassStruct19BytesHomogeneousUint8x10(" << "((" + << static_cast(a0.a0) << ", " << static_cast(a0.a1) << ", " + << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " + << static_cast(a0.a4) << ", " << static_cast(a0.a5) << ", " + << static_cast(a0.a6) << ", " << static_cast(a0.a7) << ", " + << static_cast(a0.a8) << ", " << static_cast(a0.a9) << ", " + << static_cast(a0.a10) << ", " << static_cast(a0.a11) << ", " + << static_cast(a0.a12) << ", " << static_cast(a0.a13) << ", " + << static_cast(a0.a14) << ", " << static_cast(a0.a15) << ", " + << static_cast(a0.a16) << ", " << static_cast(a0.a17) << ", " + << static_cast(a0.a18) << "), (" << static_cast(a1.a0) << ", " + << static_cast(a1.a1) << ", " << static_cast(a1.a2) << ", " + << static_cast(a1.a3) << ", " << static_cast(a1.a4) << ", " + << static_cast(a1.a5) << ", " << static_cast(a1.a6) << ", " + << static_cast(a1.a7) << ", " << static_cast(a1.a8) << ", " + << static_cast(a1.a9) << ", " << static_cast(a1.a10) << ", " + << static_cast(a1.a11) << ", " << static_cast(a1.a12) << ", " + << static_cast(a1.a13) << ", " << static_cast(a1.a14) << ", " + << static_cast(a1.a15) << ", " << static_cast(a1.a16) << ", " + << static_cast(a1.a17) << ", " << static_cast(a1.a18) << "), (" + << static_cast(a2.a0) << ", " << static_cast(a2.a1) << ", " + << static_cast(a2.a2) << ", " << static_cast(a2.a3) << ", " + << static_cast(a2.a4) << ", " << static_cast(a2.a5) << ", " + << static_cast(a2.a6) << ", " << static_cast(a2.a7) << ", " + << static_cast(a2.a8) << ", " << static_cast(a2.a9) << ", " + << static_cast(a2.a10) << ", " << static_cast(a2.a11) << ", " + << static_cast(a2.a12) << ", " << static_cast(a2.a13) << ", " + << static_cast(a2.a14) << ", " << static_cast(a2.a15) << ", " + << static_cast(a2.a16) << ", " << static_cast(a2.a17) << ", " + << static_cast(a2.a18) << "), (" << static_cast(a3.a0) << ", " + << static_cast(a3.a1) << ", " << static_cast(a3.a2) << ", " + << static_cast(a3.a3) << ", " << static_cast(a3.a4) << ", " + << static_cast(a3.a5) << ", " << static_cast(a3.a6) << ", " + << static_cast(a3.a7) << ", " << static_cast(a3.a8) << ", " + << static_cast(a3.a9) << ", " << static_cast(a3.a10) << ", " + << static_cast(a3.a11) << ", " << static_cast(a3.a12) << ", " + << static_cast(a3.a13) << ", " << static_cast(a3.a14) << ", " + << static_cast(a3.a15) << ", " << static_cast(a3.a16) << ", " + << static_cast(a3.a17) << ", " << static_cast(a3.a18) << "), (" + << static_cast(a4.a0) << ", " << static_cast(a4.a1) << ", " + << static_cast(a4.a2) << ", " << static_cast(a4.a3) << ", " + << static_cast(a4.a4) << ", " << static_cast(a4.a5) << ", " + << static_cast(a4.a6) << ", " << static_cast(a4.a7) << ", " + << static_cast(a4.a8) << ", " << static_cast(a4.a9) << ", " + << static_cast(a4.a10) << ", " << static_cast(a4.a11) << ", " + << static_cast(a4.a12) << ", " << static_cast(a4.a13) << ", " + << static_cast(a4.a14) << ", " << static_cast(a4.a15) << ", " + << static_cast(a4.a16) << ", " << static_cast(a4.a17) << ", " + << static_cast(a4.a18) << "), (" << static_cast(a5.a0) << ", " + << static_cast(a5.a1) << ", " << static_cast(a5.a2) << ", " + << static_cast(a5.a3) << ", " << static_cast(a5.a4) << ", " + << static_cast(a5.a5) << ", " << static_cast(a5.a6) << ", " + << static_cast(a5.a7) << ", " << static_cast(a5.a8) << ", " + << static_cast(a5.a9) << ", " << static_cast(a5.a10) << ", " + << static_cast(a5.a11) << ", " << static_cast(a5.a12) << ", " + << static_cast(a5.a13) << ", " << static_cast(a5.a14) << ", " + << static_cast(a5.a15) << ", " << static_cast(a5.a16) << ", " + << static_cast(a5.a17) << ", " << static_cast(a5.a18) << "), (" + << static_cast(a6.a0) << ", " << static_cast(a6.a1) << ", " + << static_cast(a6.a2) << ", " << static_cast(a6.a3) << ", " + << static_cast(a6.a4) << ", " << static_cast(a6.a5) << ", " + << static_cast(a6.a6) << ", " << static_cast(a6.a7) << ", " + << static_cast(a6.a8) << ", " << static_cast(a6.a9) << ", " + << static_cast(a6.a10) << ", " << static_cast(a6.a11) << ", " + << static_cast(a6.a12) << ", " << static_cast(a6.a13) << ", " + << static_cast(a6.a14) << ", " << static_cast(a6.a15) << ", " + << static_cast(a6.a16) << ", " << static_cast(a6.a17) << ", " + << static_cast(a6.a18) << "), (" << static_cast(a7.a0) << ", " + << static_cast(a7.a1) << ", " << static_cast(a7.a2) << ", " + << static_cast(a7.a3) << ", " << static_cast(a7.a4) << ", " + << static_cast(a7.a5) << ", " << static_cast(a7.a6) << ", " + << static_cast(a7.a7) << ", " << static_cast(a7.a8) << ", " + << static_cast(a7.a9) << ", " << static_cast(a7.a10) << ", " + << static_cast(a7.a11) << ", " << static_cast(a7.a12) << ", " + << static_cast(a7.a13) << ", " << static_cast(a7.a14) << ", " + << static_cast(a7.a15) << ", " << static_cast(a7.a16) << ", " + << static_cast(a7.a17) << ", " << static_cast(a7.a18) << "), (" + << static_cast(a8.a0) << ", " << static_cast(a8.a1) << ", " + << static_cast(a8.a2) << ", " << static_cast(a8.a3) << ", " + << static_cast(a8.a4) << ", " << static_cast(a8.a5) << ", " + << static_cast(a8.a6) << ", " << static_cast(a8.a7) << ", " + << static_cast(a8.a8) << ", " << static_cast(a8.a9) << ", " + << static_cast(a8.a10) << ", " << static_cast(a8.a11) << ", " + << static_cast(a8.a12) << ", " << static_cast(a8.a13) << ", " + << static_cast(a8.a14) << ", " << static_cast(a8.a15) << ", " + << static_cast(a8.a16) << ", " << static_cast(a8.a17) << ", " + << static_cast(a8.a18) << "), (" << static_cast(a9.a0) << ", " + << static_cast(a9.a1) << ", " << static_cast(a9.a2) << ", " + << static_cast(a9.a3) << ", " << static_cast(a9.a4) << ", " + << static_cast(a9.a5) << ", " << static_cast(a9.a6) << ", " + << static_cast(a9.a7) << ", " << static_cast(a9.a8) << ", " + << static_cast(a9.a9) << ", " << static_cast(a9.a10) << ", " + << static_cast(a9.a11) << ", " << static_cast(a9.a12) << ", " + << static_cast(a9.a13) << ", " << static_cast(a9.a14) << ", " + << static_cast(a9.a15) << ", " << static_cast(a9.a16) << ", " + << static_cast(a9.a17) << ", " << static_cast(a9.a18) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -18439,11 +18007,11 @@ DART_EXPORT void TestAsyncPassStruct20BytesHomogeneousInt32x10( a9.a3 = -49; a9.a4 = 50; - std::cout << "Calling TestAsyncPassStruct20BytesHomogeneousInt32x10(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << ", " - << a1.a2 << ", " << a1.a3 << ", " << a1.a4 << "), (" << a2.a0 - << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << ", " << a2.a4 + std::cout << "Calling TestAsyncPassStruct20BytesHomogeneousInt32x10(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 + << ", " << a1.a3 << ", " << a1.a4 << "), (" << a2.a0 << ", " + << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << ", " << a2.a4 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << ", " << a3.a4 << "), (" << a4.a0 << ", " << a4.a1 << ", " << a4.a2 << ", " << a4.a3 << ", " << a4.a4 << "), (" @@ -18453,8 +18021,7 @@ DART_EXPORT void TestAsyncPassStruct20BytesHomogeneousInt32x10( << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << ", " << a7.a4 << "), (" << a8.a0 << ", " << a8.a1 << ", " << a8.a2 << ", " << a8.a3 << ", " << a8.a4 << "), (" << a9.a0 << ", " << a9.a1 - << ", " << a9.a2 << ", " << a9.a3 << ", " << a9.a4 << "))" - << ")\n"; + << ", " << a9.a2 << ", " << a9.a3 << ", " << a9.a4 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -18472,10 +18039,9 @@ DART_EXPORT void TestAsyncPassStruct20BytesHomogeneousFloat( a0.a3 = 4.0; a0.a4 = -5.0; - std::cout << "Calling TestAsyncPassStruct20BytesHomogeneousFloat(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct20BytesHomogeneousFloat(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "))" << ")\n"; f(a0); } @@ -18517,14 +18083,13 @@ DART_EXPORT void TestAsyncPassStruct32BytesHomogeneousDoublex5( a4.a2 = -19.0; a4.a3 = 20.0; - std::cout << "Calling TestAsyncPassStruct32BytesHomogeneousDoublex5(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 + std::cout << "Calling TestAsyncPassStruct32BytesHomogeneousDoublex5(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << "), (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 << "), (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << ", " << a2.a3 << "), (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << "), (" << a4.a0 << ", " << a4.a1 - << ", " << a4.a2 << ", " << a4.a3 << "))" - << ")\n"; + << ", " << a4.a2 << ", " << a4.a3 << "))" << ")\n"; f(a0, a1, a2, a3, a4); } @@ -18542,10 +18107,9 @@ DART_EXPORT void TestAsyncPassStruct40BytesHomogeneousDouble( a0.a3 = 4.0; a0.a4 = -5.0; - std::cout << "Calling TestAsyncPassStruct40BytesHomogeneousDouble(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct40BytesHomogeneousDouble(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << "))" << ")\n"; f(a0); } @@ -18686,45 +18250,44 @@ DART_EXPORT void TestAsyncPassStruct1024BytesHomogeneousUint64( a0.a126 = 127; a0.a127 = 128; - std::cout << "Calling TestAsyncPassStruct1024BytesHomogeneousUint64(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << ", " << a0.a5 << ", " << a0.a6 << ", " << a0.a7 - << ", " << a0.a8 << ", " << a0.a9 << ", " << a0.a10 << ", " - << a0.a11 << ", " << a0.a12 << ", " << a0.a13 << ", " << a0.a14 - << ", " << a0.a15 << ", " << a0.a16 << ", " << a0.a17 << ", " - << a0.a18 << ", " << a0.a19 << ", " << a0.a20 << ", " << a0.a21 - << ", " << a0.a22 << ", " << a0.a23 << ", " << a0.a24 << ", " - << a0.a25 << ", " << a0.a26 << ", " << a0.a27 << ", " << a0.a28 - << ", " << a0.a29 << ", " << a0.a30 << ", " << a0.a31 << ", " - << a0.a32 << ", " << a0.a33 << ", " << a0.a34 << ", " << a0.a35 - << ", " << a0.a36 << ", " << a0.a37 << ", " << a0.a38 << ", " - << a0.a39 << ", " << a0.a40 << ", " << a0.a41 << ", " << a0.a42 - << ", " << a0.a43 << ", " << a0.a44 << ", " << a0.a45 << ", " - << a0.a46 << ", " << a0.a47 << ", " << a0.a48 << ", " << a0.a49 - << ", " << a0.a50 << ", " << a0.a51 << ", " << a0.a52 << ", " - << a0.a53 << ", " << a0.a54 << ", " << a0.a55 << ", " << a0.a56 - << ", " << a0.a57 << ", " << a0.a58 << ", " << a0.a59 << ", " - << a0.a60 << ", " << a0.a61 << ", " << a0.a62 << ", " << a0.a63 - << ", " << a0.a64 << ", " << a0.a65 << ", " << a0.a66 << ", " - << a0.a67 << ", " << a0.a68 << ", " << a0.a69 << ", " << a0.a70 - << ", " << a0.a71 << ", " << a0.a72 << ", " << a0.a73 << ", " - << a0.a74 << ", " << a0.a75 << ", " << a0.a76 << ", " << a0.a77 - << ", " << a0.a78 << ", " << a0.a79 << ", " << a0.a80 << ", " - << a0.a81 << ", " << a0.a82 << ", " << a0.a83 << ", " << a0.a84 - << ", " << a0.a85 << ", " << a0.a86 << ", " << a0.a87 << ", " - << a0.a88 << ", " << a0.a89 << ", " << a0.a90 << ", " << a0.a91 - << ", " << a0.a92 << ", " << a0.a93 << ", " << a0.a94 << ", " - << a0.a95 << ", " << a0.a96 << ", " << a0.a97 << ", " << a0.a98 - << ", " << a0.a99 << ", " << a0.a100 << ", " << a0.a101 << ", " - << a0.a102 << ", " << a0.a103 << ", " << a0.a104 << ", " << a0.a105 - << ", " << a0.a106 << ", " << a0.a107 << ", " << a0.a108 << ", " - << a0.a109 << ", " << a0.a110 << ", " << a0.a111 << ", " << a0.a112 - << ", " << a0.a113 << ", " << a0.a114 << ", " << a0.a115 << ", " - << a0.a116 << ", " << a0.a117 << ", " << a0.a118 << ", " << a0.a119 - << ", " << a0.a120 << ", " << a0.a121 << ", " << a0.a122 << ", " - << a0.a123 << ", " << a0.a124 << ", " << a0.a125 << ", " << a0.a126 - << ", " << a0.a127 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct1024BytesHomogeneousUint64(" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " + << a0.a4 << ", " << a0.a5 << ", " << a0.a6 << ", " << a0.a7 << ", " + << a0.a8 << ", " << a0.a9 << ", " << a0.a10 << ", " << a0.a11 + << ", " << a0.a12 << ", " << a0.a13 << ", " << a0.a14 << ", " + << a0.a15 << ", " << a0.a16 << ", " << a0.a17 << ", " << a0.a18 + << ", " << a0.a19 << ", " << a0.a20 << ", " << a0.a21 << ", " + << a0.a22 << ", " << a0.a23 << ", " << a0.a24 << ", " << a0.a25 + << ", " << a0.a26 << ", " << a0.a27 << ", " << a0.a28 << ", " + << a0.a29 << ", " << a0.a30 << ", " << a0.a31 << ", " << a0.a32 + << ", " << a0.a33 << ", " << a0.a34 << ", " << a0.a35 << ", " + << a0.a36 << ", " << a0.a37 << ", " << a0.a38 << ", " << a0.a39 + << ", " << a0.a40 << ", " << a0.a41 << ", " << a0.a42 << ", " + << a0.a43 << ", " << a0.a44 << ", " << a0.a45 << ", " << a0.a46 + << ", " << a0.a47 << ", " << a0.a48 << ", " << a0.a49 << ", " + << a0.a50 << ", " << a0.a51 << ", " << a0.a52 << ", " << a0.a53 + << ", " << a0.a54 << ", " << a0.a55 << ", " << a0.a56 << ", " + << a0.a57 << ", " << a0.a58 << ", " << a0.a59 << ", " << a0.a60 + << ", " << a0.a61 << ", " << a0.a62 << ", " << a0.a63 << ", " + << a0.a64 << ", " << a0.a65 << ", " << a0.a66 << ", " << a0.a67 + << ", " << a0.a68 << ", " << a0.a69 << ", " << a0.a70 << ", " + << a0.a71 << ", " << a0.a72 << ", " << a0.a73 << ", " << a0.a74 + << ", " << a0.a75 << ", " << a0.a76 << ", " << a0.a77 << ", " + << a0.a78 << ", " << a0.a79 << ", " << a0.a80 << ", " << a0.a81 + << ", " << a0.a82 << ", " << a0.a83 << ", " << a0.a84 << ", " + << a0.a85 << ", " << a0.a86 << ", " << a0.a87 << ", " << a0.a88 + << ", " << a0.a89 << ", " << a0.a90 << ", " << a0.a91 << ", " + << a0.a92 << ", " << a0.a93 << ", " << a0.a94 << ", " << a0.a95 + << ", " << a0.a96 << ", " << a0.a97 << ", " << a0.a98 << ", " + << a0.a99 << ", " << a0.a100 << ", " << a0.a101 << ", " << a0.a102 + << ", " << a0.a103 << ", " << a0.a104 << ", " << a0.a105 << ", " + << a0.a106 << ", " << a0.a107 << ", " << a0.a108 << ", " << a0.a109 + << ", " << a0.a110 << ", " << a0.a111 << ", " << a0.a112 << ", " + << a0.a113 << ", " << a0.a114 << ", " << a0.a115 << ", " << a0.a116 + << ", " << a0.a117 << ", " << a0.a118 << ", " << a0.a119 << ", " + << a0.a120 << ", " << a0.a121 << ", " << a0.a122 << ", " << a0.a123 + << ", " << a0.a124 << ", " << a0.a125 << ", " << a0.a126 << ", " + << a0.a127 << "))" << ")\n"; f(a0); } @@ -18781,8 +18344,7 @@ DART_EXPORT void TestAsyncPassFloatStruct16BytesHomogeneousFloatFloatStruct1( << a3.a2 << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << "), " << a8 - << ")" - << ")\n"; + << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8); } @@ -18839,8 +18401,7 @@ DART_EXPORT void TestAsyncPassFloatStruct32BytesHomogeneousDoubleFloatStruct( << a3.a2 << ", " << a3.a3 << "), " << a4 << ", (" << a5.a0 << ", " << a5.a1 << ", " << a5.a2 << ", " << a5.a3 << "), " << a6 << ", (" << a7.a0 << ", " << a7.a1 << ", " << a7.a2 << ", " << a7.a3 << "), " << a8 - << ")" - << ")\n"; + << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8); } @@ -18892,8 +18453,7 @@ DART_EXPORT void TestAsyncPassInt8Struct16BytesMixedInt8Struct16BytesMixedIn( << static_cast(a2) << ", (" << a3.a0 << ", " << a3.a1 << "), " << static_cast(a4) << ", (" << a5.a0 << ", " << a5.a1 << "), " << static_cast(a6) << ", (" << a7.a0 << ", " << a7.a1 << "), " - << static_cast(a8) << ")" - << ")\n"; + << static_cast(a8) << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8); } @@ -18943,12 +18503,11 @@ DART_EXPORT void TestAsyncPassDoublex6Struct16BytesMixedx4Int32( a9.a1 = 14; a10 = -15; - std::cout << "Calling TestAsyncPassDoublex6Struct16BytesMixedx4Int32(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 + std::cout << "Calling TestAsyncPassDoublex6Struct16BytesMixedx4Int32(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " << a7.a1 << "), (" << a8.a0 << ", " << a8.a1 << "), (" - << a9.a0 << ", " << a9.a1 << "), " << a10 << ")" - << ")\n"; + << a9.a0 << ", " << a9.a1 << "), " << a10 << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); } @@ -18992,12 +18551,11 @@ DART_EXPORT void TestAsyncPassInt32x4Struct16BytesMixedx4Double( a7.a1 = 12; a8 = -13.0; - std::cout << "Calling TestAsyncPassInt32x4Struct16BytesMixedx4Double(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", (" - << a4.a0 << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 - << "), (" << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " - << a7.a1 << "), " << a8 << ")" - << ")\n"; + std::cout << "Calling TestAsyncPassInt32x4Struct16BytesMixedx4Double(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", (" << a4.a0 + << ", " << a4.a1 << "), (" << a5.a0 << ", " << a5.a1 << "), (" + << a6.a0 << ", " << a6.a1 << "), (" << a7.a0 << ", " << a7.a1 + << "), " << a8 << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8); } @@ -19028,8 +18586,7 @@ DART_EXPORT void TestAsyncPassStruct40BytesHomogeneousDoubleStruct4BytesHomo( << "Calling TestAsyncPassStruct40BytesHomogeneousDoubleStruct4BytesHomo(" << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 << ", " << a0.a4 << "), (" << a1.a0 << ", " << a1.a1 << "), (" << a2.a0 - << ", " << a2.a1 << "))" - << ")\n"; + << ", " << a2.a1 << "))" << ")\n"; f(a0, a1, a2); } @@ -19190,8 +18747,7 @@ DART_EXPORT void TestAsyncPassInt32x8Doublex8Int64Int8Struct1ByteIntInt64Int( << static_cast(a35) << ", (" << static_cast(a36.a0) << ", " << a36.a1 << ", " << static_cast(a36.a2) << "), " << a37 << ", " << static_cast(a38) << ", (" << static_cast(a39.a0) << ", " - << a39.a1 << ", " << static_cast(a39.a2) << "))" - << ")\n"; + << a39.a1 << ", " << static_cast(a39.a2) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31, @@ -19209,10 +18765,9 @@ DART_EXPORT void TestAsyncPassStructAlignmentInt16( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestAsyncPassStructAlignmentInt16(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStructAlignmentInt16(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " + << static_cast(a0.a2) << "))" << ")\n"; f(a0); } @@ -19228,10 +18783,9 @@ DART_EXPORT void TestAsyncPassStructAlignmentInt32( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestAsyncPassStructAlignmentInt32(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStructAlignmentInt32(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " + << static_cast(a0.a2) << "))" << ")\n"; f(a0); } @@ -19247,10 +18801,9 @@ DART_EXPORT void TestAsyncPassStructAlignmentInt64( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestAsyncPassStructAlignmentInt64(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " - << static_cast(a0.a2) << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStructAlignmentInt64(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " + << static_cast(a0.a2) << "))" << ")\n"; f(a0); } @@ -19322,22 +18875,21 @@ DART_EXPORT void TestAsyncPassStruct8BytesNestedIntx10( a9.a1.a0 = -39; a9.a1.a1 = 40; - std::cout << "Calling TestAsyncPassStruct8BytesNestedIntx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ", " << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 - << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")), ((" << a2.a0.a0 - << ", " << a2.a0.a1 << "), (" << a2.a1.a0 << ", " << a2.a1.a1 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 - << ", " << a3.a1.a1 << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 - << "), (" << a4.a1.a0 << ", " << a4.a1.a1 << ")), ((" << a5.a0.a0 - << ", " << a5.a0.a1 << "), (" << a5.a1.a0 << ", " << a5.a1.a1 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 - << ", " << a6.a1.a1 << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 - << "), (" << a7.a1.a0 << ", " << a7.a1.a1 << ")), ((" << a8.a0.a0 - << ", " << a8.a0.a1 << "), (" << a8.a1.a0 << ", " << a8.a1.a1 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 - << ", " << a9.a1.a1 << ")))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct8BytesNestedIntx10(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 << ", " + << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" + << a1.a1.a0 << ", " << a1.a1.a1 << ")), ((" << a2.a0.a0 << ", " + << a2.a0.a1 << "), (" << a2.a1.a0 << ", " << a2.a1.a1 << ")), ((" + << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 << ", " + << a3.a1.a1 << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << "), (" + << a4.a1.a0 << ", " << a4.a1.a1 << ")), ((" << a5.a0.a0 << ", " + << a5.a0.a1 << "), (" << a5.a1.a0 << ", " << a5.a1.a1 << ")), ((" + << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 << ", " + << a6.a1.a1 << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << "), (" + << a7.a1.a0 << ", " << a7.a1.a1 << ")), ((" << a8.a0.a0 << ", " + << a8.a0.a1 << "), (" << a8.a1.a0 << ", " << a8.a1.a1 << ")), ((" + << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 << ", " + << a9.a1.a1 << ")))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -19389,16 +18941,15 @@ DART_EXPORT void TestAsyncPassStruct8BytesNestedFloatx10( a9.a0.a0 = -19.0; a9.a1.a0 = 20.0; - std::cout << "Calling TestAsyncPassStruct8BytesNestedFloatx10(" - << "(((" << a0.a0.a0 << "), (" << a0.a1.a0 << ")), ((" << a1.a0.a0 - << "), (" << a1.a1.a0 << ")), ((" << a2.a0.a0 << "), (" << a2.a1.a0 + std::cout << "Calling TestAsyncPassStruct8BytesNestedFloatx10(" << "(((" + << a0.a0.a0 << "), (" << a0.a1.a0 << ")), ((" << a1.a0.a0 << "), (" + << a1.a1.a0 << ")), ((" << a2.a0.a0 << "), (" << a2.a1.a0 << ")), ((" << a3.a0.a0 << "), (" << a3.a1.a0 << ")), ((" << a4.a0.a0 << "), (" << a4.a1.a0 << ")), ((" << a5.a0.a0 << "), (" << a5.a1.a0 << ")), ((" << a6.a0.a0 << "), (" << a6.a1.a0 << ")), ((" << a7.a0.a0 << "), (" << a7.a1.a0 << ")), ((" << a8.a0.a0 << "), (" << a8.a1.a0 << ")), ((" << a9.a0.a0 << "), (" - << a9.a1.a0 << ")))" - << ")\n"; + << a9.a1.a0 << ")))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -19452,15 +19003,14 @@ DART_EXPORT void TestAsyncPassStruct8BytesNestedFloat2x10( a9.a0.a0 = -19.0; a9.a1 = 20.0; - std::cout << "Calling TestAsyncPassStruct8BytesNestedFloat2x10(" - << "(((" << a0.a0.a0 << "), " << a0.a1 << "), ((" << a1.a0.a0 - << "), " << a1.a1 << "), ((" << a2.a0.a0 << "), " << a2.a1 - << "), ((" << a3.a0.a0 << "), " << a3.a1 << "), ((" << a4.a0.a0 - << "), " << a4.a1 << "), ((" << a5.a0.a0 << "), " << a5.a1 - << "), ((" << a6.a0.a0 << "), " << a6.a1 << "), ((" << a7.a0.a0 - << "), " << a7.a1 << "), ((" << a8.a0.a0 << "), " << a8.a1 - << "), ((" << a9.a0.a0 << "), " << a9.a1 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct8BytesNestedFloat2x10(" << "(((" + << a0.a0.a0 << "), " << a0.a1 << "), ((" << a1.a0.a0 << "), " + << a1.a1 << "), ((" << a2.a0.a0 << "), " << a2.a1 << "), ((" + << a3.a0.a0 << "), " << a3.a1 << "), ((" << a4.a0.a0 << "), " + << a4.a1 << "), ((" << a5.a0.a0 << "), " << a5.a1 << "), ((" + << a6.a0.a0 << "), " << a6.a1 << "), ((" << a7.a0.a0 << "), " + << a7.a1 << "), ((" << a8.a0.a0 << "), " << a8.a1 << "), ((" + << a9.a0.a0 << "), " << a9.a1 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -19522,18 +19072,17 @@ DART_EXPORT void TestAsyncPassStruct8BytesNestedMixedx10( a9.a0.a1 = -29; a9.a1.a0 = 30.0; - std::cout << "Calling TestAsyncPassStruct8BytesNestedMixedx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 - << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << "), (" << a2.a1.a0 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 - << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 - << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << "), (" << a5.a1.a0 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 - << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 - << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << "), (" << a8.a1.a0 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 - << ")))" + std::cout << "Calling TestAsyncPassStruct8BytesNestedMixedx10(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 << ")), ((" + << a1.a0.a0 << ", " << a1.a0.a1 << "), (" << a1.a1.a0 << ")), ((" + << a2.a0.a0 << ", " << a2.a0.a1 << "), (" << a2.a1.a0 << ")), ((" + << a3.a0.a0 << ", " << a3.a0.a1 << "), (" << a3.a1.a0 << ")), ((" + << a4.a0.a0 << ", " << a4.a0.a1 << "), (" << a4.a1.a0 << ")), ((" + << a5.a0.a0 << ", " << a5.a0.a1 << "), (" << a5.a1.a0 << ")), ((" + << a6.a0.a0 << ", " << a6.a0.a1 << "), (" << a6.a1.a0 << ")), ((" + << a7.a0.a0 << ", " << a7.a0.a1 << "), (" << a7.a1.a0 << ")), ((" + << a8.a0.a0 << ", " << a8.a0.a1 << "), (" << a8.a1.a0 << ")), ((" + << a9.a0.a0 << ", " << a9.a0.a1 << "), (" << a9.a1.a0 << ")))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -19564,15 +19113,14 @@ DART_EXPORT void TestAsyncPassStruct16BytesNestedIntx2( a1.a1.a1.a0 = -15; a1.a1.a1.a1 = 16; - std::cout << "Calling TestAsyncPassStruct16BytesNestedIntx2(" - << "((((" << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" - << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 - << ", " << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " - << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 - << "), (" << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" - << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 - << ", " << a1.a1.a1.a1 << "))))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct16BytesNestedIntx2(" << "((((" + << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" << a0.a0.a1.a0 + << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 << ", " + << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " << a0.a1.a1.a1 + << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 << "), (" + << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" << a1.a1.a0.a0 + << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ", " + << a1.a1.a1.a1 << "))))" << ")\n"; f(a0, a1); } @@ -19618,8 +19166,8 @@ DART_EXPORT void TestAsyncPassStruct32BytesNestedIntx2( a1.a1.a1.a1.a0 = -31; a1.a1.a1.a1.a1 = 32; - std::cout << "Calling TestAsyncPassStruct32BytesNestedIntx2(" - << "(((((" << a0.a0.a0.a0.a0 << ", " << a0.a0.a0.a0.a1 << "), (" + std::cout << "Calling TestAsyncPassStruct32BytesNestedIntx2(" << "(((((" + << a0.a0.a0.a0.a0 << ", " << a0.a0.a0.a0.a1 << "), (" << a0.a0.a0.a1.a0 << ", " << a0.a0.a0.a1.a1 << ")), ((" << a0.a0.a1.a0.a0 << ", " << a0.a0.a1.a0.a1 << "), (" << a0.a0.a1.a1.a0 << ", " << a0.a0.a1.a1.a1 << "))), (((" @@ -19634,8 +19182,7 @@ DART_EXPORT void TestAsyncPassStruct32BytesNestedIntx2( << a1.a1.a0.a0.a0 << ", " << a1.a1.a0.a0.a1 << "), (" << a1.a1.a0.a1.a0 << ", " << a1.a1.a0.a1.a1 << ")), ((" << a1.a1.a1.a0.a0 << ", " << a1.a1.a1.a0.a1 << "), (" - << a1.a1.a1.a1.a0 << ", " << a1.a1.a1.a1.a1 << ")))))" - << ")\n"; + << a1.a1.a1.a1.a0 << ", " << a1.a1.a1.a1.a1 << ")))))" << ")\n"; f(a0, a1); } @@ -19658,8 +19205,7 @@ DART_EXPORT void TestAsyncPassStructNestedIntStructAlignmentInt16( << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << ")\n"; + << static_cast(a0.a1.a2) << ")))" << ")\n"; f(a0); } @@ -19682,8 +19228,7 @@ DART_EXPORT void TestAsyncPassStructNestedIntStructAlignmentInt32( << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << ")\n"; + << static_cast(a0.a1.a2) << ")))" << ")\n"; f(a0); } @@ -19706,8 +19251,7 @@ DART_EXPORT void TestAsyncPassStructNestedIntStructAlignmentInt64( << "(((" << static_cast(a0.a0.a0) << ", " << a0.a0.a1 << ", " << static_cast(a0.a0.a2) << "), (" << static_cast(a0.a1.a0) << ", " << a0.a1.a1 << ", " - << static_cast(a0.a1.a2) << ")))" - << ")\n"; + << static_cast(a0.a1.a2) << ")))" << ")\n"; f(a0); } @@ -19863,9 +19407,9 @@ DART_EXPORT void TestAsyncPassStructNestedIrregularEvenBiggerx4( a3.a3 = 136.0; std::cout - << "Calling TestAsyncPassStructNestedIrregularEvenBiggerx4(" - << "((" << a0.a0 << ", ((" << a0.a1.a0.a0 << ", ((" << a0.a1.a0.a1.a0.a0 - << ", " << a0.a1.a0.a1.a0.a1 << "), (" << a0.a1.a0.a1.a1.a0 << ")), " + << "Calling TestAsyncPassStructNestedIrregularEvenBiggerx4(" << "((" + << a0.a0 << ", ((" << a0.a1.a0.a0 << ", ((" << a0.a1.a0.a1.a0.a0 << ", " + << a0.a1.a0.a1.a0.a1 << "), (" << a0.a1.a0.a1.a1.a0 << ")), " << a0.a1.a0.a2 << ", ((" << a0.a1.a0.a3.a0.a0 << "), " << a0.a1.a0.a3.a1 << "), " << a0.a1.a0.a4 << ", ((" << a0.a1.a0.a5.a0.a0 << "), (" << a0.a1.a0.a5.a1.a0 << ")), " << a0.a1.a0.a6 << "), ((" << a0.a1.a1.a0.a0 @@ -19917,8 +19461,7 @@ DART_EXPORT void TestAsyncPassStructNestedIrregularEvenBiggerx4( << "), " << a3.a2.a0.a4 << ", ((" << a3.a2.a0.a5.a0.a0 << "), (" << a3.a2.a0.a5.a1.a0 << ")), " << a3.a2.a0.a6 << "), ((" << a3.a2.a1.a0.a0 << ", " << a3.a2.a1.a0.a1 << "), (" << a3.a2.a1.a1.a0 << ")), " - << a3.a2.a2 << ", " << a3.a2.a3 << "), " << a3.a3 << "))" - << ")\n"; + << a3.a2.a2 << ", " << a3.a2.a3 << "), " << a3.a3 << "))" << ")\n"; f(a0, a1, a2, a3); } @@ -19969,31 +19512,29 @@ DART_EXPORT void TestAsyncPassStruct8BytesInlineArrayIntx4( a3.a0[6] = 31; a3.a0[7] = 32; - std::cout << "Calling TestAsyncPassStruct8BytesInlineArrayIntx4(" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << "]), ([" - << static_cast(a1.a0[0]) << ", " << static_cast(a1.a0[1]) - << ", " << static_cast(a1.a0[2]) << ", " - << static_cast(a1.a0[3]) << ", " << static_cast(a1.a0[4]) - << ", " << static_cast(a1.a0[5]) << ", " - << static_cast(a1.a0[6]) << ", " << static_cast(a1.a0[7]) - << "]), ([" << static_cast(a2.a0[0]) << ", " - << static_cast(a2.a0[1]) << ", " << static_cast(a2.a0[2]) - << ", " << static_cast(a2.a0[3]) << ", " - << static_cast(a2.a0[4]) << ", " << static_cast(a2.a0[5]) - << ", " << static_cast(a2.a0[6]) << ", " - << static_cast(a2.a0[7]) << "]), ([" - << static_cast(a3.a0[0]) << ", " << static_cast(a3.a0[1]) - << ", " << static_cast(a3.a0[2]) << ", " - << static_cast(a3.a0[3]) << ", " << static_cast(a3.a0[4]) - << ", " << static_cast(a3.a0[5]) << ", " - << static_cast(a3.a0[6]) << ", " << static_cast(a3.a0[7]) - << "]))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct8BytesInlineArrayIntx4(" << "(([" + << static_cast(a0.a0[0]) << ", " << static_cast(a0.a0[1]) + << ", " << static_cast(a0.a0[2]) << ", " + << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) + << ", " << static_cast(a0.a0[5]) << ", " + << static_cast(a0.a0[6]) << ", " << static_cast(a0.a0[7]) + << "]), ([" << static_cast(a1.a0[0]) << ", " + << static_cast(a1.a0[1]) << ", " << static_cast(a1.a0[2]) + << ", " << static_cast(a1.a0[3]) << ", " + << static_cast(a1.a0[4]) << ", " << static_cast(a1.a0[5]) + << ", " << static_cast(a1.a0[6]) << ", " + << static_cast(a1.a0[7]) << "]), ([" + << static_cast(a2.a0[0]) << ", " << static_cast(a2.a0[1]) + << ", " << static_cast(a2.a0[2]) << ", " + << static_cast(a2.a0[3]) << ", " << static_cast(a2.a0[4]) + << ", " << static_cast(a2.a0[5]) << ", " + << static_cast(a2.a0[6]) << ", " << static_cast(a2.a0[7]) + << "]), ([" << static_cast(a3.a0[0]) << ", " + << static_cast(a3.a0[1]) << ", " << static_cast(a3.a0[2]) + << ", " << static_cast(a3.a0[3]) << ", " + << static_cast(a3.a0[4]) << ", " << static_cast(a3.a0[5]) + << ", " << static_cast(a3.a0[6]) << ", " + << static_cast(a3.a0[7]) << "]))" << ")\n"; f(a0, a1, a2, a3); } @@ -20032,20 +19573,19 @@ DART_EXPORT void TestAsyncPassStructInlineArrayIrregularx4( a3.a0[1].a1 = -19; a3.a1 = 20; - std::cout << "Calling TestAsyncPassStructInlineArrayIrregularx4(" - << "(([(" << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) - << "), (" << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) - << ")], " << static_cast(a0.a1) << "), ([(" << a1.a0[0].a0 - << ", " << static_cast(a1.a0[0].a1) << "), (" << a1.a0[1].a0 - << ", " << static_cast(a1.a0[1].a1) << ")], " + std::cout << "Calling TestAsyncPassStructInlineArrayIrregularx4(" << "(([(" + << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) << "), (" + << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) << ")], " + << static_cast(a0.a1) << "), ([(" << a1.a0[0].a0 << ", " + << static_cast(a1.a0[0].a1) << "), (" << a1.a0[1].a0 << ", " + << static_cast(a1.a0[1].a1) << ")], " << static_cast(a1.a1) << "), ([(" << a2.a0[0].a0 << ", " << static_cast(a2.a0[0].a1) << "), (" << a2.a0[1].a0 << ", " << static_cast(a2.a0[1].a1) << ")], " << static_cast(a2.a1) << "), ([(" << a3.a0[0].a0 << ", " << static_cast(a3.a0[0].a1) << "), (" << a3.a0[1].a0 << ", " << static_cast(a3.a0[1].a1) << ")], " - << static_cast(a3.a1) << "))" - << ")\n"; + << static_cast(a3.a1) << "))" << ")\n"; f(a0, a1, a2, a3); } @@ -20159,75 +19699,74 @@ DART_EXPORT void TestAsyncPassStructInlineArray100Bytes( a0.a0[99] = 100; std::cout - << "Calling TestAsyncPassStructInlineArray100Bytes(" - << "(([" << static_cast(a0.a0[0]) << ", " - << static_cast(a0.a0[1]) << ", " << static_cast(a0.a0[2]) - << ", " << static_cast(a0.a0[3]) << ", " - << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) - << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << ", " << static_cast(a0.a0[8]) - << ", " << static_cast(a0.a0[9]) << ", " - << static_cast(a0.a0[10]) << ", " << static_cast(a0.a0[11]) - << ", " << static_cast(a0.a0[12]) << ", " - << static_cast(a0.a0[13]) << ", " << static_cast(a0.a0[14]) - << ", " << static_cast(a0.a0[15]) << ", " - << static_cast(a0.a0[16]) << ", " << static_cast(a0.a0[17]) - << ", " << static_cast(a0.a0[18]) << ", " - << static_cast(a0.a0[19]) << ", " << static_cast(a0.a0[20]) - << ", " << static_cast(a0.a0[21]) << ", " - << static_cast(a0.a0[22]) << ", " << static_cast(a0.a0[23]) - << ", " << static_cast(a0.a0[24]) << ", " - << static_cast(a0.a0[25]) << ", " << static_cast(a0.a0[26]) - << ", " << static_cast(a0.a0[27]) << ", " - << static_cast(a0.a0[28]) << ", " << static_cast(a0.a0[29]) - << ", " << static_cast(a0.a0[30]) << ", " - << static_cast(a0.a0[31]) << ", " << static_cast(a0.a0[32]) - << ", " << static_cast(a0.a0[33]) << ", " - << static_cast(a0.a0[34]) << ", " << static_cast(a0.a0[35]) - << ", " << static_cast(a0.a0[36]) << ", " - << static_cast(a0.a0[37]) << ", " << static_cast(a0.a0[38]) - << ", " << static_cast(a0.a0[39]) << ", " - << static_cast(a0.a0[40]) << ", " << static_cast(a0.a0[41]) - << ", " << static_cast(a0.a0[42]) << ", " - << static_cast(a0.a0[43]) << ", " << static_cast(a0.a0[44]) - << ", " << static_cast(a0.a0[45]) << ", " - << static_cast(a0.a0[46]) << ", " << static_cast(a0.a0[47]) - << ", " << static_cast(a0.a0[48]) << ", " - << static_cast(a0.a0[49]) << ", " << static_cast(a0.a0[50]) - << ", " << static_cast(a0.a0[51]) << ", " - << static_cast(a0.a0[52]) << ", " << static_cast(a0.a0[53]) - << ", " << static_cast(a0.a0[54]) << ", " - << static_cast(a0.a0[55]) << ", " << static_cast(a0.a0[56]) - << ", " << static_cast(a0.a0[57]) << ", " - << static_cast(a0.a0[58]) << ", " << static_cast(a0.a0[59]) - << ", " << static_cast(a0.a0[60]) << ", " - << static_cast(a0.a0[61]) << ", " << static_cast(a0.a0[62]) - << ", " << static_cast(a0.a0[63]) << ", " - << static_cast(a0.a0[64]) << ", " << static_cast(a0.a0[65]) - << ", " << static_cast(a0.a0[66]) << ", " - << static_cast(a0.a0[67]) << ", " << static_cast(a0.a0[68]) - << ", " << static_cast(a0.a0[69]) << ", " - << static_cast(a0.a0[70]) << ", " << static_cast(a0.a0[71]) - << ", " << static_cast(a0.a0[72]) << ", " - << static_cast(a0.a0[73]) << ", " << static_cast(a0.a0[74]) - << ", " << static_cast(a0.a0[75]) << ", " - << static_cast(a0.a0[76]) << ", " << static_cast(a0.a0[77]) - << ", " << static_cast(a0.a0[78]) << ", " - << static_cast(a0.a0[79]) << ", " << static_cast(a0.a0[80]) - << ", " << static_cast(a0.a0[81]) << ", " - << static_cast(a0.a0[82]) << ", " << static_cast(a0.a0[83]) - << ", " << static_cast(a0.a0[84]) << ", " - << static_cast(a0.a0[85]) << ", " << static_cast(a0.a0[86]) - << ", " << static_cast(a0.a0[87]) << ", " - << static_cast(a0.a0[88]) << ", " << static_cast(a0.a0[89]) - << ", " << static_cast(a0.a0[90]) << ", " - << static_cast(a0.a0[91]) << ", " << static_cast(a0.a0[92]) - << ", " << static_cast(a0.a0[93]) << ", " - << static_cast(a0.a0[94]) << ", " << static_cast(a0.a0[95]) - << ", " << static_cast(a0.a0[96]) << ", " - << static_cast(a0.a0[97]) << ", " << static_cast(a0.a0[98]) - << ", " << static_cast(a0.a0[99]) << "]))" - << ")\n"; + << "Calling TestAsyncPassStructInlineArray100Bytes(" << "(([" + << static_cast(a0.a0[0]) << ", " << static_cast(a0.a0[1]) + << ", " << static_cast(a0.a0[2]) << ", " + << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) + << ", " << static_cast(a0.a0[5]) << ", " + << static_cast(a0.a0[6]) << ", " << static_cast(a0.a0[7]) + << ", " << static_cast(a0.a0[8]) << ", " + << static_cast(a0.a0[9]) << ", " << static_cast(a0.a0[10]) + << ", " << static_cast(a0.a0[11]) << ", " + << static_cast(a0.a0[12]) << ", " << static_cast(a0.a0[13]) + << ", " << static_cast(a0.a0[14]) << ", " + << static_cast(a0.a0[15]) << ", " << static_cast(a0.a0[16]) + << ", " << static_cast(a0.a0[17]) << ", " + << static_cast(a0.a0[18]) << ", " << static_cast(a0.a0[19]) + << ", " << static_cast(a0.a0[20]) << ", " + << static_cast(a0.a0[21]) << ", " << static_cast(a0.a0[22]) + << ", " << static_cast(a0.a0[23]) << ", " + << static_cast(a0.a0[24]) << ", " << static_cast(a0.a0[25]) + << ", " << static_cast(a0.a0[26]) << ", " + << static_cast(a0.a0[27]) << ", " << static_cast(a0.a0[28]) + << ", " << static_cast(a0.a0[29]) << ", " + << static_cast(a0.a0[30]) << ", " << static_cast(a0.a0[31]) + << ", " << static_cast(a0.a0[32]) << ", " + << static_cast(a0.a0[33]) << ", " << static_cast(a0.a0[34]) + << ", " << static_cast(a0.a0[35]) << ", " + << static_cast(a0.a0[36]) << ", " << static_cast(a0.a0[37]) + << ", " << static_cast(a0.a0[38]) << ", " + << static_cast(a0.a0[39]) << ", " << static_cast(a0.a0[40]) + << ", " << static_cast(a0.a0[41]) << ", " + << static_cast(a0.a0[42]) << ", " << static_cast(a0.a0[43]) + << ", " << static_cast(a0.a0[44]) << ", " + << static_cast(a0.a0[45]) << ", " << static_cast(a0.a0[46]) + << ", " << static_cast(a0.a0[47]) << ", " + << static_cast(a0.a0[48]) << ", " << static_cast(a0.a0[49]) + << ", " << static_cast(a0.a0[50]) << ", " + << static_cast(a0.a0[51]) << ", " << static_cast(a0.a0[52]) + << ", " << static_cast(a0.a0[53]) << ", " + << static_cast(a0.a0[54]) << ", " << static_cast(a0.a0[55]) + << ", " << static_cast(a0.a0[56]) << ", " + << static_cast(a0.a0[57]) << ", " << static_cast(a0.a0[58]) + << ", " << static_cast(a0.a0[59]) << ", " + << static_cast(a0.a0[60]) << ", " << static_cast(a0.a0[61]) + << ", " << static_cast(a0.a0[62]) << ", " + << static_cast(a0.a0[63]) << ", " << static_cast(a0.a0[64]) + << ", " << static_cast(a0.a0[65]) << ", " + << static_cast(a0.a0[66]) << ", " << static_cast(a0.a0[67]) + << ", " << static_cast(a0.a0[68]) << ", " + << static_cast(a0.a0[69]) << ", " << static_cast(a0.a0[70]) + << ", " << static_cast(a0.a0[71]) << ", " + << static_cast(a0.a0[72]) << ", " << static_cast(a0.a0[73]) + << ", " << static_cast(a0.a0[74]) << ", " + << static_cast(a0.a0[75]) << ", " << static_cast(a0.a0[76]) + << ", " << static_cast(a0.a0[77]) << ", " + << static_cast(a0.a0[78]) << ", " << static_cast(a0.a0[79]) + << ", " << static_cast(a0.a0[80]) << ", " + << static_cast(a0.a0[81]) << ", " << static_cast(a0.a0[82]) + << ", " << static_cast(a0.a0[83]) << ", " + << static_cast(a0.a0[84]) << ", " << static_cast(a0.a0[85]) + << ", " << static_cast(a0.a0[86]) << ", " + << static_cast(a0.a0[87]) << ", " << static_cast(a0.a0[88]) + << ", " << static_cast(a0.a0[89]) << ", " + << static_cast(a0.a0[90]) << ", " << static_cast(a0.a0[91]) + << ", " << static_cast(a0.a0[92]) << ", " + << static_cast(a0.a0[93]) << ", " << static_cast(a0.a0[94]) + << ", " << static_cast(a0.a0[95]) << ", " + << static_cast(a0.a0[96]) << ", " << static_cast(a0.a0[97]) + << ", " << static_cast(a0.a0[98]) << ", " + << static_cast(a0.a0[99]) << "]))" << ")\n"; f(a0); } @@ -20277,8 +19816,7 @@ DART_EXPORT void TestAsyncPassStructStruct16BytesHomogeneousFloat2x5( << a2.a1[1].a0 << ")], " << a2.a2 << "), ((" << a3.a0.a0 << "), [(" << a3.a1[0].a0 << "), (" << a3.a1[1].a0 << ")], " << a3.a2 << "), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << "), (" - << a4.a1[1].a0 << ")], " << a4.a2 << "))" - << ")\n"; + << a4.a1[1].a0 << ")], " << a4.a2 << "))" << ")\n"; f(a0, a1, a2, a3, a4); } @@ -20328,8 +19866,7 @@ DART_EXPORT void TestAsyncPassStructStruct32BytesHomogeneousDouble2x5( << a2.a1[1].a0 << ")], " << a2.a2 << "), ((" << a3.a0.a0 << "), [(" << a3.a1[0].a0 << "), (" << a3.a1[1].a0 << ")], " << a3.a2 << "), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << "), (" - << a4.a1[1].a0 << ")], " << a4.a2 << "))" - << ")\n"; + << a4.a1[1].a0 << ")], " << a4.a2 << "))" << ")\n"; f(a0, a1, a2, a3, a4); } @@ -20423,31 +19960,30 @@ DART_EXPORT void TestAsyncPassStructStruct16BytesMixed3x10( a9.a2[0] = -59; a9.a2[1] = 60; - std::cout << "Calling TestAsyncPassStructStruct16BytesMixed3x10(" - << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " - << a0.a1[0].a1 << ", " << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " - << a0.a2[1] << "]), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 - << ", " << a1.a1[0].a1 << ", " << a1.a1[0].a2 << ")], [" << a1.a2[0] - << ", " << a1.a2[1] << "]), ((" << a2.a0.a0 << "), [(" - << a2.a1[0].a0 << ", " << a2.a1[0].a1 << ", " << a2.a1[0].a2 - << ")], [" << a2.a2[0] << ", " << a2.a2[1] << "]), ((" << a3.a0.a0 - << "), [(" << a3.a1[0].a0 << ", " << a3.a1[0].a1 << ", " - << a3.a1[0].a2 << ")], [" << a3.a2[0] << ", " << a3.a2[1] - << "]), ((" << a4.a0.a0 << "), [(" << a4.a1[0].a0 << ", " - << a4.a1[0].a1 << ", " << a4.a1[0].a2 << ")], [" << a4.a2[0] << ", " - << a4.a2[1] << "]), ((" << a5.a0.a0 << "), [(" << a5.a1[0].a0 - << ", " << a5.a1[0].a1 << ", " << a5.a1[0].a2 << ")], [" << a5.a2[0] - << ", " << a5.a2[1] << "]), ((" << a6.a0.a0 << "), [(" - << a6.a1[0].a0 << ", " << a6.a1[0].a1 << ", " << a6.a1[0].a2 - << ")], [" << a6.a2[0] << ", " << a6.a2[1] << "]), ((" << a7.a0.a0 - << "), [(" << a7.a1[0].a0 << ", " << a7.a1[0].a1 << ", " - << a7.a1[0].a2 << ")], [" << a7.a2[0] << ", " << a7.a2[1] - << "]), ((" << a8.a0.a0 << "), [(" << a8.a1[0].a0 << ", " - << a8.a1[0].a1 << ", " << a8.a1[0].a2 << ")], [" << a8.a2[0] << ", " - << a8.a2[1] << "]), ((" << a9.a0.a0 << "), [(" << a9.a1[0].a0 - << ", " << a9.a1[0].a1 << ", " << a9.a1[0].a2 << ")], [" << a9.a2[0] - << ", " << a9.a2[1] << "]))" - << ")\n"; + std::cout << "Calling TestAsyncPassStructStruct16BytesMixed3x10(" << "(((" + << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " << a0.a1[0].a1 << ", " + << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " << a0.a2[1] + << "]), ((" << a1.a0.a0 << "), [(" << a1.a1[0].a0 << ", " + << a1.a1[0].a1 << ", " << a1.a1[0].a2 << ")], [" << a1.a2[0] << ", " + << a1.a2[1] << "]), ((" << a2.a0.a0 << "), [(" << a2.a1[0].a0 + << ", " << a2.a1[0].a1 << ", " << a2.a1[0].a2 << ")], [" << a2.a2[0] + << ", " << a2.a2[1] << "]), ((" << a3.a0.a0 << "), [(" + << a3.a1[0].a0 << ", " << a3.a1[0].a1 << ", " << a3.a1[0].a2 + << ")], [" << a3.a2[0] << ", " << a3.a2[1] << "]), ((" << a4.a0.a0 + << "), [(" << a4.a1[0].a0 << ", " << a4.a1[0].a1 << ", " + << a4.a1[0].a2 << ")], [" << a4.a2[0] << ", " << a4.a2[1] + << "]), ((" << a5.a0.a0 << "), [(" << a5.a1[0].a0 << ", " + << a5.a1[0].a1 << ", " << a5.a1[0].a2 << ")], [" << a5.a2[0] << ", " + << a5.a2[1] << "]), ((" << a6.a0.a0 << "), [(" << a6.a1[0].a0 + << ", " << a6.a1[0].a1 << ", " << a6.a1[0].a2 << ")], [" << a6.a2[0] + << ", " << a6.a2[1] << "]), ((" << a7.a0.a0 << "), [(" + << a7.a1[0].a0 << ", " << a7.a1[0].a1 << ", " << a7.a1[0].a2 + << ")], [" << a7.a2[0] << ", " << a7.a2[1] << "]), ((" << a8.a0.a0 + << "), [(" << a8.a1[0].a0 << ", " << a8.a1[0].a1 << ", " + << a8.a1[0].a2 << ")], [" << a8.a2[0] << ", " << a8.a2[1] + << "]), ((" << a9.a0.a0 << "), [(" << a9.a1[0].a0 << ", " + << a9.a1[0].a1 << ", " << a9.a1[0].a2 << ")], [" << a9.a2[0] << ", " + << a9.a2[1] << "]))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -20575,8 +20111,7 @@ DART_EXPORT void TestAsyncPassUint8Struct32BytesInlineArrayMultiDimensionalI( << static_cast(a5.a0[1][0][1]) << "], [" << static_cast(a5.a0[1][1][0]) << ", " << static_cast(a5.a0[1][1][1]) << "]]]), " << static_cast(a6) - << ")" - << ")\n"; + << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6); } @@ -20606,8 +20141,7 @@ DART_EXPORT void TestAsyncPassUint8Struct4BytesInlineArrayMultiDimensionalIn( << static_cast(a1.a0[0][1].a0) << ")], [(" << static_cast(a1.a0[1][0].a0) << "), (" << static_cast(a1.a0[1][1].a0) << ")]]), " << static_cast(a2) - << ")" - << ")\n"; + << ")" << ")\n"; f(a0, a1, a2); } @@ -20658,8 +20192,8 @@ DART_EXPORT void TestAsyncPassStruct3BytesPackedIntx10( a9.a0 = -19; a9.a1 = 20; - std::cout << "Calling TestAsyncPassStruct3BytesPackedIntx10(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << "), (" + std::cout << "Calling TestAsyncPassStruct3BytesPackedIntx10(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << "), (" << static_cast(a1.a0) << ", " << a1.a1 << "), (" << static_cast(a2.a0) << ", " << a2.a1 << "), (" << static_cast(a3.a0) << ", " << a3.a1 << "), (" @@ -20668,8 +20202,7 @@ DART_EXPORT void TestAsyncPassStruct3BytesPackedIntx10( << static_cast(a6.a0) << ", " << a6.a1 << "), (" << static_cast(a7.a0) << ", " << a7.a1 << "), (" << static_cast(a8.a0) << ", " << a8.a1 << "), (" - << static_cast(a9.a0) << ", " << a9.a1 << "))" - << ")\n"; + << static_cast(a9.a0) << ", " << a9.a1 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -20750,8 +20283,8 @@ DART_EXPORT void TestAsyncPassStruct8BytesPackedIntx10( a9.a3 = 49; a9.a4 = 50; - std::cout << "Calling TestAsyncPassStruct8BytesPackedIntx10(" - << "((" << static_cast(a0.a0) << ", " << a0.a1 << ", " + std::cout << "Calling TestAsyncPassStruct8BytesPackedIntx10(" << "((" + << static_cast(a0.a0) << ", " << a0.a1 << ", " << static_cast(a0.a2) << ", " << static_cast(a0.a3) << ", " << static_cast(a0.a4) << "), (" << static_cast(a1.a0) << ", " << a1.a1 << ", " @@ -20780,8 +20313,7 @@ DART_EXPORT void TestAsyncPassStruct8BytesPackedIntx10( << ", " << static_cast(a8.a4) << "), (" << static_cast(a9.a0) << ", " << a9.a1 << ", " << static_cast(a9.a2) << ", " << static_cast(a9.a3) - << ", " << static_cast(a9.a4) << "))" - << ")\n"; + << ", " << static_cast(a9.a4) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -20853,8 +20385,7 @@ DART_EXPORT void TestAsyncPassStruct9BytesPackedMixedx10DoubleInt32x2( << static_cast(a7.a0) << ", " << a7.a1 << "), (" << static_cast(a8.a0) << ", " << a8.a1 << "), (" << static_cast(a9.a0) << ", " << a9.a1 << "), " << a10 << ", " - << a11 << ", " << a12 << ")" - << ")\n"; + << a11 << ", " << a12 << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); } @@ -20869,9 +20400,8 @@ DART_EXPORT void TestAsyncPassStruct5BytesPackedMixed( a0.a0 = -1.0; a0.a1 = 2; - std::cout << "Calling TestAsyncPassStruct5BytesPackedMixed(" - << "((" << a0.a0 << ", " << static_cast(a0.a1) << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassStruct5BytesPackedMixed(" << "((" << a0.a0 + << ", " << static_cast(a0.a1) << "))" << ")\n"; f(a0); } @@ -20890,8 +20420,7 @@ DART_EXPORT void TestAsyncPassStructNestedAlignmentStruct5BytesPackedMixed( std::cout << "Calling TestAsyncPassStructNestedAlignmentStruct5BytesPackedMixed(" << "((" << static_cast(a0.a0) << ", (" << a0.a1.a0 << ", " - << static_cast(a0.a1.a1) << ")))" - << ")\n"; + << static_cast(a0.a1.a1) << ")))" << ")\n"; f(a0); } @@ -20908,10 +20437,9 @@ DART_EXPORT void TestAsyncPassStruct6BytesInlineArrayInt( a0.a0[1].a0 = -3; a0.a0[1].a1 = 4; - std::cout << "Calling TestAsyncPassStruct6BytesInlineArrayInt(" - << "(([(" << static_cast(a0.a0[0].a0) << ", " << a0.a0[0].a1 - << "), (" << static_cast(a0.a0[1].a0) << ", " << a0.a0[1].a1 - << ")]))" + std::cout << "Calling TestAsyncPassStruct6BytesInlineArrayInt(" << "(([(" + << static_cast(a0.a0[0].a0) << ", " << a0.a0[0].a1 << "), (" + << static_cast(a0.a0[1].a0) << ", " << a0.a0[1].a1 << ")]))" << ")\n"; f(a0); @@ -20931,11 +20459,10 @@ DART_EXPORT void TestAsyncPassStruct15BytesInlineArrayMixed( a0.a0[2].a0 = -5.0; a0.a0[2].a1 = 6; - std::cout << "Calling TestAsyncPassStruct15BytesInlineArrayMixed(" - << "(([(" << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) - << "), (" << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) - << "), (" << a0.a0[2].a0 << ", " << static_cast(a0.a0[2].a1) - << ")]))" + std::cout << "Calling TestAsyncPassStruct15BytesInlineArrayMixed(" << "(([(" + << a0.a0[0].a0 << ", " << static_cast(a0.a0[0].a1) << "), (" + << a0.a0[1].a0 << ", " << static_cast(a0.a0[1].a1) << "), (" + << a0.a0[2].a0 << ", " << static_cast(a0.a0[2].a1) << ")]))" << ")\n"; f(a0); @@ -20977,11 +20504,10 @@ DART_EXPORT void TestAsyncPassUnion4BytesMixedx10( a8.a0 = 9; a9.a0 = 10; - std::cout << "Calling TestAsyncPassUnion4BytesMixedx10(" - << "((" << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" - << a3.a0 << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 - << "), (" << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassUnion4BytesMixedx10(" << "((" << a0.a0 + << "), (" << a1.a0 << "), (" << a2.a0 << "), (" << a3.a0 << "), (" + << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 << "), (" << a7.a0 + << "), (" << a8.a0 << "), (" << a9.a0 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -21022,11 +20548,10 @@ DART_EXPORT void TestAsyncPassUnion8BytesNestedFloatx10( a8.a0 = -9.0; a9.a0 = 10.0; - std::cout << "Calling TestAsyncPassUnion8BytesNestedFloatx10(" - << "((" << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" - << a3.a0 << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 - << "), (" << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassUnion8BytesNestedFloatx10(" << "((" + << a0.a0 << "), (" << a1.a0 << "), (" << a2.a0 << "), (" << a3.a0 + << "), (" << a4.a0 << "), (" << a5.a0 << "), (" << a6.a0 << "), (" + << a7.a0 << "), (" << a8.a0 << "), (" << a9.a0 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -21087,18 +20612,17 @@ DART_EXPORT void TestAsyncPassUnion9BytesNestedIntx10( a9.a0.a1 = -29; a9.a0.a2 = 30; - std::cout << "Calling TestAsyncPassUnion9BytesNestedIntx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << ", " << a0.a0.a2 - << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << ", " << a1.a0.a2 - << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << ", " << a2.a0.a2 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << ", " << a3.a0.a2 - << ")), ((" << a4.a0.a0 << ", " << a4.a0.a1 << ", " << a4.a0.a2 - << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << ", " << a5.a0.a2 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << ", " << a6.a0.a2 - << ")), ((" << a7.a0.a0 << ", " << a7.a0.a1 << ", " << a7.a0.a2 - << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << ", " << a8.a0.a2 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << ", " << a9.a0.a2 - << ")))" + std::cout << "Calling TestAsyncPassUnion9BytesNestedIntx10(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << ", " << a0.a0.a2 << ")), ((" + << a1.a0.a0 << ", " << a1.a0.a1 << ", " << a1.a0.a2 << ")), ((" + << a2.a0.a0 << ", " << a2.a0.a1 << ", " << a2.a0.a2 << ")), ((" + << a3.a0.a0 << ", " << a3.a0.a1 << ", " << a3.a0.a2 << ")), ((" + << a4.a0.a0 << ", " << a4.a0.a1 << ", " << a4.a0.a2 << ")), ((" + << a5.a0.a0 << ", " << a5.a0.a1 << ", " << a5.a0.a2 << ")), ((" + << a6.a0.a0 << ", " << a6.a0.a1 << ", " << a6.a0.a2 << ")), ((" + << a7.a0.a0 << ", " << a7.a0.a1 << ", " << a7.a0.a2 << ")), ((" + << a8.a0.a0 << ", " << a8.a0.a1 << ", " << a8.a0.a2 << ")), ((" + << a9.a0.a0 << ", " << a9.a0.a1 << ", " << a9.a0.a2 << ")))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); @@ -21184,8 +20708,7 @@ DART_EXPORT void TestAsyncPassUnion16BytesNestedInlineArrayFloatx10( << a7.a0[2] << ", " << a7.a0[3] << "]), ([" << a8.a0[0] << ", " << a8.a0[1] << ", " << a8.a0[2] << ", " << a8.a0[3] << "]), ([" << a9.a0[0] << ", " << a9.a0[1] << ", " << a9.a0[2] << ", " - << a9.a0[3] << "]))" - << ")\n"; + << a9.a0[3] << "]))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -21236,15 +20759,14 @@ DART_EXPORT void TestAsyncPassUnion16BytesNestedFloatx10( a9.a0.a0 = -19.0; a9.a0.a1 = 20.0; - std::cout << "Calling TestAsyncPassUnion16BytesNestedFloatx10(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << ")), ((" << a1.a0.a0 - << ", " << a1.a0.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 - << ")), ((" << a3.a0.a0 << ", " << a3.a0.a1 << ")), ((" << a4.a0.a0 - << ", " << a4.a0.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 - << ")), ((" << a6.a0.a0 << ", " << a6.a0.a1 << ")), ((" << a7.a0.a0 - << ", " << a7.a0.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 - << ")), ((" << a9.a0.a0 << ", " << a9.a0.a1 << ")))" - << ")\n"; + std::cout << "Calling TestAsyncPassUnion16BytesNestedFloatx10(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << ")), ((" << a1.a0.a0 << ", " + << a1.a0.a1 << ")), ((" << a2.a0.a0 << ", " << a2.a0.a1 << ")), ((" + << a3.a0.a0 << ", " << a3.a0.a1 << ")), ((" << a4.a0.a0 << ", " + << a4.a0.a1 << ")), ((" << a5.a0.a0 << ", " << a5.a0.a1 << ")), ((" + << a6.a0.a0 << ", " << a6.a0.a1 << ")), ((" << a7.a0.a0 << ", " + << a7.a0.a1 << ")), ((" << a8.a0.a0 << ", " << a8.a0.a1 << ")), ((" + << a9.a0.a0 << ", " << a9.a0.a1 << ")))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); } @@ -21309,8 +20831,7 @@ DART_EXPORT void TestAsyncPassUint8Boolx9Struct10BytesHomogeneousBoolBool( << ", " << a9 << ", (" << a10.a0 << ", " << a10.a1 << ", " << a10.a2 << ", " << a10.a3 << ", " << a10.a4 << ", " << a10.a5 << ", " << a10.a6 << ", " << a10.a7 << ", " << a10.a8 << ", " << a10.a9 << "), " << a11 - << ")" - << ")\n"; + << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); } @@ -21375,8 +20896,7 @@ DART_EXPORT void TestAsyncPassUint8Boolx9Struct10BytesInlineArrayBoolBool( << ", " << a9 << ", ([" << a10.a0[0] << ", " << a10.a0[1] << ", " << a10.a0[2] << ", " << a10.a0[3] << ", " << a10.a0[4] << ", " << a10.a0[5] << ", " << a10.a0[6] << ", " << a10.a0[7] << ", " - << a10.a0[8] << ", " << a10.a0[9] << "]), " << a11 << ")" - << ")\n"; + << a10.a0[8] << ", " << a10.a0[9] << "]), " << a11 << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); } @@ -21392,9 +20912,8 @@ DART_EXPORT void TestAsyncPassUint8Struct1ByteBool( a0 = 1; a1.a0 = false; - std::cout << "Calling TestAsyncPassUint8Struct1ByteBool(" - << "(" << static_cast(a0) << ", (" << a1.a0 << "))" - << ")\n"; + std::cout << "Calling TestAsyncPassUint8Struct1ByteBool(" << "(" + << static_cast(a0) << ", (" << a1.a0 << "))" << ")\n"; f(a0, a1); } @@ -21434,11 +20953,14 @@ DART_EXPORT void TestAsyncPassWCharStructInlineArrayIntUintPtrx2LongUnsigned( std::cout << "Calling TestAsyncPassWCharStructInlineArrayIntUintPtrx2LongUnsigned(" - << "(" << a0 << ", ([" << a1.a0[0] << ", " << a1.a0[1] << ", " << a1.a0[2] - << ", " << a1.a0[3] << ", " << a1.a0[4] << ", " << a1.a0[5] << ", " - << a1.a0[6] << ", " << a1.a0[7] << ", " << a1.a0[8] << ", " << a1.a0[9] - << "]), " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ")" - << ")\n"; + << "(" << static_cast(a0) << ", ([" << static_cast(a1.a0[0]) + << ", " << static_cast(a1.a0[1]) << ", " + << static_cast(a1.a0[2]) << ", " << static_cast(a1.a0[3]) + << ", " << static_cast(a1.a0[4]) << ", " + << static_cast(a1.a0[5]) << ", " << static_cast(a1.a0[6]) + << ", " << static_cast(a1.a0[7]) << ", " + << static_cast(a1.a0[8]) << ", " << static_cast(a1.a0[9]) + << "]), " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5); } @@ -21478,8 +21000,7 @@ DART_EXPORT void TestAsyncPassInt64x7Struct12BytesHomogeneousInt32( std::cout << "Calling TestAsyncPassInt64x7Struct12BytesHomogeneousInt32(" << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "))" - << ")\n"; + << ", " << a7.a2 << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7); } @@ -21526,8 +21047,8 @@ DART_EXPORT void TestAsyncPassPointerStructInlineArrayVariable( a0->a1[8] = 10; a0->a1[9] = 11; - std::cout << "Calling TestAsyncPassPointerStructInlineArrayVariable(" - << "((" << a0->a0 << ", [" << static_cast(a0->a1[0]) << ", " + std::cout << "Calling TestAsyncPassPointerStructInlineArrayVariable(" << "((" + << a0->a0 << ", [" << static_cast(a0->a1[0]) << ", " << static_cast(a0->a1[1]) << ", " << static_cast(a0->a1[2]) << ", " << static_cast(a0->a1[3]) << ", " @@ -21536,8 +21057,7 @@ DART_EXPORT void TestAsyncPassPointerStructInlineArrayVariable( << static_cast(a0->a1[6]) << ", " << static_cast(a0->a1[7]) << ", " << static_cast(a0->a1[8]) << ", " - << static_cast(a0->a1[9]) << "]))" - << ")\n"; + << static_cast(a0->a1[9]) << "]))" << ")\n"; f(a0); @@ -21587,9 +21107,8 @@ DART_EXPORT void TestAsyncReturnStruct1ByteInt( a0 = -1; - std::cout << "Calling TestAsyncReturnStruct1ByteInt(" - << "(" << static_cast(a0) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct1ByteInt(" << "(" + << static_cast(a0) << ")" << ")\n"; f(a0); } @@ -21607,10 +21126,9 @@ DART_EXPORT void TestAsyncReturnStruct3BytesHomogeneousUint8( a1 = 2; a2 = 3; - std::cout << "Calling TestAsyncReturnStruct3BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct3BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ")" << ")\n"; f(a0, a1, a2); } @@ -21627,9 +21145,8 @@ DART_EXPORT void TestAsyncReturnStruct3BytesInt2ByteAligned( a0 = -1; a1 = 2; - std::cout << "Calling TestAsyncReturnStruct3BytesInt2ByteAligned(" - << "(" << a0 << ", " << static_cast(a1) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct3BytesInt2ByteAligned(" << "(" + << a0 << ", " << static_cast(a1) << ")" << ")\n"; f(a0, a1); } @@ -21645,9 +21162,8 @@ DART_EXPORT void TestAsyncReturnStruct4BytesHomogeneousInt16( a0 = -1; a1 = 2; - std::cout << "Calling TestAsyncReturnStruct4BytesHomogeneousInt16(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct4BytesHomogeneousInt16(" << "(" + << a0 << ", " << a1 << ")" << ")\n"; f(a0, a1); } @@ -21679,12 +21195,11 @@ DART_EXPORT void TestAsyncReturnStruct7BytesHomogeneousUint8( a5 = 6; a6 = 7; - std::cout << "Calling TestAsyncReturnStruct7BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct7BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6); } @@ -21703,9 +21218,8 @@ DART_EXPORT void TestAsyncReturnStruct7BytesInt4ByteAligned( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStruct7BytesInt4ByteAligned(" - << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct7BytesInt4ByteAligned(" << "(" + << a0 << ", " << a1 << ", " << static_cast(a2) << ")" << ")\n"; f(a0, a1, a2); } @@ -21723,9 +21237,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesInt( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStruct8BytesInt(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct8BytesInt(" << "(" << a0 << ", " + << a1 << ", " << a2 << ")" << ")\n"; f(a0, a1, a2); } @@ -21741,9 +21254,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesHomogeneousFloat( a0 = -1.0; a1 = 2.0; - std::cout << "Calling TestAsyncReturnStruct8BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct8BytesHomogeneousFloat(" << "(" + << a0 << ", " << a1 << ")" << ")\n"; f(a0, a1); } @@ -21761,9 +21273,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesMixed( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStruct8BytesMixed(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct8BytesMixed(" << "(" << a0 << ", " + << a1 << ", " << a2 << ")" << ")\n"; f(a0, a1, a2); } @@ -21803,13 +21314,12 @@ DART_EXPORT void TestAsyncReturnStruct9BytesHomogeneousUint8( a7 = 8; a8 = 9; - std::cout << "Calling TestAsyncReturnStruct9BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ", " << static_cast(a7) - << ", " << static_cast(a8) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct9BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ", " << static_cast(a7) << ", " + << static_cast(a8) << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8); } @@ -21826,9 +21336,8 @@ DART_EXPORT void TestAsyncReturnStruct9BytesInt4Or8ByteAligned( a0 = -1; a1 = 2; - std::cout << "Calling TestAsyncReturnStruct9BytesInt4Or8ByteAligned(" - << "(" << a0 << ", " << static_cast(a1) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct9BytesInt4Or8ByteAligned(" << "(" + << a0 << ", " << static_cast(a1) << ")" << ")\n"; f(a0, a1); } @@ -21847,9 +21356,8 @@ DART_EXPORT void TestAsyncReturnStruct12BytesHomogeneousFloat( a1 = 2.0; a2 = -3.0; - std::cout << "Calling TestAsyncReturnStruct12BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct12BytesHomogeneousFloat(" << "(" + << a0 << ", " << a1 << ", " << a2 << ")" << ")\n"; f(a0, a1, a2); } @@ -21869,9 +21377,8 @@ DART_EXPORT void TestAsyncReturnStruct16BytesHomogeneousFloat( a2 = -3.0; a3 = 4.0; - std::cout << "Calling TestAsyncReturnStruct16BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct16BytesHomogeneousFloat(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" << ")\n"; f(a0, a1, a2, a3); } @@ -21887,9 +21394,8 @@ DART_EXPORT void TestAsyncReturnStruct16BytesMixed( a0 = -1.0; a1 = 2; - std::cout << "Calling TestAsyncReturnStruct16BytesMixed(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct16BytesMixed(" << "(" << a0 << ", " + << a1 << ")" << ")\n"; f(a0, a1); } @@ -21910,9 +21416,8 @@ DART_EXPORT void TestAsyncReturnStruct16BytesMixed2( a2 = -3.0; a3 = 4; - std::cout << "Calling TestAsyncReturnStruct16BytesMixed2(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct16BytesMixed2(" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ")" << ")\n"; f(a0, a1, a2, a3); } @@ -21932,9 +21437,8 @@ DART_EXPORT void TestAsyncReturnStruct17BytesInt( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStruct17BytesInt(" - << "(" << a0 << ", " << a1 << ", " << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct17BytesInt(" << "(" << a0 << ", " + << a1 << ", " << static_cast(a2) << ")" << ")\n"; f(a0, a1, a2); } @@ -22004,18 +21508,17 @@ DART_EXPORT void TestAsyncReturnStruct19BytesHomogeneousUint8( a17 = 18; a18 = 19; - std::cout << "Calling TestAsyncReturnStruct19BytesHomogeneousUint8(" - << "(" << static_cast(a0) << ", " << static_cast(a1) - << ", " << static_cast(a2) << ", " << static_cast(a3) - << ", " << static_cast(a4) << ", " << static_cast(a5) - << ", " << static_cast(a6) << ", " << static_cast(a7) - << ", " << static_cast(a8) << ", " << static_cast(a9) - << ", " << static_cast(a10) << ", " << static_cast(a11) - << ", " << static_cast(a12) << ", " << static_cast(a13) - << ", " << static_cast(a14) << ", " << static_cast(a15) - << ", " << static_cast(a16) << ", " << static_cast(a17) - << ", " << static_cast(a18) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct19BytesHomogeneousUint8(" << "(" + << static_cast(a0) << ", " << static_cast(a1) << ", " + << static_cast(a2) << ", " << static_cast(a3) << ", " + << static_cast(a4) << ", " << static_cast(a5) << ", " + << static_cast(a6) << ", " << static_cast(a7) << ", " + << static_cast(a8) << ", " << static_cast(a9) << ", " + << static_cast(a10) << ", " << static_cast(a11) << ", " + << static_cast(a12) << ", " << static_cast(a13) << ", " + << static_cast(a14) << ", " << static_cast(a15) << ", " + << static_cast(a16) << ", " << static_cast(a17) << ", " + << static_cast(a18) << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18); @@ -22038,9 +21541,8 @@ DART_EXPORT void TestAsyncReturnStruct20BytesHomogeneousInt32( a3 = 4; a4 = -5; - std::cout << "Calling TestAsyncReturnStruct20BytesHomogeneousInt32(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" + std::cout << "Calling TestAsyncReturnStruct20BytesHomogeneousInt32(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; f(a0, a1, a2, a3, a4); @@ -22063,9 +21565,8 @@ DART_EXPORT void TestAsyncReturnStruct20BytesHomogeneousFloat( a3 = 4.0; a4 = -5.0; - std::cout << "Calling TestAsyncReturnStruct20BytesHomogeneousFloat(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" + std::cout << "Calling TestAsyncReturnStruct20BytesHomogeneousFloat(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; f(a0, a1, a2, a3, a4); @@ -22086,9 +21587,8 @@ DART_EXPORT void TestAsyncReturnStruct32BytesHomogeneousDouble( a2 = -3.0; a3 = 4.0; - std::cout << "Calling TestAsyncReturnStruct32BytesHomogeneousDouble(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct32BytesHomogeneousDouble(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ")" << ")\n"; f(a0, a1, a2, a3); } @@ -22110,9 +21610,8 @@ DART_EXPORT void TestAsyncReturnStruct40BytesHomogeneousDouble( a3 = 4.0; a4 = -5.0; - std::cout << "Calling TestAsyncReturnStruct40BytesHomogeneousDouble(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" + std::cout << "Calling TestAsyncReturnStruct40BytesHomogeneousDouble(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; f(a0, a1, a2, a3, a4); @@ -22508,8 +22007,8 @@ DART_EXPORT void TestAsyncReturnStruct1024BytesHomogeneousUint64( a126 = 127; a127 = 128; - std::cout << "Calling TestAsyncReturnStruct1024BytesHomogeneousUint64(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 + std::cout << "Calling TestAsyncReturnStruct1024BytesHomogeneousUint64(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " @@ -22538,8 +22037,7 @@ DART_EXPORT void TestAsyncReturnStruct1024BytesHomogeneousUint64( << a115 << ", " << a116 << ", " << a117 << ", " << a118 << ", " << a119 << ", " << a120 << ", " << a121 << ", " << a122 << ", " << a123 << ", " << a124 << ", " << a125 << ", " << a126 << ", " - << a127 << ")" - << ")\n"; + << a127 << ")" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31, @@ -22563,9 +22061,8 @@ DART_EXPORT void TestAsyncReturnStruct3BytesPackedInt( a0 = -1; a1 = 2; - std::cout << "Calling TestAsyncReturnStruct3BytesPackedInt(" - << "(" << static_cast(a0) << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct3BytesPackedInt(" << "(" + << static_cast(a0) << ", " << a1 << ")" << ")\n"; f(a0, a1); } @@ -22587,11 +22084,10 @@ DART_EXPORT void TestAsyncReturnStruct8BytesPackedInt( a3 = 4; a4 = 5; - std::cout << "Calling TestAsyncReturnStruct8BytesPackedInt(" - << "(" << static_cast(a0) << ", " << a1 << ", " + std::cout << "Calling TestAsyncReturnStruct8BytesPackedInt(" << "(" + << static_cast(a0) << ", " << a1 << ", " << static_cast(a2) << ", " << static_cast(a3) << ", " - << static_cast(a4) << ")" - << ")\n"; + << static_cast(a4) << ")" << ")\n"; f(a0, a1, a2, a3, a4); } @@ -22608,9 +22104,8 @@ DART_EXPORT void TestAsyncReturnStruct9BytesPackedMixed( a0 = 1; a1 = 2.0; - std::cout << "Calling TestAsyncReturnStruct9BytesPackedMixed(" - << "(" << static_cast(a0) << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct9BytesPackedMixed(" << "(" + << static_cast(a0) << ", " << a1 << ")" << ")\n"; f(a0, a1); } @@ -22624,8 +22119,7 @@ DART_EXPORT void TestAsyncReturnUnion4BytesMixed( a0 = 1; - std::cout << "Calling TestAsyncReturnUnion4BytesMixed(" - << "(" << a0 << ")" + std::cout << "Calling TestAsyncReturnUnion4BytesMixed(" << "(" << a0 << ")" << ")\n"; f(a0); @@ -22640,9 +22134,8 @@ DART_EXPORT void TestAsyncReturnUnion8BytesNestedFloat( a0 = -1.0; - std::cout << "Calling TestAsyncReturnUnion8BytesNestedFloat(" - << "(" << a0 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnUnion8BytesNestedFloat(" << "(" << a0 + << ")" << ")\n"; f(a0); } @@ -22658,9 +22151,8 @@ DART_EXPORT void TestAsyncReturnUnion9BytesNestedInt( a0.a1 = 2; a0.a2 = -3; - std::cout << "Calling TestAsyncReturnUnion9BytesNestedInt(" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "))" - << ")\n"; + std::cout << "Calling TestAsyncReturnUnion9BytesNestedInt(" << "((" << a0.a0 + << ", " << a0.a1 << ", " << a0.a2 << "))" << ")\n"; f(a0); } @@ -22675,9 +22167,8 @@ DART_EXPORT void TestAsyncReturnUnion16BytesNestedFloat( a0.a0 = -1.0; a0.a1 = 2.0; - std::cout << "Calling TestAsyncReturnUnion16BytesNestedFloat(" - << "((" << a0.a0 << ", " << a0.a1 << "))" - << ")\n"; + std::cout << "Calling TestAsyncReturnUnion16BytesNestedFloat(" << "((" + << a0.a0 << ", " << a0.a1 << "))" << ")\n"; f(a0); } @@ -22693,9 +22184,8 @@ DART_EXPORT void TestAsyncReturnStructArgumentStruct1ByteInt( a0.a0 = -1; - std::cout << "Calling TestAsyncReturnStructArgumentStruct1ByteInt(" - << "((" << static_cast(a0.a0) << "))" - << ")\n"; + std::cout << "Calling TestAsyncReturnStructArgumentStruct1ByteInt(" << "((" + << static_cast(a0.a0) << "))" << ")\n"; f(a0); } @@ -22738,8 +22228,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentInt32x8Struct1ByteInt( std::cout << "Calling TestAsyncReturnStructArgumentInt32x8Struct1ByteInt(" << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " << a7 << ", (" - << static_cast(a8.a0) << "))" - << ")\n"; + << static_cast(a8.a0) << "))" << ")\n"; f(a0, a1, a2, a3, a4, a5, a6, a7, a8); } @@ -22758,8 +22247,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentStruct8BytesHomogeneousFloat( std::cout << "Calling TestAsyncReturnStructArgumentStruct8BytesHomogeneousFloat(" - << "((" << a0.a0 << ", " << a0.a1 << "))" - << ")\n"; + << "((" << a0.a0 << ", " << a0.a1 << "))" << ")\n"; f(a0); } @@ -22780,8 +22268,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentStruct20BytesHomogeneousInt32( std::cout << "Calling TestAsyncReturnStructArgumentStruct20BytesHomogeneousInt32(" << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << ", " << a0.a3 - << ", " << a0.a4 << "))" - << ")\n"; + << ", " << a0.a4 << "))" << ")\n"; f(a0); } @@ -22857,8 +22344,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentStruct8BytesInlineArrayInt( << ", " << static_cast(a0.a0[3]) << ", " << static_cast(a0.a0[4]) << ", " << static_cast(a0.a0[5]) << ", " << static_cast(a0.a0[6]) << ", " - << static_cast(a0.a0[7]) << "]))" - << ")\n"; + << static_cast(a0.a0[7]) << "]))" << ")\n"; f(a0); } @@ -22878,8 +22364,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentStructStruct16BytesHomogeneous( std::cout << "Calling TestAsyncReturnStructArgumentStructStruct16BytesHomogeneous(" << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" << a0.a1[1].a0 - << ")], " << a0.a2 << "))" - << ")\n"; + << ")], " << a0.a2 << "))" << ")\n"; f(a0); } @@ -22899,8 +22384,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentStructStruct32BytesHomogeneous( std::cout << "Calling TestAsyncReturnStructArgumentStructStruct32BytesHomogeneous(" << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << "), (" << a0.a1[1].a0 - << ")], " << a0.a2 << "))" - << ")\n"; + << ")], " << a0.a2 << "))" << ")\n"; f(a0); } @@ -22922,8 +22406,7 @@ DART_EXPORT void TestAsyncReturnStructArgumentStructStruct16BytesMixed3( std::cout << "Calling TestAsyncReturnStructArgumentStructStruct16BytesMixed3(" << "(((" << a0.a0.a0 << "), [(" << a0.a1[0].a0 << ", " << a0.a1[0].a1 << ", " << a0.a1[0].a2 << ")], [" << a0.a2[0] << ", " - << a0.a2[1] << "]))" - << ")\n"; + << a0.a2[1] << "]))" << ")\n"; f(a0); } @@ -22941,10 +22424,9 @@ DART_EXPORT void TestAsyncReturnStructAlignmentInt16( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStructAlignmentInt16(" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStructAlignmentInt16(" << "(" + << static_cast(a0) << ", " << a1 << ", " + << static_cast(a2) << ")" << ")\n"; f(a0, a1, a2); } @@ -22962,10 +22444,9 @@ DART_EXPORT void TestAsyncReturnStructAlignmentInt32( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStructAlignmentInt32(" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStructAlignmentInt32(" << "(" + << static_cast(a0) << ", " << a1 << ", " + << static_cast(a2) << ")" << ")\n"; f(a0, a1, a2); } @@ -22983,10 +22464,9 @@ DART_EXPORT void TestAsyncReturnStructAlignmentInt64( a1 = 2; a2 = -3; - std::cout << "Calling TestAsyncReturnStructAlignmentInt64(" - << "(" << static_cast(a0) << ", " << a1 << ", " - << static_cast(a2) << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStructAlignmentInt64(" << "(" + << static_cast(a0) << ", " << a1 << ", " + << static_cast(a2) << ")" << ")\n"; f(a0, a1, a2); } @@ -23005,9 +22485,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesNestedInt( a1.a0 = -3; a1.a1 = 4; - std::cout << "Calling TestAsyncReturnStruct8BytesNestedInt(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << ", " - << a1.a1 << "))" + std::cout << "Calling TestAsyncReturnStruct8BytesNestedInt(" << "((" << a0.a0 + << ", " << a0.a1 << "), (" << a1.a0 << ", " << a1.a1 << "))" << ")\n"; f(a0, a1); @@ -23024,9 +22503,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesNestedFloat( a0.a0 = -1.0; a1.a0 = 2.0; - std::cout << "Calling TestAsyncReturnStruct8BytesNestedFloat(" - << "((" << a0.a0 << "), (" << a1.a0 << "))" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct8BytesNestedFloat(" << "((" + << a0.a0 << "), (" << a1.a0 << "))" << ")\n"; f(a0, a1); } @@ -23043,9 +22521,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesNestedFloat2( a0.a0 = -1.0; a1 = 2.0; - std::cout << "Calling TestAsyncReturnStruct8BytesNestedFloat2(" - << "((" << a0.a0 << "), " << a1 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct8BytesNestedFloat2(" << "((" + << a0.a0 << "), " << a1 << ")" << ")\n"; f(a0, a1); } @@ -23062,9 +22539,8 @@ DART_EXPORT void TestAsyncReturnStruct8BytesNestedMixed( a0.a1 = 2; a1.a0 = -3.0; - std::cout << "Calling TestAsyncReturnStruct8BytesNestedMixed(" - << "((" << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << "))" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct8BytesNestedMixed(" << "((" + << a0.a0 << ", " << a0.a1 << "), (" << a1.a0 << "))" << ")\n"; f(a0, a1); } @@ -23086,11 +22562,10 @@ DART_EXPORT void TestAsyncReturnStruct16BytesNestedInt( a1.a1.a0 = -7; a1.a1.a1 = 8; - std::cout << "Calling TestAsyncReturnStruct16BytesNestedInt(" - << "(((" << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 - << ", " << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 - << "), (" << a1.a1.a0 << ", " << a1.a1.a1 << ")))" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct16BytesNestedInt(" << "(((" + << a0.a0.a0 << ", " << a0.a0.a1 << "), (" << a0.a1.a0 << ", " + << a0.a1.a1 << ")), ((" << a1.a0.a0 << ", " << a1.a0.a1 << "), (" + << a1.a1.a0 << ", " << a1.a1.a1 << ")))" << ")\n"; f(a0, a1); } @@ -23120,15 +22595,14 @@ DART_EXPORT void TestAsyncReturnStruct32BytesNestedInt( a1.a1.a1.a0 = -15; a1.a1.a1.a1 = 16; - std::cout << "Calling TestAsyncReturnStruct32BytesNestedInt(" - << "((((" << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" - << a0.a0.a1.a0 << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 - << ", " << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " - << a0.a1.a1.a1 << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 - << "), (" << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" - << a1.a1.a0.a0 << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 - << ", " << a1.a1.a1.a1 << "))))" - << ")\n"; + std::cout << "Calling TestAsyncReturnStruct32BytesNestedInt(" << "((((" + << a0.a0.a0.a0 << ", " << a0.a0.a0.a1 << "), (" << a0.a0.a1.a0 + << ", " << a0.a0.a1.a1 << ")), ((" << a0.a1.a0.a0 << ", " + << a0.a1.a0.a1 << "), (" << a0.a1.a1.a0 << ", " << a0.a1.a1.a1 + << "))), (((" << a1.a0.a0.a0 << ", " << a1.a0.a0.a1 << "), (" + << a1.a0.a1.a0 << ", " << a1.a0.a1.a1 << ")), ((" << a1.a1.a0.a0 + << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ", " + << a1.a1.a1.a1 << "))))" << ")\n"; f(a0, a1); } @@ -23253,21 +22727,20 @@ DART_EXPORT void TestAsyncReturnStructNestedIrregularEvenBigger( a2.a3 = -33.0; a3 = 34.0; - std::cout << "Calling TestAsyncReturnStructNestedIrregularEvenBigger(" - << "(" << a0 << ", ((" << a1.a0.a0 << ", ((" << a1.a0.a1.a0.a0 - << ", " << a1.a0.a1.a0.a1 << "), (" << a1.a0.a1.a1.a0 << ")), " - << a1.a0.a2 << ", ((" << a1.a0.a3.a0.a0 << "), " << a1.a0.a3.a1 - << "), " << a1.a0.a4 << ", ((" << a1.a0.a5.a0.a0 << "), (" - << a1.a0.a5.a1.a0 << ")), " << a1.a0.a6 << "), ((" << a1.a1.a0.a0 - << ", " << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ")), " << a1.a2 - << ", " << a1.a3 << "), ((" << a2.a0.a0 << ", ((" << a2.a0.a1.a0.a0 - << ", " << a2.a0.a1.a0.a1 << "), (" << a2.a0.a1.a1.a0 << ")), " - << a2.a0.a2 << ", ((" << a2.a0.a3.a0.a0 << "), " << a2.a0.a3.a1 - << "), " << a2.a0.a4 << ", ((" << a2.a0.a5.a0.a0 << "), (" - << a2.a0.a5.a1.a0 << ")), " << a2.a0.a6 << "), ((" << a2.a1.a0.a0 - << ", " << a2.a1.a0.a1 << "), (" << a2.a1.a1.a0 << ")), " << a2.a2 - << ", " << a2.a3 << "), " << a3 << ")" - << ")\n"; + std::cout << "Calling TestAsyncReturnStructNestedIrregularEvenBigger(" << "(" + << a0 << ", ((" << a1.a0.a0 << ", ((" << a1.a0.a1.a0.a0 << ", " + << a1.a0.a1.a0.a1 << "), (" << a1.a0.a1.a1.a0 << ")), " << a1.a0.a2 + << ", ((" << a1.a0.a3.a0.a0 << "), " << a1.a0.a3.a1 << "), " + << a1.a0.a4 << ", ((" << a1.a0.a5.a0.a0 << "), (" << a1.a0.a5.a1.a0 + << ")), " << a1.a0.a6 << "), ((" << a1.a1.a0.a0 << ", " + << a1.a1.a0.a1 << "), (" << a1.a1.a1.a0 << ")), " << a1.a2 << ", " + << a1.a3 << "), ((" << a2.a0.a0 << ", ((" << a2.a0.a1.a0.a0 << ", " + << a2.a0.a1.a0.a1 << "), (" << a2.a0.a1.a1.a0 << ")), " << a2.a0.a2 + << ", ((" << a2.a0.a3.a0.a0 << "), " << a2.a0.a3.a1 << "), " + << a2.a0.a4 << ", ((" << a2.a0.a5.a0.a0 << "), (" << a2.a0.a5.a1.a0 + << ")), " << a2.a0.a6 << "), ((" << a2.a1.a0.a0 << ", " + << a2.a1.a0.a1 << "), (" << a2.a1.a1.a0 << ")), " << a2.a2 << ", " + << a2.a3 << "), " << a3 << ")" << ")\n"; f(a0, a1, a2, a3); } @@ -23280,9 +22753,7 @@ DART_EXPORT int64_t VariadicAt1Int64x2(int64_t a0, ...) { int64_t a1 = va_arg(var_args, int64_t); va_end(var_args); - std::cout << "VariadicAt1Int64x2" - << "(" << a0 << ", " << a1 << ")" - << "\n"; + std::cout << "VariadicAt1Int64x2" << "(" << a0 << ", " << a1 << ")" << "\n"; int64_t result = 0; @@ -23302,9 +22773,7 @@ DART_EXPORT double VariadicAt1Doublex2(double a0, ...) { double a1 = va_arg(var_args, double); va_end(var_args); - std::cout << "VariadicAt1Doublex2" - << "(" << a0 << ", " << a1 << ")" - << "\n"; + std::cout << "VariadicAt1Doublex2" << "(" << a0 << ", " << a1 << ")" << "\n"; double result = 0; @@ -23327,10 +22796,8 @@ DART_EXPORT int64_t VariadicAt1Int64x5(int64_t a0, ...) { int64_t a4 = va_arg(var_args, int64_t); va_end(var_args); - std::cout << "VariadicAt1Int64x5" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << "\n"; + std::cout << "VariadicAt1Int64x5" << "(" << a0 << ", " << a1 << ", " << a2 + << ", " << a3 << ", " << a4 << ")" << "\n"; int64_t result = 0; @@ -23356,10 +22823,8 @@ DART_EXPORT double VariadicAt1Doublex5(double a0, ...) { double a4 = va_arg(var_args, double); va_end(var_args); - std::cout << "VariadicAt1Doublex5" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << "\n"; + std::cout << "VariadicAt1Doublex5" << "(" << a0 << ", " << a1 << ", " << a2 + << ", " << a3 << ", " << a4 << ")" << "\n"; double result = 0; @@ -23400,13 +22865,11 @@ DART_EXPORT int64_t VariadicAt1Int64x20(int64_t a0, ...) { int64_t a19 = va_arg(var_args, int64_t); va_end(var_args); - std::cout << "VariadicAt1Int64x20" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " - << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 - << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " - << a18 << ", " << a19 << ")" - << "\n"; + std::cout << "VariadicAt1Int64x20" << "(" << a0 << ", " << a1 << ", " << a2 + << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " + << a7 << ", " << a8 << ", " << a9 << ", " << a10 << ", " << a11 + << ", " << a12 << ", " << a13 << ", " << a14 << ", " << a15 << ", " + << a16 << ", " << a17 << ", " << a18 << ", " << a19 << ")" << "\n"; int64_t result = 0; @@ -23462,13 +22925,11 @@ DART_EXPORT double VariadicAt1Doublex20(double a0, ...) { double a19 = va_arg(var_args, double); va_end(var_args); - std::cout << "VariadicAt1Doublex20" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " - << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 - << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " - << a18 << ", " << a19 << ")" - << "\n"; + std::cout << "VariadicAt1Doublex20" << "(" << a0 << ", " << a1 << ", " << a2 + << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", " + << a7 << ", " << a8 << ", " << a9 << ", " << a10 << ", " << a11 + << ", " << a12 << ", " << a13 << ", " << a14 << ", " << a15 << ", " + << a16 << ", " << a17 << ", " << a18 << ", " << a19 << ")" << "\n"; double result = 0; @@ -23508,10 +22969,9 @@ DART_EXPORT int64_t VariadicAt1Int64x2Struct8BytesIntInt64(int64_t a0, ...) { int64_t a3 = va_arg(var_args, int64_t); va_end(var_args); - std::cout << "VariadicAt1Int64x2Struct8BytesIntInt64" - << "(" << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 - << ", " << a2.a2 << "), " << a3 << ")" - << "\n"; + std::cout << "VariadicAt1Int64x2Struct8BytesIntInt64" << "(" << a0 << ", " + << a1 << ", (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 << "), " + << a3 << ")" << "\n"; int64_t result = 0; @@ -23539,10 +22999,9 @@ DART_EXPORT double VariadicAt1Doublex2Struct32BytesHomogeneousDoubleD(double a0, double a3 = va_arg(var_args, double); va_end(var_args); - std::cout << "VariadicAt1Doublex2Struct32BytesHomogeneousDoubleD" - << "(" << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 - << ", " << a2.a2 << ", " << a2.a3 << "), " << a3 << ")" - << "\n"; + std::cout << "VariadicAt1Doublex2Struct32BytesHomogeneousDoubleD" << "(" << a0 + << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 + << ", " << a2.a3 << "), " << a3 << ")" << "\n"; double result = 0; @@ -23570,10 +23029,9 @@ DART_EXPORT double VariadicAt1DoubleStruct12BytesHomogeneousFloatDoub(double a0, double a2 = va_arg(var_args, double); va_end(var_args); - std::cout << "VariadicAt1DoubleStruct12BytesHomogeneousFloatDoub" - << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << "), " << a2 << ")" - << "\n"; + std::cout << "VariadicAt1DoubleStruct12BytesHomogeneousFloatDoub" << "(" << a0 + << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << "), " << a2 + << ")" << "\n"; double result = 0; @@ -23599,10 +23057,9 @@ VariadicAt1Int32Struct20BytesHomogeneousInt32Int32(int32_t a0, ...) { int32_t a2 = va_arg(var_args, int32_t); va_end(var_args); - std::cout << "VariadicAt1Int32Struct20BytesHomogeneousInt32Int32" - << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << ", " << a1.a3 << ", " << a1.a4 << "), " << a2 << ")" - << "\n"; + std::cout << "VariadicAt1Int32Struct20BytesHomogeneousInt32Int32" << "(" << a0 + << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 + << ", " << a1.a4 << "), " << a2 << ")" << "\n"; int32_t result = 0; @@ -23630,10 +23087,9 @@ DART_EXPORT double VariadicAt1DoubleStruct20BytesHomogeneousFloatDoub(double a0, double a2 = va_arg(var_args, double); va_end(var_args); - std::cout << "VariadicAt1DoubleStruct20BytesHomogeneousFloatDoub" - << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << ", " << a1.a3 << ", " << a1.a4 << "), " << a2 << ")" - << "\n"; + std::cout << "VariadicAt1DoubleStruct20BytesHomogeneousFloatDoub" << "(" << a0 + << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 << ", " << a1.a3 + << ", " << a1.a4 << "), " << a2 << ")" << "\n"; double result = 0; @@ -23659,9 +23115,8 @@ DART_EXPORT int32_t VariadicAt2Int32Int64IntPtr(int32_t a0, int64_t a1, ...) { intptr_t a2 = va_arg(var_args, intptr_t); va_end(var_args); - std::cout << "VariadicAt2Int32Int64IntPtr" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << "\n"; + std::cout << "VariadicAt2Int32Int64IntPtr" << "(" << a0 << ", " << a1 << ", " + << a2 << ")" << "\n"; int32_t result = 0; @@ -23686,10 +23141,9 @@ DART_EXPORT double VariadicAt1DoubleInt64Int32DoubleInt64Int32(double a0, ...) { int32_t a5 = va_arg(var_args, int32_t); va_end(var_args); - std::cout << "VariadicAt1DoubleInt64Int32DoubleInt64Int32" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ")" - << "\n"; + std::cout << "VariadicAt1DoubleInt64Int32DoubleInt64Int32" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " + << a5 << ")" << "\n"; double result = 0; @@ -23717,10 +23171,9 @@ DART_EXPORT double VariadicAt1Int64Int32Struct12BytesHomogeneousFloat( va_arg(var_args, Struct12BytesHomogeneousFloat); va_end(var_args); - std::cout << "VariadicAt1Int64Int32Struct12BytesHomogeneousFloat" - << "(" << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 - << ", " << a2.a2 << "))" - << "\n"; + std::cout << "VariadicAt1Int64Int32Struct12BytesHomogeneousFloat" << "(" << a0 + << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 << ", " << a2.a2 + << "))" << "\n"; double result = 0; @@ -23757,12 +23210,11 @@ DART_EXPORT double VariadicAt11Doublex8FloatStruct12BytesHomogeneousF( va_arg(var_args, Struct12BytesHomogeneousFloat); va_end(var_args); - std::cout << "VariadicAt11Doublex8FloatStruct12BytesHomogeneousF" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", (" - << a9.a0 << ", " << a9.a1 << ", " << a9.a2 << "), " << a10 << ", " - << a11 << ", (" << a12.a0 << ", " << a12.a1 << ", " << a12.a2 - << "))" + std::cout << "VariadicAt11Doublex8FloatStruct12BytesHomogeneousF" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " + << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", (" << a9.a0 + << ", " << a9.a1 << ", " << a9.a2 << "), " << a10 << ", " << a11 + << ", (" << a12.a0 << ", " << a12.a1 << ", " << a12.a2 << "))" << "\n"; double result = 0; @@ -23808,12 +23260,11 @@ DART_EXPORT double VariadicAt1DoubleInt64Int32Struct20BytesHomogeneou(double a0, int64_t a8 = va_arg(var_args, int64_t); va_end(var_args); - std::cout << "VariadicAt1DoubleInt64Int32Struct20BytesHomogeneou" - << "(" << a0 << ", " << a1 << ", " << a2 << ", (" << a3.a0 << ", " - << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << ", " << a3.a4 << "), " - << a4 << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "), " << a8 << ")" - << "\n"; + std::cout << "VariadicAt1DoubleInt64Int32Struct20BytesHomogeneou" << "(" << a0 + << ", " << a1 << ", " << a2 << ", (" << a3.a0 << ", " << a3.a1 + << ", " << a3.a2 << ", " << a3.a3 << ", " << a3.a4 << "), " << a4 + << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 + << ", " << a7.a2 << "), " << a8 << ")" << "\n"; double result = 0; @@ -23851,10 +23302,8 @@ DART_EXPORT double VariadicAt5Doublex5(double a0, va_end(var_args); - std::cout << "VariadicAt5Doublex5" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << "\n"; + std::cout << "VariadicAt5Doublex5" << "(" << a0 << ", " << a1 << ", " << a2 + << ", " << a3 << ", " << a4 << ")" << "\n"; double result = 0; @@ -23885,11 +23334,10 @@ DART_EXPORT int64_t VariadicAt1Int64x7Struct12BytesHomogeneousInt32(int64_t a0, va_arg(var_args, Struct12BytesHomogeneousInt32); va_end(var_args); - std::cout << "VariadicAt1Int64x7Struct12BytesHomogeneousInt32" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "))" - << "\n"; + std::cout << "VariadicAt1Int64x7Struct12BytesHomogeneousInt32" << "(" << a0 + << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " + << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 << ", " + << a7.a2 << "))" << "\n"; int64_t result = 0; @@ -23922,10 +23370,9 @@ DART_EXPORT int32_t VariadicAt1Struct12BytesHomogeneousInt32Int32x4( int32_t a4 = va_arg(var_args, int32_t); va_end(var_args); - std::cout << "VariadicAt1Struct12BytesHomogeneousInt32Int32x4" - << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), " << a1 - << ", " << a2 << ", " << a3 << ", " << a4 << ")" - << "\n"; + std::cout << "VariadicAt1Struct12BytesHomogeneousInt32Int32x4" << "((" + << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), " << a1 << ", " + << a2 << ", " << a3 << ", " << a4 << ")" << "\n"; int32_t result = 0; @@ -23953,9 +23400,8 @@ DART_EXPORT intptr_t TestVariadicAt1Int64x2( a0 = -1; a1 = 2; - std::cout << "Calling TestVariadicAt1Int64x2(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Int64x2(" << "(" << a0 << ", " << a1 + << ")" << ")\n"; int64_t result = f(a0, a1); @@ -23991,9 +23437,8 @@ DART_EXPORT intptr_t TestVariadicAt1Doublex2( a0 = -1.0; a1 = 2.0; - std::cout << "Calling TestVariadicAt1Doublex2(" - << "(" << a0 << ", " << a1 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Doublex2(" << "(" << a0 << ", " << a1 + << ")" << ")\n"; double result = f(a0, a1); @@ -24035,10 +23480,8 @@ DART_EXPORT intptr_t TestVariadicAt1Int64x5( a3 = 4; a4 = -5; - std::cout << "Calling TestVariadicAt1Int64x5(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Int64x5(" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4); @@ -24080,10 +23523,8 @@ DART_EXPORT intptr_t TestVariadicAt1Doublex5( a3 = 4.0; a4 = -5.0; - std::cout << "Calling TestVariadicAt1Doublex5(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Doublex5(" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4); @@ -24155,13 +23596,12 @@ DART_EXPORT intptr_t TestVariadicAt1Int64x20( a18 = -19; a19 = 20; - std::cout << "Calling TestVariadicAt1Int64x20(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " - << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 - << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " - << a18 << ", " << a19 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Int64x20(" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " + << a6 << ", " << a7 << ", " << a8 << ", " << a9 << ", " << a10 + << ", " << a11 << ", " << a12 << ", " << a13 << ", " << a14 << ", " + << a15 << ", " << a16 << ", " << a17 << ", " << a18 << ", " << a19 + << ")" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19); @@ -24236,13 +23676,12 @@ DART_EXPORT intptr_t TestVariadicAt1Doublex20( a18 = -19.0; a19 = 20.0; - std::cout << "Calling TestVariadicAt1Doublex20(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", " - << a9 << ", " << a10 << ", " << a11 << ", " << a12 << ", " << a13 - << ", " << a14 << ", " << a15 << ", " << a16 << ", " << a17 << ", " - << a18 << ", " << a19 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Doublex20(" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " + << a6 << ", " << a7 << ", " << a8 << ", " << a9 << ", " << a10 + << ", " << a11 << ", " << a12 << ", " << a13 << ", " << a14 << ", " + << a15 << ", " << a16 << ", " << a17 << ", " << a18 << ", " << a19 + << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19); @@ -24287,10 +23726,9 @@ DART_EXPORT intptr_t TestVariadicAt1Int64x2Struct8BytesIntInt64( a2.a2 = -5; a3 = 6; - std::cout << "Calling TestVariadicAt1Int64x2Struct8BytesIntInt64(" - << "(" << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 - << ", " << a2.a2 << "), " << a3 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1Int64x2Struct8BytesIntInt64(" << "(" + << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 << ", " + << a2.a2 << "), " << a3 << ")" << ")\n"; int64_t result = f(a0, a1, a2, a3); @@ -24335,8 +23773,7 @@ DART_EXPORT intptr_t TestVariadicAt1Doublex2Struct32BytesHomogeneousDoubleD( std::cout << "Calling TestVariadicAt1Doublex2Struct32BytesHomogeneousDoubleD(" << "(" << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 - << ", " << a2.a2 << ", " << a2.a3 << "), " << a3 << ")" - << ")\n"; + << ", " << a2.a2 << ", " << a2.a3 << "), " << a3 << ")" << ")\n"; double result = f(a0, a1, a2, a3); @@ -24378,8 +23815,7 @@ DART_EXPORT intptr_t TestVariadicAt1DoubleStruct12BytesHomogeneousFloatDoub( std::cout << "Calling TestVariadicAt1DoubleStruct12BytesHomogeneousFloatDoub(" << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << "), " << a2 << ")" - << ")\n"; + << "), " << a2 << ")" << ")\n"; double result = f(a0, a1, a2); @@ -24423,8 +23859,7 @@ DART_EXPORT intptr_t TestVariadicAt1Int32Struct20BytesHomogeneousInt32Int32( std::cout << "Calling TestVariadicAt1Int32Struct20BytesHomogeneousInt32Int32(" << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << ", " << a1.a3 << ", " << a1.a4 << "), " << a2 << ")" - << ")\n"; + << ", " << a1.a3 << ", " << a1.a4 << "), " << a2 << ")" << ")\n"; int32_t result = f(a0, a1, a2); @@ -24468,8 +23903,7 @@ DART_EXPORT intptr_t TestVariadicAt1DoubleStruct20BytesHomogeneousFloatDoub( std::cout << "Calling TestVariadicAt1DoubleStruct20BytesHomogeneousFloatDoub(" << "(" << a0 << ", (" << a1.a0 << ", " << a1.a1 << ", " << a1.a2 - << ", " << a1.a3 << ", " << a1.a4 << "), " << a2 << ")" - << ")\n"; + << ", " << a1.a3 << ", " << a1.a4 << "), " << a2 << ")" << ")\n"; double result = f(a0, a1, a2); @@ -24508,9 +23942,8 @@ DART_EXPORT intptr_t TestVariadicAt2Int32Int64IntPtr( a1 = 2; a2 = -3; - std::cout << "Calling TestVariadicAt2Int32Int64IntPtr(" - << "(" << a0 << ", " << a1 << ", " << a2 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt2Int32Int64IntPtr(" << "(" << a0 << ", " + << a1 << ", " << a2 << ")" << ")\n"; int32_t result = f(a0, a1, a2); @@ -24554,10 +23987,9 @@ DART_EXPORT intptr_t TestVariadicAt1DoubleInt64Int32DoubleInt64Int32( a4 = -5; a5 = 6; - std::cout << "Calling TestVariadicAt1DoubleInt64Int32DoubleInt64Int32(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ", " << a5 << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt1DoubleInt64Int32DoubleInt64Int32(" << "(" + << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 + << ", " << a5 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5); @@ -24599,8 +24031,7 @@ DART_EXPORT intptr_t TestVariadicAt1Int64Int32Struct12BytesHomogeneousFloat( std::cout << "Calling TestVariadicAt1Int64Int32Struct12BytesHomogeneousFloat(" << "(" << a0 << ", " << a1 << ", (" << a2.a0 << ", " << a2.a1 - << ", " << a2.a2 << "))" - << ")\n"; + << ", " << a2.a2 << "))" << ")\n"; double result = f(a0, a1, a2); @@ -24678,8 +24109,7 @@ DART_EXPORT intptr_t TestVariadicAt11Doublex8FloatStruct12BytesHomogeneousF( << ", " << a5 << ", " << a6 << ", " << a7 << ", " << a8 << ", (" << a9.a0 << ", " << a9.a1 << ", " << a9.a2 << "), " << a10 << ", " << a11 << ", (" << a12.a0 << ", " << a12.a1 << ", " << a12.a2 - << "))" - << ")\n"; + << "))" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); @@ -24739,8 +24169,7 @@ DART_EXPORT intptr_t TestVariadicAt1DoubleInt64Int32Struct20BytesHomogeneou( << "(" << a0 << ", " << a1 << ", " << a2 << ", (" << a3.a0 << ", " << a3.a1 << ", " << a3.a2 << ", " << a3.a3 << ", " << a3.a4 << "), " << a4 << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "), " << a8 << ")" - << ")\n"; + << ", " << a7.a2 << "), " << a8 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4, a5, a6, a7, a8); @@ -24782,10 +24211,8 @@ DART_EXPORT intptr_t TestVariadicAt5Doublex5( a3 = 4.0; a4 = -5.0; - std::cout << "Calling TestVariadicAt5Doublex5(" - << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 - << ")" - << ")\n"; + std::cout << "Calling TestVariadicAt5Doublex5(" << "(" << a0 << ", " << a1 + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; double result = f(a0, a1, a2, a3, a4); @@ -24838,8 +24265,7 @@ DART_EXPORT intptr_t TestVariadicAt1Int64x7Struct12BytesHomogeneousInt32( std::cout << "Calling TestVariadicAt1Int64x7Struct12BytesHomogeneousInt32(" << "(" << a0 << ", " << a1 << ", " << a2 << ", " << a3 << ", " << a4 << ", " << a5 << ", " << a6 << ", (" << a7.a0 << ", " << a7.a1 - << ", " << a7.a2 << "))" - << ")\n"; + << ", " << a7.a2 << "))" << ")\n"; int64_t result = f(a0, a1, a2, a3, a4, a5, a6, a7); @@ -24885,8 +24311,7 @@ DART_EXPORT intptr_t TestVariadicAt1Struct12BytesHomogeneousInt32Int32x4( std::cout << "Calling TestVariadicAt1Struct12BytesHomogeneousInt32Int32x4(" << "((" << a0.a0 << ", " << a0.a1 << ", " << a0.a2 << "), " << a1 - << ", " << a2 << ", " << a3 << ", " << a4 << ")" - << ")\n"; + << ", " << a2 << ", " << a3 << ", " << a4 << ")" << ")\n"; int32_t result = f(a0, a1, a2, a3, a4); diff --git a/runtime/tools/run_clang_tidy.dart b/runtime/tools/run_clang_tidy.dart index e0c0634a7cf1..7ea0348e9699 100644 --- a/runtime/tools/run_clang_tidy.dart +++ b/runtime/tools/run_clang_tidy.dart @@ -52,7 +52,7 @@ List compilerFlagsForFile(String filepath) { '-Iout/DebugX64/gen/third_party/perfetto/build_config', '-DTARGET_ARCH_$arch', '-DTESTING', - '-std=c++17', + '-std=c++20', '-x', 'c++', ]; diff --git a/runtime/vm/compiler/aot/precompiler.cc b/runtime/vm/compiler/aot/precompiler.cc index 61811efad539..b632dc17d74a 100644 --- a/runtime/vm/compiler/aot/precompiler.cc +++ b/runtime/vm/compiler/aot/precompiler.cc @@ -3663,7 +3663,7 @@ bool PrecompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { // assembler. We try again (done = false) with far branches enabled. done = false; RELEASE_ASSERT(far_branch_level < 2); - far_branch_level++; + far_branch_level = far_branch_level + 1; } else if (error.ptr() == Object::speculative_inlining_error().ptr()) { // The return value of setjmp is the deopt id of the check instruction // that caused the bailout. diff --git a/runtime/vm/compiler/assembler/assembler_arm.h b/runtime/vm/compiler/assembler/assembler_arm.h index 1497248105dc..5c194b693b97 100644 --- a/runtime/vm/compiler/assembler/assembler_arm.h +++ b/runtime/vm/compiler/assembler/assembler_arm.h @@ -59,48 +59,47 @@ class Immediate : public ValueObject { }; // Instruction encoding bits. -enum { - H = 1 << 5, // halfword (or byte) - L = 1 << 20, // load (or store) - S = 1 << 20, // set condition code (or leave unchanged) - W = 1 << 21, // writeback base register (or leave unchanged) - A = 1 << 21, // accumulate in multiply instruction (or not) - B = 1 << 22, // unsigned byte (or word) - D = 1 << 22, // high/lo bit of start of s/d register range - N = 1 << 22, // long (or short) - U = 1 << 23, // positive (or negative) offset/index - P = 1 << 24, // offset/pre-indexed addressing (or post-indexed addressing) - I = 1 << 25, // immediate shifter operand (or not) - - B0 = 1, - B1 = 1 << 1, - B2 = 1 << 2, - B3 = 1 << 3, - B4 = 1 << 4, - B5 = 1 << 5, - B6 = 1 << 6, - B7 = 1 << 7, - B8 = 1 << 8, - B9 = 1 << 9, - B10 = 1 << 10, - B11 = 1 << 11, - B12 = 1 << 12, - B13 = 1 << 13, - B14 = 1 << 14, - B15 = 1 << 15, - B16 = 1 << 16, - B17 = 1 << 17, - B18 = 1 << 18, - B19 = 1 << 19, - B20 = 1 << 20, - B21 = 1 << 21, - B22 = 1 << 22, - B23 = 1 << 23, - B24 = 1 << 24, - B25 = 1 << 25, - B26 = 1 << 26, - B27 = 1 << 27, -}; +constexpr int32_t H = 1 << 5; // halfword (or byte) +constexpr int32_t L = 1 << 20; // load (or store) +constexpr int32_t S = 1 << 20; // set condition code (or leave unchanged) +constexpr int32_t W = 1 << 21; // writeback base register (or leave unchanged) +constexpr int32_t A = 1 << 21; // accumulate in multiply instruction (or not) +constexpr int32_t B = 1 << 22; // unsigned byte (or word) +constexpr int32_t D = 1 << 22; // high/lo bit of start of s/d register range +constexpr int32_t N = 1 << 22; // long (or short) +constexpr int32_t U = 1 << 23; // positive (or negative) offset/index +constexpr int32_t P = 1 << 24; // offset/pre-indexed addressing + // (or post-indexed addressing) +constexpr int32_t I = 1 << 25; // immediate shifter operand (or not) + +constexpr int32_t B0 = 1; +constexpr int32_t B1 = 1 << 1; +constexpr int32_t B2 = 1 << 2; +constexpr int32_t B3 = 1 << 3; +constexpr int32_t B4 = 1 << 4; +constexpr int32_t B5 = 1 << 5; +constexpr int32_t B6 = 1 << 6; +constexpr int32_t B7 = 1 << 7; +constexpr int32_t B8 = 1 << 8; +constexpr int32_t B9 = 1 << 9; +constexpr int32_t B10 = 1 << 10; +constexpr int32_t B11 = 1 << 11; +constexpr int32_t B12 = 1 << 12; +constexpr int32_t B13 = 1 << 13; +constexpr int32_t B14 = 1 << 14; +constexpr int32_t B15 = 1 << 15; +constexpr int32_t B16 = 1 << 16; +constexpr int32_t B17 = 1 << 17; +constexpr int32_t B18 = 1 << 18; +constexpr int32_t B19 = 1 << 19; +constexpr int32_t B20 = 1 << 20; +constexpr int32_t B21 = 1 << 21; +constexpr int32_t B22 = 1 << 22; +constexpr int32_t B23 = 1 << 23; +constexpr int32_t B24 = 1 << 24; +constexpr int32_t B25 = 1 << 25; +constexpr int32_t B26 = 1 << 26; +constexpr int32_t B27 = 1 << 27; class ArmEncode : public AllStatic { public: diff --git a/runtime/vm/compiler/backend/code_statistics.h b/runtime/vm/compiler/backend/code_statistics.h index 57c0687c194c..451df0653d21 100644 --- a/runtime/vm/compiler/backend/code_statistics.h +++ b/runtime/vm/compiler/backend/code_statistics.h @@ -47,7 +47,8 @@ class CombinedCodeStatistics { static EntryCounter SlowPathCounterFor(Instruction::Tag tag) { return static_cast( - CombinedCodeStatistics::kTagGraphEntrySlowPath + tag); + static_cast(CombinedCodeStatistics::kTagGraphEntrySlowPath) + + static_cast(tag)); } private: diff --git a/runtime/vm/compiler/jit/compiler.cc b/runtime/vm/compiler/jit/compiler.cc index a0d07a6096a7..8af3f259aa13 100644 --- a/runtime/vm/compiler/jit/compiler.cc +++ b/runtime/vm/compiler/jit/compiler.cc @@ -653,7 +653,7 @@ CodePtr CompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { // assembler. We try again (done = false) with far branches enabled. done = false; RELEASE_ASSERT(far_branch_level < 2); - far_branch_level++; + far_branch_level += 1; } else if (error.ptr() == Object::speculative_inlining_error().ptr()) { // Can only happen with precompilation. UNREACHABLE(); @@ -681,14 +681,13 @@ CodePtr CompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { static ObjectPtr CompileFunctionHelper(CompilationPipeline* pipeline, const Function& function, - volatile bool optimized, + bool optimized, intptr_t osr_id) { Thread* const thread = Thread::Current(); NoActiveIsolateScope no_active_isolate(thread); ASSERT(!FLAG_precompiled_mode); ASSERT(!optimized || function.WasCompiled() || function.ForceOptimize()); - if (function.ForceOptimize()) optimized = true; LongJumpScope jump; if (setjmp(*jump.Set()) == 0) { StackZone stack_zone(thread); @@ -863,9 +862,9 @@ ErrorPtr Compiler::EnsureUnoptimizedCode(Thread* thread, } CompilationPipeline* pipeline = CompilationPipeline::New(thread->zone(), function); + const bool optimized = function.ForceOptimize(); const Object& result = Object::Handle( - CompileFunctionHelper(pipeline, function, false, /* not optimized */ - kNoOSRDeoptId)); + CompileFunctionHelper(pipeline, function, optimized, kNoOSRDeoptId)); if (result.IsError()) { return Error::Cast(result).ptr(); } diff --git a/runtime/vm/constants_arm64.h b/runtime/vm/constants_arm64.h index 74bc35988d2e..ab6255569be3 100644 --- a/runtime/vm/constants_arm64.h +++ b/runtime/vm/constants_arm64.h @@ -690,40 +690,38 @@ static inline Condition InvertCondition(Condition c) { return static_cast(c ^ 1); } -enum Bits { - B0 = (1 << 0), - B1 = (1 << 1), - B2 = (1 << 2), - B3 = (1 << 3), - B4 = (1 << 4), - B5 = (1 << 5), - B6 = (1 << 6), - B7 = (1 << 7), - B8 = (1 << 8), - B9 = (1 << 9), - B10 = (1 << 10), - B11 = (1 << 11), - B12 = (1 << 12), - B13 = (1 << 13), - B14 = (1 << 14), - B15 = (1 << 15), - B16 = (1 << 16), - B17 = (1 << 17), - B18 = (1 << 18), - B19 = (1 << 19), - B20 = (1 << 20), - B21 = (1 << 21), - B22 = (1 << 22), - B23 = (1 << 23), - B24 = (1 << 24), - B25 = (1 << 25), - B26 = (1 << 26), - B27 = (1 << 27), - B28 = (1 << 28), - B29 = (1 << 29), - B30 = (1 << 30), - B31 = (1 << 31), -}; +constexpr int32_t B0 = (1 << 0); +constexpr int32_t B1 = (1 << 1); +constexpr int32_t B2 = (1 << 2); +constexpr int32_t B3 = (1 << 3); +constexpr int32_t B4 = (1 << 4); +constexpr int32_t B5 = (1 << 5); +constexpr int32_t B6 = (1 << 6); +constexpr int32_t B7 = (1 << 7); +constexpr int32_t B8 = (1 << 8); +constexpr int32_t B9 = (1 << 9); +constexpr int32_t B10 = (1 << 10); +constexpr int32_t B11 = (1 << 11); +constexpr int32_t B12 = (1 << 12); +constexpr int32_t B13 = (1 << 13); +constexpr int32_t B14 = (1 << 14); +constexpr int32_t B15 = (1 << 15); +constexpr int32_t B16 = (1 << 16); +constexpr int32_t B17 = (1 << 17); +constexpr int32_t B18 = (1 << 18); +constexpr int32_t B19 = (1 << 19); +constexpr int32_t B20 = (1 << 20); +constexpr int32_t B21 = (1 << 21); +constexpr int32_t B22 = (1 << 22); +constexpr int32_t B23 = (1 << 23); +constexpr int32_t B24 = (1 << 24); +constexpr int32_t B25 = (1 << 25); +constexpr int32_t B26 = (1 << 26); +constexpr int32_t B27 = (1 << 27); +constexpr int32_t B28 = (1 << 28); +constexpr int32_t B29 = (1 << 29); +constexpr int32_t B30 = (1 << 30); +constexpr int32_t B31 = (1 << 31); // Opcodes from C3 // C3.1. diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc index bdd8e261a0bb..b818bbcc6378 100644 --- a/runtime/vm/object.cc +++ b/runtime/vm/object.cc @@ -1039,7 +1039,8 @@ void Object::Init(IsolateGroup* isolate_group) { // at the start of the first entry. { const intptr_t array_size = - TypeArguments::Cache::kHeaderSize + TypeArguments::Cache::kEntrySize; + static_cast(TypeArguments::Cache::kHeaderSize) + + static_cast(TypeArguments::Cache::kEntrySize); uword address = heap->Allocate(thread, Array::InstanceSize(array_size), Heap::kOld); InitializeObjectVariant(address, kImmutableArrayCid, array_size); diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc index 6bf34bb83349..ac0c28059636 100644 --- a/runtime/vm/object_graph.cc +++ b/runtime/vm/object_graph.cc @@ -1713,7 +1713,8 @@ void HeapSnapshotWriter::Write() { // Smis. for (SmiPtr smi : smis_) { - WriteUnsigned(kSmiCid + kNumExtraCids); + WriteUnsigned(static_cast(kSmiCid) + + static_cast(kNumExtraCids)); WriteUnsigned(0); // Heap size. WriteUnsigned(kIntData); WriteUnsigned(Smi::Value(smi)); diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc index a6f3a752e60e..c33fbe8169ae 100644 --- a/runtime/vm/thread_test.cc +++ b/runtime/vm/thread_test.cc @@ -1036,13 +1036,13 @@ static void RunLockerWithLongJumpTest() { LongJumpScope jump; if (setjmp(*jump.Set()) == 0) { LockerType locker(Thread::Current(), &lock); - execution_count++; + execution_count = execution_count + 1; Thread::Current()->long_jump_base()->Jump( 1, Object::background_compilation_error()); } else { ASSERT(Thread::Current()->StealStickyError() == Object::background_compilation_error().ptr()); - thrown_count++; + thrown_count = thrown_count + 1; } } EXPECT_EQ(kNumIterations, execution_count); diff --git a/runtime/vm/type_testing_stubs.cc b/runtime/vm/type_testing_stubs.cc index afa5166e0f42..b6caf441f41c 100644 --- a/runtime/vm/type_testing_stubs.cc +++ b/runtime/vm/type_testing_stubs.cc @@ -232,7 +232,7 @@ static CodePtr RetryCompilationWithFarBranches( const Error& error = Error::Handle(thread->StealStickyError()); if (error.ptr() == Object::branch_offset_error().ptr()) { ASSERT(far_branch_level < 2); - far_branch_level++; + far_branch_level = far_branch_level + 1; } else if (error.ptr() == Object::out_of_memory_error().ptr()) { thread->set_sticky_error(error); return Code::null(); diff --git a/runtime/vm/unit_test.h b/runtime/vm/unit_test.h index f077bc9dd0de..6f535912cbf5 100644 --- a/runtime/vm/unit_test.h +++ b/runtime/vm/unit_test.h @@ -115,7 +115,7 @@ const Error& error = Error::Handle(thread->StealStickyError()); \ if (error.ptr() == Object::branch_offset_error().ptr()) { \ RELEASE_ASSERT(far_branch_level < 2); \ - far_branch_level++; \ + far_branch_level = far_branch_level + 1; \ } else { \ FATAL("Unexpected error: %s\n", error.ToErrorCString()); \ } \ diff --git a/tests/ffi/generator/structs_by_value_tests_generator.dart b/tests/ffi/generator/structs_by_value_tests_generator.dart index 68b5221272d3..f6983b651ce6 100644 --- a/tests/ffi/generator/structs_by_value_tests_generator.dart +++ b/tests/ffi/generator/structs_by_value_tests_generator.dart @@ -54,7 +54,7 @@ extension on CType { String coutExpression(String variableName) { switch (this.runtimeType) { case FundamentalType: - if (this == uint8 || this == int8) { + if (this == uint8 || this == int8 || this == wchar) { return "<< static_cast($variableName)"; } return "<< $variableName"; diff --git a/third_party/binaryen/BUILD.gn b/third_party/binaryen/BUILD.gn index 3deac6bbd9c0..132663e0416e 100644 --- a/third_party/binaryen/BUILD.gn +++ b/third_party/binaryen/BUILD.gn @@ -25,6 +25,7 @@ config("binaryen_flags") { "-Wno-unused-private-field", "-Wno-inconsistent-missing-override", "-Wno-unknown-warning-option", + "-Wno-deprecated-this-capture", ] } else { # GCC @@ -36,6 +37,7 @@ config("binaryen_flags") { # Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465#c16 triggered by # https://github.com/WebAssembly/binaryen/blob/cdb7aeab40b4c522de20b242019f7e88641445d5/src/wasm/wasm-type.cpp#L530. "-Wno-maybe-uninitialized", + "-Wno-deprecated", ] } } From 07148b78b8a8acfb0bd927d52f94073a734a4c61 Mon Sep 17 00:00:00 2001 From: pq Date: Tue, 12 Nov 2024 20:39:38 +0000 Subject: [PATCH 06/12] [element model] migrate `use_setters_to_change_properties` Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: I456c6e950c745f5f41bfba5d131e991d2435f713 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394385 Reviewed-by: Brian Wilkerson Commit-Queue: Phil Quitslund --- pkg/linter/analyzer_use_new_elements.txt | 2 -- pkg/linter/lib/src/extensions.dart | 6 ++++++ .../src/rules/use_setters_to_change_properties.dart | 11 ++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/pkg/linter/analyzer_use_new_elements.txt b/pkg/linter/analyzer_use_new_elements.txt index 7204072c2a91..3ad1f39a4d8a 100644 --- a/pkg/linter/analyzer_use_new_elements.txt +++ b/pkg/linter/analyzer_use_new_elements.txt @@ -11,9 +11,7 @@ lib/src/rules/prefer_initializing_formals.dart lib/src/rules/public_member_api_docs.dart lib/src/rules/unnecessary_overrides.dart lib/src/rules/use_build_context_synchronously.dart -lib/src/rules/use_key_in_widget_constructors.dart lib/src/rules/use_late_for_private_fields_and_variables.dart -lib/src/rules/use_setters_to_change_properties.dart lib/src/util/dart_type_utilities.dart lib/src/util/flutter_utils.dart lib/src/util/leak_detector_visitor.dart diff --git a/pkg/linter/lib/src/extensions.dart b/pkg/linter/lib/src/extensions.dart index f2adcda8c703..6cfff0e1f9d0 100644 --- a/pkg/linter/lib/src/extensions.dart +++ b/pkg/linter/lib/src/extensions.dart @@ -371,6 +371,12 @@ extension ElementExtension on Element { } extension ElementExtension2 on Element2? { + Element2? get canonicalElement2 => switch (this) { + GetterElement(:var variable3) => variable3, + SetterElement(:var variable3) => variable3, + _ => this, + }; + bool get isDartCorePrint { var self = this; return self is TopLevelFunctionElement && diff --git a/pkg/linter/lib/src/rules/use_setters_to_change_properties.dart b/pkg/linter/lib/src/rules/use_setters_to_change_properties.dart index d1d11d4f4ff4..678610837f0c 100644 --- a/pkg/linter/lib/src/rules/use_setters_to_change_properties.dart +++ b/pkg/linter/lib/src/rules/use_setters_to_change_properties.dart @@ -5,7 +5,7 @@ import 'package:analyzer/dart/ast/ast.dart'; import 'package:analyzer/dart/ast/token.dart'; import 'package:analyzer/dart/ast/visitor.dart'; -import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/type.dart'; import '../analyzer.dart'; @@ -50,10 +50,11 @@ class _Visitor extends SimpleAstVisitor { void checkExpression(Expression expression) { if (expression is AssignmentExpression && expression.operator.type == TokenType.EQ) { - var leftOperand = expression.writeElement?.canonicalElement; - var rightOperand = expression.rightHandSide.canonicalElement; - var parameterElement = node.declaredElement?.parameters.first; - if (rightOperand == parameterElement && leftOperand is FieldElement) { + var leftOperand = expression.writeElement2?.canonicalElement2; + var rightOperand = expression.rightHandSide.canonicalElement2; + var parameterElement = + node.declaredFragment?.element.formalParameters.first; + if (rightOperand == parameterElement && leftOperand is FieldElement2) { rule.reportLintForToken(node.name); } } From 3fe58da3cfe2c03fb9ee691a7a4709082fad3e73 Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Tue, 12 Nov 2024 20:50:21 +0000 Subject: [PATCH 07/12] [ DDS ] Fix race condition in Mutex The lock was being released but not reacquired when the next request resumed, potentially leading to a race. Change-Id: Ib00ae40ca8c1dfff6b98bbf642032c57d498fa40 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394760 Auto-Submit: Ben Konyi Reviewed-by: Jessy Yameogo Commit-Queue: Ben Konyi --- pkg/dds/lib/src/utils/mutex.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/dds/lib/src/utils/mutex.dart b/pkg/dds/lib/src/utils/mutex.dart index dcbbf599d218..fe0ed76829bb 100644 --- a/pkg/dds/lib/src/utils/mutex.dart +++ b/pkg/dds/lib/src/utils/mutex.dart @@ -72,11 +72,15 @@ class Mutex { } void _releaseLock() { - _locked = false; if (_outstandingRequests.isNotEmpty) { final request = _outstandingRequests.removeFirst(); request.complete(); + return; } + // Only release the lock if no other requests are pending to prevent races + // between the next request from the queue to be handled and incoming + // requests. + _locked = false; } int _weakGuards = 0; From 5cd0517bd66050b4edc7c52fd0f3fa3bd0f37a6d Mon Sep 17 00:00:00 2001 From: Keerti Parthasarathy Date: Tue, 12 Nov 2024 20:50:32 +0000 Subject: [PATCH 08/12] [Element model] Migrate SuggestionBuilder Change-Id: Ia01c196a56facab9ecec4fddbd1c8040bb677fe7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394421 Reviewed-by: Brian Wilkerson Commit-Queue: Keerti Parthasarathy --- .../src/cider/local_library_contributor.dart | 76 ++- .../lib/src/protocol_server.dart | 14 +- .../completion/dart/candidate_suggestion.dart | 106 ++-- .../completion/dart/suggestion_builder.dart | 542 ++++++++++++------ .../services/completion/dart/utilities.dart | 43 ++ .../lib/src/utilities/extensions/element.dart | 3 + .../dart/suggestion_builder_test.dart | 2 +- pkg/analyzer/lib/dart/element/element2.dart | 5 + .../dart/element/display_string_builder.dart | 1 + .../lib/src/dart/element/element.dart | 28 +- .../src/dart/resolver/resolution_visitor.dart | 2 + .../lib/src/test_utilities/find_element.dart | 10 + .../lib/src/utilities/extensions/element.dart | 43 +- 13 files changed, 622 insertions(+), 253 deletions(-) diff --git a/pkg/analysis_server/lib/src/cider/local_library_contributor.dart b/pkg/analysis_server/lib/src/cider/local_library_contributor.dart index d580d4f563b2..fced83e3dc01 100644 --- a/pkg/analysis_server/lib/src/cider/local_library_contributor.dart +++ b/pkg/analysis_server/lib/src/cider/local_library_contributor.dart @@ -9,8 +9,10 @@ import 'package:analysis_server/src/services/completion/dart/suggestion_builder. show SuggestionBuilder; import 'package:analyzer/dart/ast/ast.dart'; import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/dart/element/visitor.dart'; +import 'package:analyzer/src/utilities/extensions/element.dart'; import 'package:analyzer_plugin/src/utilities/completion/optype.dart'; /// A visitor for building suggestions based upon the elements defined by @@ -92,7 +94,11 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor { void visitExtensionElement(ExtensionElement element) { if (opType.includeReturnValueSuggestions) { if (element.name != null) { - builder.suggestExtension(element, kind: kind, prefix: prefix); + builder.suggestExtension( + element.asElement2 as ExtensionElement2, + kind: kind, + prefix: prefix, + ); } } } @@ -114,11 +120,19 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor { var returnType = element.returnType; if (returnType is VoidType) { if (opType.includeVoidReturnSuggestions) { - builder.suggestTopLevelFunction(element, kind: kind, prefix: prefix); + builder.suggestTopLevelFunction( + element.asElement2 as TopLevelFunctionElement, + kind: kind, + prefix: prefix, + ); } } else { if (opType.includeReturnValueSuggestions) { - builder.suggestTopLevelFunction(element, kind: kind, prefix: prefix); + builder.suggestTopLevelFunction( + element.asElement2 as TopLevelFunctionElement, + kind: kind, + prefix: prefix, + ); } } } @@ -152,14 +166,37 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor { if (element.isSynthetic) { if (element.isGetter) { if (variable is FieldElement) { - builder.suggestField(variable, inheritanceDistance: 0.0); + builder.suggestField( + variable.asElement2 as FieldElement2, + inheritanceDistance: 0.0, + ); } } } else { - builder.suggestAccessor(element, inheritanceDistance: 0.0); + if (element.isGetter) { + builder.suggestGetter( + element.asElement2 as GetterElement, + inheritanceDistance: 0.0, + ); + } else { + builder.suggestSetter( + element.asElement2 as SetterElement, + inheritanceDistance: 0.0, + ); + } } } else { - builder.suggestTopLevelPropertyAccessor(element, prefix: prefix); + if (element.isGetter) { + builder.suggestTopLevelGetter( + element.asElement2 as GetterElement, + prefix: prefix, + ); + } else { + builder.suggestTopLevelSetter( + element.asElement2 as SetterElement, + prefix: prefix, + ); + } } } } @@ -167,14 +204,20 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor { @override void visitTopLevelVariableElement(TopLevelVariableElement element) { if (opType.includeReturnValueSuggestions && !element.isSynthetic) { - builder.suggestTopLevelVariable(element, prefix: prefix); + builder.suggestTopLevelVariable( + element.asElement2 as TopLevelVariableElement2, + prefix: prefix, + ); } } @override void visitTypeAliasElement(TypeAliasElement element) { if (opType.includeTypeNameSuggestions) { - builder.suggestTypeAlias(element, prefix: prefix); + builder.suggestTypeAlias( + element.asElement2 as TypeAliasElement2, + prefix: prefix, + ); } } @@ -199,13 +242,17 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor { if (onlyConst && !constructor.isConst) { continue; } - builder.suggestConstructor(constructor, kind: kind, prefix: prefix); + builder.suggestConstructor( + constructor.asElement2 as ConstructorElement2, + kind: kind, + prefix: prefix, + ); } } void _visitInterfaceElement(InterfaceElement element) { if (opType.includeTypeNameSuggestions) { - builder.suggestInterface(element, prefix: prefix); + builder.suggestInterface(element.asElement2, prefix: prefix); } if (element is ClassElement) { if (opType.includeConstructorSuggestions) { @@ -226,14 +273,17 @@ class LibraryElementSuggestionBuilder extends GeneralizingElementVisitor { if (field.isSynthetic) { var getter = field.getter; if (getter != null) { - builder.suggestAccessor( - getter, + builder.suggestGetter( + getter.asElement2 as GetterElement, inheritanceDistance: 0.0, withEnclosingName: true, ); } } else { - builder.suggestStaticField(field, prefix: prefix); + builder.suggestStaticField( + field.asElement2 as FieldElement2, + prefix: prefix, + ); } } } diff --git a/pkg/analysis_server/lib/src/protocol_server.dart b/pkg/analysis_server/lib/src/protocol_server.dart index cbe2d4a666c2..fa9786b5b412 100644 --- a/pkg/analysis_server/lib/src/protocol_server.dart +++ b/pkg/analysis_server/lib/src/protocol_server.dart @@ -302,11 +302,15 @@ Location? newLocation_fromElement2(engine.Element2? element) { if (element == null) { return null; } - var fragment = element.firstFragment; - var offset = fragment.nameOffset2 ?? 0; - var length = fragment.name2?.length ?? 0; - var range = engine.SourceRange(offset, length); - return _locationForArgs2(fragment, range); + if (element is engine.FormalParameterElement && + element.enclosingElement2 == null) { + return null; + } + var fragment = element.firstFragment; + var offset = fragment.nameOffset2 ?? 0; + var length = fragment.name2?.length ?? 0; + var range = engine.SourceRange(offset, length); + return _locationForArgs2(fragment, range); } /// Create a Location based on an [engine.SearchMatch]. diff --git a/pkg/analysis_server/lib/src/services/completion/dart/candidate_suggestion.dart b/pkg/analysis_server/lib/src/services/completion/dart/candidate_suggestion.dart index f9e14cdefd2e..47df06f72c7a 100644 --- a/pkg/analysis_server/lib/src/services/completion/dart/candidate_suggestion.dart +++ b/pkg/analysis_server/lib/src/services/completion/dart/candidate_suggestion.dart @@ -13,6 +13,7 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/source/source_range.dart'; +import 'package:analyzer/src/dart/element/member.dart'; import 'package:analyzer/src/utilities/extensions/element.dart'; /// Information about a code completion suggestion that might or might not be @@ -1184,7 +1185,7 @@ extension SuggestionBuilderExtension on SuggestionBuilder { switch (suggestion) { case ClassSuggestion(): suggestInterface( - suggestion.element, + suggestion.element.asElement2 as ClassElement2, prefix: suggestion.prefix, relevance: relevance, ); @@ -1200,7 +1201,7 @@ extension SuggestionBuilderExtension on SuggestionBuilder { break; } suggestConstructor( - suggestion.element, + suggestion.element.asElement2 as ConstructorElement2, hasClassName: suggestion.hasClassName, completion: completion, kind: suggestion.kind, @@ -1210,34 +1211,34 @@ extension SuggestionBuilderExtension on SuggestionBuilder { ); case EnumSuggestion(): suggestInterface( - suggestion.element, + suggestion.element.asElement2 as EnumElement2, prefix: suggestion.prefix, relevance: relevance, ); case EnumConstantSuggestion(): if (suggestion.includeEnumName) { suggestEnumConstant( - suggestion.element, + suggestion.element.asElement2 as FieldElement2, suggestion.completion, relevance: relevance, ); } else { suggestField( - suggestion.element, + suggestion.element.asElement2 as FieldElement2, inheritanceDistance: 0.0, relevance: relevance, ); } case ExtensionSuggestion(): suggestExtension( - suggestion.element, + suggestion.element.asElement2 as ExtensionElement2, prefix: suggestion.prefix, relevance: relevance, kind: suggestion.kind, ); case ExtensionTypeSuggestion(): suggestInterface( - suggestion.element, + suggestion.element.asElement2 as ExtensionTypeElement2, prefix: suggestion.prefix, relevance: relevance, ); @@ -1245,7 +1246,7 @@ extension SuggestionBuilderExtension on SuggestionBuilder { var fieldElement = suggestion.element; if (fieldElement.isEnumConstant) { suggestEnumConstant( - fieldElement, + fieldElement.asElement2 as FieldElement2, suggestion.completion, relevance: relevance, ); @@ -1253,15 +1254,19 @@ extension SuggestionBuilderExtension on SuggestionBuilder { var inheritanceDistance = suggestion.inheritanceDistance( request.featureComputer, ); + var field = + fieldElement is FieldMember + ? fieldElement.declaration.asElement2 + : fieldElement.asElement2; suggestField( - fieldElement, + field as FieldElement2, inheritanceDistance: inheritanceDistance, relevance: relevance, ); } case FormalParameterSuggestion(): suggestFormalParameter( - element: suggestion.element, + element: suggestion.element.asElement2 as FormalParameterElement, distance: suggestion.distance, relevance: relevance, ); @@ -1274,7 +1279,7 @@ extension SuggestionBuilderExtension on SuggestionBuilder { ); case ImportPrefixSuggestion(): suggestPrefix( - suggestion.libraryElement, + suggestion.libraryElement.asElement2 as LibraryElement2, suggestion.prefixElement.name, relevance: relevance, ); @@ -1287,16 +1292,19 @@ extension SuggestionBuilderExtension on SuggestionBuilder { case LabelSuggestion(): suggestLabel(suggestion.label); case LoadLibraryFunctionSuggestion(): - suggestLoadLibraryFunction(suggestion.element, kind: suggestion.kind); + suggestLoadLibraryFunction( + suggestion.element.asElement2, + kind: suggestion.kind, + ); case LocalFunctionSuggestion(): - suggestTopLevelFunction( - suggestion.element, + suggestLocalFunction( + suggestion.element.asElement2 as LocalFunctionElement, relevance: relevance, kind: suggestion.kind, ); case LocalVariableSuggestion(): suggestLocalVariable( - element: suggestion.element, + element: suggestion.element.asElement2 as LocalVariableElement2, distance: suggestion.distance, relevance: relevance, ); @@ -1312,20 +1320,20 @@ extension SuggestionBuilderExtension on SuggestionBuilder { request.featureComputer, ); suggestMethod( - suggestion.element, + suggestion.element.asElement2 as MethodElement2, kind: kind, inheritanceDistance: inheritanceDistance, relevance: relevance, ); case MixinSuggestion(): suggestInterface( - suggestion.element, + suggestion.element.asElement2 as MixinElement2, prefix: suggestion.prefix, relevance: relevance, ); case NamedArgumentSuggestion(): suggestNamedArgument( - suggestion.parameter, + suggestion.parameter.asElement2 as FormalParameterElement, appendColon: suggestion.appendColon, appendComma: suggestion.appendComma, replacementLength: suggestion.replacementLength, @@ -1337,7 +1345,7 @@ extension SuggestionBuilderExtension on SuggestionBuilder { suggestName(suggestion.name); case OverrideSuggestion(): await suggestOverride( - element: suggestion.element, + element: suggestion.element.asElement2, invokeSuper: suggestion.shouldInvokeSuper, replacementRange: suggestion.replacementRange, skipAt: suggestion.skipAt, @@ -1346,12 +1354,22 @@ extension SuggestionBuilderExtension on SuggestionBuilder { var inheritanceDistance = suggestion.inheritanceDistance( request.featureComputer, ); - suggestAccessor( - suggestion.element, - inheritanceDistance: inheritanceDistance, - relevance: relevance, - completion: suggestion.completion, - ); + var accessor = suggestion.element; + if (accessor.isGetter) { + suggestGetter( + accessor.asElement2 as GetterElement, + inheritanceDistance: inheritanceDistance, + relevance: relevance, + completion: suggestion.completion, + ); + } else { + suggestSetter( + accessor.asElement2 as SetterElement, + inheritanceDistance: inheritanceDistance, + relevance: relevance, + completion: suggestion.completion, + ); + } case RecordFieldSuggestion(): suggestRecordField( field: suggestion.field, @@ -1369,7 +1387,7 @@ extension SuggestionBuilderExtension on SuggestionBuilder { request.featureComputer, ); suggestSetStateMethod( - suggestion.element, + suggestion.element.asElement2 as MethodElement2, kind: suggestion.kind, completion: suggestion.completion, displayText: suggestion.displayText, @@ -1379,40 +1397,54 @@ extension SuggestionBuilderExtension on SuggestionBuilder { ); case StaticFieldSuggestion(): suggestStaticField( - suggestion.element, + suggestion.element.asElement2 as FieldElement2, prefix: suggestion.prefix, relevance: relevance, completion: suggestion.completion, ); case SuperParameterSuggestion(): - suggestSuperFormalParameter(suggestion.element); + suggestSuperFormalParameter( + suggestion.element.asElement2 as FormalParameterElement, + ); case TopLevelFunctionSuggestion(): suggestTopLevelFunction( - suggestion.element, + suggestion.element.asElement2 as TopLevelFunctionElement, kind: suggestion.kind, prefix: suggestion.prefix, relevance: relevance, ); case TopLevelPropertyAccessSuggestion(): - suggestTopLevelPropertyAccessor( - suggestion.element, - prefix: suggestion.prefix, - relevance: relevance, - ); + var accessor = suggestion.element; + if (accessor.isGetter) { + suggestTopLevelGetter( + accessor.asElement2 as GetterElement, + prefix: suggestion.prefix, + relevance: relevance, + ); + } else { + suggestTopLevelSetter( + accessor.asElement2 as SetterElement, + prefix: suggestion.prefix, + relevance: relevance, + ); + } case TopLevelVariableSuggestion(): suggestTopLevelVariable( - suggestion.element, + suggestion.element.asElement2 as TopLevelVariableElement2, prefix: suggestion.prefix, relevance: relevance, ); case TypeAliasSuggestion(): suggestTypeAlias( - suggestion.element, + suggestion.element.asElement2 as TypeAliasElement2, prefix: suggestion.prefix, relevance: relevance, ); case TypeParameterSuggestion(): - suggestTypeParameter(suggestion.element, relevance: relevance); + suggestTypeParameter( + suggestion.element.asElement2 as TypeParameterElement2, + relevance: relevance, + ); case UriSuggestion(): suggestUri(suggestion.uriStr); } diff --git a/pkg/analysis_server/lib/src/services/completion/dart/suggestion_builder.dart b/pkg/analysis_server/lib/src/services/completion/dart/suggestion_builder.dart index 6565a7dbc186..4bc506affb94 100644 --- a/pkg/analysis_server/lib/src/services/completion/dart/suggestion_builder.dart +++ b/pkg/analysis_server/lib/src/services/completion/dart/suggestion_builder.dart @@ -14,7 +14,6 @@ import 'package:analysis_server/src/services/completion/dart/utilities.dart'; import 'package:analysis_server/src/utilities/extensions/ast.dart'; import 'package:analysis_server/src/utilities/extensions/element.dart'; import 'package:analyzer/dart/ast/ast.dart'; -import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/nullability_suffix.dart'; import 'package:analyzer/dart/element/type.dart'; @@ -138,71 +137,6 @@ class SuggestionBuilder { bool get _preferConstants => request.inConstantContext || request.opType.mustBeConst; - /// Add a suggestion for an [accessor] declared within a class or extension. - /// If the accessor is being invoked with a target of `super`, then the - /// [containingMemberName] should be the name of the member containing the - /// invocation. The [inheritanceDistance] is the value of the inheritance - /// distance feature computed for the accessor or `-1.0` if the accessor is a - /// static accessor. - void suggestAccessor( - PropertyAccessorElement accessor, { - required double inheritanceDistance, - bool withEnclosingName = false, - int? relevance, - String? completion, - }) { - var enclosingPrefix = ''; - var enclosingName = _enclosingClassOrExtensionName(accessor); - if (withEnclosingName && enclosingName != null) { - enclosingPrefix = '$enclosingName.'; - } - - completion ??= enclosingPrefix + accessor.displayName; - if (_couldMatch(completion, null)) { - var type = _getPropertyAccessorType(accessor); - var featureComputer = request.featureComputer; - var contextType = featureComputer.contextTypeFeature( - request.contextType, - type, - ); - var elementKind = _computeElementKind( - accessor, - distance: inheritanceDistance, - ); - var hasDeprecated = featureComputer.hasDeprecatedFeature(accessor); - var isConstant = - _preferConstants ? featureComputer.isConstantFeature(accessor) : 0.0; - var startsWithDollar = featureComputer.startsWithDollarFeature( - accessor.name, - ); - var superMatches = featureComputer.superMatchesFeature( - _containingMemberName, - accessor.name, - ); - relevance ??= relevanceComputer.computeScore( - contextType: contextType, - elementKind: elementKind, - hasDeprecated: hasDeprecated, - isConstant: isConstant, - isNotImported: request.featureComputer.isNotImportedFeature( - isNotImportedLibrary, - ), - startsWithDollar: startsWithDollar, - superMatches: superMatches, - inheritanceDistance: inheritanceDistance, - ); - _addBuilder( - _createCompletionSuggestionBuilder( - accessor, - completion: completion, - kind: CompletionSuggestionKind.IDENTIFIER, - relevance: relevance, - isNotImported: isNotImportedLibrary, - ), - ); - } - } - /// Add a suggestion to insert a closure. void suggestClosure({ required String completion, @@ -231,7 +165,7 @@ class SuggestionBuilder { /// can only be referenced using a prefix, and the class name is to be /// included in the completion, then the [prefix] should be provided. void suggestConstructor( - ConstructorElement constructor, { + ConstructorElement2 constructor, { CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION, bool suggestUnnamedAsNew = false, bool hasClassName = false, @@ -242,15 +176,15 @@ class SuggestionBuilder { // If the class name is already in the text, then we don't support // prepending a prefix. assert(!hasClassName || prefix == null); - var enclosingClass = constructor.enclosingElement3.augmented.firstFragment; + var enclosingClass = constructor.enclosingElement2.firstFragment; if (completion == null) { - var className = enclosingClass.name; - if (className.isEmpty) { + var className = enclosingClass.name2; + if (className == null || className.isEmpty) { return; } - completion = constructor.name; + completion = constructor.displayName; if (completion.isEmpty && suggestUnnamedAsNew) { completion = 'new'; } @@ -268,8 +202,8 @@ class SuggestionBuilder { } if (_couldMatch(completion, prefix)) { - var returnType = _instantiateInstanceElement(enclosingClass); - relevance ??= relevanceComputer.computeTopLevelRelevance( + var returnType = _instantiateInstanceElement2(enclosingClass.element); + relevance ??= relevanceComputer.computeTopLevelRelevance2( constructor, elementType: returnType, isNotImportedLibrary: isNotImportedLibrary, @@ -290,12 +224,12 @@ class SuggestionBuilder { /// Add a suggestion for an enum [constant]. If the enum can only be /// referenced using a prefix, then the [prefix] should be provided. void suggestEnumConstant( - FieldElement constant, + FieldElement2 constant, String completion, { String? prefix, int? relevance, }) { - relevance ??= relevanceComputer.computeTopLevelRelevance( + relevance ??= relevanceComputer.computeTopLevelRelevance2( constant, elementType: constant.type, isNotImportedLibrary: isNotImportedLibrary, @@ -316,7 +250,7 @@ class SuggestionBuilder { /// used as the kind for the suggestion. If the extension can only be /// referenced using a prefix, then the [prefix] should be provided. void suggestExtension( - ExtensionElement extension, { + ExtensionElement2 extension, { CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION, String? prefix, int? relevance, @@ -324,7 +258,7 @@ class SuggestionBuilder { var completion = _getCompletionString(extension); if (completion == null) return; if (_couldMatch(completion, prefix)) { - relevance ??= relevanceComputer.computeTopLevelRelevance( + relevance ??= relevanceComputer.computeTopLevelRelevance2( extension, elementType: extension.extendedType, isNotImportedLibrary: isNotImportedLibrary, @@ -347,7 +281,7 @@ class SuggestionBuilder { /// value of the inheritance distance feature computed for the field (or /// `-1.0` if the field is a static field). void suggestField( - FieldElement field, { + FieldElement2 field, { required double inheritanceDistance, int? relevance, }) { @@ -363,15 +297,15 @@ class SuggestionBuilder { field, distance: inheritanceDistance, ); - var hasDeprecated = featureComputer.hasDeprecatedFeature(field); + var hasDeprecated = featureComputer.hasDeprecatedFeature2(field); var isConstant = - _preferConstants ? featureComputer.isConstantFeature(field) : 0.0; + _preferConstants ? featureComputer.isConstantFeature2(field) : 0.0; var startsWithDollar = featureComputer.startsWithDollarFeature( - field.name, + field.name3 ?? '', ); var superMatches = featureComputer.superMatchesFeature( _containingMemberName, - field.name, + field.name3 ?? '', ); relevance ??= relevanceComputer.computeScore( contextType: contextType, @@ -394,7 +328,7 @@ class SuggestionBuilder { } void suggestFormalParameter({ - required ParameterElement element, + required FormalParameterElement element, required int distance, int? relevance, }) { @@ -409,7 +343,7 @@ class SuggestionBuilder { var elementKind = _computeElementKind(element); var isConstant = _preferConstants - ? request.featureComputer.isConstantFeature(element) + ? request.featureComputer.isConstantFeature2(element) : 0.0; relevance ??= relevanceComputer.computeScore( contextType: contextType, @@ -431,7 +365,7 @@ class SuggestionBuilder { void suggestFunctionCall() { var element = protocol.Element( protocol.ElementKind.METHOD, - FunctionElement.CALL_METHOD_NAME, + MethodElement2.CALL_METHOD_NAME, protocol.Element.makeFlags(), parameters: '()', returnType: 'void', @@ -440,8 +374,8 @@ class SuggestionBuilder { CompletionSuggestion( CompletionSuggestionKind.INVOCATION, Relevance.callFunction, - FunctionElement.CALL_METHOD_NAME, - FunctionElement.CALL_METHOD_NAME.length, + MethodElement2.CALL_METHOD_NAME, + MethodElement2.CALL_METHOD_NAME.length, 0, false, false, @@ -456,17 +390,82 @@ class SuggestionBuilder { ); } + /// Add a suggestion for an [getter] declared within a class or extension. + /// If the accessor is being invoked with a target of `super`, then the + /// [containingMemberName] should be the name of the member containing the + /// invocation. The [inheritanceDistance] is the value of the inheritance + /// distance feature computed for the accessor or `-1.0` if the accessor is a + /// static accessor. + void suggestGetter( + GetterElement getter, { + required double inheritanceDistance, + bool withEnclosingName = false, + int? relevance, + String? completion, + }) { + var enclosingPrefix = ''; + var enclosingName = _enclosingClassOrExtensionName(getter); + if (withEnclosingName && enclosingName != null) { + enclosingPrefix = '$enclosingName.'; + } + + completion ??= enclosingPrefix + getter.displayName; + if (_couldMatch(completion, null)) { + var type = getter.returnType; + var featureComputer = request.featureComputer; + var contextType = featureComputer.contextTypeFeature( + request.contextType, + type, + ); + var elementKind = _computeElementKind( + getter, + distance: inheritanceDistance, + ); + var hasDeprecated = featureComputer.hasDeprecatedFeature2(getter); + var isConstant = + _preferConstants ? featureComputer.isConstantFeature2(getter) : 0.0; + var startsWithDollar = featureComputer.startsWithDollarFeature( + getter.displayName, + ); + var superMatches = featureComputer.superMatchesFeature( + _containingMemberName, + getter.displayName, + ); + relevance ??= relevanceComputer.computeScore( + contextType: contextType, + elementKind: elementKind, + hasDeprecated: hasDeprecated, + isConstant: isConstant, + isNotImported: request.featureComputer.isNotImportedFeature( + isNotImportedLibrary, + ), + startsWithDollar: startsWithDollar, + superMatches: superMatches, + inheritanceDistance: inheritanceDistance, + ); + _addBuilder( + _createCompletionSuggestionBuilder( + getter, + completion: completion, + kind: CompletionSuggestionKind.IDENTIFIER, + relevance: relevance, + isNotImported: isNotImportedLibrary, + ), + ); + } + } + /// Add a suggestion for an [element]. If the class can only be /// referenced using a prefix, then the [prefix] should be provided. void suggestInterface( - InterfaceElement element, { + InterfaceElement2 element, { String? prefix, int? relevance, }) { var completion = _getCompletionString(element); if (completion == null) return; if (_couldMatch(completion, prefix)) { - relevance ??= relevanceComputer.computeTopLevelRelevance( + relevance ??= relevanceComputer.computeTopLevelRelevance2( element, elementType: _instantiateInstanceElement(element), isNotImportedLibrary: isNotImportedLibrary, @@ -544,7 +543,7 @@ class SuggestionBuilder { /// Add a suggestion for the `loadLibrary` [function] associated with a /// prefix. void suggestLoadLibraryFunction( - FunctionElement function, { + ExecutableElement2 function, { CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION, }) { // TODO(brianwilkerson): This might want to use the context type rather than @@ -560,8 +559,37 @@ class SuggestionBuilder { ); } + /// Add a suggestion for a local [function]. If a [kind] is provided it + /// will be used as the kind for the suggestion. If the function can only be + /// referenced using a prefix, then the [prefix] should be provided. + void suggestLocalFunction( + LocalFunctionElement function, { + CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION, + String? prefix, + int? relevance, + }) { + var completion = _getCompletionString(function); + if (completion == null) return; + if (_couldMatch(completion, prefix)) { + relevance ??= relevanceComputer.computeTopLevelRelevance2( + function, + elementType: function.returnType, + isNotImportedLibrary: isNotImportedLibrary, + ); + _addBuilder( + _createCompletionSuggestionBuilder( + function, + kind: kind, + prefix: prefix, + relevance: relevance, + isNotImported: isNotImportedLibrary, + ), + ); + } + } + void suggestLocalVariable({ - required LocalVariableElement element, + required LocalVariableElement2 element, required int distance, int? relevance, }) { @@ -579,7 +607,7 @@ class SuggestionBuilder { ); var isConstant = _preferConstants - ? request.featureComputer.isConstantFeature(element) + ? request.featureComputer.isConstantFeature2(element) : 0.0; relevance ??= relevanceComputer.computeScore( contextType: contextType, @@ -601,7 +629,7 @@ class SuggestionBuilder { /// as the kind for the suggestion. The [inheritanceDistance] is the value of /// the inheritance distance feature computed for the method. void suggestMethod( - MethodElement method, { + MethodElement2 method, { required CompletionSuggestionKind kind, required double inheritanceDistance, int? relevance, @@ -618,17 +646,19 @@ class SuggestionBuilder { method, distance: inheritanceDistance, ); - var hasDeprecated = featureComputer.hasDeprecatedFeature(method); + var hasDeprecated = featureComputer.hasDeprecatedFeature2(method); var isConstant = - _preferConstants ? featureComputer.isConstantFeature(method) : 0.0; + _preferConstants ? featureComputer.isConstantFeature2(method) : 0.0; var isNoSuchMethod = featureComputer.isNoSuchMethodFeature( _containingMemberName, - method.name, + method.displayName, + ); + var startsWithDollar = featureComputer.startsWithDollarFeature( + method.displayName, ); - var startsWithDollar = featureComputer.startsWithDollarFeature(method.name); var superMatches = featureComputer.superMatchesFeature( _containingMemberName, - method.name, + method.displayName, ); relevance ??= relevanceComputer.computeScore( contextType: contextType, @@ -676,7 +706,7 @@ class SuggestionBuilder { /// [appendComma] is `true` then a comma will be included at the end of the /// completion text. void suggestNamedArgument( - ParameterElement parameter, { + FormalParameterElement parameter, { required bool appendColon, required bool appendComma, required int selectionOffset, @@ -684,7 +714,7 @@ class SuggestionBuilder { int? replacementLength, required int relevance, }) { - var name = parameter.name; + var name = parameter.name3; var type = parameter.type.getDisplayString(); var suggestion = DartCompletionSuggestion( @@ -698,11 +728,11 @@ class SuggestionBuilder { parameterName: name, parameterType: type, replacementLength: replacementLength, - element: convertElement(parameter), + element: convertElement2(parameter), elementLocation: parameter.location, ); - if (parameter is FieldFormalParameterElement) { + if (parameter is FieldFormalParameterElement2) { _setDocumentation(suggestion, parameter); } @@ -752,7 +782,7 @@ class SuggestionBuilder { /// [element]. If [invokeSuper] is `true`, then the override will contain an /// invocation of an overridden member. Future suggestOverride({ - required ExecutableElement element, + required ExecutableElement2 element, required bool invokeSuper, required SourceRange replacementRange, required bool skipAt, @@ -764,7 +794,7 @@ class SuggestionBuilder { builder, ) { builder.addReplacement(replacementRange, (builder) { - builder.writeOverride( + builder.writeOverride2( element, displayTextBuffer: displayTextBuffer, invokeSuper: invokeSuper, @@ -818,13 +848,13 @@ class SuggestionBuilder { completion, selectionRange.offset - offsetDelta, selectionRange.length, - element.hasDeprecated, + element.metadata2.hasDeprecated, false, displayText: displayText, elementLocation: element.location, requiredImports: overrideImports.toList(), ); - suggestion.element = protocol.convertElement(element); + suggestion.element = protocol.convertElement2(element); _addSuggestion( suggestion, textToMatchOverride: _textToMatchOverride(element), @@ -832,7 +862,7 @@ class SuggestionBuilder { } /// Add a suggestion for a [prefix] associated with a [library]. - void suggestPrefix(LibraryElement library, String prefix, {int? relevance}) { + void suggestPrefix(LibraryElement2 library, String prefix, {int? relevance}) { var elementKind = _computeElementKind(library); // TODO(brianwilkerson): If we are in a constant context it would be nice // to promote prefixes for libraries that define constants, but that @@ -880,7 +910,7 @@ class SuggestionBuilder { /// Add a suggestion for the Flutter's `setState` method. void suggestSetStateMethod( - MethodElement method, { + MethodElement2 method, { required CompletionSuggestionKind kind, required String completion, required String displayText, @@ -905,13 +935,78 @@ class SuggestionBuilder { ); } + /// Add a suggestion for an [setter] declared within a class or extension. + /// If the accessor is being invoked with a target of `super`, then the + /// [containingMemberName] should be the name of the member containing the + /// invocation. The [inheritanceDistance] is the value of the inheritance + /// distance feature computed for the accessor or `-1.0` if the accessor is a + /// static accessor. + void suggestSetter( + SetterElement setter, { + required double inheritanceDistance, + bool withEnclosingName = false, + int? relevance, + String? completion, + }) { + var enclosingPrefix = ''; + var enclosingName = _enclosingClassOrExtensionName(setter); + if (withEnclosingName && enclosingName != null) { + enclosingPrefix = '$enclosingName.'; + } + + completion ??= enclosingPrefix + setter.displayName; + if (_couldMatch(completion, null)) { + var type = _getSetterType(setter); + var featureComputer = request.featureComputer; + var contextType = featureComputer.contextTypeFeature( + request.contextType, + type, + ); + var elementKind = _computeElementKind( + setter, + distance: inheritanceDistance, + ); + var hasDeprecated = featureComputer.hasDeprecatedFeature2(setter); + var isConstant = + _preferConstants ? featureComputer.isConstantFeature2(setter) : 0.0; + var startsWithDollar = featureComputer.startsWithDollarFeature( + setter.displayName, + ); + var superMatches = featureComputer.superMatchesFeature( + _containingMemberName, + setter.displayName, + ); + relevance ??= relevanceComputer.computeScore( + contextType: contextType, + elementKind: elementKind, + hasDeprecated: hasDeprecated, + isConstant: isConstant, + isNotImported: request.featureComputer.isNotImportedFeature( + isNotImportedLibrary, + ), + startsWithDollar: startsWithDollar, + superMatches: superMatches, + inheritanceDistance: inheritanceDistance, + ); + _addBuilder( + _createCompletionSuggestionBuilder( + setter, + completion: completion, + kind: CompletionSuggestionKind.IDENTIFIER, + relevance: relevance, + isNotImported: isNotImportedLibrary, + ), + ); + } + } + /// Add a suggestion for a static field declared within a class or extension. /// If the field is synthetic, add the corresponding getter instead. /// /// If the enclosing element can only be referenced using a prefix, then /// the [prefix] should be provided. void suggestStaticField( - FieldElement element, { + FieldElement2 element, { String? prefix, int? relevance, String? completion, @@ -922,9 +1017,9 @@ class SuggestionBuilder { if (enclosingName != null) { enclosingPrefix = '$enclosingName.'; } - completion ??= enclosingPrefix + element.name; + completion ??= enclosingPrefix + element.displayName; if (_couldMatch(completion, prefix)) { - relevance ??= relevanceComputer.computeTopLevelRelevance( + relevance ??= relevanceComputer.computeTopLevelRelevance2( element, elementType: element.type, isNotImportedLibrary: isNotImportedLibrary, @@ -943,7 +1038,7 @@ class SuggestionBuilder { } /// Add a suggestion to reference a [parameter] in a super formal parameter. - void suggestSuperFormalParameter(ParameterElement parameter) { + void suggestSuperFormalParameter(FormalParameterElement parameter) { _addBuilder( _createCompletionSuggestionBuilder( parameter, @@ -958,7 +1053,7 @@ class SuggestionBuilder { /// will be used as the kind for the suggestion. If the function can only be /// referenced using a prefix, then the [prefix] should be provided. void suggestTopLevelFunction( - FunctionElement function, { + TopLevelFunctionElement function, { CompletionSuggestionKind kind = CompletionSuggestionKind.INVOCATION, String? prefix, int? relevance, @@ -966,7 +1061,7 @@ class SuggestionBuilder { var completion = _getCompletionString(function); if (completion == null) return; if (_couldMatch(completion, prefix)) { - relevance ??= relevanceComputer.computeTopLevelRelevance( + relevance ??= relevanceComputer.computeTopLevelRelevance2( function, elementType: function.returnType, isNotImportedLibrary: isNotImportedLibrary, @@ -1012,33 +1107,33 @@ class SuggestionBuilder { } } - /// Add a suggestion for a top-level property [accessor]. If the accessor can + /// Add a suggestion for a top-level property [getter]. If the accessor can /// only be referenced using a prefix, then the [prefix] should be provided. - void suggestTopLevelPropertyAccessor( - PropertyAccessorElement accessor, { + void suggestTopLevelGetter( + GetterElement getter, { String? prefix, int? relevance, }) { assert( - accessor.enclosingElement3 is CompilationUnitElement, - 'Enclosing element of ${accessor.runtimeType} is ' - '${accessor.enclosingElement3.runtimeType}.', + getter.enclosingElement2 is LibraryElement2, + 'Enclosing element of ${getter.runtimeType} is ' + '${getter.enclosingElement2.runtimeType}.', ); - var completion = _getCompletionString(accessor); + var completion = _getCompletionString(getter); if (completion == null) return; if (_couldMatch(completion, prefix)) { - var type = _getPropertyAccessorType(accessor); + var type = getter.type; var featureComputer = request.featureComputer; var contextType = featureComputer.contextTypeFeature( request.contextType, type, ); - var elementKind = _computeElementKind(accessor); - var hasDeprecated = featureComputer.hasDeprecatedFeature(accessor); + var elementKind = _computeElementKind(getter); + var hasDeprecated = featureComputer.hasDeprecatedFeature2(getter); var isConstant = - _preferConstants ? featureComputer.isConstantFeature(accessor) : 0.0; + _preferConstants ? featureComputer.isConstantFeature2(getter) : 0.0; var startsWithDollar = featureComputer.startsWithDollarFeature( - accessor.name, + getter.displayName, ); var superMatches = 0.0; relevance ??= relevanceComputer.computeScore( @@ -1054,7 +1149,59 @@ class SuggestionBuilder { ); _addBuilder( _createCompletionSuggestionBuilder( - accessor, + getter, + kind: CompletionSuggestionKind.IDENTIFIER, + prefix: prefix, + relevance: relevance, + isNotImported: isNotImportedLibrary, + ), + ); + } + } + + /// Add a suggestion for a top-level property [setter]. If the accessor can + /// only be referenced using a prefix, then the [prefix] should be provided. + void suggestTopLevelSetter( + SetterElement setter, { + String? prefix, + int? relevance, + }) { + assert( + setter.enclosingElement2 is LibraryElement2, + 'Enclosing element of ${setter.runtimeType} is ' + '${setter.enclosingElement2.runtimeType}.', + ); + var completion = _getCompletionString(setter); + if (completion == null) return; + if (_couldMatch(completion, prefix)) { + var type = _getSetterType(setter); + var featureComputer = request.featureComputer; + var contextType = featureComputer.contextTypeFeature( + request.contextType, + type, + ); + var elementKind = _computeElementKind(setter); + var hasDeprecated = featureComputer.hasDeprecatedFeature2(setter); + var isConstant = + _preferConstants ? featureComputer.isConstantFeature2(setter) : 0.0; + var startsWithDollar = featureComputer.startsWithDollarFeature( + setter.displayName, + ); + var superMatches = 0.0; + relevance ??= relevanceComputer.computeScore( + contextType: contextType, + elementKind: elementKind, + hasDeprecated: hasDeprecated, + isConstant: isConstant, + isNotImported: request.featureComputer.isNotImportedFeature( + isNotImportedLibrary, + ), + startsWithDollar: startsWithDollar, + superMatches: superMatches, + ); + _addBuilder( + _createCompletionSuggestionBuilder( + setter, kind: CompletionSuggestionKind.IDENTIFIER, prefix: prefix, relevance: relevance, @@ -1067,15 +1214,15 @@ class SuggestionBuilder { /// Add a suggestion for a top-level [variable]. If the variable can only be /// referenced using a prefix, then the [prefix] should be provided. void suggestTopLevelVariable( - TopLevelVariableElement variable, { + TopLevelVariableElement2 variable, { String? prefix, int? relevance, }) { var completion = _getCompletionString(variable); if (completion == null) return; if (_couldMatch(completion, prefix)) { - assert(variable.enclosingElement3 is CompilationUnitElement); - relevance ??= relevanceComputer.computeTopLevelRelevance( + assert(variable.enclosingElement2 is LibraryElement2); + relevance ??= relevanceComputer.computeTopLevelRelevance2( variable, elementType: variable.type, isNotImportedLibrary: isNotImportedLibrary, @@ -1095,14 +1242,14 @@ class SuggestionBuilder { /// Add a suggestion for a [typeAlias]. If the alias can only be referenced /// using a prefix, then the [prefix] should be provided. void suggestTypeAlias( - TypeAliasElement typeAlias, { + TypeAliasElement2 typeAlias, { String? prefix, int? relevance, }) { var completion = _getCompletionString(typeAlias); if (completion == null) return; if (_couldMatch(completion, prefix)) { - relevance ??= relevanceComputer.computeTopLevelRelevance( + relevance ??= relevanceComputer.computeTopLevelRelevance2( typeAlias, elementType: _instantiateTypeAlias(typeAlias), isNotImportedLibrary: isNotImportedLibrary, @@ -1120,11 +1267,11 @@ class SuggestionBuilder { } /// Add a suggestion for a type [parameter]. - void suggestTypeParameter(TypeParameterElement parameter, {int? relevance}) { + void suggestTypeParameter(TypeParameterElement2 parameter, {int? relevance}) { var elementKind = _computeElementKind(parameter); var isConstant = _preferConstants - ? request.featureComputer.isConstantFeature(parameter) + ? request.featureComputer.isConstantFeature2(parameter) : 0.0; relevance ??= relevanceComputer.computeScore( elementKind: elementKind, @@ -1170,11 +1317,11 @@ class SuggestionBuilder { // suggestions are added has been changed by the move to // `InScopeCompletionPass`. var suggestedElement = suggestion.orgElement; - if (suggestedElement is ConstructorElement) { - var parentName = suggestedElement.enclosingElement3.name; + if (suggestedElement is ConstructorElement2) { + var parentName = suggestedElement.enclosingElement2.displayName; var existingSuggestion = _suggestionMap[parentName]; if (existingSuggestion is _CompletionSuggestionBuilderImpl && - existingSuggestion.orgElement is! ClassElement) { + existingSuggestion.orgElement is! ClassElement2) { // We return when the current suggestion is not a class because that // means that the current suggestion shadows the one being added. return; @@ -1214,9 +1361,9 @@ class SuggestionBuilder { /// Compute the value of the _element kind_ feature for the given [element] in /// the completion context. - double _computeElementKind(Element element, {double? distance}) { + double _computeElementKind(Element2 element, {double? distance}) { var location = request.opType.completionLocation; - var elementKind = request.featureComputer.elementKindFeature( + var elementKind = request.featureComputer.elementKindFeature2( element, location, distance: distance, @@ -1258,7 +1405,7 @@ class SuggestionBuilder { /// then the element name (or completion) will be prefixed. The [relevance] is /// the relevance of the suggestion. CompletionSuggestionBuilder? _createCompletionSuggestionBuilder( - Element element, { + Element2 element, { String? completion, required CompletionSuggestionKind kind, required int relevance, @@ -1311,7 +1458,7 @@ class SuggestionBuilder { } return _CompletionSuggestionBuilderImpl( - orgElement: element.asElement!, + orgElement: element, suggestionBuilder: this, kind: kind, completion: completion, @@ -1323,52 +1470,64 @@ class SuggestionBuilder { } /// The non-caching implementation of [_getElementCompletionData]. - _ElementCompletionData _createElementCompletionData(Element element) { + _ElementCompletionData _createElementCompletionData(Element2 element) { var documentation = _getDocumentation(element); - var suggestedElement = protocol.convertElement(element); - - var enclosingElement = element.enclosingElement3; + var suggestedElement = protocol.convertElement2(element); String? declaringType; - if (enclosingElement is InterfaceElement) { - declaringType = enclosingElement.displayName; + if (element is! FormalParameterElement) { + var enclosingElement = element.enclosingElement2; + + if (enclosingElement is InterfaceElement2) { + declaringType = enclosingElement.displayName; + } } - var returnType = getReturnTypeString(element); - var colorHex = getColorHexString(element); + var returnType = getReturnTypeString2(element); + var colorHex = getColorHexString2(element); List? parameterNames; List? parameterTypes; int? requiredParameterCount; bool? hasNamedParameters; CompletionDefaultArgumentList? defaultArgumentList; - if (element is ExecutableElement && element is! PropertyAccessorElement) { + if (element is ExecutableElement2 && + element is! GetterElement && + element is! SetterElement) { parameterNames = - element.parameters.map((parameter) { - return parameter.name; + element.formalParameters.map((parameter) { + return parameter.displayName; }).toList(); parameterTypes = - element.parameters.map((ParameterElement parameter) { + element.formalParameters.map((FormalParameterElement parameter) { return parameter.type.getDisplayString(); }).toList(); - var requiredParameters = element.parameters.where( - (ParameterElement param) => param.isRequiredPositional, + var requiredParameters = element.formalParameters.where( + (FormalParameterElement param) => param.isRequiredPositional, ); requiredParameterCount = requiredParameters.length; - var namedParameters = element.parameters.where( - (ParameterElement param) => param.isNamed, + var namedParameters = element.formalParameters.where( + (FormalParameterElement param) => param.isNamed, ); hasNamedParameters = namedParameters.isNotEmpty; - defaultArgumentList = computeCompletionDefaultArgumentList( + defaultArgumentList = computeCompletionDefaultArgumentList2( element, requiredParameters, namedParameters, ); } + // If element is a local variable or is a parameter of a local function, + // then the element location can be null. + ElementLocation? elementLocation; + if (element is! LocalVariableElement2 || + (element is FormalParameterElement && + element.enclosingElement2 != null)) { + elementLocation = element.location; + } return _ElementCompletionData( isDeprecated: element.hasOrInheritsDeprecated, @@ -1381,7 +1540,7 @@ class SuggestionBuilder { documentation: documentation, defaultArgumentList: defaultArgumentList, element: suggestedElement, - elementLocation: element.location, + elementLocation: elementLocation, colorHex: colorHex, ); } @@ -1390,20 +1549,20 @@ class SuggestionBuilder { /// /// The enclosing element must be either a class, or extension; otherwise /// we either fail with assertion, or return `null`. - String? _enclosingClassOrExtensionName(Element element) { - var enclosing = element.enclosingElement3; - if (enclosing is InterfaceElement) { - return enclosing.name; - } else if (enclosing is ExtensionElement) { - return enclosing.name; + String? _enclosingClassOrExtensionName(Element2 element) { + var enclosing = element.enclosingElement2; + if (enclosing is InterfaceElement2) { + return enclosing.displayName; + } else if (enclosing is ExtensionElement2) { + return enclosing.displayName; } else { assert(false, 'Expected ClassElement or ExtensionElement'); return null; } } - String? _getCompletionString(Element element) { - if (element is ExecutableElement && element.isOperator) { + String? _getCompletionString(Element2 element) { + if (element is MethodElement2 && element.isOperator) { return null; } @@ -1419,9 +1578,9 @@ class SuggestionBuilder { } /// If the [element] has a documentation comment, return it. - _ElementDocumentation? _getDocumentation(Element element) { + _ElementDocumentation? _getDocumentation(Element2 element) { var doc = request.documentationComputer.compute( - element, + element.asElement!, includeSummary: true, ); if (doc is DocumentationWithSummary) { @@ -1435,21 +1594,30 @@ class SuggestionBuilder { /// Return the type associated with the [accessor], maybe `null` if an /// invalid setter with no parameters at all. - DartType? _getPropertyAccessorType(PropertyAccessorElement accessor) { - if (accessor.isGetter) { - return accessor.returnType; + DartType? _getSetterType(SetterElement accessor) { + var parameters = accessor.formalParameters; + if (parameters.isEmpty) { + return null; } else { - var parameters = accessor.parameters; - if (parameters.isEmpty) { - return null; - } else { - return parameters[0].type; - } + return parameters[0].type; + } + } + + InterfaceType _instantiateInstanceElement(InterfaceElement2 element) { + var typeParameters = element.typeParameters2; + var typeArguments = const []; + if (typeParameters.isNotEmpty) { + var neverType = request.libraryElement.typeProvider.neverType; + typeArguments = List.filled(typeParameters.length, neverType); } + return element.instantiate( + typeArguments: typeArguments, + nullabilitySuffix: NullabilitySuffix.none, + ); } - InterfaceType _instantiateInstanceElement(InterfaceElement element) { - var typeParameters = element.typeParameters; + InterfaceType _instantiateInstanceElement2(InterfaceElement2 element) { + var typeParameters = element.typeParameters2; var typeArguments = const []; if (typeParameters.isNotEmpty) { var neverType = request.libraryElement.typeProvider.neverType; @@ -1461,8 +1629,8 @@ class SuggestionBuilder { ); } - DartType _instantiateTypeAlias(TypeAliasElement element) { - var typeParameters = element.typeParameters; + DartType _instantiateTypeAlias(TypeAliasElement2 element) { + var typeParameters = element.typeParameters2; var typeArguments = const []; if (typeParameters.isNotEmpty) { var neverType = request.libraryElement.typeProvider.neverType; @@ -1476,9 +1644,9 @@ class SuggestionBuilder { /// If the [element] has a documentation comment, fill the [suggestion]'s /// documentation fields. - void _setDocumentation(CompletionSuggestion suggestion, Element element) { + void _setDocumentation(CompletionSuggestion suggestion, Element2 element) { var doc = request.documentationComputer.compute( - element, + element.asElement!, includeSummary: true, ); if (doc is DocumentationWithSummary) { @@ -1487,8 +1655,8 @@ class SuggestionBuilder { } } - static String _textToMatchOverride(ExecutableElement element) { - if (element.isOperator) { + static String _textToMatchOverride(ExecutableElement2 element) { + if (element is MethodElement2 && element.isOperator) { return 'override_operator'; } // Add "override" to match filter when `@override`. @@ -1568,7 +1736,7 @@ class ValueCompletionSuggestionBuilder implements CompletionSuggestionBuilder { /// The implementation of [CompletionSuggestionBuilder] that is based on /// [ElementCompletionData] and location specific information. class _CompletionSuggestionBuilderImpl implements CompletionSuggestionBuilder { - final Element orgElement; + final Element2 orgElement; final SuggestionBuilder suggestionBuilder; @override diff --git a/pkg/analysis_server/lib/src/services/completion/dart/utilities.dart b/pkg/analysis_server/lib/src/services/completion/dart/utilities.dart index 4d724afabd56..47d4f86dc9d6 100644 --- a/pkg/analysis_server/lib/src/services/completion/dart/utilities.dart +++ b/pkg/analysis_server/lib/src/services/completion/dart/utilities.dart @@ -129,6 +129,49 @@ CompletionDefaultArgumentList computeCompletionDefaultArgumentList( ); } +/// Compute default argument list text and ranges based on the given +/// [requiredParams] and [namedParams]. +CompletionDefaultArgumentList computeCompletionDefaultArgumentList2( + Element2 element, + Iterable requiredParams, + Iterable namedParams, +) { + var sb = StringBuffer(); + var ranges = []; + + int offset; + + for (var param in requiredParams) { + if (sb.isNotEmpty) { + sb.write(', '); + } + offset = sb.length; + + var name = param.displayName; + sb.write(name); + ranges.addAll([offset, name.length]); + } + + for (var param in namedParams) { + if (param.metadata2.hasRequired || param.isRequiredNamed) { + if (sb.isNotEmpty) { + sb.write(', '); + } + var name = param.displayName; + sb.write('$name: '); + offset = sb.length; + // TODO(pq): fix to use getDefaultStringParameterValue() + sb.write(name); + ranges.addAll([offset, name.length]); + } + } + + return CompletionDefaultArgumentList( + text: sb.isNotEmpty ? sb.toString() : null, + ranges: ranges.isNotEmpty ? ranges : null, + ); +} + /// Create a new protocol Element for inclusion in a completion suggestion. protocol.Element createLocalElement( Source source, diff --git a/pkg/analysis_server/lib/src/utilities/extensions/element.dart b/pkg/analysis_server/lib/src/utilities/extensions/element.dart index 047149d241e2..cf5833555d6b 100644 --- a/pkg/analysis_server/lib/src/utilities/extensions/element.dart +++ b/pkg/analysis_server/lib/src/utilities/extensions/element.dart @@ -46,6 +46,9 @@ extension Element2Extension on Element2 { if (this is Annotatable && (this as Annotatable).metadata2.hasDeprecated) { return true; } + if (this is FormalParameterElement) { + return false; + } var ancestor = enclosingElement2; if (ancestor is InterfaceElement2) { if (ancestor.metadata2.hasDeprecated) { diff --git a/pkg/analysis_server/test/src/services/completion/dart/suggestion_builder_test.dart b/pkg/analysis_server/test/src/services/completion/dart/suggestion_builder_test.dart index 592ed31d4b3c..a715261c83bb 100644 --- a/pkg/analysis_server/test/src/services/completion/dart/suggestion_builder_test.dart +++ b/pkg/analysis_server/test/src/services/completion/dart/suggestion_builder_test.dart @@ -34,7 +34,7 @@ class SuggestionBuilderTest extends AbstractSingleUnitTest { offset: 0, ); var builder = SuggestionBuilder(request, useFilter: false); - builder.suggestTopLevelFunction2(findElement2.topFunction('f')); + builder.suggestTopLevelFunction(findElement2.topFunction('f')); var suggestions = builder.suggestions.map((e) => e.build()).toList(); expect(suggestions, hasLength(1)); return suggestions[0]; diff --git a/pkg/analyzer/lib/dart/element/element2.dart b/pkg/analyzer/lib/dart/element/element2.dart index 3d03e5b5dc0d..3cf6b141b8f8 100644 --- a/pkg/analyzer/lib/dart/element/element2.dart +++ b/pkg/analyzer/lib/dart/element/element2.dart @@ -1830,6 +1830,11 @@ abstract class Metadata { /// /// Clients may not extend, implement or mix-in this class. abstract class MethodElement2 implements ExecutableElement2 { + + /// The name of the method that can be implemented by a class to allow its + /// instances to be invoked as if they were a function. + static final String CALL_METHOD_NAME = "call"; + @override MethodElement2 get baseElement; diff --git a/pkg/analyzer/lib/src/dart/element/display_string_builder.dart b/pkg/analyzer/lib/src/dart/element/display_string_builder.dart index 50fdd8dbd744..da68eb767b31 100644 --- a/pkg/analyzer/lib/src/dart/element/display_string_builder.dart +++ b/pkg/analyzer/lib/src/dart/element/display_string_builder.dart @@ -630,6 +630,7 @@ class ElementDisplayStringBuilder { } var newTypeParameter = TypeParameterElementImpl(name, -1); + newTypeParameter.name2 = name; newTypeParameter.bound = typeParameter.bound; newTypeParameters.add(newTypeParameter); } diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart index ca49e5135a92..aa0d47137bc0 100644 --- a/pkg/analyzer/lib/src/dart/element/element.dart +++ b/pkg/analyzer/lib/src/dart/element/element.dart @@ -3386,8 +3386,25 @@ class ElementLocationImpl implements ElementLocation { List components = []; Element2? ancestor = element; while (ancestor != null) { - components.insert(0, (ancestor as ElementImpl2).identifier); - ancestor = ancestor.enclosingElement2; + if (ancestor is! ElementImpl2) { + if (ancestor is LibraryElementImpl) { + components.insert(0, ancestor.identifier); + } else if (ancestor is AugmentableElement) { + components.insert(0, ancestor.identifier); + } else { + throw '${ancestor.runtimeType} is not an ElementImpl2'; + } + ancestor = ancestor.enclosingElement2; + } else { + components.insert(0, ancestor.identifier); + if (ancestor is LocalFunctionElementImpl) { + ancestor = (ancestor.wrappedElement._enclosingElement3 + as ExecutableElementImpl) + .element; + } else { + ancestor = ancestor.enclosingElement2; + } + } } _components = components.toFixedList(); } @@ -5381,6 +5398,9 @@ abstract class InstanceElementImpl2 extends ElementImpl2 .nonNulls .toList(); + @override + String get identifier => name3 ?? firstFragment.identifier; + @override bool get isPrivate => firstFragment.isPrivate; @@ -7105,6 +7125,10 @@ class LocalFunctionElementImpl extends ExecutableElementImpl2 .map((fragment) => (fragment as TypeParameterFragment).element) .toList(); + FunctionElementImpl get wrappedElement { + return _wrappedElement; + } + @override T? accept2(ElementVisitor2 visitor) { return visitor.visitLocalFunctionElement(this); diff --git a/pkg/analyzer/lib/src/dart/resolver/resolution_visitor.dart b/pkg/analyzer/lib/src/dart/resolver/resolution_visitor.dart index eca01a228940..eed2b8163a40 100644 --- a/pkg/analyzer/lib/src/dart/resolver/resolution_visitor.dart +++ b/pkg/analyzer/lib/src/dart/resolver/resolution_visitor.dart @@ -1537,6 +1537,8 @@ class ResolutionVisitor extends RecursiveAstVisitor { element = _elementWalker!.getTypeParameter(); } else { element = TypeParameterElementImpl(name.lexeme, name.offset); + element.name2 = name.lexeme; + element.nameOffset2 = name.offset; _elementHolder.addTypeParameter(element); _setCodeRange(element, typeParameter); diff --git a/pkg/analyzer/lib/src/test_utilities/find_element.dart b/pkg/analyzer/lib/src/test_utilities/find_element.dart index 4b911e706b50..b3e4a97c0d5e 100644 --- a/pkg/analyzer/lib/src/test_utilities/find_element.dart +++ b/pkg/analyzer/lib/src/test_utilities/find_element.dart @@ -4,6 +4,7 @@ import 'package:analyzer/dart/ast/ast.dart'; import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/src/test_utilities/function_ast_visitor.dart'; import 'package:analyzer/src/utilities/extensions/element.dart'; @@ -467,6 +468,15 @@ abstract class _FindElementBase { throw StateError('Not found: $name'); } + TopLevelFunctionElement topFunction2(String name) { + for (var function in (unitElement.asElement2 as LibraryElement2).functions) { + if (function.displayName == name) { + return function; + } + } + throw StateError('Not found: $name'); + } + PropertyAccessorElement topGet(String name) { return topVar(name).getter!; } diff --git a/pkg/analyzer/lib/src/utilities/extensions/element.dart b/pkg/analyzer/lib/src/utilities/extensions/element.dart index fc806a93d32d..66b556248209 100644 --- a/pkg/analyzer/lib/src/utilities/extensions/element.dart +++ b/pkg/analyzer/lib/src/utilities/extensions/element.dart @@ -32,9 +32,25 @@ extension Element2OrNullExtension on Element2? { Element? get asElement { var self = this; switch (self) { - case DynamicElementImpl2(): - return DynamicElementImpl.instance; - case GetterElement(): + case ConstructorElementImpl2(): + return self.firstFragment as Element; + case DynamicElementImpl(): + return self; + case ExecutableMember(): + return self.declaration as Element; + case FieldElementImpl2(): + return self.firstFragment as Element; + case FormalParameterElementImpl(): + return self.firstFragment as Element; + case GetterElementImpl(): + return self.firstFragment as Element; + case LibraryElementImpl(): + return self as Element; + case LocalFunctionElementImpl(): + return self.wrappedElement as Element; + case LocalVariableElementImpl2(): + return self.wrappedElement as Element; + case MethodElementImpl2(): return self.firstFragment as Element; case MultiplyDefinedElementImpl2 element2: return element2.asElement; @@ -42,6 +58,8 @@ extension Element2OrNullExtension on Element2? { return NeverElementImpl.instance; case PrefixElementImpl(): return self; + case SetterElementImpl(): + return self.firstFragment as Element; case TopLevelFunctionElementImpl(): return self.firstFragment as Element; case TopLevelVariableElementImpl2(): @@ -136,8 +154,21 @@ extension ElementOrNullExtension on Element? { return null; } else if (self is DynamicElementImpl) { return DynamicElementImpl2.instance; + } else if (self is ExtensionElementImpl) { + return (self as ExtensionFragment).element; + } else if (self is ExecutableMember) { + return self as ExecutableElement2; + } else if (self is FieldMember) { + return self as FieldElement2; + } else if (self is FieldElementImpl) { + return (self as FieldFragment).element; } else if (self is FunctionElementImpl) { - return self.element; + if (self.enclosingElement3 is! CompilationUnitElement) { + // TODO(scheglov): update `FunctionElementImpl.element` return type? + return self.element; + } else { + return (self as Fragment).element; + } } else if (self is InterfaceElementImpl) { return self.element; } else if (self is LabelElementImpl) { @@ -158,10 +189,6 @@ extension ElementOrNullExtension on Element? { return self; } else if (self is PrefixElementImpl) { return self.element2; - } else if (self is ExecutableMember) { - return self as ExecutableElement2; - } else if (self is FieldMember) { - return self as FieldElement2; } else { return (self as Fragment?)?.element; } From 0f4883eb89da2332206759334bfba61b033de89a Mon Sep 17 00:00:00 2001 From: pq Date: Tue, 12 Nov 2024 21:47:36 +0000 Subject: [PATCH 09/12] [element model] migrate `leak_detector` Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: I884c138719f046f641bf601f8be4e46a8348fe47 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394387 Reviewed-by: Brian Wilkerson Commit-Queue: Phil Quitslund --- .../lib/src/util/leak_detector_visitor.dart | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/pkg/linter/lib/src/util/leak_detector_visitor.dart b/pkg/linter/lib/src/util/leak_detector_visitor.dart index ae28c77b549c..80f3d6cdedf5 100644 --- a/pkg/linter/lib/src/util/leak_detector_visitor.dart +++ b/pkg/linter/lib/src/util/leak_detector_visitor.dart @@ -4,7 +4,7 @@ import 'package:analyzer/dart/ast/ast.dart'; import 'package:analyzer/dart/ast/visitor.dart'; -import 'package:analyzer/dart/element/element.dart'; +import 'package:analyzer/dart/element/element2.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:meta/meta.dart'; @@ -24,7 +24,7 @@ _VisitVariableDeclaration _buildVariableReporter( return; } - var variableElement = variable.declaredElement; + var variableElement = variable.declaredFragment?.element; if (variableElement == null) { return; } @@ -56,39 +56,35 @@ bool _hasMatch(Map predicates, DartType type, predicates.keys.any((p) => predicates[p] == methodName && p(type)); bool _isElementEqualToVariable( - Element? propertyElement, VariableElement? variableElement) => + Element2? propertyElement, VariableElement2? variableElement) => propertyElement == variableElement || - propertyElement is PropertyAccessorElement && - propertyElement.variable2 == variableElement; + propertyElement.matches(variableElement); bool _isInvocationThroughCascadeExpression( - MethodInvocation invocation, VariableElement variableElement) { + MethodInvocation invocation, VariableElement2 variableElement) { if (invocation.realTarget is! SimpleIdentifier) { return false; } var identifier = invocation.realTarget; if (identifier is SimpleIdentifier) { - var element = identifier.staticElement; - if (element is PropertyAccessorElement) { - return element.variable2 == variableElement; - } + return identifier.element.matches(variableElement); } return false; } bool _isPostfixExpressionOperandEqualToVariable( - AstNode? n, VariableElement variableElement) { + AstNode? n, VariableElement2 variableElement) { if (n is PostfixExpression) { var operand = n.operand; return operand is SimpleIdentifier && - _isElementEqualToVariable(operand.staticElement, variableElement); + _isElementEqualToVariable(operand.element, variableElement); } return false; } bool _isPropertyAccessThroughThis( - Expression? n, VariableElement variableElement) { + Expression? n, VariableElement2 variableElement) { if (n is! PropertyAccess) { return false; } @@ -98,14 +94,14 @@ bool _isPropertyAccessThroughThis( return false; } - var propertyElement = n.propertyName.staticElement; + var propertyElement = n.propertyName.element; return _isElementEqualToVariable(propertyElement, variableElement); } bool _isSimpleIdentifierElementEqualToVariable( - AstNode? n, VariableElement variableElement) => + AstNode? n, VariableElement2 variableElement) => n is SimpleIdentifier && - _isElementEqualToVariable(n.staticElement, variableElement); + _isElementEqualToVariable(n.element, variableElement); typedef DartTypePredicate = bool Function(DartType type); @@ -164,7 +160,7 @@ class _ValidUseVisitor extends RecursiveAstVisitor { /// The element of the variable under consideration; stored here as a non- /// `null` value. - final VariableElement variableElement; + final VariableElement2 variableElement; /// The predicates that determine whether a method call or method tear-off is /// a valid use. @@ -190,7 +186,7 @@ class _ValidUseVisitor extends RecursiveAstVisitor { // Being assigned another reference. if (node.rightHandSide is SimpleIdentifier) { if (_isElementEqualToVariable( - node.writeElement, variable.declaredElement)) { + node.writeElement2, variable.declaredFragment?.element)) { containsValidUse = true; return; } @@ -207,7 +203,7 @@ class _ValidUseVisitor extends RecursiveAstVisitor { @override void visitConstructorFieldInitializer(ConstructorFieldInitializer node) { - if (node.fieldName.staticElement == variableElement) { + if (node.fieldName.element == variableElement) { containsValidUse = true; return; } @@ -217,9 +213,9 @@ class _ValidUseVisitor extends RecursiveAstVisitor { @override void visitFieldFormalParameter(FieldFormalParameter node) { if (variableType == _VariableType.field) { - var staticElement = node.declaredElement; - if (staticElement is FieldFormalParameterElement && - staticElement.field == variableElement) { + var staticElement = node.declaredFragment?.element; + if (staticElement is FieldFormalParameterElement2 && + staticElement.field2 == variableElement) { containsValidUse = true; return; } @@ -247,7 +243,7 @@ class _ValidUseVisitor extends RecursiveAstVisitor { if (node.argumentList.arguments .whereType() - .map((e) => e.staticElement) + .map((e) => e.element) .contains(variableElement)) { // If any function is invoked with our variable, we suppress lints. This // is because it is not so uncommon to invoke the target method there. We @@ -264,7 +260,7 @@ class _ValidUseVisitor extends RecursiveAstVisitor { @override void visitPrefixedIdentifier(PrefixedIdentifier node) { - if (node.prefix.staticElement == variableElement && + if (node.prefix.element == variableElement && _hasMatch( predicates, variableElement.type, node.identifier.token.lexeme)) { containsValidUse = true; @@ -278,7 +274,7 @@ class _ValidUseVisitor extends RecursiveAstVisitor { if (variableType == _VariableType.local) { var expression = node.expression; if (expression is SimpleIdentifier && - expression.staticElement == variableElement) { + expression.element == variableElement) { containsValidUse = true; return; } @@ -292,3 +288,11 @@ enum _VariableType { field, local; } + +extension on Element2? { + bool matches(VariableElement2? variable) => switch (this) { + GetterElement(:var variable3) => variable3 == variable, + SetterElement(:var variable3) => variable3 == variable, + _ => false, + }; +} From 5f5f4bd8e5e2d64db569b13e2101e3dc5596b0ec Mon Sep 17 00:00:00 2001 From: pq Date: Tue, 12 Nov 2024 22:07:49 +0000 Subject: [PATCH 10/12] [lint] fix method parameter rename This lint will (correctly) be reported by an in-flight migration of the `avoid_renaming_method_parameters` to the new element model. See: https://dart-review.googlesource.com/c/sdk/+/394662 Change-Id: I4624eae08922fd0c30bc7636c53102266f585859 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394569 Reviewed-by: Paul Berry Reviewed-by: Jake Macdonald --- pkg/_macros/lib/src/executor/augmentation_library.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/_macros/lib/src/executor/augmentation_library.dart b/pkg/_macros/lib/src/executor/augmentation_library.dart index bcd14dc242ea..5911e2c657f1 100644 --- a/pkg/_macros/lib/src/executor/augmentation_library.dart +++ b/pkg/_macros/lib/src/executor/augmentation_library.dart @@ -15,11 +15,11 @@ mixin AugmentationLibraryBuilder on MacroExecutor { Iterable macroResults, TypeDeclaration Function(Identifier) resolveDeclaration, ResolvedIdentifier Function(Identifier) resolveIdentifier, - TypeAnnotation? Function(OmittedTypeAnnotation) typeInferrer, + TypeAnnotation? Function(OmittedTypeAnnotation) inferOmittedType, {Map? omittedTypes, List? spans}) { return _Builder(augmentedLibraryUri, resolveDeclaration, resolveIdentifier, - typeInferrer, omittedTypes) + inferOmittedType, omittedTypes) .build(macroResults, spans: spans); } } From dfb25545c43a205ac8cecdae78be7c359ada65bc Mon Sep 17 00:00:00 2001 From: Brian Wilkerson Date: Tue, 12 Nov 2024 22:23:28 +0000 Subject: [PATCH 11/12] Rename LibraryFragmentInclude to PartInclude Also renames associated getters, fixes some comments, and removes a getter (`nameOffset`) that should have been `nameOffset2`. Change-Id: I0dc4879c37ec14650d94933c14630176e4d1f57e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394386 Reviewed-by: Konstantin Shcheglov Commit-Queue: Brian Wilkerson --- .../lib/src/status/ast_writer.dart | 2 +- pkg/analyzer/lib/dart/element/element2.dart | 35 +++++++------------ pkg/analyzer/lib/src/dart/ast/ast.dart | 5 ++- .../lib/src/dart/element/element.dart | 10 +++--- .../lib/src/test_utilities/find_element2.dart | 2 +- 5 files changed, 22 insertions(+), 32 deletions(-) diff --git a/pkg/analysis_server/lib/src/status/ast_writer.dart b/pkg/analysis_server/lib/src/status/ast_writer.dart index ca6dec32450d..0449d3c3bf40 100644 --- a/pkg/analysis_server/lib/src/status/ast_writer.dart +++ b/pkg/analysis_server/lib/src/status/ast_writer.dart @@ -103,7 +103,7 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter { properties['static invoke type'] = node.staticInvokeType; properties['static type'] = node.staticType; } else if (node is PartDirective) { - properties['fragment include'] = node.fragmentInclude; + properties['fragment include'] = node.partInclude; } else if (node is PostfixExpression) { properties['element'] = node.element; properties['static type'] = node.staticType; diff --git a/pkg/analyzer/lib/dart/element/element2.dart b/pkg/analyzer/lib/dart/element/element2.dart index 3cf6b141b8f8..ebdeb624055b 100644 --- a/pkg/analyzer/lib/dart/element/element2.dart +++ b/pkg/analyzer/lib/dart/element/element2.dart @@ -1490,7 +1490,7 @@ abstract class LibraryElement2 implements Element2, Annotatable { TypeSystem get typeSystem; } -/// An export directive within a library. +/// An `export` directive within a library fragment. /// /// Clients may not extend, implement or mix-in this class. abstract class LibraryExport { @@ -1532,11 +1532,6 @@ abstract class LibraryFragment implements Fragment, Annotatable { /// The fragments of the extension types declared in this fragment. List get extensionTypes2; - /// The `part` directives within this fragment. - // TODO(brianwilkerson): Rename this, `libraryExports2`, and `libraryImports2` - // to be consistent with each other. - List get fragmentIncludes; - /// The fragments of the top-level functions declared in this fragment. List get functions2; @@ -1558,6 +1553,9 @@ abstract class LibraryFragment implements Fragment, Annotatable { @override LibraryFragment? get nextFragment; + /// The `part` directives within this fragment. + List get partIncludes; + /// The prefixes used by [libraryImports2]. /// /// Each prefix can be used in more than one `import` directive. @@ -1585,15 +1583,7 @@ abstract class LibraryFragment implements Fragment, Annotatable { List get typeAliases2; } -/// A 'part' directive within a library fragment. -/// -/// Clients may not extend, implement or mix-in this class. -abstract class LibraryFragmentInclude { - /// The interpretation of the URI specified in the directive. - DirectiveUri get uri; -} - -/// An import directive within a library. +/// An `import` directive within a library fragment. /// /// Clients may not extend, implement or mix-in this class. abstract class LibraryImport { @@ -1649,12 +1639,6 @@ abstract class LocalFunctionFragment implements ExecutableFragment { // @override // LocalFunctionElement get element; - /// The offset of the name of this fragment in the file that contains the - /// declaration of this fragment, or `null` if this element doesn't have an - /// offset. - // TODO(brianwilkerson): Figure out why the return type is nullable. - int? get nameOffset; - // TODO(brianwilkerson): This should override `nextFragment` to be more // specific, but can't because the Impl class supports both local and // top-level functions. @@ -1953,6 +1937,14 @@ abstract class MultiplyDefinedFragment implements Fragment { Null get previousFragment; } +/// A 'part' directive within a library fragment. +/// +/// Clients may not extend, implement or mix-in this class. +abstract class PartInclude { + /// The interpretation of the URI specified in the directive. + DirectiveUri get uri; +} + /// A pattern variable. /// /// Clients may not extend, implement or mix-in this class. @@ -2132,7 +2124,6 @@ abstract class PropertyInducingFragment /// A synthetic fragment is a fragment that is not represented in the source /// code explicitly, but is implied by the source code, such as the default /// constructor for a class that does not explicitly define any constructors. - // TODO(brianwilkerson): Should synthetic elements have a fragment? bool get isSynthetic; @override diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart index 1080ef5908cd..bb7a102f7a0c 100644 --- a/pkg/analyzer/lib/src/dart/ast/ast.dart +++ b/pkg/analyzer/lib/src/dart/ast/ast.dart @@ -13613,7 +13613,7 @@ abstract final class PartDirective implements UriBasedDirective { /// /// Returns `null` if the AST structure hasn't been resolved. @experimental - LibraryFragmentInclude? get fragmentInclude; + PartInclude? get partInclude; /// The token representing the `part` keyword. Token get partKeyword; @@ -13661,8 +13661,7 @@ final class PartDirectiveImpl extends UriBasedDirectiveImpl @experimental @override - LibraryFragmentInclude? get fragmentInclude => - element as LibraryFragmentInclude?; + PartInclude? get partInclude => element as PartInclude?; @override ChildEntities get _childEntities => super._childEntities diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart index aa0d47137bc0..df6cb82d1b50 100644 --- a/pkg/analyzer/lib/src/dart/element/element.dart +++ b/pkg/analyzer/lib/src/dart/element/element.dart @@ -925,10 +925,6 @@ class CompilationUnitElementImpl extends UriReferencedElementImpl List get extensionTypes2 => extensionTypes.cast(); - @override - List get fragmentIncludes => - libraryImportPrefixes.cast(); - @override List get functions { return _functions; @@ -1051,6 +1047,10 @@ class CompilationUnitElementImpl extends UriReferencedElementImpl return units.elementAtOrNull(index + 1); } + @override + List get partIncludes => + libraryImportPrefixes.cast(); + @override List get parts => _parts; @@ -8912,7 +8912,7 @@ mixin ParameterElementMixin implements ParameterElement { } class PartElementImpl extends _ExistingElementImpl - implements PartElement, LibraryFragmentInclude { + implements PartElement, PartInclude { @override final DirectiveUri uri; diff --git a/pkg/analyzer/lib/src/test_utilities/find_element2.dart b/pkg/analyzer/lib/src/test_utilities/find_element2.dart index 60c741c40354..07b713890d17 100644 --- a/pkg/analyzer/lib/src/test_utilities/find_element2.dart +++ b/pkg/analyzer/lib/src/test_utilities/find_element2.dart @@ -226,7 +226,7 @@ class FindElement2 extends _FindElementBase { LibraryFragment part(String targetUri) { LibraryFragment? result; - for (var partElement in libraryFragment.fragmentIncludes) { + for (var partElement in libraryFragment.partIncludes) { var uri = partElement.uri; if (uri is DirectiveUriWithUnit) { var unitElement = uri.libraryFragment; From 2fbb33e4d87ba7996d1c6a785172ba2d8dfceb76 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Tue, 12 Nov 2024 22:34:48 +0000 Subject: [PATCH 12/12] [analysis_server] Fix handling of `null` responses for LSP requests over DTD The DTD client requires that the `type` field is populated in DTD responses, but this code previously would omit it when the result was `null` (because it used `result?.runtimeType`). Change-Id: I5a6e0927e9c02f2abb690aefceca8f8b003cd43b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394484 Reviewed-by: Brian Wilkerson Reviewed-by: Keerti Parthasarathy Commit-Queue: Keerti Parthasarathy --- .../custom/handler_experimental_echo.dart | 8 ++++++++ .../dart_tooling_daemon/dtd_services.dart | 5 ++++- .../test/shared/shared_dtd_tests.dart | 17 ++++++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_experimental_echo.dart b/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_experimental_echo.dart index d790f4166998..59eaa5f2409f 100644 --- a/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_experimental_echo.dart +++ b/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_experimental_echo.dart @@ -29,6 +29,14 @@ class ExperimentalEchoHandler extends SharedMessageHandler { MessageInfo message, CancellationToken token, ) async { + // The DTD client automatically converts `null` params to an empty map, but + // (because of a previous bug) we want to test null results. So if the + // params are an empty map, return null. This is tested by + // `test_service_success_echo_nullResponse` in `SharedDtdTests`. + if (params is Map && params.isEmpty) { + return success(null); + } + return success(params); } } diff --git a/pkg/analysis_server/lib/src/services/dart_tooling_daemon/dtd_services.dart b/pkg/analysis_server/lib/src/services/dart_tooling_daemon/dtd_services.dart index ab203a2633fe..a618635857e4 100644 --- a/pkg/analysis_server/lib/src/services/dart_tooling_daemon/dtd_services.dart +++ b/pkg/analysis_server/lib/src/services/dart_tooling_daemon/dtd_services.dart @@ -110,7 +110,10 @@ class DtdServices { // boolean (for example). This means we need to put the result in a // field, which we're calling 'result'. (result) => completer.complete({ - 'type': result?.runtimeType.toString(), + // result can be null, but DTD requires that we have a `type`, so don't + // use `?.` here because it results in a missing `type` instead of + // `Null`. + 'type': result.runtimeType.toString(), 'result': result, }), ); diff --git a/pkg/analysis_server/test/shared/shared_dtd_tests.dart b/pkg/analysis_server/test/shared/shared_dtd_tests.dart index 6650bc4ef9b8..91242fe46272 100644 --- a/pkg/analysis_server/test/shared/shared_dtd_tests.dart +++ b/pkg/analysis_server/test/shared/shared_dtd_tests.dart @@ -301,11 +301,26 @@ mixin SharedDtdTests on LspRequestHelpersMixin { params: {'a': 'b'}, ); - var result = response.result['result'] as Map; + var result = response.result['result'] as Map?; expect(result, equals({'a': 'b'})); } + test_service_success_echo_nullResponse() async { + await initializeServer(); + await sendConnectToDtdRequest(registerExperimentalHandlers: true); + + var response = await dtd.call( + lspServiceName, + CustomMethods.experimentalEcho.toString(), + ); + + var result = response.result['result'] as Map?; + + expect(response.type, 'Null'); + expect(result, isNull); + } + @SkippedTest(reason: 'Shared LSP methods are currently disabled') test_service_success_hover() async { var code = TestCode.parse('''