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

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

Issue 741833003: dart2js: Add "onlyForRti" to Classes in model of the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 f70be0505674b9be7ced3bb3c9eb780b2df5e88a..b4b1789afc42463002e790a942415efdfc893f6b 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -135,12 +135,15 @@ class Class {
Class superclass;
final List<Method> methods;
final List<InstanceField> fields;
+ final bool onlyForRti;
/// Whether the class must be evaluated eagerly.
bool isEager = false;
Class(this.name, this.holder, this.methods, this.fields,
- { this.isEager: false });
+ { this.onlyForRti }) {
+ assert(onlyForRti != null);
+ }
void setSuperclass(Class superclass) {
this.superclass = superclass;

Powered by Google App Engine
This is Rietveld 408576698