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

Unified Diff: src/api.cc

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: reverted v8-debugger change Created 3 years, 8 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 | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 350ce1be164e0b2ee885185b5d2dc5afcdf46f58..143799a9285c51e3879302d1448b685820b73d8d 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -8706,7 +8706,6 @@ bool Isolate::IdleNotificationDeadline(double deadline_in_seconds) {
return isolate->heap()->IdleNotification(deadline_in_seconds);
}
-
void Isolate::LowMemoryNotification() {
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
{
@@ -8716,6 +8715,15 @@ void Isolate::LowMemoryNotification() {
isolate->heap()->CollectAllAvailableGarbage(
i::GarbageCollectionReason::kLowMemoryNotification);
}
+ {
+ i::HeapIterator iterator(isolate->heap());
+ i::HeapObject* obj;
+ while ((obj = iterator.next()) != nullptr) {
+ if (obj->IsAbstractCode()) {
+ i::AbstractCode::cast(obj)->DropStackFrameCache();
+ }
+ }
+ }
}
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698