Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: src/debug.cc

Issue 18092: Added handles to the mirror objects. When a mirror for an object is created... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug.h ('k') | src/debug-delay.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/debug.h ('k') | src/debug-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698