637b755ccd
Testing for semantic equality means that we don't have to update the expectation files every time a backwards compatible change to the json serialization rolls in. This also i a step towards being able to share the expect files between the VM and dart2js. Bug: https://github.com/dart-lang/native/issues/2885 TEST=pkg/compiler/test/record_use/record_use_test.dart TEST=pkg/dartdev/test/native_assets/compile_test.dart TEST=pkg/vm/test/transformations/record_use_test.dart For reference, to update the goldens: ``` $ tools/test.py -m release --vm-options -DupdateExpectations=true pkg/vm/test/transformations/record_use && \ tools/test.py -m release --vm-options -DupdateExpectations=true pkg/compiler/test/record_use/record_use ``` Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try,dart2js-linux-chrome-try,dart2js-unit-linux-x64-release-try,dart2wasm-linux-jscm-chrome-try,dart2wasm-linux-optimized-jsc-try Change-Id: I462350909eb82f486d09b813f2bc516fe50ce0fb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/469580 Reviewed-by: Srujan Gaddam <srujzs@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>