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

Unified Diff: pkg/compiler/lib/src/js_emitter/model.dart

Issue 880923003: dart2js: store typeToInterceptorMap in the model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 11 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_emitter/model.dart
diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart
index 1be42445b5dbec624e048c3ee61d1f2dfadf33cf..3e288ba255d7842e85d4aa3cbc1c1cf206758d9b 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -18,8 +18,13 @@ class Program {
/// A map from load id to the list of fragments that need to be loaded.
final Map<String, List<Fragment>> loadMap;
+ // If this field is not `null` then its value must be emitted in the embedded
+ // global `TYPE_TO_INTERCEPTOR_MAP`. The map references constants and classes.
+ final js.Expression typeToInterceptorMap;
+
Program(this.fragments,
this.loadMap,
+ this.typeToInterceptorMap,
{this.outputContainsNativeClasses,
this.outputContainsConstantList}) {
assert(outputContainsNativeClasses != null);

Powered by Google App Engine
This is Rietveld 408576698