[deps] Roll dart-lang/native

JSON changes:

* Split static calls from const instance recordings.
* Add non-constant to the constant pool.
* Add receivers to call recordings. (The implementations have
  not been updated to do this yet.)

TEST=pkg/compiler/test/record_use/record_use_test.dart
TEST=pkg/dart2wasm/test/record_use_test.dart
TEST=pkg/vm/test/transformations/record_use_test.dart

Change-Id: I72cc1289d6a52614823def37c1f130f01f9d6046
Cq-Include-Trybots: luci.dart.try:dart2wasm-asserts-linux-chrome-try,dart2wasm-asserts-minified-linux-d8-try,dart2wasm-linux-chrome-try,dart2wasm-linux-d8-try,dart2wasm-linux-firefox-try,dart2wasm-linux-jscm-chrome-try,dart2wasm-linux-optimized-jsc-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-canary-linux-try,dart2js-hostasserts-linux-d8-try,dart2js-linux-chrome-try,dart2js-linux-firefox-try,dart2js-mac-chrome-try,dart2js-mac-safari-try,dart2js-minified-csp-linux-chrome-try,dart2js-minified-linux-d8-try,dart2js-unit-linux-x64-release-try,dart2js-win-chrome-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/482200
Reviewed-by: Michael Goderbauer <goderbauer@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Daco Harkes
2026-02-20 05:35:13 -08:00
committed by Commit Queue
parent e2c31151a5
commit a32acc6abc
34 changed files with 811 additions and 747 deletions
+1
View File
@@ -127,3 +127,4 @@ runtime/tools/heapsnapshot/.dart_tool
# Gemini CLI
.gemini
.geminiignore
gemini.md
+1 -1
View File
@@ -145,7 +145,7 @@ vars = {
"i18n_rev": "dd8a792a8492370a594706c8304d2eb8db844d7a",
"leak_tracker_rev": "f5620600a5ce1c44f65ddaa02001e200b096e14c", # rolled manually
"material_color_utilities_rev": "799b6ba2f3f1c28c67cc7e0b4f18e0c7d7f3c03e",
"native_rev": "e10223f7669a6fbe9e4cf7bfee284cd41dd42087", # rolled manually while record_use is experimental
"native_rev": "f8550838fcde605087358e595346240b12c896f6", # rolled manually while record_use is experimental
"protobuf_rev": "9e30258e0aa6a6430ee36c84b75308a9702fde42",
"pub_rev": "26c6985c742593d081f8b58450f463a584a4203a", # rolled manually
"shelf_rev": "dd830a0338b31bee92fe7ebc20b9bb963403b6b0",
@@ -37,9 +37,11 @@
"dart.tool.dart2js.types:trust": "false"
}
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -49,8 +51,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -32,9 +32,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -44,8 +46,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -1,5 +1,8 @@
{
"constants": [
{
"type": "non_constant"
},
{
"type": "int",
"value": 42
@@ -32,24 +35,26 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
],
"positional": [
null,
null,
null,
null,
0
0,
0,
0,
0,
1
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -44,9 +44,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -56,11 +58,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
},
{
"definition_index": 1
]
}
]
}
}
@@ -49,9 +49,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -61,11 +63,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
},
{
"definition_index": 1
]
}
]
}
}
@@ -32,9 +32,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -44,8 +46,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -32,10 +32,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 1,
"loading_unit_indices": [
@@ -46,4 +47,5 @@
]
}
]
}
}
@@ -88,10 +88,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 11,
"loading_unit_indices": [
@@ -102,4 +103,5 @@
]
}
]
}
}
@@ -43,10 +43,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 1,
"loading_unit_indices": [
@@ -64,4 +65,5 @@
]
}
]
}
}
@@ -25,10 +25,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 0,
"loading_unit_indices": [
@@ -39,4 +40,5 @@
]
}
]
}
}
@@ -35,9 +35,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -56,8 +58,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -51,9 +51,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -63,11 +65,11 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
},
{
"calls": [
"definition_index": 1,
"uses": [
{
"loading_unit_indices": [
1
@@ -77,8 +79,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 1
]
}
]
}
}
@@ -57,9 +57,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -69,8 +71,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -51,9 +51,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -106,8 +108,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -51,9 +51,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -98,8 +100,8 @@
},
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -36,9 +36,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -57,8 +59,8 @@
},
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -36,9 +36,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -57,8 +59,8 @@
},
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -1,5 +1,8 @@
{
"constants": [
{
"type": "non_constant"
},
{
"type": "string",
"value": "hello-world"
@@ -32,23 +35,25 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
],
"named": {
"s": 0
"s": 1
},
"positional": [
null
0
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -56,10 +56,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 1,
"loading_unit_indices": [
@@ -78,7 +79,7 @@
},
{
"definition_index": 1,
"instances": [
"uses": [
{
"constant_index": 4,
"loading_unit_indices": [
@@ -89,4 +90,5 @@
]
}
]
}
}
@@ -32,10 +32,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 1,
"loading_unit_indices": [
@@ -46,4 +47,5 @@
]
}
]
}
}
@@ -32,9 +32,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -44,8 +46,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -44,9 +44,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -67,8 +69,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -44,9 +44,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -67,8 +69,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -36,9 +36,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -57,8 +59,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -53,10 +53,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 3,
"loading_unit_indices": [
@@ -65,9 +66,7 @@
"type": "constant"
}
]
},
{
"definition_index": 1
}
]
}
}
@@ -41,10 +41,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"instances": [
{
"definition_index": 0,
"instances": [
"uses": [
{
"constant_index": 1,
"loading_unit_indices": [
@@ -53,9 +54,7 @@
"type": "constant"
}
]
},
{
"definition_index": 1
}
]
}
}
@@ -32,9 +32,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -44,8 +46,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -26,17 +26,19 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
],
"type": "tearoff"
}
],
"definition_index": 0
]
}
]
}
}
@@ -28,9 +28,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -40,8 +42,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -65,6 +65,9 @@
"value": 11
}
]
},
{
"type": "non_constant"
}
],
"definitions": [
@@ -94,9 +97,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -147,12 +152,12 @@
0
],
"positional": [
null
13
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -47,9 +47,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
"uses": {
"static_calls": [
{
"calls": [
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
@@ -68,8 +70,8 @@
],
"type": "with_arguments"
}
],
"definition_index": 0
]
}
]
}
}
@@ -44,24 +44,11 @@
"comment": "Recorded usages of objects tagged with a `RecordUse` annotation",
"version": "0.4.0"
},
"recordings": [
{
"calls": [
{
"loading_unit_indices": [
0
],
"positional": [
1
],
"type": "with_arguments"
}
],
"definition_index": 0
},
"uses": {
"instances": [
{
"definition_index": 1,
"instances": [
"uses": [
{
"constant_index": 1,
"loading_unit_indices": [
@@ -71,5 +58,22 @@
}
]
}
],
"static_calls": [
{
"definition_index": 0,
"uses": [
{
"loading_unit_indices": [
0
],
"positional": [
1
],
"type": "with_arguments"
}
]
}
]
}
}