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

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

Issue 840563005: dart2js: Use is-checks from the model in the old emitter. (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 f4e7ef541d6c76041eb0f26e6ec92459a00cde5a..ef2502ed0adb14e8fe9ec93e90ec26b63ebe31d5 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -170,15 +170,23 @@ class Class {
Class _superclass;
final List<Method> methods;
final List<InstanceField> fields;
+ final List<StubMethod> isChecks;
final bool onlyForRti;
final bool isDirectlyInstantiated;
final bool isNative;
+ // If the class implements a function type, and the type is encoded in the
+ // metatada table, then this field contains the index into that field.
+ final int functionTypeIndex;
+
/// Whether the class must be evaluated eagerly.
bool isEager = false;
- Class(this.element,
- this.name, this.holder, this.methods, this.fields,
+ Class(this.element, this.name, this.holder,
+ this.methods,
+ this.fields,
+ this.isChecks,
+ this.functionTypeIndex,
{this.onlyForRti,
this.isDirectlyInstantiated,
this.isNative}) {
@@ -203,14 +211,15 @@ class Class {
class MixinApplication extends Class {
Class _mixinClass;
- MixinApplication(Element element,
- String name, Holder holder,
- List<Method> methods,
- List<InstanceField> fields,
+ MixinApplication(Element element, String name, Holder holder,
+ List<StubMethod> isChecks,
+ int functionTypeIndex,
{bool onlyForRti,
bool isDirectlyInstantiated})
: super(element,
- name, holder, methods, fields,
+ name, holder,
+ const <Method>[], const <InstanceField>[],
+ isChecks, functionTypeIndex,
onlyForRti: onlyForRti,
isDirectlyInstantiated: isDirectlyInstantiated,
isNative: false);
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/js_emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698