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

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

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
Index: Source/bindings/v8/V8PerIsolateData.h
diff --git a/Source/bindings/v8/V8PerIsolateData.h b/Source/bindings/v8/V8PerIsolateData.h
index ead107cfd1fadf46521c51fd45fee0953aeae0f4..b7ec7e7ed2e1e815ec6b6e0a4b7cd68b84bc6345 100644
--- a/Source/bindings/v8/V8PerIsolateData.h
+++ b/Source/bindings/v8/V8PerIsolateData.h
@@ -29,6 +29,7 @@
#include "bindings/v8/ScopedPersistent.h"
#include "bindings/v8/ScriptState.h"
#include "bindings/v8/V8HiddenValue.h"
+#include "bindings/v8/V8PersistentValueMap.h"
#include "bindings/v8/WrapperTypeInfo.h"
#include "gin/public/gin_embedders.h"
#include "gin/public/isolate_holder.h"
@@ -37,6 +38,7 @@
#include "wtf/HashMap.h"
#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -97,6 +99,9 @@ public:
const char* previousSamplingState() const { return m_previousSamplingState; }
void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; }
+ v8::Handle<v8::Value> compiledPrivateScript(String);
+ void setCompiledPrivateScript(String, v8::Handle<v8::Value>);
+
private:
explicit V8PerIsolateData(v8::Isolate*);
~V8PerIsolateData();
@@ -117,6 +122,7 @@ private:
RefPtr<ScriptState> m_scriptRegexpScriptState;
const char* m_previousSamplingState;
+ V8PersistentValueMap<String, v8::Value, false> m_compiledPrivateScript;
bool m_constructorMode;
friend class ConstructorMode;

Powered by Google App Engine
This is Rietveld 408576698