Home
last modified time | relevance | path

Searched refs:valueHandle (Results 1 - 25 of 48) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
H A Dglobal_index_map.cpp50 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in InitGlobalConst()
58 valueHandle.Update(JSTaggedValue(globalIndex.GetGlobalIndex())); in InitGlobalConst()
60 PointerToIndexDictionary::PutIfAbsent(thread, globalIndexMapHandle, keyHandle, valueHandle); in InitGlobalConst()
75 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in InitGlobalEnv()
83 valueHandle.Update(JSTaggedValue(globalIndex.GetGlobalIndex())); in InitGlobalEnv()
85 PointerToIndexDictionary::PutIfAbsent(thread, globalIndexMapHandle, keyHandle, valueHandle); in InitGlobalEnv()
100 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in InitBuiltinEntries()
107 valueHandle.Update(JSTaggedValue(globalIndex.GetGlobalIndex())); in InitBuiltinEntries()
109 PointerToIndexDictionary::PutIfAbsent(thread, globalIndexMapHandle, keyHandle, valueHandle); in InitBuiltinEntries()
H A Djsnapi_sendable.cpp114 auto valueHandle = JSNApiHelper::ToJSHandle(value); in GetSharedFieldType() local
115 if (valueHandle->IsUndefined()) { in GetSharedFieldType()
118 if (valueHandle->IsNull()) { in GetSharedFieldType()
122 if (valueHandle->IsNumber()) { in GetSharedFieldType()
125 if (valueHandle->IsString()) { in GetSharedFieldType()
128 if (valueHandle->IsBoolean()) { in GetSharedFieldType()
131 if (valueHandle->IsJSShared()) { in GetSharedFieldType()
134 if (valueHandle->IsBigInt()) { in GetSharedFieldType()
H A Djs_generator_object.cpp58 JSHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in GeneratorResume()
59 return JSIterator::CreateIterResultObject(thread, valueHandle, true); in GeneratorResume()
110 JSHandle<JSTaggedValue> valueHandle(thread, abruptCompletion->GetValue()); in GeneratorResumeAbrupt()
111 JSHandle<JSObject> result = JSIterator::CreateIterResultObject(thread, valueHandle, true); in GeneratorResumeAbrupt()
115 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, valueHandle.GetTaggedValue(), result); in GeneratorResumeAbrupt()
H A Djs_map_iterator.cpp139 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in MapIteratorToList()
148 valueHandle.Update(map->GetValue(index)); in MapIteratorToList()
152 ElementAccessor::Set(thread, newArrayHandle, k, valueHandle, true); in MapIteratorToList()
156 array->Set(thread, 1, valueHandle); in MapIteratorToList()
H A Dobject_fast_operator-inl.h381 JSHandle<JSTaggedValue> valueHandle(thread, value); in TrySetPropertyByNameThroughCacheAtLocal()
384 JSHandle<JSTaggedValue>(thread, key), valueHandle, attr); in TrySetPropertyByNameThroughCacheAtLocal()
387 originValue = valueHandle.GetTaggedValue(); in TrySetPropertyByNameThroughCacheAtLocal()
559 JSHandle<JSTaggedValue> valueHandle(thread, value); in SetPropertyByName()
567 AddPropertyByName(thread, objHandle, keyHandle, valueHandle, attr); in SetPropertyByName()
671 JSHandle<JSTaggedValue> valueHandle(thread, value); in SetPropertyByIndex()
674 ElementAccessor::Set(thread, obj, index, valueHandle, true); in SetPropertyByIndex()
677 JSHandle<JSTaggedValue> valueHandle(thread, value); in SetPropertyByIndex()
678 ElementAccessor::Set(thread, arrayHandler, index, valueHandle, true); in SetPropertyByIndex()
877 JSHandle<JSTaggedValue> valueHandle, in AddPropertyByName()
875 AddPropertyByName(JSThread *thread, JSHandle<JSObject> objHandle, JSHandle<JSTaggedValue> keyHandle, JSHandle<JSTaggedValue> valueHandle, PropertyAttributes attr) AddPropertyByName() argument
[all...]
H A Djs_object.cpp182 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in TransitionToDictionary()
203 valueHandle.Update(value); in TransitionToDictionary()
205 JSHandle<NameDictionary> newDict = NameDictionary::PutIfAbsent(thread, dict, keyHandle, valueHandle, attr); in TransitionToDictionary()
233 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue ::Undefined()); in ElementsToDictionary()
240 valueHandle.Update(value); in ElementsToDictionary()
241 JSHandle<NumberDictionary> newDict = NumberDictionary::PutIfAbsent(thread, dict, key, valueHandle, attr); in ElementsToDictionary()
1236 JSHandle<JSTaggedValue> valueHandle(thread, cell->GetValue()); in GlobalGetOwnProperty()
1237 desc.SetValue(valueHandle); in GlobalGetOwnProperty()
1259 JSHandle<JSTaggedValue> valueHandle(thread, cell->GetValue()); in OrdinaryGetOwnProperty()
1260 desc.SetValue(valueHandle); in OrdinaryGetOwnProperty()
1463 JSHandle<JSTaggedValue> valueHandle = current.GetValue(); ValidateAndApplyPropertyDescriptor() local
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_symbol.cpp63 JSHandle<JSTaggedValue> valueHandle = GetThis(argv); in ToString() local
65 if (valueHandle->IsSymbol()) { in ToString()
67 return SymbolDescriptiveString(thread, valueHandle.GetTaggedValue()); in ToString()
71 if (valueHandle->IsJSPrimitiveRef()) { in ToString()
73 JSTaggedValue primitive = JSPrimitiveRef::Cast(valueHandle->GetTaggedObject())->GetValue(); in ToString()
123 JSHandle<JSTaggedValue> valueHandle = GetThis(argv); in ValueOf() local
125 if (valueHandle->IsSymbol()) { in ValueOf()
126 return valueHandle.GetTaggedValue(); in ValueOf()
130 if (valueHandle->IsJSPrimitiveRef()) { in ValueOf()
132 JSTaggedValue primitive = JSPrimitiveRef::Cast(valueHandle in ValueOf()
[all...]
/arkcompiler/ets_runtime/ecmascript/interpreter/
H A Dslow_runtime_stub.cpp295 JSHandle<JSTaggedValue> valueHandle(thread, value); in ToJSTaggedValueWithInt32()
296 return RuntimeStubs::RuntimeToJSTaggedValueWithInt32(thread, valueHandle); in ToJSTaggedValueWithInt32()
303 JSHandle<JSTaggedValue> valueHandle(thread, value); in ToJSTaggedValueWithUint32()
304 return RuntimeStubs::RuntimeToJSTaggedValueWithUint32(thread, valueHandle); in ToJSTaggedValueWithUint32()
408 JSHandle<JSTaggedValue> valueHandle(thread, value); in CreateIterResultObj()
409 return RuntimeStubs::RuntimeCreateIterResultObj(thread, valueHandle, flag); in CreateIterResultObj()
436 JSHandle<JSTaggedValue> valueHandle(thread, value); in SuspendGenerator()
437 return RuntimeStubs::RuntimeSuspendGenerator(thread, genObjHandle, valueHandle); in SuspendGenerator()
455 JSHandle<JSTaggedValue> valueHandle(thread, value); in AsyncFunctionAwaitUncaught()
457 return RuntimeStubs::RuntimeAsyncFunctionAwaitUncaught(thread, asyncFuncObjHandle, valueHandle); in AsyncFunctionAwaitUncaught()
[all...]
/arkcompiler/ets_runtime/ecmascript/debugger/
H A Ddropframe_manager.cpp157 JSHandle<JSTaggedValue> valueHandle; in DropLastFrame() local
158 std::tie(envHandle, slot, valueHandle) = item; in DropLastFrame()
161 LexicalEnv::Cast(env.GetTaggedObject())->SetProperties(thread, slot, valueHandle.GetTaggedValue()); in DropLastFrame()
207 JSHandle<JSTaggedValue> valueHandle = globalHandleCollection.NewHandle<JSTaggedValue>(value.GetRawData()); in EmplaceLexModifyRecord() local
208 modifiedLexVar_.top().emplace_back(envHandle, slot, valueHandle); in EmplaceLexModifyRecord()
233 JSHandle<JSTaggedValue> valueHandle = std::get<2>(item); // 2:get the third item of the tuple in RemoveLexModifyRecordOfTopFrame() local
235 globalHandleCollection.Dispose(valueHandle); in RemoveLexModifyRecordOfTopFrame()
257 JSHandle<JSTaggedValue> valueHandle; in MergeLexModifyRecordOfTopFrame() local
258 std::tie(envHandle, slot, valueHandle) = item; in MergeLexModifyRecordOfTopFrame()
272 globalHandleCollection.Dispose(valueHandle); in MergeLexModifyRecordOfTopFrame()
[all...]
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_hashset_iterator.cpp49 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in Next()
56 valueHandle.Update(currentNode->GetKey()); in Next()
58 return JSIterator::CreateIterResultObject(thread, valueHandle, false).GetTaggedValue(); in Next()
62 array->Set(thread, 0, valueHandle); in Next()
63 array->Set(thread, 1, valueHandle); in Next()
H A Djs_api_hashmap_iterator.cpp49 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in Next()
61 valueHandle.Update(currentNode->GetValue()); in Next()
63 return JSIterator::CreateIterResultObject(thread, valueHandle, false).GetTaggedValue(); in Next()
68 array->Set(thread, 1, valueHandle); in Next()
H A Djs_api_plain_array.cpp191 JSHandle<JSTaggedValue> valueHandle(thread, value);
192 JSAPIPlainArray::Add(thread, obj, key, valueHandle);
366 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in ToString()
370 valueHandle.Update(plainarray->GetValueAt(thread, k)); in ToString()
371 if (!valueHandle->IsUndefined() && !valueHandle->IsNull()) { in ToString()
372 JSHandle<EcmaString> valueStringHandle = JSTaggedValue::ToString(thread, valueHandle); in ToString()
H A Djs_api_lightweightmap.cpp367 JSMutableHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue::Undefined()); in ToString()
372 valueHandle.Update(lightWeightMap->GetValueAt(thread, lightWeightMap, k)); in ToString()
374 if (!valueHandle->IsUndefined() && !valueHandle->IsNull()) { in ToString()
375 JSHandle<EcmaString> valueStringHandle = JSTaggedValue::ToString(thread, valueHandle); in ToString()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_async_function_test.cpp66 JSHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue(33)); in HWTEST_F_L0()
69 JSAsyncFunction::AsyncFunctionAwait(thread, asyncFuncObj, valueHandle); in HWTEST_F_L0()
H A Dtagged_dictionary_test.cpp119 JSHandle<JSTaggedValue> valueHandle(thread, JSTaggedValue(i)); in HWTEST_F_L0()
122 dictHandle = NameDictionary::PutIfAbsent(thread, tempHandle, keyHandle, valueHandle, metaData); in HWTEST_F_L0()
248 JSHandle<JSTaggedValue> valueHandle(JSTaggedValue::ToString(thread, keyHandle)); in HWTEST_F_L0()
250 dictHandle = NumberDictionary::PutIfAbsent(thread, tempHandle, keyHandle, valueHandle, metaData); in HWTEST_F_L0()
279 JSHandle<JSTaggedValue> valueHandle(JSTaggedValue::ToString(thread, keyHandle)); in HWTEST_F_L0()
282 dictHandle = NumberDictionary::PutIfAbsent(thread, tempHandle, keyHandle, valueHandle, metaData); in HWTEST_F_L0()
304 JSHandle<JSTaggedValue> valueHandle(JSTaggedValue::ToString(thread, keyHandle)); in HWTEST_F_L0()
307 NumberDictionary::PutIfAbsent(thread, dictHandle, keyHandle, valueHandle, metaData); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/ohos/
H A Dohos_pkg_args.h192 JSHandle<JSArray> valueHandle(jsThread, resultValue); in ParseListFromJson()
193 JSHandle<TaggedArray> elements(jsThread, valueHandle->GetElements()); in ParseListFromJson()
227 JSHandle<JSObject> valueHandle(jsThread, resultValue); in ParseFromJson()
228 return ParseFromJsObject(vm, valueHandle); in ParseFromJson()
231 bool ParseFromJsObject(EcmaVM *vm, JSHandle<JSObject> &valueHandle) in ParseFromJsObject() argument
235 JSHandle<TaggedArray> nameList(JSObject::EnumerableOwnNames(jsThread, valueHandle)); in ParseFromJsObject()
240 value.Update(JSObject::GetProperty(jsThread, valueHandle, key).GetValue()); in ParseFromJsObject()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_array_test.cpp222 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
226 JSObject::GetOwnProperty(thread, valueHandle, key0, descRes); in HWTEST_F_L0()
228 JSObject::GetOwnProperty(thread, valueHandle, key1, descRes); in HWTEST_F_L0()
230 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0()
259 void CheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, in CheckKeyValueCommon() argument
263 JSObject::GetOwnProperty(thread, valueHandle, keys[i], descRes); in CheckKeyValueCommon()
291 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
293 CheckKeyValueCommon(thread, valueHandle, descRes, keys, vals); in HWTEST_F_L0()
346 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
352 CheckKeyValueCommon(thread, valueHandle, descRe in HWTEST_F_L0()
[all...]
H A Dbuiltins_shared_array_test.cpp212 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
216 JSObject::GetOwnProperty(thread, valueHandle, key0, descRes); in HWTEST_F_L0()
218 JSObject::GetOwnProperty(thread, valueHandle, key1, descRes); in HWTEST_F_L0()
220 JSObject::GetOwnProperty(thread, valueHandle, key2, descRes); in HWTEST_F_L0()
249 void SharedArrayCheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, in SharedArrayCheckKeyValueCommon() argument
253 JSObject::GetOwnProperty(thread, valueHandle, keys[i], descRes); in SharedArrayCheckKeyValueCommon()
283 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
285 SharedArrayCheckKeyValueCommon(thread, valueHandle, descRes, keys, vals); in HWTEST_F_L0()
335 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
338 JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandl in HWTEST_F_L0()
[all...]
H A Dbuiltins_list_format_second_test.cpp108 JSHandle<JSObject> valueHandle(thread, valueList); in HWTEST_F_L0()
109 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKey).GetValue()->GetInt(), 5); in HWTEST_F_L0()
140 JSHandle<JSObject> valueHandle(thread, valueList); in HWTEST_F_L0()
141 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKey).GetValue()->GetInt(), 7); in HWTEST_F_L0()
H A Dbuiltins_json_test.cpp169 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
171 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle).GetValue(); in HWTEST_F_L0()
189 JSHandle<JSObject> valueHandle(thread, value); in HWTEST_F_L0()
191 JSHandle<TaggedArray> nameList(JSObject::EnumerableOwnNames(thread, valueHandle)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Djson_parser_test.cpp206 JSHandle<JSObject> valueHandle(thread, resultValue); in HWTEST_F_L0()
209 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(valueHandle), lengthKeyHandle).GetValue(); in HWTEST_F_L0()
233 JSHandle<JSObject> valueHandle(thread, resultValue); in HWTEST_F_L0()
234 JSHandle<TaggedArray> nameList(JSObject::EnumerableOwnNames(thread, valueHandle)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/
H A Dsnapshot_constantpool_data.cpp131 JSMutableHandle<JSTaggedValue> valueHandle(thread_, JSTaggedValue::Undefined()); in CollectLiteralInfo()
135 valueHandle.Update(array->Get(i)); in CollectLiteralInfo()
137 if (valueHandle->IsJSFunction()) { in CollectLiteralInfo()
138 methodOffset = JSHandle<JSFunction>(valueHandle)->GetCallTarget()->GetMethodId().GetOffset(); in CollectLiteralInfo()
139 } else if (valueHandle->IsFunctionTemplate()) { in CollectLiteralInfo()
140 auto method = Method::Cast(JSHandle<FunctionTemplate>(valueHandle)->GetMethod()); in CollectLiteralInfo()
/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_runtime_stub-inl.h345 JSHandle<JSTaggedValue> valueHandle(thread, value); in StoreWithTransition()
356 properties->Set(thread, index, valueHandle); in StoreWithTransition()
561 JSHandle<JSTaggedValue> valueHandle(thread, value); in StoreElement()
584 elements->Set(thread, elementIndex, valueHandle); in StoreElement()
587 elements->Set(thread, elementIndex, valueHandle); in StoreElement()
675 auto valueHandle = JSHandle<JSTaggedValue>(thread, value); in StoreMiss() local
678 return icRuntime.StoreMiss(receiverHandle, keyHandle, valueHandle, isOwn); in StoreMiss()
/arkcompiler/ets_runtime/ecmascript/base/
H A Dfast_json_stringifier.cpp219 JSHandle<JSTaggedValue> valueHandle = JSTaggedValue::GetProperty(thread_, value, handleKey_).GetValue(); in SerializeJSONObject() local
221 if (UNLIKELY(valueHandle->IsECMAObject() || valueHandle->IsBigInt())) { in SerializeJSONObject()
222 JSTaggedValue serializeValue = GetSerializeValue(handleKey_, valueHandle); in SerializeJSONObject()
230 handleValue_.Update(valueHandle); in SerializeJSONObject()
H A Darray_helper.cpp111 JSHandle<JSTaggedValue> valueHandle = JSArray::FastGetPropertyByValue(thread, thisObjVal, keyHandle); in ElementIsStrictEqualTo() local
115 return JSTaggedValue::StrictEqual(thread, target, valueHandle); in ElementIsStrictEqualTo()

Completed in 29 milliseconds

12