[ddc] Move async_status_codes to shared sdk library.

This will allow DDC and dart2js to share these values for their async systems.

Change-Id: If6eef5de535cdf55e10adca3b2de11c408df4070
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/374520
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
Nate Biggs
2024-07-12 16:05:19 +00:00
committed by Commit Queue
parent 90e1205750
commit ae34c07b94
6 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ library rewrite_async;
import 'dart:collection';
import 'dart:math' show max;
import 'package:js_runtime/synced/async_status_codes.dart' as status_codes;
import 'package:js_shared/synced/async_status_codes.dart' as status_codes;
import '../common.dart';
import '../util/util.dart' show Pair;
@@ -1,4 +1,4 @@
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -1,4 +1,4 @@
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -285,7 +285,7 @@ const Map<String, LibraryInfo> libraries = const {
platforms: DART2JS_PLATFORM,
),
'_async_status_codes': const LibraryInfo(
'_internal/js_runtime/lib/synced/async_status_codes.dart',
'_internal/js_shared/lib/synced/async_status_codes.dart',
categories: '',
documented: false,
platforms: DART2JS_PLATFORM,
+4 -1
View File
@@ -516,7 +516,7 @@
"uri": "_internal/js_shared/lib/synced/embedded_names.dart"
},
"_async_status_codes": {
"uri": "_internal/js_runtime/lib/synced/async_status_codes.dart"
"uri": "_internal/js_shared/lib/synced/async_status_codes.dart"
},
"_invocation_mirror_constants": {
"uri": "_internal/js_runtime/lib/synced/invocation_mirror_constants.dart"
@@ -534,6 +534,9 @@
"_runtime": {
"uri": "_internal/js_dev_runtime/private/ddc_runtime/runtime.dart"
},
"_async_status_codes": {
"uri": "_internal/js_shared/lib/synced/async_status_codes.dart"
},
"_debugger": {
"uri": "_internal/js_dev_runtime/private/debugger.dart"
},
+4 -1
View File
@@ -436,7 +436,7 @@ _dart2js_common:
uri: "_internal/js_shared/lib/synced/embedded_names.dart"
_async_status_codes:
uri: "_internal/js_runtime/lib/synced/async_status_codes.dart"
uri: "_internal/js_shared/lib/synced/async_status_codes.dart"
_invocation_mirror_constants:
uri: "_internal/js_runtime/lib/synced/invocation_mirror_constants.dart"
@@ -452,6 +452,9 @@ dartdevc:
_runtime:
uri: "_internal/js_dev_runtime/private/ddc_runtime/runtime.dart"
_async_status_codes:
uri: "_internal/js_shared/lib/synced/async_status_codes.dart"
_debugger:
uri: "_internal/js_dev_runtime/private/debugger.dart"