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

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

Issue 1124613002: Revert "dart2js: add type arguments to constructor in case the class needs rti." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/setup_program_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/class_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
index 935c275ec72c08adfc85b8eaf2c213f640ebcdf4..aef381f2c88d1bc67b31354f4e521bfde8703691 100644
--- a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
@@ -20,14 +20,10 @@ class ClassStubGenerator {
// [ constructorName, fields,
// fields.map(
// (name) => js('this.# = #', [name, name]))]));
- return js('''function(#, typeInfo) {
- #;
- if (typeInfo) this.\$builtinTypeInfo = typeInfo;
- this.#();
- }''',
- [fields,
- fields.map((name) => js('this.# = #', [name, name])),
- namer.deferredAction]);
+ return js('function(#) { #; this.#();}',
+ [fields,
+ fields.map((name) => js('this.# = #', [name, name])),
+ namer.deferredAction]);
}
jsAst.Expression generateGetter(Element member, String fieldName) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698