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

Unified Diff: pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart

Issue 830193003: dart2js: set needsTearOff when creating the getter/setter stubs in the new emitter. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
index 1be615cc3b775e18d9477cb7b377b6dafeddc5e0..bbfecfee9809e0decfa42f31a22599383779264f 100644
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
@@ -324,7 +324,7 @@ class ModelEmitter {
js.Expression fieldName = js.string(field.name);
js.Expression code = js.js(getterTemplateFor(field.getterFlags), fieldName);
String getterName = "${namer.getterPrefix}${field.name}";
- return new StubMethod(getterName, code);
+ return new StubMethod(getterName, code, needsTearOff: false);
}
Method _generateSetter(InstanceField field) {
@@ -339,7 +339,7 @@ class ModelEmitter {
js.Expression fieldName = js.string(field.name);
js.Expression code = js.js(setterTemplateFor(field.setterFlags), fieldName);
String setterName = "${namer.setterPrefix}${field.name}";
- return new StubMethod(setterName, code);
+ return new StubMethod(setterName, code, needsTearOff: false);
}
Iterable<Method> _generateGettersSetters(Class cls) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698