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
This commit is contained in:
lrn@google.com
2012-09-26 12:10:13 +00:00
parent 16996b9fdb
commit d5a4792d09
+3 -1
View File
@@ -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;
}