Home
last modified time | relevance | path

Searched refs:jsType (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_hclass.h491 JSType jsType = GetObjectType(); in IsJSObject() local
492 return (JSType::JS_OBJECT_FIRST <= jsType && jsType <= JSType::JS_OBJECT_LAST); in IsJSObject()
497 JSType jsType = GetObjectType(); in IsECMAObject() local
498 return (JSType::ECMA_OBJECT_FIRST <= jsType && jsType <= JSType::ECMA_OBJECT_LAST); in IsECMAObject()
513 JSType jsType = GetObjectType(); in IsString() local
514 return (JSType::STRING_FIRST <= jsType && jsType <= JSType::STRING_LAST); in IsString()
544 JSType jsType = GetObjectType(); in IsStringOrSymbol() local
545 …return (JSType::STRING_FIRST <= jsType && jsType <= JSType::STRING_LAST) || (jsType == JSType::SYM… in IsStringOrSymbol()
550 JSType jsType = GetObjectType(); in IsTaggedArray() local
551 switch (jsType) { in IsTaggedArray()
[all …]
Dobject_fast_operator-inl.h53 JSType jsType = hclass->GetObjectType(); in GetPropertyByName() local
54 if (IsSpecialIndexedObj(jsType)) { in GetPropertyByName()
55 if (IsFastTypeArray(jsType)) { in GetPropertyByName()
56 JSTaggedValue res = FastGetTypeArrayProperty(thread, receiver, holder, key, jsType); in GetPropertyByName()
121 JSType jsType = hclass->GetObjectType(); in SetPropertyByName() local
122 if (IsSpecialIndexedObj(jsType)) { in SetPropertyByName()
123 if (IsFastTypeArray(jsType)) { in SetPropertyByName()
124 … JSTaggedValue res = FastSetTypeArrayProperty(thread, receiver, holder, key, value, jsType); in SetPropertyByName()
130 } else if (IsSpecialContainer(jsType)) { in SetPropertyByName()
231 JSType jsType = hclass->GetObjectType(); in GetPropertyByIndex() local
[all …]
Dobject_fast_operator.h74 static inline bool IsSpecialIndexedObj(JSType jsType);
76 static inline bool IsFastTypeArray(JSType jsType);
81 JSTaggedValue key, JSType jsType);
84 … JSTaggedValue key, JSTaggedValue value, JSType jsType);
87 static inline bool IsSpecialContainer(JSType jsType);
90 JSType jsType);
93 JSTaggedValue value, JSType jsType);
Djs_typed_array.h95 JSType jsType);
97 JSTaggedValue value, JSType jsType);
Djs_for_in_iterator.cpp40 JSType jsType = hclass->GetObjectType(); in CheckObjProto() local
41 if (jsType != JSType::JS_OBJECT) { in CheckObjProto()
Djs_typed_array.cpp637 JSType jsType) in FastGetPropertyByIndex() argument
660 uint32_t elementSize = TypedArrayHelper::GetElementSize(jsType); in FastGetPropertyByIndex()
664 DataViewType elementType = TypedArrayHelper::GetType(jsType); in FastGetPropertyByIndex()
670 JSTaggedValue value, JSType jsType) in FastSetPropertyByIndex() argument
697 uint32_t elementSize = TypedArrayHelper::GetElementSize(jsType); in FastSetPropertyByIndex()
701 DataViewType elementType = TypedArrayHelper::GetType(jsType); in FastSetPropertyByIndex()
Djs_tagged_value.cpp1039 JSType jsType = hclass->GetObjectType(); in HasContainerProperty() local
1040 switch (jsType) { in HasContainerProperty()
1086 JSType jsType = hclass->GetObjectType(); in GetOwnContainerPropertyKeys() local
1087 switch (jsType) { in GetOwnContainerPropertyKeys()
1132 JSType jsType = hclass->GetObjectType(); in GetOwnContainerEnumPropertyKeys() local
1133 switch (jsType) { in GetOwnContainerEnumPropertyKeys()
1170 JSType jsType = hclass->GetObjectType(); in GetContainerProperty() local
1171 switch (jsType) { in GetContainerProperty()
1227 JSType jsType = hclass->GetObjectType(); in GetJSAPIProperty() local
1228 switch (jsType) { in GetJSAPIProperty()
[all …]
Djs_object.cpp1842 JSType jsType = hclass->GetObjectType(); in ToPropertyDescriptorFast() local
1843 if (jsType != JSType::JS_OBJECT) { in ToPropertyDescriptorFast()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtyped_array_stub_builder.cpp81 …rrayStubBuilder::FastGetPropertyByIndex(GateRef glue, GateRef array, GateRef index, GateRef jsType) in FastGetPropertyByIndex() argument
106 result = GetValueFromBuffer(buffer, index, offset, jsType); in FastGetPropertyByIndex()
113 { array, IntToTaggedInt(index), IntToTaggedInt(jsType)}); in FastGetPropertyByIndex()
149 GateRef jsType = GetObjectType(hclass); in FastCopyElementToArray() local
157 GateRef value = GetValueFromBuffer(buffer, *start, offset, jsType); in FastCopyElementToArray()
177 …ArrayStubBuilder::GetValueFromBuffer(GateRef buffer, GateRef index, GateRef offset, GateRef jsType) in GetValueFromBuffer() argument
203 … Branch(Int32LessThanOrEqual(jsType, Int32(static_cast<int32_t>(JSType::JS_UINT8_CLAMPED_ARRAY))), in GetValueFromBuffer()
208 Switch(jsType, &defaultLabel, valueBuffer, labelBuffer, 3); in GetValueFromBuffer()
239 Branch(Int32LessThanOrEqual(jsType, Int32(static_cast<int32_t>(JSType::JS_INT32_ARRAY))), in GetValueFromBuffer()
244 Switch(jsType, &defaultLabel, valueBuffer1, labelBuffer1, 3); in GetValueFromBuffer()
[all …]
Dtyped_array_stub_builder.h32 GateRef FastGetPropertyByIndex(GateRef glue, GateRef array, GateRef index, GateRef jsType);
34 GateRef GetValueFromBuffer(GateRef buffer, GateRef index, GateRef offset, GateRef jsType);
Dstub_builder.h422 GateRef IsSpecialIndexedObj(GateRef jsType);
423 GateRef IsSpecialContainer(GateRef jsType);
592 GateRef GetContainerProperty(GateRef glue, GateRef receiver, GateRef index, GateRef jsType);
626 GateRef IsFastTypeArray(GateRef jsType);
627 …peArrayPropertyByName(GateRef glue, GateRef receiver, GateRef holder, GateRef key, GateRef jsType);
629 GateRef jsType);
Dstub_builder-inl.h1722 inline GateRef StubBuilder::IsSpecialIndexedObj(GateRef jsType) in IsSpecialIndexedObj() argument
1724 return Int32GreaterThan(jsType, Int32(static_cast<int32_t>(JSType::JS_ARRAY))); in IsSpecialIndexedObj()
1727 inline GateRef StubBuilder::IsSpecialContainer(GateRef jsType) in IsSpecialContainer() argument
1731 Int32Equal(jsType, Int32(static_cast<int32_t>(JSType::JS_API_ARRAY_LIST))), in IsSpecialContainer()
1732 Int32Equal(jsType, Int32(static_cast<int32_t>(JSType::JS_API_VECTOR)))); in IsSpecialContainer()
1735 inline GateRef StubBuilder::IsFastTypeArray(GateRef jsType) in IsFastTypeArray() argument
1738 … Int32GreaterThanOrEqual(jsType, Int32(static_cast<int32_t>(JSType::JS_TYPED_ARRAY_FIRST))), in IsFastTypeArray()
1739 Int32LessThanOrEqual(jsType, Int32(static_cast<int32_t>(JSType::JS_FLOAT64_ARRAY)))); in IsFastTypeArray()
2419 GateRef jsType = GetObjectType(jsHclass); in IsTypedArray() local
2420 …return BoolAnd(Int32GreaterThan(jsType, Int32(static_cast<int32_t>(JSType::JS_TYPED_ARRAY_FIRST))), in IsTypedArray()
[all …]
Dstub_builder.cpp2193 GateRef jsType = GetObjectType(hclass); in GetPropertyByIndex() local
2196 Branch(IsSpecialIndexedObj(jsType), &isSpecialIndexed, &notSpecialIndexed); in GetPropertyByIndex()
2203 …Branch(Int32Equal(jsType, Int32(static_cast<int32_t>(JSType::JS_TYPED_ARRAY))), &exit, &notTypedAr… in GetPropertyByIndex()
2205 Branch(IsFastTypeArray(jsType), &isFastTypeArray, &notFastTypeArray); in GetPropertyByIndex()
2209 result = typedArrayStubBuilder.FastGetPropertyByIndex(glue, *holder, index, jsType); in GetPropertyByIndex()
2217 Branch(IsSpecialContainer(jsType), &isSpecialContainer, &notSpecialContainer); in GetPropertyByIndex()
2220 result = GetContainerProperty(glue, *holder, index, jsType); in GetPropertyByIndex()
2411 GateRef jsType = GetObjectType(hclass); in GetPropertyByName() local
2414 Branch(IsSpecialIndexedObj(jsType), &isSIndexObj, &notSIndexObj); in GetPropertyByName()
2420 Branch(IsFastTypeArray(jsType), &isFastTypeArray, &notFastTypeArray); in GetPropertyByName()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_typed_array_test.cpp66 JSHandle<JSTypedArray> CreateNumberTypedArray(JSThread *thread, JSType jsType) in CreateNumberTypedArray() argument
72 switch (jsType) { in CreateNumberTypedArray()
1322 JSType jsType = cVecJSType.at(j); in HWTEST_F_L0() local
1323 JSHandle<JSTypedArray> handleTypeArray = CreateNumberTypedArray(thread, jsType); in HWTEST_F_L0()
1338 … JSTypedArray::FastGetPropertyByIndex(thread, handleTagValTypeArray.GetTaggedValue(), i, jsType); in HWTEST_F_L0()
1360 JSType jsType = cVecJSType.at(j); in HWTEST_F_L0() local
1361 JSHandle<JSTypedArray> handleTypeArray = CreateNumberTypedArray(thread, jsType); in HWTEST_F_L0()
1374 jsType); in HWTEST_F_L0()
1397 JSType jsType = cVecJSType.at(j); in HWTEST_F_L0() local
1398 JSHandle<JSTypedArray> handleTypeArray = CreateNumberTypedArray(thread, jsType); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Djson_stringifier.cpp361 JSType jsType = tagValue.GetTaggedObject()->GetClass()->GetObjectType(); in SerializeJSONProperty() local
363 switch (jsType) { in SerializeJSONProperty()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp1875 JSTaggedValue jsType = GetArg(argv, argc, 2); // 2: means the second parameter in DEF_RUNTIME_STUBS() local
1876 …return JSTypedArray::FastGetPropertyByIndex(thread, obj, idx.GetInt(), JSType(jsType.GetInt())).Ge… in DEF_RUNTIME_STUBS()
1885 JSTaggedValue jsType = GetArg(argv, argc, 3); // 3: means the third parameter in DEF_RUNTIME_STUBS() local
1886 …return JSTypedArray::FastSetPropertyByIndex(thread, obj, idx.GetInt(), value, JSType(jsType.GetInt… in DEF_RUNTIME_STUBS()