Index: runtime/vm/dart_api_impl.cc |
=================================================================== |
--- runtime/vm/dart_api_impl.cc (revision 12015) |
+++ runtime/vm/dart_api_impl.cc (working copy) |
@@ -3782,6 +3782,9 @@ |
// only the necessary ones. |
static void RemoveOptimizedCode() { |
ASSERT(FLAG_use_cha); |
+ // Deoptimize live frames. |
siva
2012/09/07 23:16:17
Deoptimize all live frames?
srdjan
2012/09/12 06:15:26
Done.
|
+ DeoptimizeAll(); |
+ // Switch all functions' code to unoptimized. |
const ClassTable& class_table = *Isolate::Current()->class_table(); |
Class& cls = Class::Handle(); |
Array& array = Array::Handle(); |