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

Unified Diff: Source/bindings/v8/V8PerIsolateData.cpp

Issue 13896017: Switch RegularExpression from YARR to V8 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove the test I added, the same kind of test was added in r148951 Created 7 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 | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8PerIsolateData.cpp
diff --git a/Source/bindings/v8/V8PerIsolateData.cpp b/Source/bindings/v8/V8PerIsolateData.cpp
index ad603a44bd2bfd1aaaa0cd45f0e192ef85c536e9..d9567ec4ff42cb88ae7ddf77e80ee009b2a8a551 100644
--- a/Source/bindings/v8/V8PerIsolateData.cpp
+++ b/Source/bindings/v8/V8PerIsolateData.cpp
@@ -121,7 +121,7 @@ void V8PerIsolateData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con
info.ignoreMember(m_lazyEventListenerToStringTemplate);
info.ignoreMember(m_v8Null);
info.ignoreMember(m_liveRoot);
- info.ignoreMember(m_auxiliaryContext);
+ info.ignoreMember(m_regexContext);
}
bool V8PerIsolateData::hasPrivateTemplate(WrapperWorldType currentWorldType, void* privatePointer)
@@ -156,6 +156,13 @@ v8::Persistent<v8::FunctionTemplate> V8PerIsolateData::rawTemplate(WrapperTypeIn
return templ;
}
+v8::Local<v8::Context> V8PerIsolateData::ensureRegexContext()
+{
+ if (m_regexContext.isEmpty())
+ m_regexContext.set(v8::Context::New());
+ return v8::Local<v8::Context>::New(m_regexContext.get());
+}
+
bool V8PerIsolateData::hasInstance(WrapperTypeInfo* info, v8::Handle<v8::Value> value, WrapperWorldType currentWorldType)
{
TemplateMap& templates = rawTemplateMap(currentWorldType);
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698