| Index: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
|
| index 00a1df1e3e3746ef394f49fc0d40872d35390750..31fdd1ef9702e597d4bb697ea91a395459f7b2ff 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
|
| @@ -386,4 +386,11 @@ void V8PerIsolateData::addActiveScriptWrappable(ActiveScriptWrappable* wrappable
|
| m_activeScriptWrappables->add(wrappable);
|
| }
|
|
|
| +void V8PerIsolateData::purgeMemory()
|
| +{
|
| + v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
| + if (V8PerIsolateData* data = V8PerIsolateData::from(isolate))
|
| + data->clearScriptRegexpContext();
|
| +}
|
| +
|
| } // namespace blink
|
|
|