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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 19754002: Rewrite how we handle synthesized constructors in the compiler. This was motivated by issue https:/… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (revision 25107)
+++ sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (working copy)
@@ -3417,7 +3417,7 @@
if (!backend.retainMetadataOf(element)) return code;
return compiler.withCurrentElement(element, () {
List<int> metadata = <int>[];
- FunctionSignature signature = element.functionSignature;
+ FunctionSignature signature = element.computeSignature(compiler);
ahe 2013/07/18 09:59:32 Why this change?
ngeoffray 2013/07/18 15:25:14 Apparently, it's not ensured that functionSignatur
ahe 2013/07/19 09:10:44 That is a bug. It must be non-null. Calling compu
ngeoffray 2013/08/15 08:23:19 Done in: https://codereview.chromium.org/22874003/
if (element.isConstructor()) {
metadata.add(reifyType(element.getEnclosingClass().thisType));
} else {

Powered by Google App Engine
This is Rietveld 408576698