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

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

Issue 1394213002: Split RuntimesTypes into RuntimeTypes and RuntimeTypesEncoder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index de1279f3a80b7ba9e5048f33367c51f47429730f..5bb88de8ea935cdcd98a1f62080bc94c0619ee01 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -1723,7 +1723,7 @@ class ConstantNamingVisitor implements ConstantValueVisitor {
String name = type.element?.name;
if (name == null) { // e.g. DartType 'dynamic' has no element.
JavaScriptBackend backend = compiler.backend;
- name = backend.rti.getTypeRepresentationForTypeConstant(type);
+ name = backend.rtiEncoder.getTypeRepresentationForTypeConstant(type);
}
addIdentifier(name);
add(getHashTag(constant, 3));
@@ -1844,7 +1844,7 @@ class ConstantCanonicalHasher implements ConstantValueVisitor<int, Null> {
DartType type = constant.representedType;
JavaScriptBackend backend = compiler.backend;
// This name includes the library name and type parameters.
- String name = backend.rti.getTypeRepresentationForTypeConstant(type);
+ String name = backend.rtiEncoder.getTypeRepresentationForTypeConstant(type);
return _hashString(4, name);
}
@@ -1970,7 +1970,7 @@ class FunctionTypeNamer extends BaseDartTypeVisitor {
}
visitFunctionType(FunctionType type, _) {
- if (backend.rti.isSimpleFunctionType(type)) {
+ if (backend.rtiEncoder.isSimpleFunctionType(type)) {
sb.write('args${type.parameterTypes.length}');
return;
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/constant_emitter.dart ('k') | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698