diff options
Diffstat (limited to 'V8Binding/v8/src/v8.cc')
-rw-r--r-- | V8Binding/v8/src/v8.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/V8Binding/v8/src/v8.cc b/V8Binding/v8/src/v8.cc index 72f74aa..00e0e6e 100644 --- a/V8Binding/v8/src/v8.cc +++ b/V8Binding/v8/src/v8.cc @@ -156,6 +156,15 @@ uint32_t V8::Random() { return (hi << 16) + (lo & 0xFFFF); } +void V8::IdleNotification(bool is_high_priority) { + if (!FLAG_use_idle_notification) return; + // Ignore high priority instances of V8. + if (is_high_priority) return; + + // Uncommit unused memory in new space. + Heap::UncommitFromSpace(); +} + Smi* V8::RandomPositiveSmi() { uint32_t random = Random(); |