From d5a4792d09b91fc247b4e42cb12871c28facf80f Mon Sep 17 00:00:00 2001 From: "lrn@google.com" Date: Wed, 26 Sep 2012 12:10:13 +0000 Subject: [PATCH] Don't detect runtime type information use except in the codegen queue. TBR=ngeoffray@google.com Review URL: https://codereview.chromium.org//10984042 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12902 260f80e4-7a28-3924-810f-c04153c831b5 --- lib/compiler/implementation/enqueue.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart index ad100c02310..1a6797dbe90 100644 --- a/lib/compiler/implementation/enqueue.dart +++ b/lib/compiler/implementation/enqueue.dart @@ -129,7 +129,9 @@ class Enqueuer { queue.add(new WorkItem(element, elements, itemCompilationContextCreator())); // Enable runtime type support if we discover a getter called runtimeType. - if (element.isGetter() && element.name == Compiler.RUNTIME_TYPE) { + if (!isResolutionQueue && + element.isGetter() && + element.name == Compiler.RUNTIME_TYPE) { compiler.enabledRuntimeType = true; }