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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user