Home
last modified time | relevance | path

Searched refs:JSTaggedValue (Results 1 – 25 of 884) sorted by relevance

12345678910>>...36

/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.h29 …static JSTaggedValue CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, JSTaggedV…
30 static JSTaggedValue Neg(JSThread *thread, JSTaggedValue value);
31 static JSTaggedValue AsyncFunctionEnter(JSThread *thread);
32 static JSTaggedValue ToNumber(JSThread *thread, JSTaggedValue value);
33 static JSTaggedValue ToNumeric(JSThread *thread, JSTaggedValue value);
34 static JSTaggedValue Not(JSThread *thread, JSTaggedValue value);
35 static JSTaggedValue Inc(JSThread *thread, JSTaggedValue value);
36 static JSTaggedValue Dec(JSThread *thread, JSTaggedValue value);
37 static void Throw(JSThread *thread, JSTaggedValue value);
38 static JSTaggedValue GetPropIterator(JSThread *thread, JSTaggedValue value);
[all …]
Dfast_runtime_stub.h30 static inline JSTaggedValue FastMul(JSTaggedValue left, JSTaggedValue right);
31 static inline JSTaggedValue FastDiv(JSTaggedValue left, JSTaggedValue right);
32 static inline JSTaggedValue FastMod(JSTaggedValue left, JSTaggedValue right);
33 static inline JSTaggedValue FastEqual(JSTaggedValue left, JSTaggedValue right);
34 static inline JSTaggedValue FastTypeOf(JSThread *thread, JSTaggedValue obj);
35 static inline JSTaggedValue FastStrictEqual(JSTaggedValue left, JSTaggedValue right);
36 …static inline JSTaggedValue NewLexicalEnv(JSThread *thread, ObjectFactory *factory, uint16_t numVa…
37 …static inline JSTaggedValue GetGlobalOwnProperty(JSThread *thread, JSTaggedValue receiver, JSTagge…
39 …static inline JSTaggedValue GetPropertyByName(JSThread *thread, JSTaggedValue receiver, JSTaggedVa…
41 …static inline JSTaggedValue GetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTaggedV…
[all …]
Dslow_runtime_stub.cpp47 JSTaggedValue SlowRuntimeStub::CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, in CallSpread()
48 JSTaggedValue array) in CallSpread()
53 JSHandle<JSTaggedValue> jsFunc(thread, func); in CallSpread()
54 JSHandle<JSTaggedValue> jsArray(thread, array); in CallSpread()
55 JSHandle<JSTaggedValue> taggedObj(thread, obj); in CallSpread()
59 JSTaggedValue SlowRuntimeStub::Neg(JSThread *thread, JSTaggedValue value) in Neg()
64 JSHandle<JSTaggedValue> inputTag(thread, value); in Neg()
68 JSTaggedValue SlowRuntimeStub::AsyncFunctionEnter(JSThread *thread) in AsyncFunctionEnter()
76 JSTaggedValue SlowRuntimeStub::ToNumber(JSThread *thread, JSTaggedValue value) in ToNumber()
81 JSHandle<JSTaggedValue> number(thread, value); in ToNumber()
[all …]
Dfast_runtime_stub-inl.h35 return JSTaggedValue::Hole(); \
38 JSTaggedValue FastRuntimeStub::FastMul(JSTaggedValue left, JSTaggedValue right) in FastMul()
41 return JSTaggedValue(left.GetNumber() * right.GetNumber()); in FastMul()
44 return JSTaggedValue::Hole(); in FastMul()
47 JSTaggedValue FastRuntimeStub::FastDiv(JSTaggedValue left, JSTaggedValue right) in FastDiv()
54 return JSTaggedValue(base::NAN_VALUE); in FastDiv()
58 return JSTaggedValue(base::bit_cast<double>( in FastDiv()
61 return JSTaggedValue(dLeft / dRight); in FastDiv()
63 return JSTaggedValue::Hole(); in FastDiv()
66 JSTaggedValue FastRuntimeStub::FastMod(JSTaggedValue left, JSTaggedValue right) in FastMod()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_value_test.cpp63 JSTaggedValue td(d); in HWTEST_F_L0()
70 JSTaggedValue tNan(nan); in HWTEST_F_L0()
74 …EXPECT_EQ(JSTaggedValue::CastDoubleToTagged(tNan.GetDouble()), JSTaggedValue::CastDoubleToTagged(n… in HWTEST_F_L0()
76 …double pureNaN = JSTaggedValue::CastTaggedToDouble(JSTaggedValue::TAG_INT - JSTaggedValue::DOUBLE_… in HWTEST_F_L0()
77 EXPECT_EQ(true, JSTaggedValue::IsImpureNaN(pureNaN)); in HWTEST_F_L0()
83 JSTaggedValue t(0x5c); in HWTEST_F_L0()
93 JSTaggedValue t(p); in HWTEST_F_L0()
103 JSTaggedValue tInt(0x5c); in HWTEST_F_L0()
104 JSTaggedValue t(p); in HWTEST_F_L0()
117 JSTaggedValue t = JSTaggedValue::False(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_runtime_stub.h26 … static inline JSTaggedValue LoadGlobalICByName(JSThread *thread, ProfileTypeInfo *profileTypeInfo,
27JSTaggedValue globalValue, JSTaggedValue key, uint32_t slotId,
29 …static inline JSTaggedValue StoreGlobalICByName(JSThread *thread, ProfileTypeInfo *profileTypeInfo,
30 JSTaggedValue globalValue, JSTaggedValue key,
31JSTaggedValue value, uint32_t slotId, bool tryStore);
32 static inline JSTaggedValue LoadICByName(JSThread *thread, ProfileTypeInfo *profileTypeInfo,
33JSTaggedValue receiver, JSTaggedValue key, uint32_t slotId);
34 static inline JSTaggedValue TryLoadICByName(JSThread *thread, JSTaggedValue receiver,
35JSTaggedValue firstValue, JSTaggedValue secondValue);
36 static inline JSTaggedValue TryStoreICByName(JSThread *thread, JSTaggedValue receiver,
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dglobal_env.h31 … V(JSTaggedValue, ObjectFunction, OBJECT_FUNCTION_INDEX) \
32 … V(JSTaggedValue, ObjectFunctionClass, OBJECT_FUNCTION_CLASS_INDEX) \
33 … V(JSTaggedValue, ObjectFunctionPrototype, OBJECT_FUNCTION_PROTOTYPE_INDEX) \
34 … V(JSTaggedValue, ObjectFunctionPrototypeClass, OBJECT_FUNCTION_PROTOTYPE_CLASS_INDEX) \
35 … V(JSTaggedValue, FunctionFunction, FUNCTION_FUNCTION_INDEX) \
36 … V(JSTaggedValue, FunctionPrototype, FUNCTION_PROTOTYPE_INDEX) \
37 … V(JSTaggedValue, NumberFunction, NUMBER_FUNCTION_INDEX) \
38 … V(JSTaggedValue, BigIntFunction, BIGINT_FUNCTION_INDEX) \
39 … V(JSTaggedValue, DateFunction, DATE_FUNCTION_INDEX) \
40 … V(JSTaggedValue, BooleanFunction, BOOLEAN_FUNCTION_INDEX) \
[all …]
Dobject_fast_operator.h25 …static inline JSTaggedValue GetPropertyByName(JSThread *thread, JSTaggedValue receiver, JSTaggedVa…
28 …static inline JSTaggedValue SetPropertyByName(JSThread *thread, JSTaggedValue receiver, JSTaggedVa…
29 JSTaggedValue value);
32 …static inline JSTaggedValue GetPropertyByIndex(JSThread *thread, JSTaggedValue receiver, uint32_t …
35 …static inline JSTaggedValue SetPropertyByIndex(JSThread *thread, JSTaggedValue receiver, uint32_t …
36 JSTaggedValue value);
39 …static inline JSTaggedValue GetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTaggedV…
42 …static inline JSTaggedValue SetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTaggedV…
43 JSTaggedValue value);
45 …atic inline bool FastSetPropertyByValue(JSThread *thread, JSTaggedValue receiver, JSTaggedValue ke…
[all …]
Dglobal_env_constants.h35 …V(JSTaggedValue, HClassClass, HCLASS_CLASS_INDEX, ecma_roots_class) …
36 …V(JSTaggedValue, FreeObjectWithNoneFieldClass, FREE_OBJECT_WITH_NONE_FIELD_CLASS_INDEX, ecma_roots…
37 …V(JSTaggedValue, FreeObjectWithOneFieldClass, FREE_OBJECT_WITH_ONE_FIELD_CLASS_INDEX, ecma_roots_c…
38 …V(JSTaggedValue, FreeObjectWithTwoFieldClass, FREE_OBJECT_WITH_TWO_FIELD_CLASS_INDEX, ecma_roots_c…
39 …V(JSTaggedValue, LineStringClass, LINE_STRING_CLASS_INDEX, ecma_roots_class) …
40 …V(JSTaggedValue, ConstantStringClass, CONSTANT_STRING_CLASS_INDEX, ecma_roots_class) …
41 …V(JSTaggedValue, TreeStringClass, TREE_STRING_CLASS_INDEX, ecma_roots_class) …
42 …V(JSTaggedValue, ArrayClass, ARRAY_CLASS_INDEX, ecma_roots_class) …
43 …V(JSTaggedValue, ByteArrayClass, BYTE_ARRAY_CLASS_INDEX, ecma_roots_class) …
44 …V(JSTaggedValue, ConstantPoolClass, CONSTANT_POOL_CLASS_INDEX, ecma_roots_class) …
[all …]
Djs_tagged_value-inl.h44 inline bool JSTaggedValue::ToBoolean() const in ToBoolean()
54 case JSTaggedValue::VALUE_UNDEFINED: in ToBoolean()
56 case JSTaggedValue::VALUE_HOLE: in ToBoolean()
58 case JSTaggedValue::VALUE_NULL: in ToBoolean()
60 case JSTaggedValue::VALUE_FALSE: { in ToBoolean()
63 case JSTaggedValue::VALUE_TRUE: { in ToBoolean()
87 inline JSTaggedNumber JSTaggedValue::ToNumber(JSThread *thread, const JSHandle<JSTaggedValue> &tagg… in ToNumber()
94 case JSTaggedValue::VALUE_UNDEFINED: in ToNumber()
95 case JSTaggedValue::VALUE_HOLE: { in ToNumber()
98 case JSTaggedValue::VALUE_TRUE: { in ToNumber()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.h30 JSTaggedValue GetModuleValueInner(int32_t index);
31 JSTaggedValue GetModuleValueInner(int32_t index, JSTaggedValue jsFunc);
32 JSTaggedValue GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule);
33 JSTaggedValue GetModuleValueOutter(int32_t index);
34 JSTaggedValue GetModuleValueOutter(int32_t index, JSTaggedValue jsFunc);
35 JSTaggedValue GetModuleValueOutter(int32_t index, JSHandle<JSTaggedValue> currentModule);
36 void StoreModuleValue(int32_t index, JSTaggedValue value);
37 void StoreModuleValue(int32_t index, JSTaggedValue value, JSTaggedValue jsFunc);
38 JSTaggedValue GetModuleNamespace(int32_t index);
39 JSTaggedValue GetModuleNamespace(int32_t index, JSTaggedValue currentFunc);
[all …]
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.h40 using JSFunctionEntryType = JSTaggedValue (*)(uintptr_t glue, uint32_t argc, const JSTaggedType arg…
42 using FastCallAotEntryType = JSTaggedValue (*)(uintptr_t glue, uint32_t argc, const JSTaggedType ar…
334 … inline static JSTaggedValue GetArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index) in GetArg()
337 return JSTaggedValue(*(reinterpret_cast<JSTaggedType *>(argv) + (index))); in GetArg()
368 …Type CreateArrayFromList([[maybe_unused]] uintptr_t argGlue, int32_t argc, JSTaggedValue *argvPtr);
388 static JSTaggedValue CallBoundFunction(EcmaRuntimeCallInfo *info);
392 static inline JSTaggedValue RuntimeInc(JSThread *thread, const JSHandle<JSTaggedValue> &value);
393 static inline JSTaggedValue RuntimeDec(JSThread *thread, const JSHandle<JSTaggedValue> &value);
394 …static inline JSTaggedValue RuntimeExp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponen…
395 static inline JSTaggedValue RuntimeIsIn(JSThread *thread, const JSHandle<JSTaggedValue> &prop,
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.h26 static JSTaggedValue TypedArrayBaseConstructor(EcmaRuntimeCallInfo *argv);
27 static JSTaggedValue Int8ArrayConstructor(EcmaRuntimeCallInfo *argv);
28 static JSTaggedValue Uint8ArrayConstructor(EcmaRuntimeCallInfo *argv);
29 static JSTaggedValue Uint8ClampedArrayConstructor(EcmaRuntimeCallInfo *argv);
30 static JSTaggedValue Int16ArrayConstructor(EcmaRuntimeCallInfo *argv);
31 static JSTaggedValue Uint16ArrayConstructor(EcmaRuntimeCallInfo *argv);
32 static JSTaggedValue Int32ArrayConstructor(EcmaRuntimeCallInfo *argv);
33 static JSTaggedValue Uint32ArrayConstructor(EcmaRuntimeCallInfo *argv);
34 static JSTaggedValue Float32ArrayConstructor(EcmaRuntimeCallInfo *argv);
35 static JSTaggedValue Float64ArrayConstructor(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_array.h28 static JSTaggedValue ArrayConstructor(EcmaRuntimeCallInfo *argv);
31 static JSTaggedValue From(EcmaRuntimeCallInfo *argv);
33 static JSTaggedValue IsArray(EcmaRuntimeCallInfo *argv);
35 static JSTaggedValue Of(EcmaRuntimeCallInfo *argv);
37 static JSTaggedValue Species(EcmaRuntimeCallInfo *argv);
41 static JSTaggedValue Concat(EcmaRuntimeCallInfo *argv);
43 static JSTaggedValue CopyWithin(EcmaRuntimeCallInfo *argv);
45 static JSTaggedValue Entries(EcmaRuntimeCallInfo *argv);
47 static JSTaggedValue Every(EcmaRuntimeCallInfo *argv);
49 static JSTaggedValue Fill(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_string.h35 static JSTaggedValue StringConstructor(EcmaRuntimeCallInfo *argv);
37 static JSTaggedValue FromCharCode(EcmaRuntimeCallInfo *argv);
39 static JSTaggedValue FromCodePoint(EcmaRuntimeCallInfo *argv);
41 static JSTaggedValue Raw(EcmaRuntimeCallInfo *argv);
43 static JSTaggedValue GetSubstitution(JSThread *thread, const JSHandle<EcmaString> &matched,
46 const JSHandle<JSTaggedValue> &namedCaptures,
49 static JSTaggedValue CharAt(EcmaRuntimeCallInfo *argv);
51 static JSTaggedValue CharCodeAt(EcmaRuntimeCallInfo *argv);
53 static JSTaggedValue CodePointAt(EcmaRuntimeCallInfo *argv);
55 static JSTaggedValue Concat(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_object.h33 static JSTaggedValue ObjectConstructor(EcmaRuntimeCallInfo *argv);
36 static JSTaggedValue Assign(EcmaRuntimeCallInfo *argv);
38 static JSTaggedValue Create(EcmaRuntimeCallInfo *argv);
40 static JSTaggedValue DefineProperties(EcmaRuntimeCallInfo *argv);
42 static JSTaggedValue DefineProperty(EcmaRuntimeCallInfo *argv);
44 static JSTaggedValue Freeze(EcmaRuntimeCallInfo *argv);
46 static JSTaggedValue GetOwnPropertyDescriptor(EcmaRuntimeCallInfo *argv);
48 static JSTaggedValue GetOwnPropertyNames(EcmaRuntimeCallInfo *argv);
50 static JSTaggedValue GetOwnPropertySymbols(EcmaRuntimeCallInfo *argv);
52 static JSTaggedValue GetPrototypeOf(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_dataview.h27 static JSTaggedValue DataViewConstructor(EcmaRuntimeCallInfo *argv);
29 static JSTaggedValue GetBuffer(EcmaRuntimeCallInfo *argv);
31 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
33 static JSTaggedValue GetOffset(EcmaRuntimeCallInfo *argv);
35 static JSTaggedValue GetFloat32(EcmaRuntimeCallInfo *argv);
37 static JSTaggedValue GetFloat64(EcmaRuntimeCallInfo *argv);
39 static JSTaggedValue GetInt8(EcmaRuntimeCallInfo *argv);
41 static JSTaggedValue GetInt16(EcmaRuntimeCallInfo *argv);
43 static JSTaggedValue GetInt32(EcmaRuntimeCallInfo *argv);
45 static JSTaggedValue GetUint8(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_math.h41 static JSTaggedValue Abs(EcmaRuntimeCallInfo *argv);
43 static JSTaggedValue Acos(EcmaRuntimeCallInfo *argv);
45 static JSTaggedValue Acosh(EcmaRuntimeCallInfo *argv);
47 static JSTaggedValue Asin(EcmaRuntimeCallInfo *argv);
49 static JSTaggedValue Asinh(EcmaRuntimeCallInfo *argv);
51 static JSTaggedValue Atan(EcmaRuntimeCallInfo *argv);
53 static JSTaggedValue Atanh(EcmaRuntimeCallInfo *argv);
55 static JSTaggedValue Atan2(EcmaRuntimeCallInfo *argv);
57 static JSTaggedValue Cbrt(EcmaRuntimeCallInfo *argv);
59 static JSTaggedValue Ceil(EcmaRuntimeCallInfo *argv);
[all …]
Dbuiltins_regexp.h43 static JSTaggedValue RegExpConstructor(EcmaRuntimeCallInfo *argv);
47 static JSTaggedValue Exec(EcmaRuntimeCallInfo *argv);
49 static JSTaggedValue Test(EcmaRuntimeCallInfo *argv);
51 static JSTaggedValue ToString(EcmaRuntimeCallInfo *argv);
53 static JSTaggedValue GetFlags(EcmaRuntimeCallInfo *argv);
55 static JSTaggedValue GetGlobal(EcmaRuntimeCallInfo *argv);
57 static JSTaggedValue GetIgnoreCase(EcmaRuntimeCallInfo *argv);
59 static JSTaggedValue GetMultiline(EcmaRuntimeCallInfo *argv);
60 static JSTaggedValue GetDotAll(EcmaRuntimeCallInfo *argv);
62 static JSTaggedValue GetSource(EcmaRuntimeCallInfo *argv);
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/tests/
Dic_binaryop_test.cpp63 JSTaggedValue arg1Value(static_cast<uint32_t>(2)); in HWTEST_F_L0()
64 JSTaggedValue arg2Value(static_cast<uint32_t>(3)); in HWTEST_F_L0()
65 JSTaggedValue arg3Value(static_cast<double>(9.5561)); in HWTEST_F_L0()
66 JSHandle<JSTaggedValue> arg1(thread, arg1Value); in HWTEST_F_L0()
67 JSHandle<JSTaggedValue> arg2(thread, arg2Value); in HWTEST_F_L0()
68 JSHandle<JSTaggedValue> arg3(thread, arg3Value); in HWTEST_F_L0()
70 JSTaggedValue resInSlowPath1 = SlowRuntimeStub::Add2(thread, arg1.GetTaggedValue(), in HWTEST_F_L0()
72 JSHandle<JSTaggedValue> slowHandle1(thread, resInSlowPath1); in HWTEST_F_L0()
73JSTaggedValue resInICPath1 = ICBinaryOP::AddWithTSType(thread, arg1.GetTaggedValue(), arg2.GetTag… in HWTEST_F_L0()
74JSTaggedValue(static_cast<int>(BinaryType::NUMBER))); in HWTEST_F_L0()
[all …]
Dic_compareop_test.cpp66 JSHandle<JSTaggedValue> Str1 = JSHandle<JSTaggedValue>(factory->NewFromASCII("1")); in HWTEST_F_L0()
67 JSTaggedValue arg1(static_cast<uint32_t>(1)); in HWTEST_F_L0()
68 JSTaggedValue arg2(static_cast<double>(1.0)); in HWTEST_F_L0()
69 JSTaggedValue arg3(false); in HWTEST_F_L0()
70 JSTaggedValue arg4(true); in HWTEST_F_L0()
71 JSHandle<JSTaggedValue> arg1Handle(thread, arg1); in HWTEST_F_L0()
72 JSHandle<JSTaggedValue> arg2Handle(thread, arg2); in HWTEST_F_L0()
73 JSHandle<JSTaggedValue> arg3Handle(thread, arg3); in HWTEST_F_L0()
74 JSHandle<JSTaggedValue> arg4Handle(thread, arg4); in HWTEST_F_L0()
80 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*boolean), … in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_math_test.cpp56 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined… in HWTEST_F_L0()
57 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
58 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
59 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(-10))); in HWTEST_F_L0()
62 JSTaggedValue result = BuiltinsMath::Abs(ecmaRuntimeCallInfo); in HWTEST_F_L0()
64 JSTaggedValue expect = BuiltinsBase::GetTaggedInt(10); in HWTEST_F_L0()
71 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined… in HWTEST_F_L0()
72 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0()
73 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0()
74 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(static_cast<int32_t>(10))); in HWTEST_F_L0()
[all …]
Dbuiltins_array_test.cpp89 static JSTaggedValue TestForEachFunc(EcmaRuntimeCallInfo *argv) in TestForEachFunc()
91 JSHandle<JSTaggedValue> key = GetCallArg(argv, 0); in TestForEachFunc()
93 return JSTaggedValue::Undefined(); in TestForEachFunc()
98 return JSTaggedValue::Undefined(); in TestForEachFunc()
101 static JSTaggedValue TestEveryFunc(EcmaRuntimeCallInfo *argv) in TestEveryFunc()
112 static JSTaggedValue TestMapFunc(EcmaRuntimeCallInfo *argv) in TestMapFunc()
119 static JSTaggedValue TestFlatMapFunc(EcmaRuntimeCallInfo *argv) in TestFlatMapFunc()
125 … JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in TestFlatMapFunc()
130 … auto property = JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle); in TestFlatMapFunc()
133 JSHandle<JSTaggedValue> key(thread, JSTaggedValue(0)); in TestFlatMapFunc()
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_vector.h25 static JSTaggedValue VectorConstructor(EcmaRuntimeCallInfo *argv);
27 static JSTaggedValue Add(EcmaRuntimeCallInfo *argv);
28 static JSTaggedValue Insert(EcmaRuntimeCallInfo *argv);
29 static JSTaggedValue SetLength(EcmaRuntimeCallInfo *argv);
30 static JSTaggedValue GetCapacity(EcmaRuntimeCallInfo *argv);
31 static JSTaggedValue IncreaseCapacityTo(EcmaRuntimeCallInfo *argv);
32 static JSTaggedValue Get(EcmaRuntimeCallInfo *argv);
33 static JSTaggedValue GetIndexOf(EcmaRuntimeCallInfo *argv);
34 static JSTaggedValue GetIndexFrom(EcmaRuntimeCallInfo *argv);
35 static JSTaggedValue IsEmpty(EcmaRuntimeCallInfo *argv);
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Djson_stringifier_test.cpp51 static JSTaggedValue CreateBaseJSObject(JSThread *thread, const CString keyCStr) in CreateBaseJSObject()
56 JSHandle<JSTaggedValue> objectFunc(globalEnv->GetObjectFunction()); in CreateBaseJSObject()
61 JSHandle<JSTaggedValue> handleKey1(factory->NewFromASCII(&keyCStr[0])); in CreateBaseJSObject()
62 JSHandle<JSTaggedValue> handleValue1(thread, JSTaggedValue(1)); // 1 : test case in CreateBaseJSObject()
63 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), handleKey1, handleValue1); in CreateBaseJSObject()
66 JSHandle<JSTaggedValue> handleKey2(factory->NewFromASCII(str2)); in CreateBaseJSObject()
67 JSHandle<JSTaggedValue> handleValue2(thread, JSTaggedValue(3.6)); // 3.6 : test case in CreateBaseJSObject()
68 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), handleKey2, handleValue2); in CreateBaseJSObject()
71 JSHandle<JSTaggedValue> handleKey3(factory->NewFromASCII(str3)); in CreateBaseJSObject()
72 JSHandle<JSTaggedValue> handleValue3(factory->NewFromASCII("abc")); in CreateBaseJSObject()
[all …]

12345678910>>...36