Lines Matching refs:pData
247 JSGlobalData* pData = it->second.get(); in GetProperty() local
248 if (pData->bDeleted) in GetProperty()
251 switch (pData->nType) { in GetProperty()
253 return CJS_Result::Success(pRuntime->NewNumber(pData->dData)); in GetProperty()
255 return CJS_Result::Success(pRuntime->NewBoolean(pData->bData)); in GetProperty()
258 WideString::FromDefANSI(pData->sData.AsStringView()).AsStringView())); in GetProperty()
261 v8::Local<v8::Object>::New(pRuntime->GetIsolate(), pData->pData)); in GetProperty()
324 CFX_GlobalData::Element* pData = m_pGlobalData->GetAt(i); in UpdateGlobalPersistentVariables() local
325 switch (pData->data.nType) { in UpdateGlobalPersistentVariables()
327 SetGlobalVariables(pData->data.sKey, CFX_Value::DataType::NUMBER, in UpdateGlobalPersistentVariables()
328 pData->data.dData, false, ByteString(), in UpdateGlobalPersistentVariables()
329 v8::Local<v8::Object>(), pData->bPersistent == 1); in UpdateGlobalPersistentVariables()
331 pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables()
332 pRuntime->NewNumber(pData->data.dData)); in UpdateGlobalPersistentVariables()
335 SetGlobalVariables(pData->data.sKey, CFX_Value::DataType::BOOLEAN, 0, in UpdateGlobalPersistentVariables()
336 pData->data.bData == 1, ByteString(), in UpdateGlobalPersistentVariables()
337 v8::Local<v8::Object>(), pData->bPersistent == 1); in UpdateGlobalPersistentVariables()
339 ToV8Object(), pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables()
340 pRuntime->NewBoolean(pData->data.bData == 1)); in UpdateGlobalPersistentVariables()
343 SetGlobalVariables(pData->data.sKey, CFX_Value::DataType::STRING, 0, in UpdateGlobalPersistentVariables()
344 false, pData->data.sData, v8::Local<v8::Object>(), in UpdateGlobalPersistentVariables()
345 pData->bPersistent == 1); in UpdateGlobalPersistentVariables()
347 ToV8Object(), pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables()
349 WideString::FromUTF8(pData->data.sData.AsStringView()) in UpdateGlobalPersistentVariables()
355 PutObjectProperty(pObj, &pData->data); in UpdateGlobalPersistentVariables()
356 SetGlobalVariables(pData->data.sKey, CFX_Value::DataType::OBJECT, 0, in UpdateGlobalPersistentVariables()
358 pData->bPersistent == 1); in UpdateGlobalPersistentVariables()
360 pData->data.sKey.AsStringView(), pObj); in UpdateGlobalPersistentVariables()
364 SetGlobalVariables(pData->data.sKey, CFX_Value::DataType::NULLOBJ, 0, in UpdateGlobalPersistentVariables()
366 pData->bPersistent == 1); in UpdateGlobalPersistentVariables()
368 ToV8Object(), pData->data.sKey.AsStringView(), pRuntime->NewNull()); in UpdateGlobalPersistentVariables()
377 JSGlobalData* pData = iter.second.get(); in CommitGlobalPersisitentVariables() local
378 if (pData->bDeleted) { in CommitGlobalPersisitentVariables()
382 switch (pData->nType) { in CommitGlobalPersisitentVariables()
384 m_pGlobalData->SetGlobalVariableNumber(name, pData->dData); in CommitGlobalPersisitentVariables()
385 m_pGlobalData->SetGlobalVariablePersistent(name, pData->bPersistent); in CommitGlobalPersisitentVariables()
388 m_pGlobalData->SetGlobalVariableBoolean(name, pData->bData); in CommitGlobalPersisitentVariables()
389 m_pGlobalData->SetGlobalVariablePersistent(name, pData->bPersistent); in CommitGlobalPersisitentVariables()
392 m_pGlobalData->SetGlobalVariableString(name, pData->sData); in CommitGlobalPersisitentVariables()
393 m_pGlobalData->SetGlobalVariablePersistent(name, pData->bPersistent); in CommitGlobalPersisitentVariables()
398 v8::Local<v8::Object>::New(GetIsolate(), pData->pData); in CommitGlobalPersisitentVariables()
401 m_pGlobalData->SetGlobalVariablePersistent(name, pData->bPersistent); in CommitGlobalPersisitentVariables()
405 m_pGlobalData->SetGlobalVariablePersistent(name, pData->bPersistent); in CommitGlobalPersisitentVariables()
463 CFX_KeyValue* pData) { in PutObjectProperty() argument
468 for (size_t i = 0; i < pData->objData.size(); ++i) { in PutObjectProperty()
469 CFX_KeyValue* pObjData = pData->objData.at(i).get(); in PutObjectProperty()
511 v8::Local<v8::Object> pData, in SetGlobalVariables() argument
537 pTemp->pData.Reset(pData->GetIsolate(), pData); in SetGlobalVariables()
566 pNewData->pData.Reset(pData->GetIsolate(), pData); in SetGlobalVariables()