| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index 4b91ca43cee17984d9ffa9c4d5cf6664ce4b11f8..195da016cc7e310f6e956b4c89005b1c64324946 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -1072,7 +1072,10 @@ class Heap {
|
| void EnsureHeapIsIterable();
|
|
|
| // Notify the heap that a context has been disposed.
|
| - int NotifyContextDisposed() { return ++contexts_disposed_; }
|
| + int NotifyContextDisposed() {
|
| + flush_monomorphic_ics_ = true;
|
| + return ++contexts_disposed_;
|
| + }
|
|
|
| // Utility to invoke the scavenger. This is needed in test code to
|
| // ensure correct callback for weak global handles.
|
| @@ -1597,6 +1600,8 @@ class Heap {
|
| global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax;
|
| }
|
|
|
| + bool flush_monomorphic_ics() { return flush_monomorphic_ics_; }
|
| +
|
| intptr_t amount_of_external_allocated_memory() {
|
| return amount_of_external_allocated_memory_;
|
| }
|
| @@ -1682,6 +1687,8 @@ class Heap {
|
|
|
| int global_ic_age_;
|
|
|
| + bool flush_monomorphic_ics_;
|
| +
|
| int scan_on_scavenge_pages_;
|
|
|
| #if defined(V8_TARGET_ARCH_X64)
|
|
|