Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 8e214c7beb5553cbbe82f13282948ce32a1efcd8..f44812695774efa3c01e7bdca98c2cdd1fca0377 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -15515,11 +15515,13 @@ TokenPosition AbstractType::token_pos() const { |
bool AbstractType::IsInstantiated(TrailPtr trail) const { |
// AbstractType is an abstract class. |
+#if !defined(PRODUCT) |
// TODO(srdjan) : Remove temporary code. |
Profiler::DumpStackTrace(true); // Only native stack trace. |
if (Compiler::IsBackgroundCompilation()) { |
UNREACHABLE(); |
} |
+#endif |
UNREACHABLE(); |
return false; |
} |