• Home
  • Raw
  • Download

Lines Matching refs:thread_

43     factory_ = thread_->GetEcmaVM()->GetFactory();  in Stringify()
44 handleValue_ = JSMutableHandle<JSTaggedValue>(thread_, JSTaggedValue::Undefined()); in Stringify()
45 handleKey_ = JSMutableHandle<JSTaggedValue>(thread_, JSTaggedValue::Undefined()); in Stringify()
47 bool isArray = replacer->IsArray(thread_); in Stringify()
49 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
59 … JSHandle<JSTaggedValue> lengthKey = thread_->GlobalConstants()->GetHandledLengthString(); in Stringify()
60 …JSHandle<JSTaggedValue> lenResult = JSTaggedValue::GetProperty(thread_, replacer, lengthKey).GetVa… in Stringify()
62 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
63 JSTaggedNumber lenNumber = JSTaggedValue::ToLength(thread_, lenResult); in Stringify()
64 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
68 JSMutableHandle<JSTaggedValue> propHandle(thread_, JSTaggedValue::Undefined()); in Stringify()
72 …JSTaggedValue prop = ObjectFastOperator::FastGetPropertyByIndex(thread_, replacer.GetTaggedValue()… in Stringify()
74 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
89 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
94 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
107 JSTaggedNumber num = JSTaggedValue::ToNumber(thread_, gap); in Stringify()
109 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
114 auto str = JSTaggedValue::ToString(thread_, gap); in Stringify()
116 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
117 CalculateStringGap(JSHandle<EcmaString>(thread_, str.GetTaggedValue())); in Stringify()
129 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
132 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSTaggedValue, thread_); in Stringify()
137 return thread_->GlobalConstants()->GetHandledUndefined(); in Stringify()
142 JSHandle<EcmaString> primString = JSTaggedValue::ToString(thread_, property); in AddDeduplicateProp()
143 RETURN_IF_ABRUPT_COMPLETION(thread_); in AddDeduplicateProp()
144 JSHandle<JSTaggedValue> addVal(thread_, *primString); in AddDeduplicateProp()
195 JSHandle<JSTaggedValue> undefined = thread_->GlobalConstants()->GetHandledUndefined(); in GetSerializeValue()
199 JSHandle<JSTaggedValue> toJson = thread_->GlobalConstants()->GetHandledToJsonString(); in GetSerializeValue()
201thread_, ObjectFastOperator::FastGetPropertyByValue(thread_, tagValue, toJson.GetTaggedValue())); in GetSerializeValue()
203 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in GetSerializeValue()
208 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread_, toJsonFun, value, undefin… in GetSerializeValue()
209 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in GetSerializeValue()
213 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in GetSerializeValue()
222 EcmaInterpreter::NewRuntimeCallInfo(thread_, replacer, object, undefined, argsLength); in GetSerializeValue()
223 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in GetSerializeValue()
227 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in GetSerializeValue()
256 … result_ += ConvertToString(*base::NumberHelper::NumberToString(thread_, tagValue)); in SerializeJSONProperty()
266 JSHandle<JSTaggedValue> valHandle(thread_, tagValue); in SerializeJSONProperty()
270 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in SerializeJSONProperty()
274 JSHandle listHandle = JSHandle<JSAPILinkedList>(thread_, tagValue); in SerializeJSONProperty()
275 …valHandle = JSHandle<JSTaggedValue>(thread_, JSAPILinkedList::ConvertToArray(thread_, listHandle)); in SerializeJSONProperty()
277 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in SerializeJSONProperty()
281 JSHandle listHandle = JSHandle<JSAPIList>(thread_, tagValue); in SerializeJSONProperty()
282 … valHandle = JSHandle<JSTaggedValue>(thread_, JSAPIList::ConvertToArray(thread_, listHandle)); in SerializeJSONProperty()
284 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in SerializeJSONProperty()
293 auto string = JSHandle<EcmaString>(thread_, in SerializeJSONProperty()
294 EcmaStringAccessor::Flatten(thread_->GetEcmaVM(), strHandle)); in SerializeJSONProperty()
302 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, JSTaggedValue::Exception()); in SerializeJSONProperty()
308 … THROW_TYPE_ERROR_AND_RETURN(thread_, "cannot serialize a BigInt", JSTaggedValue::Exception()); in SerializeJSONProperty()
314 JSProxy::Cast(tagValue.GetTaggedObject())->IsArray(thread_))) { in SerializeJSONProperty()
316 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in SerializeJSONProperty()
319 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); in SerializeJSONProperty()
347 …str = ConvertToString(*JSTaggedValue::ToString(thread_, key), StringConvertedUsage::LOGICOPERATION… in SerializeObjectKey()
380 THROW_TYPE_ERROR_AND_RETURN(thread_, "stack contains value", true); in SerializeJSONObject()
391 if (!replacer->IsArray(thread_)) { in SerializeJSONObject()
393 JSHandle<TaggedArray> propertyArray = JSObject::EnumerableOwnNames(thread_, obj); in SerializeJSONObject()
394 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
398 …JSHandle<JSTaggedValue> valueHandle = JSTaggedValue::GetProperty(thread_, value, handleKey_).GetVa… in SerializeJSONObject()
399 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
401 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
409 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
419 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
423 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
430 ObjectFastOperator::FastGetPropertyByValue(thread_, obj.GetTaggedValue(), in SerializeJSONObject()
432 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
435 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
443 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSONObject()
463 THROW_TYPE_ERROR_AND_RETURN(thread_, "stack contains value", true); in SerializeJSProxy()
476 JSHandle<JSTaggedValue> lengthKey = thread_->GlobalConstants()->GetHandledLengthString(); in SerializeJSProxy()
477 … JSHandle<JSTaggedValue> lenghHandle = JSProxy::GetProperty(thread_, proxy, lengthKey).GetValue(); in SerializeJSProxy()
478 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSProxy()
479 JSTaggedNumber lenNumber = JSTaggedValue::ToLength(thread_, lenghHandle); in SerializeJSProxy()
480 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSProxy()
484 … JSHandle<JSTaggedValue> valHandle = JSProxy::GetProperty(thread_, proxy, handleKey_).GetValue(); in SerializeJSProxy()
485 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSProxy()
491 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSProxy()
494 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSProxy()
515 THROW_TYPE_ERROR_AND_RETURN(thread_, "stack contains value", true); in SerializeJSArray()
531 …JSTaggedValue tagVal = ObjectFastOperator::FastGetPropertyByIndex(thread_, value.GetTaggedValue(),… in SerializeJSArray()
532 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSArray()
534 … tagVal = JSObject::CallGetter(thread_, AccessorData::Cast(tagVal.GetTaggedObject()), value); in SerializeJSArray()
535 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSArray()
545 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSArray()
548 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeJSArray()
570 auto priStr = JSTaggedValue::ToString(thread_, primitiveRef); in SerializePrimitiveRef()
571 RETURN_IF_ABRUPT_COMPLETION(thread_); in SerializePrimitiveRef()
576 auto priNum = JSTaggedValue::ToNumber(thread_, primitiveRef); in SerializePrimitiveRef()
577 RETURN_IF_ABRUPT_COMPLETION(thread_); in SerializePrimitiveRef()
579 result_ += ConvertToString(*base::NumberHelper::NumberToString(thread_, priNum)); in SerializePrimitiveRef()
586 THROW_TYPE_ERROR(thread_, "cannot serialize a BigInt"); in SerializePrimitiveRef()
600 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeElements()
604 JSHandle<TaggedArray> elementsArr(thread_, obj->GetElements()); in SerializeElements()
614 sortArr.emplace_back(JSHandle<JSTaggedValue>(thread_, numberKey)); in SerializeElements()
628 value = JSObject::CallGetter(thread_, AccessorData::Cast(value.GetTaggedObject()), in SerializeElements()
630 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeElements()
634 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeElements()
643 JSHandle<TaggedArray> propertiesArr(thread_, obj->GetProperties()); in SerializeKeys()
646 JSHandle<JSHClass> jsHclass(thread_, obj->GetJSHClass()); in SerializeKeys()
648 if (JSObject::GetEnumCacheKind(thread_, enumCache) == EnumCacheKind::ONLY_OWN_KEYS) { in SerializeKeys()
649 JSHandle<TaggedArray> cache(thread_, enumCache); in SerializeKeys()
659 int index = JSHClass::FindPropertyEntry(thread_, *jsHclass, key); in SerializeKeys()
669 … value = JSObject::CallGetter(thread_, AccessorData::Cast(value.GetTaggedObject()), in SerializeKeys()
671 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
675 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
690 int index = JSHClass::FindPropertyEntry(thread_, *jsHclass, key); in SerializeKeys()
700 … value = JSObject::CallGetter(thread_, AccessorData::Cast(value.GetTaggedObject()), in SerializeKeys()
702 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
708 propertiesArr = JSHandle<TaggedArray>(thread_, obj->GetProperties()); in SerializeKeys()
710 jsHclass = JSHandle<JSHClass>(thread_, obj->GetJSHClass()); in SerializeKeys()
711 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
726 … value = JSObject::CallGetter(thread_, AccessorData::Cast(value.GetTaggedObject()), in SerializeKeys()
728 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
729 jsHclass = JSHandle<JSHClass>(thread_, obj->GetJSHClass()); in SerializeKeys()
733 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
751 …air<JSHandle<JSTaggedValue>, PropertyAttributes> pair(JSHandle<JSTaggedValue>(thread_, key), attr); in SerializeKeys()
764 value = JSObject::CallGetter(thread_, AccessorData::Cast(value.GetTaggedObject()), in SerializeKeys()
766 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
770 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
786 …std::pair<JSHandle<JSTaggedValue>, PropertyAttributes> pair(JSHandle<JSTaggedValue>(thread_, key),… in SerializeKeys()
799 value = JSObject::CallGetter(thread_, AccessorData::Cast(value.GetTaggedObject()), in SerializeKeys()
801 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
805 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in SerializeKeys()
814 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in AppendJsonString()
822 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread_, false); in AppendJsonString()