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

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

Issue 345893002: Implement an infrastructure of Blink-in-JS Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/V8PerContextData.h ('k') | Source/bindings/v8/V8PerIsolateData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8PerContextData.cpp
diff --git a/Source/bindings/v8/V8PerContextData.cpp b/Source/bindings/v8/V8PerContextData.cpp
index 1456bed0748ed9a44fd9dd66cf5611109895e0b8..350f107d926f85e364cf8d29dcf889081f8c3282 100644
--- a/Source/bindings/v8/V8PerContextData.cpp
+++ b/Source/bindings/v8/V8PerContextData.cpp
@@ -41,13 +41,14 @@
namespace WebCore {
V8PerContextData::V8PerContextData(v8::Handle<v8::Context> context)
- : m_wrapperBoilerplates(context->GetIsolate())
- , m_constructorMap(context->GetIsolate())
- , m_isolate(context->GetIsolate())
- , m_contextHolder(adoptPtr(new gin::ContextHolder(context->GetIsolate())))
+ : m_isolate(context->GetIsolate())
+ , m_wrapperBoilerplates(m_isolate)
+ , m_constructorMap(m_isolate)
+ , m_contextHolder(adoptPtr(new gin::ContextHolder(m_isolate)))
, m_context(m_isolate, context)
, m_customElementBindings(adoptPtr(new CustomElementBindingMap()))
, m_activityLogger(0)
+ , m_compiledPrivateScript(m_isolate)
{
m_contextHolder->SetContext(context);
@@ -203,4 +204,14 @@ int V8PerContextDebugData::contextDebugId(v8::Handle<v8::Context> context)
return atoi(comma + 1);
}
+v8::Handle<v8::Value> V8PerContextData::compiledPrivateScript(String className)
+{
+ return m_compiledPrivateScript.Get(className);
+}
+
+void V8PerContextData::setCompiledPrivateScript(String className, v8::Handle<v8::Value> compiledObject)
+{
+ m_compiledPrivateScript.Set(className, compiledObject);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/V8PerContextData.h ('k') | Source/bindings/v8/V8PerIsolateData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698