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

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

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 1 month 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
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 93f5b6e926830ec36146c2efc91d3004fb84d2cd..8332344ea1ccf594571565c2122d1dfa2f8b5cb8 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -170,6 +170,7 @@ function(cls, fields, prototype) {
constructor = new Function(str)();
}
constructor.prototype = prototype;
+ constructor.builtin\$cls = cls;
ngeoffray 2012/11/16 13:47:35 You might want to check with Peter, Kasper or Flor
karlklose 2012/11/20 10:35:26 I talked to Florian and he sees no performance imp
return constructor;
}""";
}

Powered by Google App Engine
This is Rietveld 408576698