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

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

Issue 10908142: Add runtimeType() to Object which returns canonicalized instances of Type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address more comments. Created 8 years, 3 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: lib/compiler/implementation/js_backend/emitter.dart
diff --git a/lib/compiler/implementation/js_backend/emitter.dart b/lib/compiler/implementation/js_backend/emitter.dart
index a91f5cb18d734a2d55bb8ee3a3b6ea8233df8933..b0b53ff0bc3550b844ad62272113e4a6e7d512f9 100644
--- a/lib/compiler/implementation/js_backend/emitter.dart
+++ b/lib/compiler/implementation/js_backend/emitter.dart
@@ -1312,6 +1312,9 @@ if (typeof document != 'undefined' && document.readyState != 'complete') {
// constants to be set up.
emitStaticNonFinalFieldInitializations(mainBuffer);
emitLazilyInitializedStaticFields(mainBuffer);
+ if (compiler.enabledRuntimeType) {
+ mainBuffer.add('$isolateProperties.runtimeTypeCache = {};\n');
+ }
isolateProperties = isolatePropertiesName;
// The following code should not use the short-hand for the

Powered by Google App Engine
This is Rietveld 408576698