Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart

Issue 2699073003: Support `void` as generic argument.
Patch Set: Shuffle things around to have a better `voidRti` locality. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/js_rti.dart ('k') | tests/language/void_type2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart b/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
index 2fff7ec323c877f0e16e75c7acdd614db6fc6fd1..41fbc15b9ad6a650e0d7374fdd448b95fc00723e 100644
--- a/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
+++ b/sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart
@@ -327,10 +327,6 @@ enum JsGetName {
/// Name used to tag a function type.
FUNCTION_TYPE_TAG,
- /// Name used to tag void return in function type representations in
- /// JavaScript.
- FUNCTION_TYPE_VOID_RETURN_TAG,
-
/// Name used to tag return types in function type representations in
/// JavaScript.
FUNCTION_TYPE_RETURN_TYPE_TAG,
@@ -392,6 +388,11 @@ enum JsBuiltin {
/// JS_BUILTIN('=Object', JsBuiltin.createFunctionType)
createFunctionTypeRti,
+ /// Returns whether the given rti is a void rti.
+ ///
+ /// JS_BUILTIN("bool', JsBuiltin.isVoidRti, rti)
+ isVoidRti,
+
/// Returns the JavaScript-constructor name given an rti encoding.
///
/// JS_BUILTIN('String', JsBuiltin.rawRtiToJsConstructorName, rti)
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/js_rti.dart ('k') | tests/language/void_type2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698