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

Unified Diff: pkg/compiler/lib/src/js_backend/runtime_types.dart

Issue 2918913003: Handle list and map literals (Closed)
Patch Set: Updated cf. comments 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
Index: pkg/compiler/lib/src/js_backend/runtime_types.dart
diff --git a/pkg/compiler/lib/src/js_backend/runtime_types.dart b/pkg/compiler/lib/src/js_backend/runtime_types.dart
index f0488d9ffef4b6c57615c4aff75d6ef8c6da2d09..5b293e845aeb3bb6036a36607b18b1663101deaf 100644
--- a/pkg/compiler/lib/src/js_backend/runtime_types.dart
+++ b/pkg/compiler/lib/src/js_backend/runtime_types.dart
@@ -12,8 +12,7 @@ import '../elements/resolution_types.dart'
MalformedType,
MethodTypeVariableType,
ResolutionDartTypeVisitor,
- ResolutionTypedefType,
- Types;
+ ResolutionTypedefType;
import '../elements/types.dart';
import '../js/js.dart' as jsAst;
import '../js/js.dart' show js;
@@ -383,7 +382,7 @@ class RuntimeTypesNeedBuilderImpl extends _RuntimeTypesBase
// Check local functions and closurized members.
void checkClosures({DartType potentialSubtypeOf}) {
bool checkFunctionType(FunctionType functionType) {
- ClassEntity contextClass = Types.getClassContext(functionType);
+ ClassEntity contextClass = DartTypes.getClassContext(functionType);
if (contextClass != null &&
(potentialSubtypeOf == null ||
types.isPotentialSubtype(functionType, potentialSubtypeOf))) {
@@ -417,7 +416,7 @@ class RuntimeTypesNeedBuilderImpl extends _RuntimeTypesBase
potentiallyAddForRti(itf.element);
}
} else {
- ClassEntity contextClass = Types.getClassContext(type);
+ ClassEntity contextClass = DartTypes.getClassContext(type);
if (contextClass != null) {
// [type] contains type variables (declared in [contextClass]) if
// [contextClass] is non-null. This handles checks against type
@@ -831,7 +830,7 @@ class RuntimeTypesEncoderImpl implements RuntimeTypesEncoder {
jsAst.Expression getTypeEncoding(Emitter emitter, DartType type,
{bool alwaysGenerateFunction: false}) {
- ClassEntity contextClass = Types.getClassContext(type);
+ ClassEntity contextClass = DartTypes.getClassContext(type);
jsAst.Expression onVariable(TypeVariableType v) {
return new jsAst.VariableUse(v.element.name);
}
@@ -857,7 +856,7 @@ class RuntimeTypesEncoderImpl implements RuntimeTypesEncoder {
@override
jsAst.Expression getSignatureEncoding(
Emitter emitter, DartType type, jsAst.Expression this_) {
- ClassEntity contextClass = Types.getClassContext(type);
+ ClassEntity contextClass = DartTypes.getClassContext(type);
jsAst.Expression encoding =
getTypeEncoding(emitter, type, alwaysGenerateFunction: true);
if (contextClass != null) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/impact_transformer.dart ('k') | pkg/compiler/lib/src/js_emitter/type_test_registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698