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

Unified Diff: lib/compiler/implementation/world.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/world.dart
diff --git a/lib/compiler/implementation/world.dart b/lib/compiler/implementation/world.dart
index 0e6410a37301324a3abb98dbcf030834bae144e8..4ff3eb388806e7dc0014b3cbaced68b2a823bdd8 100644
--- a/lib/compiler/implementation/world.dart
+++ b/lib/compiler/implementation/world.dart
@@ -72,7 +72,9 @@ class World {
}
}
- bool needsRti(ClassElement cls) => classesNeedingRti.contains(cls);
+ bool needsRti(ClassElement cls) {
+ return classesNeedingRti.contains(cls) || compiler.enabledRuntimeType;
ngeoffray 2012/09/17 15:31:14 Ouch. Is it there that you should also check which
karlklose 2012/09/19 06:40:45 No, I don't think we need to check that here. Curr
+ }
void registerRtiDependency(Element element, Element dependency) {
// We're not dealing with typedef for now.

Powered by Google App Engine
This is Rietveld 408576698