/arkcompiler/ets_runtime/ecmascript/ |
D | js_hclass.h | 491 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 …]
|
D | object_fast_operator-inl.h | 53 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 …]
|
D | object_fast_operator.h | 74 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);
|
D | js_typed_array.h | 95 JSType jsType); 97 JSTaggedValue value, JSType jsType);
|
D | js_for_in_iterator.cpp | 40 JSType jsType = hclass->GetObjectType(); in CheckObjProto() local 41 if (jsType != JSType::JS_OBJECT) { in CheckObjProto()
|
D | js_typed_array.cpp | 637 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()
|
D | js_tagged_value.cpp | 1039 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 …]
|
D | js_object.cpp | 1842 JSType jsType = hclass->GetObjectType(); in ToPropertyDescriptorFast() local 1843 if (jsType != JSType::JS_OBJECT) { in ToPropertyDescriptorFast()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | typed_array_stub_builder.cpp | 81 …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 …]
|
D | typed_array_stub_builder.h | 32 GateRef FastGetPropertyByIndex(GateRef glue, GateRef array, GateRef index, GateRef jsType); 34 GateRef GetValueFromBuffer(GateRef buffer, GateRef index, GateRef offset, GateRef jsType);
|
D | stub_builder.h | 422 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);
|
D | stub_builder-inl.h | 1722 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 …]
|
D | stub_builder.cpp | 2193 GateRef jsType = GetObjectType(hclass); in GetPropertyByIndex() local 2196 Branch(IsSpecialIndexedObj(jsType), &isSpecialIndexed, ¬SpecialIndexed); in GetPropertyByIndex() 2203 …Branch(Int32Equal(jsType, Int32(static_cast<int32_t>(JSType::JS_TYPED_ARRAY))), &exit, ¬TypedAr… in GetPropertyByIndex() 2205 Branch(IsFastTypeArray(jsType), &isFastTypeArray, ¬FastTypeArray); in GetPropertyByIndex() 2209 result = typedArrayStubBuilder.FastGetPropertyByIndex(glue, *holder, index, jsType); in GetPropertyByIndex() 2217 Branch(IsSpecialContainer(jsType), &isSpecialContainer, ¬SpecialContainer); in GetPropertyByIndex() 2220 result = GetContainerProperty(glue, *holder, index, jsType); in GetPropertyByIndex() 2411 GateRef jsType = GetObjectType(hclass); in GetPropertyByName() local 2414 Branch(IsSpecialIndexedObj(jsType), &isSIndexObj, ¬SIndexObj); in GetPropertyByName() 2420 Branch(IsFastTypeArray(jsType), &isFastTypeArray, ¬FastTypeArray); in GetPropertyByName() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_typed_array_test.cpp | 66 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/ |
D | json_stringifier.cpp | 361 JSType jsType = tagValue.GetTaggedObject()->GetClass()->GetObjectType(); in SerializeJSONProperty() local 363 switch (jsType) { in SerializeJSONProperty()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 1875 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()
|