// // Created by Marek Kotewicz on 27/04/15. // #pragma once #include #include "JSEngine.h" namespace dev { namespace eth { class JSV8Env; class JSV8Scope; class JSV8Value : public JSValue { public: JSV8Value(v8::Handle _value): m_value(_value) {} const char* asCString() const; v8::Handle const& value() const { return m_value; } private: v8::Handle m_value; }; class JSV8Engine : public JSEngine { public: JSV8Engine(); virtual ~JSV8Engine(); JSV8Value eval(const char* _cstr) const; v8::Handle const& context() const; private: static JSV8Env s_env; v8::Isolate* m_isolate; JSV8Scope* m_scope; }; } }