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

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

Issue 865223002: dart2js: store call stubs in the model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 57df28d79bed9a84e08cfce8255f83e56c4d0559..7d011ada585a4a6be4e714aceded5d92d40b2034 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -178,6 +178,7 @@ class Class implements FieldContainer {
final List<Method> methods;
final List<Field> fields;
final List<StubMethod> isChecks;
+ final List<StubMethod> callStubs;
final List<Field> staticFieldsForReflection;
final bool onlyForRti;
final bool isDirectlyInstantiated;
@@ -194,6 +195,7 @@ class Class implements FieldContainer {
this.methods,
this.fields,
this.staticFieldsForReflection,
+ this.callStubs,
this.isChecks,
this.functionTypeIndex,
{this.onlyForRti,
@@ -223,6 +225,7 @@ class MixinApplication extends Class {
MixinApplication(Element element, String name, Holder holder,
List<Field> instanceFields,
List<Field> staticFieldsForReflection,
+ List<StubMethod> callStubs,
List<StubMethod> isChecks,
int functionTypeIndex,
{bool onlyForRti,
@@ -232,6 +235,7 @@ class MixinApplication extends Class {
const <Method>[],
instanceFields,
staticFieldsForReflection,
+ callStubs,
isChecks, functionTypeIndex,
onlyForRti: onlyForRti,
isDirectlyInstantiated: isDirectlyInstantiated,
@@ -298,8 +302,9 @@ class Method {
}
class StubMethod extends Method {
- StubMethod(String name, js.Expression code, {bool needsTearOff})
- : super(null, name, code, needsTearOff: needsTearOff);
+ StubMethod(String name, js.Expression code,
+ {bool needsTearOff, Element element })
+ : super(element, name, code, needsTearOff: needsTearOff);
}
class StaticMethod extends Method {

Powered by Google App Engine
This is Rietveld 408576698