Lines Matching refs:pRuntime
35 CJS_Runtime* pRuntime = in JSSpecialPropQuery() local
37 if (!pRuntime) in JSSpecialPropQuery()
41 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSSpecialPropQuery()
55 CJS_Runtime* pRuntime = in JSSpecialPropGet() local
57 if (!pRuntime) in JSSpecialPropGet()
61 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSSpecialPropGet()
67 pRuntime, PropFromV8Prop(info.GetIsolate(), property).c_str()); in JSSpecialPropGet()
69 pRuntime->Error( in JSSpecialPropGet()
83 CJS_Runtime* pRuntime = in JSSpecialPropPut() local
85 if (!pRuntime) in JSSpecialPropPut()
89 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSSpecialPropPut()
95 pRuntime, PropFromV8Prop(info.GetIsolate(), property).c_str(), value); in JSSpecialPropPut()
97 pRuntime->Error( in JSSpecialPropPut()
106 CJS_Runtime* pRuntime = in JSSpecialPropDel() local
108 if (!pRuntime) in JSSpecialPropDel()
112 static_cast<CJS_Object*>(pRuntime->GetObjectPrivate(info.Holder())); in JSSpecialPropDel()
118 pRuntime, PropFromV8Prop(info.GetIsolate(), property).c_str()); in JSSpecialPropDel()
144 CJS_Return setPersistent(CJS_Runtime* pRuntime,
147 CJS_Return GetProperty(CJS_Runtime* pRuntime, const wchar_t* propname);
148 CJS_Return SetProperty(CJS_Runtime* pRuntime,
151 CJS_Return DelProperty(CJS_Runtime* pRuntime, const wchar_t* propname);
156 void CommitGlobalPersisitentVariables(CJS_Runtime* pRuntime);
165 void ObjectToArray(CJS_Runtime* pRuntime,
236 CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(pIRuntime); in InitInstance() local
239 pGlobal->Initial(pRuntime->GetFormFillEnv()); in InitInstance()
272 CJS_Return JSGlobalAlternate::DelProperty(CJS_Runtime* pRuntime, in DelProperty() argument
282 CJS_Return JSGlobalAlternate::GetProperty(CJS_Runtime* pRuntime, in GetProperty() argument
294 return CJS_Return(pRuntime->NewNumber(pData->dData)); in GetProperty()
296 return CJS_Return(pRuntime->NewBoolean(pData->bData)); in GetProperty()
298 return CJS_Return(pRuntime->NewString( in GetProperty()
302 v8::Local<v8::Object>::New(pRuntime->GetIsolate(), pData->pData)); in GetProperty()
304 return CJS_Return(pRuntime->NewNull()); in GetProperty()
311 CJS_Return JSGlobalAlternate::SetProperty(CJS_Runtime* pRuntime, in SetProperty() argument
317 pRuntime->ToDouble(vp), false, "", in SetProperty()
322 pRuntime->ToBoolean(vp), "", in SetProperty()
328 ByteString::FromUnicode(pRuntime->ToWideString(vp)), in SetProperty()
333 "", pRuntime->ToObject(vp), false); in SetProperty()
340 DelProperty(pRuntime, propname); in SetProperty()
347 CJS_Runtime* pRuntime, in setPersistent() argument
353 ByteString::FromUnicode(pRuntime->ToWideString(params[0]))); in setPersistent()
357 it->second->bPersistent = pRuntime->ToBoolean(params[1]); in setPersistent()
362 CJS_Runtime* pRuntime = in UpdateGlobalPersistentVariables() local
373 pRuntime->PutObjectProperty(m_pJSObject->ToV8Object(), in UpdateGlobalPersistentVariables()
375 pRuntime->NewNumber(pData->data.dData)); in UpdateGlobalPersistentVariables()
381 pRuntime->PutObjectProperty( in UpdateGlobalPersistentVariables()
383 pRuntime->NewBoolean(pData->data.bData == 1)); in UpdateGlobalPersistentVariables()
389 pRuntime->PutObjectProperty( in UpdateGlobalPersistentVariables()
391 pRuntime->NewString(pData->data.sData.UTF8Decode().AsStringView())); in UpdateGlobalPersistentVariables()
394 v8::Local<v8::Object> pObj = pRuntime->NewFxDynamicObj(-1); in UpdateGlobalPersistentVariables()
399 pRuntime->PutObjectProperty(m_pJSObject->ToV8Object(), in UpdateGlobalPersistentVariables()
407 pRuntime->PutObjectProperty(m_pJSObject->ToV8Object(), in UpdateGlobalPersistentVariables()
409 pRuntime->NewNull()); in UpdateGlobalPersistentVariables()
416 CJS_Runtime* pRuntime) { in CommitGlobalPersisitentVariables() argument
441 ObjectToArray(pRuntime, obj, array); in CommitGlobalPersisitentVariables()
453 void JSGlobalAlternate::ObjectToArray(CJS_Runtime* pRuntime, in ObjectToArray() argument
456 std::vector<WideString> pKeyList = pRuntime->GetObjectPropertyNames(pObj); in ObjectToArray()
459 v8::Local<v8::Value> v = pRuntime->GetObjectProperty(pObj, ws); in ObjectToArray()
464 pObjElement->dData = pRuntime->ToDouble(v); in ObjectToArray()
472 pObjElement->dData = pRuntime->ToBoolean(v); in ObjectToArray()
477 ByteString sValue = ByteString::FromUnicode(pRuntime->ToWideString(v)); in ObjectToArray()
489 ObjectToArray(pRuntime, pRuntime->ToObject(v), pObjElement->objData); in ObjectToArray()
504 CJS_Runtime* pRuntime = CJS_Runtime::CurrentRuntimeFromIsolate( in PutObjectProperty() local
511 pRuntime->PutObjectProperty(pObj, pObjData->sKey.UTF8Decode(), in PutObjectProperty()
512 pRuntime->NewNumber(pObjData->dData)); in PutObjectProperty()
515 pRuntime->PutObjectProperty(pObj, pObjData->sKey.UTF8Decode(), in PutObjectProperty()
516 pRuntime->NewBoolean(pObjData->bData == 1)); in PutObjectProperty()
519 pRuntime->PutObjectProperty( in PutObjectProperty()
521 pRuntime->NewString(pObjData->sData.UTF8Decode().AsStringView())); in PutObjectProperty()
524 v8::Local<v8::Object> pNewObj = pRuntime->NewFxDynamicObj(-1); in PutObjectProperty()
527 pRuntime->PutObjectProperty(pObj, pObjData->sKey.UTF8Decode(), in PutObjectProperty()
532 pRuntime->PutObjectProperty(pObj, pObjData->sKey.UTF8Decode(), in PutObjectProperty()
533 pRuntime->NewNull()); in PutObjectProperty()