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

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

Issue 885783005: Revert "Move reflection support out of 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/old_emitter/container_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 29b547c560d068814f71081f4704cff97a0d685c..1c3f80d72cbbf1e8885d7ab12b17cb6ece405431 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -318,13 +318,16 @@ class DartMethod extends Method {
final bool needsStubs;
// TODO(herhut): Directly store aliases instead.
final bool canBeApplied;
+ final bool canBeReflected;
DartMethod(Element element, String name, js.Expression code,
- {this.needsTearOff, this.tearOffName, this.needsStubs, this.canBeApplied})
+ {this.needsTearOff, this.tearOffName, this.needsStubs, this.canBeApplied,
+ this.canBeReflected})
: super(element, name, code) {
assert(needsTearOff != null);
assert(!needsTearOff || tearOffName != null);
assert(canBeApplied != null);
+ assert(canBeReflected != null);
assert(needsStubs != null);
}
}
@@ -339,12 +342,14 @@ class InstanceMethod extends DartMethod {
String tearOffName,
this.hasSuperAlias,
bool canBeApplied,
+ bool canBeReflected,
this.isClosure,
bool needsStubs})
: super(element, name, code,
needsTearOff: needsTearOff,
tearOffName: tearOffName,
canBeApplied: canBeApplied,
+ canBeReflected: canBeReflected,
needsStubs: needsStubs) {
assert(hasSuperAlias != null);
assert(isClosure != null);
@@ -366,11 +371,12 @@ class StaticMethod extends DartMethod {
final Holder holder;
StaticMethod(Element element, String name, this.holder, js.Expression code,
{bool needsTearOff, String tearOffName, bool canBeApplied,
- bool needsStubs})
+ bool canBeReflected, bool needsStubs})
: super(element, name, code,
needsTearOff: needsTearOff,
tearOffName : tearOffName,
canBeApplied : canBeApplied,
+ canBeReflected : canBeReflected,
needsStubs : needsStubs);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698