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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/codegen/glue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index cbf7de490e7c388fb99fb4f14521a2305c47798b..25619fb6330fc37458b7a5bf945509886f773f53 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -511,6 +511,7 @@ class JavaScriptBackend extends Backend {
}
final RuntimeTypes rti;
+ final RuntimeTypesEncoder rtiEncoder;
/// Holds the method "disableTreeShaking" in js_mirrors when
/// dart:mirrors has been loaded.
@@ -638,7 +639,8 @@ class JavaScriptBackend extends Backend {
: namer = determineNamer(compiler),
oneShotInterceptors = new Map<jsAst.Name, Selector>(),
interceptedElements = new Map<String, Set<Element>>(),
- rti = new RuntimeTypes(compiler),
+ rti = new _RuntimeTypes(compiler),
+ rtiEncoder = new _RuntimeTypesEncoder(compiler),
specializedGetInterceptors = new Map<jsAst.Name, Set<ClassElement>>(),
annotations = new Annotations(compiler),
this.sourceInformationStrategy =
@@ -3226,7 +3228,7 @@ class JavaScriptResolutionCallbacks extends ResolutionCallbacks {
registerBackendStaticInvocation(backend.getCreateRuntimeType(), registry);
needsInt(registry, 'Needed for accessing a type variable literal on this.');
ClassElement cls = variable.enclosingClass;
- backend.rti.classesUsingTypeVariableExpression.add(cls);
+ backend.rti.registerClassUsingTypeVariableExpression(cls);
}
// TODO(johnniwinther): Maybe split this into [onAssertType] and [onTestType].
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/codegen/glue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698