Lines Matching refs:v8

10 #include <v8-util.h>
11 #include <v8.h>
26 explicit CJS_V8(v8::Isolate* pIsolate);
29 v8::Isolate* GetIsolate() const { return m_isolate; }
31 v8::Local<v8::Context> NewLocalContext();
32 v8::Local<v8::Context> GetPersistentContext();
34 v8::Local<v8::Value> NewNull();
35 v8::Local<v8::Value> NewUndefined();
36 v8::Local<v8::Array> NewArray();
37 v8::Local<v8::Number> NewNumber(int number);
38 v8::Local<v8::Number> NewNumber(double number);
39 v8::Local<v8::Number> NewNumber(float number);
40 v8::Local<v8::Boolean> NewBoolean(bool b);
41 v8::Local<v8::String> NewString(const ByteStringView& str);
42 v8::Local<v8::String> NewString(const WideStringView& str);
43 v8::Local<v8::Date> NewDate(double d);
45 int ToInt32(v8::Local<v8::Value> pValue);
46 bool ToBoolean(v8::Local<v8::Value> pValue);
47 double ToDouble(v8::Local<v8::Value> pValue);
48 WideString ToWideString(v8::Local<v8::Value> pValue);
49 ByteString ToByteString(v8::Local<v8::Value> pValue);
50 v8::Local<v8::Object> ToObject(v8::Local<v8::Value> pValue);
51 v8::Local<v8::Array> ToArray(v8::Local<v8::Value> pValue);
54 CXFA_Object* ToXFAObject(v8::Local<v8::Value> obj);
55 v8::Local<v8::Value> NewXFAObject(CXFA_Object* obj,
56 v8::Global<v8::FunctionTemplate>& tmpl);
60 unsigned GetArrayLength(v8::Local<v8::Array> pArray);
61 v8::Local<v8::Value> GetArrayElement(v8::Local<v8::Array> pArray,
63 unsigned PutArrayElement(v8::Local<v8::Array> pArray,
65 v8::Local<v8::Value> pValue);
67 void SetConstArray(const WideString& name, v8::Local<v8::Array> array);
68 v8::Local<v8::Array> GetConstArray(const WideString& name);
71 std::vector<WideString> GetObjectPropertyNames(v8::Local<v8::Object> pObj);
72 v8::Local<v8::Value> GetObjectProperty(v8::Local<v8::Object> pObj,
74 void PutObjectProperty(v8::Local<v8::Object> pObj,
76 v8::Local<v8::Value> pValue);
79 void SetIsolate(v8::Isolate* pIsolate) { m_isolate = pIsolate; }
82 void ResetPersistentContext(v8::Local<v8::Context> context) {
88 v8::Isolate* m_isolate;
89 std::map<WideString, v8::Global<v8::Array>> m_ConstArrays;
90 v8::Global<v8::Context> m_V8PersistentContext;