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

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

Issue 2820573005: dart2js: --fast-startup: share defaultValues property for closures with no default values (Closed)
Patch Set: Created 3 years, 8 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_emitter/program_builder/program_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 593798aead278c5c7c640caa7701eaee35b1f257..6bf9e2abdc6f94d49b0d93ca2f6dc3677ae2aa5a 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -230,6 +230,7 @@ class Class implements FieldContainer {
final bool onlyForRti;
final bool isDirectlyInstantiated;
final bool isNative;
+ final bool isClosureBaseClass; // Common base class for closures.
// 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.
@@ -262,10 +263,12 @@ class Class implements FieldContainer {
{this.hasRtiField,
this.onlyForRti,
this.isDirectlyInstantiated,
- this.isNative}) {
+ this.isNative,
+ this.isClosureBaseClass}) {
assert(onlyForRti != null);
assert(isDirectlyInstantiated != null);
assert(isNative != null);
+ assert(isClosureBaseClass != null);
}
bool get isMixinApplication => false;
@@ -312,7 +315,8 @@ class MixinApplication extends Class {
hasRtiField: hasRtiField,
onlyForRti: onlyForRti,
isDirectlyInstantiated: isDirectlyInstantiated,
- isNative: false);
+ isNative: false,
+ isClosureBaseClass: false);
bool get isMixinApplication => true;
Class get mixinClass => _mixinClass;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698