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

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

Issue 138223002: WIP: Implement binding layer for Blink-in-JavaScript Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/V8BlinkInJavaScript.cpp ('k') | Source/bindings/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8PerIsolateData.h
diff --git a/Source/bindings/v8/V8PerIsolateData.h b/Source/bindings/v8/V8PerIsolateData.h
index 5a35088e53154ae8cdec59e58dc51d854ec6812e..eccde3592e84e7904089898ed9fe6ebec4be81fd 100644
--- a/Source/bindings/v8/V8PerIsolateData.h
+++ b/Source/bindings/v8/V8PerIsolateData.h
@@ -35,6 +35,7 @@
#include "wtf/HashMap.h"
#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -134,6 +135,9 @@ public:
const char* previousSamplingState() const { return m_previousSamplingState; }
void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; }
+ v8::Handle<v8::Value> compiledBlinkInJavaScript(String);
+ void setCompiledBlinkInJavaScript(String, v8::Handle<v8::Value>);
+
private:
explicit V8PerIsolateData(v8::Isolate*);
~V8PerIsolateData();
@@ -153,6 +157,8 @@ private:
ScopedPersistent<v8::Value> m_liveRoot;
ScopedPersistent<v8::Context> m_regexContext;
+ HashMap<String, UnsafePersistent<v8::Value> > m_compiledBlinkInJavaScript;
+
const char* m_previousSamplingState;
bool m_constructorMode;
« no previous file with comments | « Source/bindings/v8/V8BlinkInJavaScript.cpp ('k') | Source/bindings/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698