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

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

Issue 1913033002: dart2js: Pass type information to constructor rather than add later. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: rebase Created 4 years, 4 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 a9a6d269587e3c20a2966513ef24bee606c4c302..0ece829b17f4e8d815e2f039144300310cecece4 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -229,6 +229,7 @@ class Class implements FieldContainer {
/// noSuchMethod stubs in the special case that the class is Object.
final List<StubMethod> noSuchMethodStubs;
final List<Field> staticFieldsForReflection;
+ final bool hasRti;
final bool onlyForRti;
final bool isDirectlyInstantiated;
final bool isNative;
@@ -262,7 +263,8 @@ class Class implements FieldContainer {
this.checkedSetters,
this.isChecks,
this.functionTypeIndex,
- {this.onlyForRti,
+ {this.hasRti,
+ this.onlyForRti,
this.isDirectlyInstantiated,
this.isNative}) {
assert(onlyForRti != null);
@@ -297,7 +299,8 @@ class MixinApplication extends Class {
List<StubMethod> checkedSetters,
List<StubMethod> isChecks,
js.Expression functionTypeIndex,
- {bool onlyForRti,
+ {bool hasRti,
+ bool onlyForRti,
bool isDirectlyInstantiated})
: super(
element,
@@ -312,6 +315,7 @@ class MixinApplication extends Class {
checkedSetters,
isChecks,
functionTypeIndex,
+ hasRti: hasRti,
onlyForRti: onlyForRti,
isDirectlyInstantiated: isDirectlyInstantiated,
isNative: false);

Powered by Google App Engine
This is Rietveld 408576698