File tree Expand file tree Collapse file tree 4 files changed +411
-164
lines changed
pkg/compiler/lib/src/js_backend
sdk/lib/_internal/js_runtime/lib
sdk_nnbd/lib/_internal/js_runtime/lib Expand file tree Collapse file tree 4 files changed +411
-164
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ additional details see the [announcement].
68
68
web has been unsupported and prevented by the Dart build systems since Dart
69
69
v2.0.0. All known exception cases have been cleaned up. This change makes DDC
70
70
and dart2js now issue a compile-time error directly as well.
71
+ * ** Breaking Change** : Types are now normalized. See [ normalization] for the
72
+ full specification. Types will now be printed in their normal form, and
73
+ mutual subtypes with the same normal form will now be considered equal.
74
+
75
+ [ normalization ] : https://github.com/dart-lang/language/blob/master/resources/type-system/normalization.md
71
76
72
77
#### Linter
73
78
Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ abstract class RecipeEncoder {
44
44
jsAst.Literal encodeMetadataRecipe (ModularEmitter emitter,
45
45
InterfaceType declaringType, DartType supertypeArgument);
46
46
47
- /// Converts a recipe into a fragment of code that accesses the evaluated
48
- /// recipe.
49
- // TODO(33422): Remove need for this by pushing stubs through SSA.
50
- jsAst.Expression evaluateRecipe (ModularEmitter emitter, jsAst.Literal recipe);
51
-
52
47
// TODO(sra): Still need a $signature function when the function type is a
53
48
// function of closed type variables. See if the $signature method can always
54
49
// be generated through SSA in those cases.
@@ -91,13 +86,6 @@ class RecipeEncoderImpl implements RecipeEncoder {
91
86
.recipe;
92
87
}
93
88
94
- @override
95
- jsAst.Expression evaluateRecipe (
96
- ModularEmitter emitter, jsAst.Literal recipe) {
97
- return js ('#(#)' ,
98
- [emitter.staticFunctionAccess (commonElements.findType), recipe]);
99
- }
100
-
101
89
@override
102
90
jsAst.Expression encodeSignature (ModularNamer namer, ModularEmitter emitter,
103
91
DartType type, jsAst.Expression this_) {
You can’t perform that action at this time.
0 commit comments