Lines Matching refs:v8
50 static void SetUp(v8::Isolate* pIsolate);
51 static FXJS_PerIsolateData* Get(v8::Isolate* pIsolate);
75 class FXJS_ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
81 using FXJS_CONSTRUCTOR = void (*)(IJS_Runtime* cc, v8::Local<v8::Object> obj);
82 using FXJS_DESTRUCTOR = void (*)(v8::Local<v8::Object> obj);
85 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate);
91 bool FXJS_GetIsolate(v8::Isolate** pResultIsolate);
98 void FXJS_PrepareIsolate(v8::Isolate* pIsolate);
102 void JS_PrepareIsolate(v8::Isolate* pIsolate);
105 int FXJS_DefineObj(v8::Isolate* pIsolate,
111 void FXJS_DefineObjMethod(v8::Isolate* pIsolate,
114 v8::FunctionCallback pMethodCall);
115 void FXJS_DefineObjProperty(v8::Isolate* pIsolate,
118 v8::AccessorGetterCallback pPropGet,
119 v8::AccessorSetterCallback pPropPut);
120 void FXJS_DefineObjAllProperties(v8::Isolate* pIsolate,
122 v8::NamedPropertyQueryCallback pPropQurey,
123 v8::NamedPropertyGetterCallback pPropGet,
124 v8::NamedPropertySetterCallback pPropPut,
125 v8::NamedPropertyDeleterCallback pPropDel);
126 void FXJS_DefineObjConst(v8::Isolate* pIsolate,
129 v8::Local<v8::Value> pDefault);
130 void FXJS_DefineGlobalMethod(v8::Isolate* pIsolate,
132 v8::FunctionCallback pMethodCall);
133 void FXJS_DefineGlobalConst(v8::Isolate* pIsolate,
135 v8::Local<v8::Value> pDefault);
139 v8::Isolate* pIsolate,
141 v8::Global<v8::Context>* pV8PersistentContext,
142 std::vector<v8::Global<v8::Object>*>* pStaticObjects);
143 void FXJS_ReleaseRuntime(v8::Isolate* pIsolate,
144 v8::Global<v8::Context>* pV8PersistentContext,
145 std::vector<v8::Global<v8::Object>*>* pStaticObjects);
146 IJS_Runtime* FXJS_GetRuntimeFromIsolate(v8::Isolate* pIsolate);
151 void FXJS_SetRuntimeForV8Context(v8::Local<v8::Context> v8Context,
156 int FXJS_Execute(v8::Isolate* pIsolate,
161 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate,
164 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate);
165 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj);
166 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj);
168 void FXJS_SetPrivate(v8::Isolate* pIsolate,
169 v8::Local<v8::Object> pObj,
171 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj);
173 void FXJS_FreePrivate(v8::Local<v8::Object> pObj);
175 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message);
176 v8::Local<v8::String> FXJS_WSToJSString(v8::Isolate* pIsolate,
180 v8::Local<v8::Value> FXJS_GetObjectElement(v8::Isolate* pIsolate,
181 v8::Local<v8::Object> pObj,
183 v8::Local<v8::Array> FXJS_GetObjectElementNames(v8::Isolate* pIsolate,
184 v8::Local<v8::Object> pObj);
186 v8::Local<v8::Value> FXJS_GetArrayElement(v8::Isolate* pIsolate,
187 v8::Local<v8::Array> pArray,
189 unsigned FXJS_GetArrayLength(v8::Local<v8::Array> pArray);
191 void FXJS_PutObjectString(v8::Isolate* pIsolate,
192 v8::Local<v8::Object> pObj,
195 void FXJS_PutObjectNumber(v8::Isolate* pIsolate,
196 v8::Local<v8::Object> pObj,
199 void FXJS_PutObjectNumber(v8::Isolate* pIsolate,
200 v8::Local<v8::Object> pObj,
203 void FXJS_PutObjectNumber(v8::Isolate* pIsolate,
204 v8::Local<v8::Object> pObj,
207 void FXJS_PutObjectBoolean(v8::Isolate* pIsolate,
208 v8::Local<v8::Object> pObj,
211 void FXJS_PutObjectObject(v8::Isolate* pIsolate,
212 v8::Local<v8::Object> pObj,
214 v8::Local<v8::Object> pPut);
215 void FXJS_PutObjectNull(v8::Isolate* pIsolate,
216 v8::Local<v8::Object> pObj,
218 unsigned FXJS_PutArrayElement(v8::Isolate* pIsolate,
219 v8::Local<v8::Array> pArray,
221 v8::Local<v8::Value> pValue);
223 v8::Local<v8::Array> FXJS_NewArray(v8::Isolate* pIsolate);
224 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, int number);
225 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, double number);
226 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, float number);
227 v8::Local<v8::Value> FXJS_NewBoolean(v8::Isolate* pIsolate, bool b);
228 v8::Local<v8::Value> FXJS_NewObject(v8::Isolate* pIsolate,
229 v8::Local<v8::Object> pObj);
230 v8::Local<v8::Value> FXJS_NewObject2(v8::Isolate* pIsolate,
231 v8::Local<v8::Array> pObj);
232 v8::Local<v8::Value> FXJS_NewString(v8::Isolate* pIsolate,
234 v8::Local<v8::Value> FXJS_NewNull();
235 v8::Local<v8::Value> FXJS_NewDate(v8::Isolate* pIsolate, double d);
237 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
238 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
239 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
240 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
241 v8::Local<v8::Value> pValue);
242 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
243 v8::Local<v8::Value> pValue);
244 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
245 v8::Local<v8::Value> pValue);
246 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom);