Index: src/debug.cc |
=================================================================== |
--- src/debug.cc (revision 1079) |
+++ src/debug.cc (working copy) |
@@ -1303,6 +1303,22 @@ |
} |
+void Debug::ClearMirrorCache() { |
+ ASSERT(Top::context() == *Debug::debug_context()); |
+ |
+ // Clear the mirror cache. |
+ Handle<String> function_name = |
+ Factory::LookupSymbol(CStrVector("ClearMirrorCache")); |
+ Handle<Object> fun(Top::global()->GetProperty(*function_name)); |
+ ASSERT(fun->IsJSFunction()); |
+ bool caught_exception; |
+ Handle<Object> js_object = Execution::TryCall( |
+ Handle<JSFunction>::cast(fun), |
+ Handle<JSObject>(Debug::debug_context()->global()), |
+ 0, NULL, &caught_exception); |
+} |
+ |
+ |
bool Debugger::debugger_active_ = false; |
bool Debugger::compiling_natives_ = false; |
bool Debugger::is_loading_debugger_ = false; |
@@ -1628,6 +1644,9 @@ |
} |
} |
} |
+ |
+ // Clear the mirror cache. |
+ Debug::ClearMirrorCache(); |
} |