From 1d760bc36b70e2b9a352e08f4abaceb5ffccfc93 Mon Sep 17 00:00:00 2001 From: "regis@google.com" Date: Wed, 14 Nov 2012 17:33:50 +0000 Subject: [PATCH] Never compile a redirecting factory (issue 6697). Review URL: https://codereview.chromium.org//11377164 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14905 260f80e4-7a28-3924-810f-c04153c831b5 --- runtime/vm/compiler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc index 0f6b03675a3..3607e21ce02 100644 --- a/runtime/vm/compiler.cc +++ b/runtime/vm/compiler.cc @@ -536,7 +536,9 @@ RawError* Compiler::CompileAllFunctions(const Class& cls) { for (int i = 0; i < functions.Length(); i++) { func ^= functions.At(i); ASSERT(!func.IsNull()); - if (!func.HasCode() && !func.is_abstract()) { + if (!func.HasCode() && + !func.is_abstract() && + !func.IsRedirectingFactory()) { error = CompileFunction(func); if (!error.IsNull()) { return error.raw();