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

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

Issue 895813006: dart2js: store typeVariableReader stubs in the model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comment. Created 5 years, 10 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 313fb8056947c5bc99d452c9945142936965b6ac..7d502320dc29c1662140aa16115b2ff4bcbc38cb 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -209,6 +209,9 @@ class Class implements FieldContainer {
/// Stub methods for this class that are call stubs for getters.
final List<StubMethod> callStubs;
+ /// Stub methods for this class handling reads to type variables.
+ final List<StubMethod> typeVariableReaderStubs;
+
/// noSuchMethod stubs in the special case that the class is Object.
final List<StubMethod> noSuchMethodStubs;
final List<Field> staticFieldsForReflection;
@@ -231,6 +234,7 @@ class Class implements FieldContainer {
this.fields,
this.staticFieldsForReflection,
this.callStubs,
+ this.typeVariableReaderStubs,
this.noSuchMethodStubs,
this.isChecks,
this.functionTypeIndex,
@@ -262,6 +266,7 @@ class MixinApplication extends Class {
List<Field> instanceFields,
List<Field> staticFieldsForReflection,
List<StubMethod> callStubs,
+ List<StubMethod> typeVariableReaderStubs,
List<StubMethod> isChecks,
int functionTypeIndex,
{bool onlyForRti,
@@ -272,6 +277,7 @@ class MixinApplication extends Class {
instanceFields,
staticFieldsForReflection,
callStubs,
+ typeVariableReaderStubs,
const <StubMethod>[],
isChecks, functionTypeIndex,
onlyForRti: onlyForRti,
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/js_emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698