/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | slow_runtime_stub.cpp | 22 JSTaggedValue SlowRuntimeStub::CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, in CallSpread() argument 25 INTERPRETER_TRACE(thread, CallSpread); in CallSpread() 26 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CallSpread() 28 JSHandle<JSTaggedValue> jsFunc(thread, func); in CallSpread() 29 JSHandle<JSTaggedValue> jsArray(thread, array); in CallSpread() 30 JSHandle<JSTaggedValue> taggedObj(thread, obj); in CallSpread() 31 return RuntimeStubs::RuntimeCallSpread(thread, jsFunc, taggedObj, jsArray); in CallSpread() 34 JSTaggedValue SlowRuntimeStub::Neg(JSThread *thread, JSTaggedValue value) in Neg() argument 36 INTERPRETER_TRACE(thread, Neg); in Neg() 37 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Neg() 43 AsyncFunctionEnter(JSThread *thread) AsyncFunctionEnter() argument 51 ToNumber(JSThread *thread, JSTaggedValue value) ToNumber() argument 61 ToNumeric(JSThread *thread, JSTaggedValue value) ToNumeric() argument 71 Not(JSThread *thread, JSTaggedValue value) Not() argument 80 Inc(JSThread *thread, JSTaggedValue value) Inc() argument 89 Dec(JSThread *thread, JSTaggedValue value) Dec() argument 98 Throw(JSThread *thread, JSTaggedValue value) Throw() argument 104 GetPropIterator(JSThread *thread, JSTaggedValue value) GetPropIterator() argument 113 ThrowConstAssignment(JSThread *thread, JSTaggedValue value) ThrowConstAssignment() argument 122 Add2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Add2() argument 132 Sub2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Sub2() argument 142 Mul2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Mul2() argument 152 Div2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Div2() argument 162 Mod2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Mod2() argument 172 Eq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Eq() argument 182 NotEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) NotEq() argument 192 Less(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Less() argument 202 LessEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) LessEq() argument 212 Greater(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Greater() argument 222 GreaterEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) GreaterEq() argument 232 Shl2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Shl2() argument 242 Shr2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Shr2() argument 252 Ashr2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Ashr2() argument 262 And2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) And2() argument 271 Or2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Or2() argument 281 Xor2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) Xor2() argument 291 ToJSTaggedValueWithInt32(JSThread *thread, JSTaggedValue value) ToJSTaggedValueWithInt32() argument 299 ToJSTaggedValueWithUint32(JSThread *thread, JSTaggedValue value) ToJSTaggedValueWithUint32() argument 307 DelObjProp(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop) DelObjProp() argument 317 NewObjRange(JSThread *thread, JSTaggedValue func, JSTaggedValue newTarget, uint16_t firstArgIdx, uint16_t length) NewObjRange() argument 328 CreateObjectWithExcludedKeys(JSThread *thread, uint16_t numKeys, JSTaggedValue objVal, uint16_t firstArgRegIdx) CreateObjectWithExcludedKeys() argument 338 Exp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) Exp() argument 346 IsIn(JSThread *thread, JSTaggedValue prop, JSTaggedValue obj) IsIn() argument 356 Instanceof(JSThread *thread, JSTaggedValue obj, JSTaggedValue target) Instanceof() argument 366 InstanceofByHandler(JSThread *thread, JSTaggedValue target, JSTaggedValue object, JSTaggedValue instOfHandler) InstanceofByHandler() argument 379 NewLexicalEnv(JSThread *thread, uint16_t numVars) NewLexicalEnv() argument 387 NewSendableEnv(JSThread *thread, uint16_t numVars) NewSendableEnv() argument 395 NewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uint16_t scopeId) NewLexicalEnvWithName() argument 403 CreateIterResultObj(JSThread *thread, JSTaggedValue value, JSTaggedValue flag) CreateIterResultObj() argument 412 CreateGeneratorObj(JSThread *thread, JSTaggedValue genFunc) CreateGeneratorObj() argument 421 CreateAsyncGeneratorObj(JSThread *thread, JSTaggedValue genFunc) CreateAsyncGeneratorObj() argument 430 SuspendGenerator(JSThread *thread, JSTaggedValue genObj, JSTaggedValue value) SuspendGenerator() argument 440 SetGeneratorState(JSThread *thread, JSTaggedValue genObj, int32_t index) SetGeneratorState() argument 449 AsyncFunctionAwaitUncaught(JSThread *thread, JSTaggedValue asyncFuncObj, JSTaggedValue value) AsyncFunctionAwaitUncaught() argument 460 AsyncFunctionResolveOrReject(JSThread *thread, JSTaggedValue asyncFuncObj, JSTaggedValue value, bool is_resolve) AsyncFunctionResolveOrReject() argument 471 NewObjApply(JSThread *thread, JSTaggedValue func, JSTaggedValue array) NewObjApply() argument 481 ThrowUndefinedIfHole(JSThread *thread, JSTaggedValue obj) ThrowUndefinedIfHole() argument 490 ThrowIfSuperNotCorrectCall(JSThread *thread, uint16_t index, JSTaggedValue thisValue) ThrowIfSuperNotCorrectCall() argument 498 ThrowIfNotObject(JSThread *thread) ThrowIfNotObject() argument 506 ThrowThrowNotExists(JSThread *thread) ThrowThrowNotExists() argument 514 ThrowPatternNonCoercible(JSThread *thread) ThrowPatternNonCoercible() argument 522 StOwnByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, JSTaggedValue value) StOwnByName() argument 533 StOwnByNameWithNameSet(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, JSTaggedValue value) StOwnByNameWithNameSet() argument 545 StOwnByIndex(JSThread *thread, JSTaggedValue obj, uint32_t idx, JSTaggedValue value) StOwnByIndex() argument 556 StOwnByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue key, JSTaggedValue value) StOwnByValue() argument 567 StOwnByValueWithNameSet(JSThread *thread, JSTaggedValue obj, JSTaggedValue key, JSTaggedValue value) StOwnByValueWithNameSet() argument 579 CreateEmptyArray(JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv> globalEnv) CreateEmptyArray() argument 586 CreateEmptyObject(JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv> globalEnv) CreateEmptyObject() argument 595 CreateObjectWithBuffer(JSThread *thread, ObjectFactory *factory, JSObject *literal) CreateObjectWithBuffer() argument 604 CreateObjectHavingMethod(JSThread *thread, ObjectFactory *factory, JSObject *literal, JSTaggedValue env) CreateObjectHavingMethod() argument 615 SetObjectWithProto(JSThread *thread, JSTaggedValue proto, JSTaggedValue obj) SetObjectWithProto() argument 625 IterNext(JSThread *thread, JSTaggedValue iter) IterNext() argument 634 CloseIterator(JSThread *thread, JSTaggedValue iter) CloseIterator() argument 643 StModuleVar(JSThread *thread, int32_t index, JSTaggedValue value) StModuleVar() argument 651 StModuleVar(JSThread *thread, JSTaggedValue key, JSTaggedValue value) StModuleVar() argument 659 LdLocalModuleVar(JSThread *thread, int32_t index) LdLocalModuleVar() argument 667 LdExternalModuleVar(JSThread *thread, int32_t index) LdExternalModuleVar() argument 675 LdModuleVar(JSThread *thread, JSTaggedValue key, bool inner) LdModuleVar() argument 683 CreateRegExpWithLiteral(JSThread *thread, JSTaggedValue pattern, uint8_t flags) CreateRegExpWithLiteral() argument 692 CreateArrayWithBuffer(JSThread *thread, ObjectFactory *factory, JSArray *literal) CreateArrayWithBuffer() argument 701 GetTemplateObject(JSThread *thread, JSTaggedValue literal) GetTemplateObject() argument 710 GetNextPropName(JSThread *thread, JSTaggedValue iter) GetNextPropName() argument 719 CopyDataProperties(JSThread *thread, JSTaggedValue dst, JSTaggedValue src) CopyDataProperties() argument 729 GetIteratorNext(JSThread *thread, JSTaggedValue obj, JSTaggedValue method) GetIteratorNext() argument 739 GetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, uint32_t startIdx) GetUnmapedArgs() argument 747 CopyRestArgs(JSThread *thread, JSTaggedType *sp, uint32_t restNumArgs, uint32_t startIdx) CopyRestArgs() argument 754 GetIterator(JSThread *thread, JSTaggedValue obj) GetIterator() argument 763 GetAsyncIterator(JSThread *thread, JSTaggedValue obj) GetAsyncIterator() argument 772 DefineGetterSetterByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, JSTaggedValue getter, JSTaggedValue setter, bool flag) DefineGetterSetterByValue() argument 788 LdObjByIndex(JSThread *thread, JSTaggedValue obj, uint32_t idx, bool callGetter, JSTaggedValue receiver) LdObjByIndex() argument 798 StObjByIndex(JSThread *thread, JSTaggedValue obj, uint32_t idx, JSTaggedValue value) StObjByIndex() argument 808 LdObjByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, bool callGetter, JSTaggedValue receiver) LdObjByName() argument 816 StObjByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, JSTaggedValue value) StObjByName() argument 827 LdObjByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, bool callGetter, JSTaggedValue receiver) LdObjByValue() argument 838 StObjByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, JSTaggedValue value) StObjByValue() argument 850 TryLdGlobalByNameFromGlobalProto(JSThread *thread, JSTaggedValue global, JSTaggedValue prop) TryLdGlobalByNameFromGlobalProto() argument 861 TryStGlobalByName(JSThread *thread, JSTaggedValue prop) TryStGlobalByName() argument 868 LdGlobalVarFromGlobalProto(JSThread *thread, JSTaggedValue global, JSTaggedValue prop) LdGlobalVarFromGlobalProto() argument 878 StGlobalVar(JSThread *thread, JSTaggedValue prop, JSTaggedValue value) StGlobalVar() argument 888 TryUpdateGlobalRecord(JSThread *thread, JSTaggedValue prop, JSTaggedValue value) TryUpdateGlobalRecord() argument 897 LdGlobalRecord(JSThread *thread, JSTaggedValue key) LdGlobalRecord() argument 905 StGlobalRecord(JSThread *thread, JSTaggedValue prop, JSTaggedValue value, bool isConst) StGlobalRecord() argument 915 ThrowReferenceError(JSThread *thread, JSTaggedValue prop, const char *desc) ThrowReferenceError() argument 924 ThrowTypeError(JSThread *thread, const char *message) ThrowTypeError() argument 932 ThrowSyntaxError(JSThread *thread, const char *message) ThrowSyntaxError() argument 940 StArraySpread(JSThread *thread, JSTaggedValue dst, JSTaggedValue index, JSTaggedValue src) StArraySpread() argument 951 DefineFunc(JSThread *thread, JSTaggedValue constPool, uint16_t methodId, JSTaggedValue module, uint16_t length, JSTaggedValue env, JSTaggedValue homeObject) DefineFunc() argument 965 GetSuperConstructor(JSThread *thread, JSTaggedValue ctor) GetSuperConstructor() argument 974 SuperCall(JSThread *thread, JSTaggedValue func, JSTaggedValue newTarget, uint16_t firstVRegIdx, uint16_t length) SuperCall() argument 985 DynamicImport(JSThread *thread, JSTaggedValue specifier, JSTaggedValue currentFunc) DynamicImport() argument 995 SuperCallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue newTarget, JSTaggedValue array) SuperCallSpread() argument 1007 SuperCallForwardAllArgs(JSThread *thread, JSTaggedType *sp, JSTaggedValue func, JSTaggedValue newTarget, uint32_t restNumArgs, uint32_t startIdx) SuperCallForwardAllArgs() argument 1015 DefineMethod(JSThread *thread, Method *method, JSTaggedValue homeObject, uint16_t length, JSTaggedValue env, JSTaggedValue module) DefineMethod() argument 1027 LdSendableClass(JSThread *thread, JSTaggedValue env, uint16_t level) LdSendableClass() argument 1035 LdSendableExternalModuleVar(JSThread *thread, int32_t index, JSTaggedValue thisFunc) LdSendableExternalModuleVar() argument 1043 LdLazyExternalModuleVar(JSThread *thread, int32_t index, JSTaggedValue thisFunc) LdLazyExternalModuleVar() argument 1050 LdLazySendableExternalModuleVar(JSThread *thread, int32_t index, JSTaggedValue thisFunc) LdLazySendableExternalModuleVar() argument 1058 LdSuperByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue key, JSTaggedValue thisFunc) LdSuperByValue() argument 1069 StSuperByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue key, JSTaggedValue value, JSTaggedValue thisFunc) StSuperByValue() argument 1081 GetCallSpreadArgs(JSThread *thread, JSTaggedValue array) GetCallSpreadArgs() argument 1090 ThrowDeleteSuperProperty(JSThread *thread) ThrowDeleteSuperProperty() argument 1098 NotifyInlineCache(JSThread *thread, JSFunction *function) NotifyInlineCache() argument 1108 ResolveClass(JSThread *thread, JSTaggedValue ctor, TaggedArray *literal, JSTaggedValue base, JSTaggedValue lexenv) ResolveClass() argument 1119 CloneClassFromTemplate(JSThread *thread, JSTaggedValue ctor, JSTaggedValue base, JSTaggedValue lexenv) CloneClassFromTemplate() argument 1131 CreateClassWithBuffer(JSThread *thread, JSTaggedValue base, JSTaggedValue lexenv, JSTaggedValue constpool, uint16_t methodId, uint16_t literalId, JSTaggedValue module, JSTaggedValue length) CreateClassWithBuffer() argument 1147 CreateSharedClass(JSThread *thread, JSTaggedValue base, JSTaggedValue constpool, uint16_t methodId, uint16_t literalId, uint16_t length, JSTaggedValue module) CreateSharedClass() argument 1159 SetClassInheritanceRelationship(JSThread *thread, JSTaggedValue ctor, JSTaggedValue base) SetClassInheritanceRelationship() argument 1168 SetClassConstructorLength(JSThread *thread, JSTaggedValue ctor, JSTaggedValue length) SetClassConstructorLength() argument 1173 GetModuleNamespace(JSThread *thread, int32_t index) GetModuleNamespace() argument 1178 GetModuleNamespace(JSThread *thread, JSTaggedValue localName) GetModuleNamespace() argument 1183 LdBigInt(JSThread *thread, JSTaggedValue numberBigInt) LdBigInt() argument 1190 AsyncGeneratorResolve(JSThread *thread, JSTaggedValue asyncFuncObj, const JSTaggedValue value, JSTaggedValue flag) AsyncGeneratorResolve() argument 1202 AsyncGeneratorReject(JSThread *thread, JSTaggedValue asyncFuncObj, const JSTaggedValue value) AsyncGeneratorReject() argument 1214 LdPatchVar(JSThread *thread, uint32_t index) LdPatchVar() argument 1222 StPatchVar(JSThread *thread, uint32_t index, JSTaggedValue value) StPatchVar() argument 1231 NotifyConcurrentResult(JSThread *thread, JSTaggedValue result, JSTaggedValue hint) NotifyConcurrentResult() argument 1237 UpdateAOTHClass(JSThread *thread, JSTaggedValue jshclass, JSTaggedValue newjshclass, JSTaggedValue key) UpdateAOTHClass() argument 1247 DefineField(JSThread *thread, JSTaggedValue obj, JSTaggedValue propKey, JSTaggedValue value) DefineField() argument 1254 CreatePrivateProperty(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t count, JSTaggedValue constpool, uint32_t literalId, JSTaggedValue module) CreatePrivateProperty() argument 1261 DefinePrivateProperty(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj, JSTaggedValue value) DefinePrivateProperty() argument 1268 LdPrivateProperty(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj) LdPrivateProperty() argument 1276 StPrivateProperty(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj, JSTaggedValue value) StPrivateProperty() argument 1284 TestIn(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj) TestIn() argument [all...] |
H A D | slow_runtime_stub.h | 29 static JSTaggedValue CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj, JSTaggedValue array); 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, JSTaggedValu [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_proxy.cpp | 25 JSHandle<JSProxy> JSProxy::ProxyCreate(JSThread *thread, const JSHandle<JSTaggedValue> &target, in ProxyCreate() argument 30 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: target is not Object", in ProxyCreate() 31 JSHandle<JSProxy>(thread, JSTaggedValue::Exception())); in ProxyCreate() 36 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: handler is not Object", in ProxyCreate() 37 JSHandle<JSProxy>(thread, JSTaggedValue::Exception())); in ProxyCreate() 44 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate() 48 JSTaggedValue JSProxy::GetPrototype(JSThread *thread, const JSHandle<JSProxy> &proxy) in GetPrototype() argument 50 STACK_LIMIT_CHECK(thread, JSTaggedValue::Exception()); in GetPrototype() 51 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in GetPrototype() 53 JSHandle<JSTaggedValue> handler(thread, prox in GetPrototype() 108 SetPrototype(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &proto) SetPrototype() argument 171 IsExtensible(JSThread *thread, const JSHandle<JSProxy> &proxy) IsExtensible() argument 220 PreventExtensions(JSThread *thread, const JSHandle<JSProxy> &proxy) PreventExtensions() argument 270 GetOwnProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GetOwnProperty() argument 374 DefineOwnProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc) DefineOwnProperty() argument 458 HasProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key) HasProperty() argument 517 GetProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &receiver) GetProperty() argument 592 SetProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedValue> &receiver, bool mayThrow) SetProperty() argument 656 DeleteProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedValue> &key) DeleteProperty() argument 711 OwnPropertyKeys(JSThread *thread, const JSHandle<JSProxy> &proxy) OwnPropertyKeys() argument 858 GetAllPropertyKeys(JSThread *thread, const JSHandle<JSProxy> &proxy, uint32_t filter) GetAllPropertyKeys() argument 931 JSThread *thread = info->GetThread(); CallInternal() local 983 JSThread *thread = info->GetThread(); ConstructInternal() local [all...] |
H A D | js_tagged_value.cpp | 82 JSTaggedNumber JSTaggedValue::ToNumber(JSThread *thread, JSTaggedValue tagged) in ToNumber() argument 110 JSHandle<JSTaggedValue>taggedHandle(thread, tagged); in ToNumber() 111 JSTaggedValue primValue = ToPrimitive(thread, taggedHandle, PREFER_NUMBER); in ToNumber() 112 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, JSTaggedNumber::Exception()); in ToNumber() 113 return ToNumber(thread, primValue); in ToNumber() 116 THROW_TYPE_ERROR_AND_RETURN(thread, "Cannot convert a Symbol value to a number", JSTaggedNumber::Exception()); in ToNumber() 119 THROW_TYPE_ERROR_AND_RETURN(thread, "Cannot convert a BigInt value to a number", JSTaggedNumber::Exception()); in ToNumber() 121 THROW_TYPE_ERROR_AND_RETURN(thread, "Cannot convert a Unknown value to a number", JSTaggedNumber::Exception()); in ToNumber() 124 JSTaggedNumber JSTaggedValue::ToNumber(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) in ToNumber() argument 126 return ToNumber(thread, tagge in ToNumber() 129 ToBigInt(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToBigInt() argument 171 ToBigInt64(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToBigInt64() argument 187 ToBigUint64(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToBigUint64() argument 201 ToInteger(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToInteger() argument 209 ToInt32(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToInt32() argument 216 ToUint32(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToUint32() argument 221 ToInt16(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToInt16() argument 229 ToUint16(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToUint16() argument 234 ToInt8(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToInt8() argument 242 ToUint8(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToUint8() argument 247 ToUint8Clamp(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToUint8Clamp() argument 263 ToLength(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToLength() argument 277 RequireObjectCoercible(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, const char *message) RequireObjectCoercible() argument 287 GetTypeString(JSThread *thread, PreferredPrimitiveType type) GetTypeString() argument 308 ToPropertyKey(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToPropertyKey() argument 418 Equal(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) Equal() argument 449 EqualNumber(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) EqualNumber() argument 476 EqualString(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) EqualString() argument 507 EqualSymbol(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) EqualSymbol() argument 524 EqualBigInt(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) EqualBigInt() argument 554 EqualHeapObject(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) EqualHeapObject() argument 665 Compare(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) Compare() argument 752 ToPrimitive(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, PreferredPrimitiveType type) ToPrimitive() argument 783 OrdinaryToPrimitive(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, PreferredPrimitiveType type) OrdinaryToPrimitive() argument 812 ToString(JSThread *thread, JSTaggedValue val) ToString() argument 818 ToString(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToString() argument 869 NativePointerToString(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) NativePointerToString() argument 880 CanonicalNumericIndexString(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) CanonicalNumericIndexString() argument 900 ToObject(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToObject() argument 946 GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, SCheckMode sCheckMode) GetProperty() argument 976 GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t key) GetProperty() argument 1003 GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &receiver) GetProperty() argument 1031 SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, bool mayThrow, SCheckMode checkMode) SetProperty() argument 1061 SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t key, const JSHandle<JSTaggedValue> &value, bool mayThrow) SetProperty() argument 1091 SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedValue> &receiver, bool mayThrow) SetProperty() argument 1121 DeleteProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) DeleteProperty() argument 1144 DeletePropertyOrThrow(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) DeletePropertyOrThrow() argument 1165 DefinePropertyOrThrow(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc) DefinePropertyOrThrow() argument 1182 DefineOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc, SCheckMode sCheckMode) DefineOwnProperty() argument 1213 GetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GetOwnProperty() argument 1231 SetPrototype(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &proto, bool isChangeProto) SetPrototype() argument 1259 GetPrototype(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetPrototype() argument 1270 PreventExtensions(JSThread *thread, const JSHandle<JSTaggedValue> &obj) PreventExtensions() argument 1281 GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetOwnPropertyKeys() argument 1298 GetAllPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t filter) GetAllPropertyKeys() argument 1319 GetOwnEnumPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetOwnEnumPropertyKeys() argument 1335 HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) HasProperty() argument 1353 HasProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t key) HasProperty() argument 1370 HasOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) HasOwnProperty() argument 1379 GlobalHasOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key) GlobalHasOwnProperty() argument 1387 CanBeHeldWeakly(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) CanBeHeldWeakly() argument 1406 ToIndex(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToIndex() argument 1428 ToArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, uint32_t *output) ToArrayLength() argument 1449 ToPrototypeOrObj(JSThread *thread, const JSHandle<JSTaggedValue> &obj) ToPrototypeOrObj() argument 1476 GetSuperBase(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetSuperBase() argument 1486 HasContainerProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) HasContainerProperty() argument 1537 GetOwnContainerPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetOwnContainerPropertyKeys() argument 1585 GetOwnContainerEnumPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetOwnContainerEnumPropertyKeys() argument 1623 GetContainerProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GetContainerProperty() argument 1696 ToNumeric(JSThread *thread, JSHandle<JSTaggedValue> tagged) ToNumeric() argument 1712 GetJSAPIProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) GetJSAPIProperty() argument 1756 SetJSAPIProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) SetJSAPIProperty() argument [all...] |
H A D | js_iterator.cpp | 23 JSTaggedValue JSIterator::IteratorCloseAndReturn(JSThread *thread, const JSHandle<JSTaggedValue> &iter) in IteratorCloseAndReturn() argument 25 ASSERT(thread->HasPendingException()); in IteratorCloseAndReturn() 26 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in IteratorCloseAndReturn() 27 JSTaggedValue exception = thread->GetException(); in IteratorCloseAndReturn() 29 JSHandle<JSTaggedValue>(thread, exception))); in IteratorCloseAndReturn() 30 JSHandle<JSTaggedValue> result = JSIterator::IteratorClose(thread, iter, record); in IteratorCloseAndReturn() 31 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in IteratorCloseAndReturn() 38 JSHandle<JSTaggedValue> JSIterator::GetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in GetIterator() argument 41 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, obj); in GetIterator() 43 JSHandle<GlobalEnv> env = thread in GetIterator() 51 GetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &method) GetIterator() argument 69 GetAsyncIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj) GetAsyncIterator() argument 110 IteratorNext(JSThread *thread, const JSHandle<JSTaggedValue> &iter) IteratorNext() argument 131 IteratorNext(JSThread *thread, const JSHandle<JSTaggedValue> &iter, const JSHandle<JSTaggedValue> &value) IteratorNext() argument 154 IteratorNext(JSThread *thread, const JSHandle<AsyncIteratorRecord> &iter, const JSHandle<JSTaggedValue> &value) IteratorNext() argument 176 IteratorNext(JSThread *thread, const JSHandle<AsyncIteratorRecord> &iter) IteratorNext() argument 195 IteratorComplete(JSThread *thread, const JSHandle<JSTaggedValue> &iterResult) IteratorComplete() argument 205 IteratorValue(JSThread *thread, const JSHandle<JSTaggedValue> &iterResult) IteratorValue() argument 215 IteratorStep(JSThread *thread, const JSHandle<JSTaggedValue> &iter) IteratorStep() argument 234 IteratorClose(JSThread *thread, const JSHandle<JSTaggedValue> &iter, const JSHandle<JSTaggedValue> &completion) IteratorClose() argument 297 CreateIterResultObject(JSThread *thread, const JSHandle<JSTaggedValue> &value, bool done) CreateIterResultObject() argument [all...] |
H A D | tagged_tree.cpp | 23 JSHandle<Derived> TaggedTree<Derived>::Create(const JSThread *thread, int numberOfElements) in Create() argument 26 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in Create() 31 tree->SetNumberOfElements(thread, 0); in Create() 32 tree->SetNumberOfDeletedElements(thread, 0); in Create() 33 tree->SetRootEntries(thread, -1); in Create() 34 tree->SetCompare(thread, JSTaggedValue::Hole()); in Create() 35 tree->SetCapacity(thread, capacity); in Create() 40 void TaggedTree<Derived>::InsertRebalance(const JSThread *thread, int index) in InsertRebalance() argument 46 SetColor(thread, GetParent(index), TreeColor::BLACK); in InsertRebalance() 47 SetColor(thread, br in InsertRebalance() 81 LeftRotate(const JSThread *thread, int index) LeftRotate() argument 108 RightRotate(const JSThread *thread, int index) RightRotate() argument 135 AdjustTaggedTree(const JSThread *thread, const JSHandle<Derived> &tree, int len) AdjustTaggedTree() argument 177 Transplant(const JSThread *thread, int dst, int src) Transplant() argument 222 DeleteRebalance(const JSThread *thread, int index) DeleteRebalance() argument 311 FindEntry(JSThread *thread, const JSHandle<Derived> &tree, const JSHandle<JSTaggedValue> &key) FindEntry() argument 340 EntryCompare(JSThread *thread, const JSHandle<JSTaggedValue> valueX, const JSHandle<JSTaggedValue> valueY, JSHandle<Derived> tree) EntryCompare() argument 396 GetSortArray(const JSThread *thread, const JSHandle<Derived> &tree) GetSortArray() argument 417 Insert(JSThread *thread, JSHandle<Derived> &tree, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) Insert() argument 465 GrowCapacity(const JSThread *thread, JSHandle<Derived> &tree) GrowCapacity() argument 481 GetLowerKey(JSThread *thread, const JSHandle<Derived> &tree, const JSHandle<JSTaggedValue> &key) GetLowerKey() argument 504 GetHigherKey(JSThread *thread, const JSHandle<Derived> &tree, const JSHandle<JSTaggedValue> &key) GetHigherKey() argument 527 Shrink(const JSThread *thread, const JSHandle<Derived> &tree) Shrink() argument 550 Create(const JSThread *thread, int numberOfElements) Create() argument 555 GetArrayFromMap(const JSThread *thread, const JSHandle<TaggedTreeMap> &map) GetArrayFromMap() argument 560 Set(JSThread *thread, JSHandle<TaggedTreeMap> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) Set() argument 566 Delete(JSThread *thread, const JSHandle<TaggedTreeMap> &map, int entry) Delete() argument 572 HasValue([[maybe_unused]] const JSThread *thread, JSTaggedValue value) const HasValue() argument 599 SetAll(JSThread *thread, JSHandle<TaggedTreeMap> &dst, const JSHandle<TaggedTreeMap> &src) SetAll() argument 622 GetLowerKey(JSThread *thread, const JSHandle<TaggedTreeMap> &map, const JSHandle<JSTaggedValue> &key) GetLowerKey() argument 628 GetHigherKey(JSThread *thread, const JSHandle<TaggedTreeMap> &map, const JSHandle<JSTaggedValue> &key) GetHigherKey() argument 634 FindEntry(JSThread *thread, const JSHandle<TaggedTreeMap> &map, const JSHandle<JSTaggedValue> &key) FindEntry() argument 640 Create(const JSThread *thread, int numberOfElements) Create() argument 645 GetArrayFromSet(const JSThread *thread, const JSHandle<TaggedTreeSet> &set) GetArrayFromSet() argument 650 Add(JSThread *thread, JSHandle<TaggedTreeSet> &obj, const JSHandle<JSTaggedValue> &value) Add() argument 655 Delete(JSThread *thread, const JSHandle<TaggedTreeSet> &set, int entry) Delete() argument 661 GetLowerKey(JSThread *thread, const JSHandle<TaggedTreeSet> &set, const JSHandle<JSTaggedValue> &key) GetLowerKey() argument 667 GetHigherKey(JSThread *thread, const JSHandle<TaggedTreeSet> &set, const JSHandle<JSTaggedValue> &key) GetHigherKey() argument 673 FindEntry(JSThread *thread, const JSHandle<TaggedTreeSet> &set, const JSHandle<JSTaggedValue> &key) FindEntry() argument [all...] |
H A D | js_array.cpp | 24 JSTaggedValue JSArray::LengthGetter([[maybe_unused]] JSThread *thread, const JSHandle<JSObject> &self) in LengthGetter() argument 29 bool JSArray::LengthSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTaggedValue> &value, in LengthSetter() argument 33 if (!JSTaggedValue::ToArrayLength(thread, value, &newLen) && mayThrow) { in LengthSetter() 34 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, false); in LengthSetter() 42 if (!IsArrayLengthWritable(thread, self)) { in LengthSetter() 44 THROW_TYPE_ERROR_AND_RETURN(thread, GET_MESSAGE_STRING(SetReadOnlyProperty), false); in LengthSetter() 49 JSArray::SetCapacity(thread, self, oldLen, newLen); in LengthSetter() 53 THROW_TYPE_ERROR_AND_RETURN(thread, "Not all array elements is configurable", false); in LengthSetter() 61 JSHandle<JSTaggedValue> JSArray::ArrayCreate(JSThread *thread, JSTaggedNumber length, ArrayMode mode) in ArrayCreate() argument 63 JSHandle<GlobalEnv> env = thread in ArrayCreate() 69 ArrayCreate(JSThread *thread, JSTaggedNumber length, const JSHandle<JSTaggedValue> &newTarget, ArrayMode mode) ArrayCreate() argument 115 ArraySpeciesCreate(JSThread *thread, const JSHandle<JSObject> &originalArray, JSTaggedNumber length) ArraySpeciesCreate() argument 202 SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen, bool isNew) SetCapacity() argument 290 ArraySetLength(JSThread *thread, const JSHandle<JSObject> &array, const PropertyDescriptor &desc) ArraySetLength() argument 363 PropertyKeyToArrayIndex(JSThread *thread, const JSHandle<JSTaggedValue> &key, uint32_t *output) PropertyKeyToArrayIndex() argument 369 DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc) DefineOwnProperty() argument 393 DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, uint32_t index, const PropertyDescriptor &desc) DefineOwnProperty() argument 399 IsLengthString(JSThread *thread, const JSHandle<JSTaggedValue> &key) IsLengthString() argument 405 CreateArrayFromList(JSThread *thread, const JSHandle<TaggedArray> &elements) CreateArrayFromList() argument 427 CreateArrayFromList(JSThread *thread, const JSHandle<JSTaggedValue> &newtarget, const JSHandle<TaggedArray> &elements) CreateArrayFromList() argument 449 FastGetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index) FastGetPropertyByValue() argument 457 FastGetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key) FastGetPropertyByValue() argument 465 FastSetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index, const JSHandle<JSTaggedValue> &value) FastSetPropertyByValue() argument 471 FastSetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) FastSetPropertyByValue() argument 478 TryFastCreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, const JSHandle<JSTaggedValue> &value, SCheckMode sCheckMode) TryFastCreateDataProperty() argument 514 Sort(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &fn) Sort() argument 563 SortElements(JSThread *thread, const JSHandle<TaggedArray> &elements, const JSHandle<JSTaggedValue> &fn) SortElements() argument 576 SortElementsByMergeSort(JSThread *thread, const JSHandle<TaggedArray> &elements, const JSHandle<JSTaggedValue> &fn, int64_t startIdx, int64_t endIdx) SortElementsByMergeSort() argument 588 MergeSortedElements(JSThread *thread, const JSHandle<TaggedArray> &elements, const JSHandle<JSTaggedValue> &fn, int64_t startIdx, int64_t middleIdx, int64_t endIdx) MergeSortedElements() argument 639 SortElementsByInsertionSort(JSThread *thread, const JSHandle<TaggedArray> &elements, uint32_t len, const JSHandle<JSTaggedValue> &fn) SortElementsByInsertionSort() argument 674 SortElementsByObject(JSThread *thread, const JSHandle<JSObject> &thisObjHandle, const JSHandle<JSTaggedValue> &fn) SortElementsByObject() argument 709 IncludeInSortedValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &value) IncludeInSortedValue() argument 735 ToTaggedArray(JSThread *thread, const JSHandle<JSTaggedValue> &obj) ToTaggedArray() argument 749 CheckAndCopyArray(const JSThread *thread, JSHandle<JSArray> obj) CheckAndCopyArray() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_object.cpp | 28 JSThread *thread = argv->GetThread(); in ObjectConstructor() local 29 BUILTINS_API_TRACE(thread, Object, Constructor); in ObjectConstructor() 30 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ObjectConstructor() 31 auto ecmaVm = thread->GetEcmaVM(); in ObjectConstructor() 41 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ObjectConstructor() 53 return JSTaggedValue::ToObject(thread, value).GetTaggedValue(); in ObjectConstructor() 56 JSTaggedValue BuiltinsObject::AssignTaggedValue(JSThread *thread, const JSHandle<JSTaggedValue> &source, in AssignTaggedValue() argument 59 JSHandle<JSObject> from = JSTaggedValue::ToObject(thread, source); in AssignTaggedValue() 60 JSHandle<TaggedArray> keys = JSTaggedValue::GetOwnPropertyKeys(thread, JSHandle<JSTaggedValue>::Cast(from)); in AssignTaggedValue() 61 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in AssignTaggedValue() 91 JSThread *thread = argv->GetThread(); Assign() local 160 ObjectDefineProperties(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop) ObjectDefineProperties() argument 243 JSThread *thread = argv->GetThread(); Create() local 277 JSThread *thread = argv->GetThread(); DefineProperties() local 288 JSThread *thread = argv->GetThread(); DefineProperty() local 325 JSThread *thread = argv->GetThread(); Freeze() local 362 JSThread *thread = argv->GetThread(); GetOwnPropertyDescriptor() local 395 JSThread *thread = argv->GetThread(); GetOwnPropertyDescriptors() local 442 GetOwnPropertyKeys(JSThread *thread, const JSHandle<JSTaggedValue> &object, const KeyType &type) GetOwnPropertyKeys() argument 501 JSThread *thread = argv->GetThread(); GetOwnPropertyNames() local 515 JSThread *thread = argv->GetThread(); GetOwnPropertySymbols() local 529 JSThread *thread = argv->GetThread(); GetPrototypeOf() local 560 JSThread *thread = argv->GetThread(); IsExtensible() local 583 JSThread *thread = argv->GetThread(); IsFrozen() local 602 JSThread *thread = argv->GetThread(); IsSealed() local 614 JSThread *thread = argv->GetThread(); Keys() local 641 JSThread *thread = argv->GetThread(); Values() local 667 JSThread *thread = argv->GetThread(); PreventExtensions() local 697 JSThread *thread = argv->GetThread(); Seal() local 729 JSThread *thread = argv->GetThread(); SetPrototypeOf() local 773 JSThread *thread = argv->GetThread(); HasOwnProperty() local 781 HasOwnPropertyInternal(JSThread *thread, JSHandle<JSTaggedValue> thisValue, JSHandle<JSTaggedValue> prop) HasOwnPropertyInternal() argument 814 JSThread *thread = argv->GetThread(); IsPrototypeOf() local 848 JSThread *thread = argv->GetThread(); PropertyIsEnumerable() local 882 JSThread *thread = argv->GetThread(); ToLocaleString() local 899 GetBuiltinObjectToString(JSThread *thread, const JSHandle<JSObject> &object) GetBuiltinObjectToString() argument 946 JSThread *thread = argv->GetThread(); ToString() local 994 JSThread *thread = argv->GetThread(); ValueOf() local 1007 JSThread *thread = argv->GetThread(); ProtoGetter() local 1024 JSThread *thread = argv->GetThread(); ProtoSetter() local 1063 JSThread *thread = argv->GetThread(); CreateRealm() local 1074 JSThread *thread = argv->GetThread(); Entries() local 1096 JSThread *thread = argv->GetThread(); FromEntries() local 1130 JSThread *thread = argv->GetThread(); CreateDataPropertyOnObjectFunctions() local 1160 JSThread *thread = argv->GetThread(); HasOwn() local [all...] |
H A D | builtins_shared_array.cpp | 41 JSThread *thread = argv->GetThread(); in ArrayConstructor() local 42 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ArrayConstructor() 51 thread, containers::ErrorFlag::IS_NULL_ERROR, "The ArkTS Array's constructor cannot be directly invoked."); in ArrayConstructor() 52 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ArrayConstructor() 62 return JSSharedArray::ArrayCreate(thread, JSTaggedNumber(0), newTarget).GetTaggedValue(); in ArrayConstructor() 66 JSTaggedValue newArray = JSSharedArray::ArrayCreate(thread, JSTaggedNumber(argc), newTarget).GetTaggedValue(); in ArrayConstructor() 67 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ArrayConstructor() 69 THROW_TYPE_ERROR_AND_RETURN(thread, "Failed to create array.", JSTaggedValue::Exception()); in ArrayConstructor() 71 JSHandle<JSObject> newArrayHandle(thread, newArray); in ArrayConstructor() 80 JSMutableHandle<JSTaggedValue> key(thread, JSTaggedValu in ArrayConstructor() 104 JSThread *thread = argv->GetThread(); From() local 318 JSThread *thread = argv->GetThread(); Create() local 374 JSThread *thread = argv->GetThread(); IsArray() local 396 JSThread *thread = argv->GetThread(); Concat() local 511 JSThread *thread = argv->GetThread(); Entries() local 528 CheckElementForEvery(JSThread *thread, JSHandle<JSTaggedValue> &thisObjVal, JSHandle<JSTaggedValue> &callbackFnHandle, JSHandle<JSTaggedValue> &thisArgHandle, uint32_t &k) CheckElementForEvery() argument 571 JSThread *thread = argv->GetThread(); Every() local 624 JSThread *thread = argv->GetThread(); Some() local 708 JSThread *thread = argv->GetThread(); Fill() local 819 FilterUnStableJSArray(JSThread *thread, JSHandle<JSTaggedValue> &thisArgHandle, JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, uint32_t toIndex, JSHandle<JSObject> newArrayHandle, JSHandle<JSTaggedValue> &callbackFnHandle) FilterUnStableJSArray() argument 857 JSThread *thread = argv->GetThread(); Filter() local 929 JSThread *thread = argv->GetThread(); Find() local 996 JSThread *thread = argv->GetThread(); FindIndex() local 1070 JSThread *thread = argv->GetThread(); ForEach() local 1140 IndexOfSlowPath( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) IndexOfSlowPath() argument 1162 IndexOfSlowPath( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisObjVal, int64_t length, int64_t fromIndex) IndexOfSlowPath() argument 1188 JSThread *thread = argv->GetThread(); IndexOf() local 1215 JSThread *thread = argv->GetThread(); Join() local 1232 JSThread *thread = argv->GetThread(); Keys() local 1250 JSThread *thread = argv->GetThread(); Map() local 1346 JSThread *thread = argv->GetThread(); Pop() local 1366 JSThread *thread = argv->GetThread(); PopInner() local 1421 JSThread *thread = argv->GetThread(); Push() local 1482 ReduceUnStableJSArray(JSThread *thread, JSHandle<JSTaggedValue> &thisHandle, JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, JSMutableHandle<JSTaggedValue> &accumulator, JSHandle<JSTaggedValue> &callbackFnHandle) ReduceUnStableJSArray() argument 1518 JSThread *thread = argv->GetThread(); Reduce() local 1598 JSThread *thread = argv->GetThread(); Shift() local 1692 JSThread *thread = argv->GetThread(); Slice() local 1819 JSThread *thread = argv->GetThread(); Sort() local 1855 JSThread *thread = argv->GetThread(); Splice() local 2070 JSThread *thread = argv->GetThread(); ToString() local 2116 JSThread *thread = argv->GetThread(); Unshift() local 2217 JSThread *thread = argv->GetThread(); Values() local 2237 JSThread *thread = argv->GetThread(); Unscopables() local 2302 JSThread *thread = argv->GetThread(); Includes() local 2377 JSThread *thread = argv->GetThread(); At() local 2435 JSThread *thread = argv->GetThread(); ShrinkTo() local 2474 JSThread *thread = argv->GetThread(); ExtendTo() local 2521 LastIndexOfSlowPath(EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) LastIndexOfSlowPath() argument 2543 LastIndexOfSlowPath(EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisObjVal, int64_t fromIndex) LastIndexOfSlowPath() argument 2568 JSThread *thread = argv->GetThread(); LastIndexOf() local [all...] |
H A D | builtins_string.cpp | 54 JSThread *thread = argv->GetThread(); in StringConstructor() local 55 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StringConstructor() 56 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in StringConstructor() 61 return BuiltinsSymbol::SymbolDescriptiveString(thread, valTagNew.GetTaggedValue()); in StringConstructor() 63 JSHandle<EcmaString> str = JSTaggedValue::ToString(thread, valTagNew); in StringConstructor() 64 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in StringConstructor() 69 return JSPrimitiveRef::StringCreate(thread, strTag, newTarget).GetTaggedValue(); in StringConstructor() 76 return JSPrimitiveRef::StringCreate(thread, valTag, newTarget).GetTaggedValue(); in StringConstructor() 84 JSThread *thread = argv->GetThread(); in FromCharCode() local 85 [[maybe_unused]] EcmaHandleScope handleScope(thread); in FromCharCode() 118 JSThread *thread = argv->GetThread(); FromCodePoint() local 165 JSThread *thread = argv->GetThread(); Raw() local 228 JSThread *thread = argv->GetThread(); CharAt() local 268 JSThread *thread = argv->GetThread(); CharCodeAt() local 303 JSThread *thread = argv->GetThread(); CodePointAt() local 336 JSThread *thread = argv->GetThread(); Concat() local 364 JSThread *thread = argv->GetThread(); EndsWith() local 410 JSThread *thread = argv->GetThread(); Includes() local 446 JSThread *thread = argv->GetThread(); IndexOf() local 484 JSThread *thread = argv->GetThread(); LastIndexOf() local 522 JSThread *thread = argv->GetThread(); LocaleCompare() local 537 DoLocaleCompare(JSThread *thread, const JSHandle<EcmaString> &thisHandle, const JSHandle<EcmaString> &thatHandle, const JSHandle<JSTaggedValue> &locales, const JSHandle<JSTaggedValue> &options) DoLocaleCompare() argument 572 LocaleCompareGC(JSThread *thread, const JSHandle<EcmaString> &thisHandle, const JSHandle<EcmaString> &thatHandle, const JSHandle<JSTaggedValue> &locales, const JSHandle<JSTaggedValue> &options, CompareStringsOption csOption, bool cacheable) LocaleCompareGC() argument 605 JSThread *thread = argv->GetThread(); Match() local 646 JSThread *thread = argv->GetThread(); MatchAll() local 731 JSThread *thread = argv->GetThread(); IsWellFormed() local 791 JSThread *thread = argv->GetThread(); ToWellFormed() local 898 JSThread *thread = argv->GetThread(); Normalize() local 969 JSThread *thread = argv->GetThread(); Repeat() local 1015 JSThread *thread = argv->GetThread(); Replace() local 1141 JSThread *thread = argv->GetThread(); ReplaceAll() local 1345 ProcessNamedCaptures(JSThread *thread, const JSHandle<EcmaString> &replacementFlat, int32_t peekIndex, const JSHandle<JSTaggedValue> &namedCaptures, std::u16string &stringBuilder) ProcessNamedCaptures() argument 1377 GetSubstitution(JSThread *thread, const JSHandle<EcmaString> &matched, const JSHandle<EcmaString> &srcString, int position, const JSHandle<TaggedArray> &captureList, const JSHandle<JSTaggedValue> &namedCaptures, const JSHandle<EcmaString> &replacement) GetSubstitution() argument 1498 JSThread *thread = argv->GetThread(); Search() local 1539 JSThread *thread = argv->GetThread(); Slice() local 1581 JSThread *thread = argv->GetThread(); Split() local 1676 CreateArrayFromString(JSThread *thread, EcmaVM *ecmaVm, const JSHandle<EcmaString> &thisString, uint32_t thisLength, uint32_t lim) CreateArrayFromString() argument 1717 CreateArrayBySplitString(JSThread *thread, EcmaVM *ecmaVm, const JSHandle<EcmaString> &thisString, const JSHandle<EcmaString> &seperatorString, uint32_t thisLength, uint32_t seperatorLength, uint32_t lim) CreateArrayBySplitString() argument 1742 CreateArrayThisStringAndSeperatorStringAreNotEmpty(JSThread *thread, EcmaVM *ecmaVm, const JSHandle<EcmaString> &thisString, const JSHandle<EcmaString> &seperatorString, uint32_t thisLength, uint32_t seperatorLength, uint32_t lim) CreateArrayThisStringAndSeperatorStringAreNotEmpty() argument 1803 JSThread *thread = argv->GetThread(); StartsWith() local 1850 JSThread *thread = argv->GetThread(); Substring() local 1884 JSThread *thread = argv->GetThread(); ToLocaleLowerCase() local 1945 JSThread *thread = argv->GetThread(); ToLocaleUpperCase() local 2006 JSThread *thread = argv->GetThread(); ToLowerCase() local 2028 JSThread *thread = argv->GetThread(); ToUpperCase() local 2044 JSThread *thread = argv->GetThread(); Trim() local 2058 JSThread *thread = argv->GetThread(); TrimStart() local 2072 JSThread *thread = argv->GetThread(); TrimEnd() local 2086 JSThread *thread = argv->GetThread(); TrimLeft() local 2100 JSThread *thread = argv->GetThread(); TrimRight() local 2122 JSThread *thread = argv->GetThread(); GetStringIterator() local 2140 JSThread *thread = argv->GetThread(); SubStr() local 2191 JSThread *thread = argv->GetThread(); At() local 2228 JSThread *thread = argv->GetThread(); GetLength() local 2239 ThisStringValue(JSThread *thread, JSTaggedValue value) ThisStringValue() argument 2259 JSThread *thread = argv->GetThread(); Pad() local 2322 StringToList(JSThread *thread, JSHandle<EcmaString> &str) StringToList() argument 2357 StringToSList(JSThread *thread, JSHandle<EcmaString> &str) StringToSList() argument 2394 CreateCacheTable(const JSThread *thread) CreateCacheTable() argument 2402 FindCachedResult(const JSThread *thread, const JSHandle<StringSplitResultCache> &cache, const JSHandle<EcmaString> &thisString, const JSHandle<EcmaString> &pattern, bool isOneByte) FindCachedResult() argument 2433 SetCachedResult(const JSThread *thread, const JSHandle<StringSplitResultCache> &cache, const JSHandle<EcmaString> &thisString, const JSHandle<EcmaString> &pattern, const JSHandle<TaggedArray> &resultArray) SetCachedResult() argument 2453 CreateCacheTable(const JSThread *thread) CreateCacheTable() argument 2461 FindCachedResult(const JSThread *thread, const JSHandle<StringToListResultCache> &cache, const JSHandle<EcmaString> &thisString) FindCachedResult() argument 2481 SetCachedResult(const JSThread *thread, const JSHandle<StringToListResultCache> &cache, const JSHandle<EcmaString> &thisString, const JSHandle<TaggedArray> &resultArray) SetCachedResult() argument [all...] |
H A D | builtins_array.cpp | 38 JSThread *thread = argv->GetThread(); in ArrayConstructor() local 39 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ArrayConstructor() 58 return JSArray::ArrayCreate(thread, JSTaggedNumber(0), newTarget).GetTaggedValue(); in ArrayConstructor() 64 JSHandle<JSObject> newArrayHandle(JSArray::ArrayCreate(thread, JSTaggedNumber(0), newTarget)); in ArrayConstructor() 65 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ArrayConstructor() 78 JSHandle<JSTaggedValue> key0 = thread->GlobalConstants()->GetHandledZeroString(); in ArrayConstructor() 79 JSObject::CreateDataProperty(thread, newArrayHandle, key0, len); in ArrayConstructor() 82 newLen = JSTaggedValue::ToUint32(thread, len); in ArrayConstructor() 83 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in ArrayConstructor() 85 THROW_RANGE_ERROR_AND_RETURN(thread, "Invali in ArrayConstructor() 161 JSThread *thread = argv->GetThread(); From() local 411 JSThread *thread = argv->GetThread(); Of() local 481 JSThread *thread = argv->GetThread(); Concat() local 587 JSThread *thread = argv->GetThread(); CopyWithin() local 713 JSThread *thread = argv->GetThread(); global() local 729 JSThread *thread = argv->GetThread(); Every() local 808 JSThread *thread = argv->GetThread(); Fill() local 895 FilterUnStableJSArray(JSThread *thread, JSHandle<JSTaggedValue> &thisArgHandle, JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, uint32_t toIndex, JSHandle<JSObject> newArrayHandle, JSHandle<JSTaggedValue> &callbackFnHandle) FilterUnStableJSArray() argument 934 JSThread *thread = argv->GetThread(); Filter() local 998 JSThread *thread = argv->GetThread(); Find() local 1060 JSThread *thread = argv->GetThread(); FindIndex() local 1130 JSThread *thread = argv->GetThread(); ForEach() local 1196 IndexOfStable( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) IndexOfStable() argument 1227 IndexOfSlowPath( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) IndexOfSlowPath() argument 1249 IndexOfSlowPath( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisObjVal, int64_t length, int64_t fromIndex) IndexOfSlowPath() argument 1276 JSThread *thread = argv->GetThread(); IndexOf() local 1292 JSThread *thread = argv->GetThread(); Join() local 1395 JSThread *thread = argv->GetThread(); Keys() local 1407 LastIndexOfStable( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) LastIndexOfStable() argument 1435 LastIndexOfSlowPath( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) LastIndexOfSlowPath() argument 1457 LastIndexOfSlowPath( EcmaRuntimeCallInfo *argv, JSThread *thread, const JSHandle<JSTaggedValue> &thisObjVal, int64_t fromIndex) LastIndexOfSlowPath() argument 1483 JSThread *thread = argv->GetThread(); LastIndexOf() local 1498 JSThread *thread = argv->GetThread(); Map() local 1554 MapUnStableJSArray(JSThread *thread, JSHandle<JSTaggedValue> &thisArgHandle, JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, JSHandle<JSObject> newArrayHandle, JSHandle<JSTaggedValue> &callbackFnHandle) MapUnStableJSArray() argument 1592 JSThread *thread = argv->GetThread(); Pop() local 1649 JSThread *thread = argv->GetThread(); Push() local 1700 ReduceUnStableJSArray(JSThread *thread, JSHandle<JSTaggedValue> &thisHandle, JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, JSMutableHandle<JSTaggedValue> &accumulator, JSHandle<JSTaggedValue> &callbackFnHandle) ReduceUnStableJSArray() argument 1737 JSThread *thread = argv->GetThread(); Reduce() local 1757 JSThread *thread = argv->GetThread(); ReduceInner() local 1824 JSThread *thread = argv->GetThread(); ReduceRight() local 1844 JSThread *thread = argv->GetThread(); ReduceRightInner() local 1954 JSThread *thread = argv->GetThread(); Reverse() local 2070 JSThread *thread = argv->GetThread(); Shift() local 2159 JSThread *thread = argv->GetThread(); Slice() local 2282 JSThread *thread = argv->GetThread(); Some() local 2361 JSThread *thread = argv->GetThread(); Sort() local 2392 JSThread *thread = argv->GetThread(); Splice() local 2599 JSThread *thread = argv->GetThread(); ToLocaleString() local 2694 JSThread *thread = argv->GetThread(); ToString() local 2732 JSThread *thread = argv->GetThread(); Unshift() local 2825 JSThread *thread = argv->GetThread(); Values() local 2842 JSThread *thread = argv->GetThread(); Flat() local 2894 JSThread *thread = argv->GetThread(); FlatMap() local 2932 JSThread *thread = argv->GetThread(); Includes() local 3002 JSThread *thread = argv->GetThread(); At() local 3053 JSThread *thread = argv->GetThread(); With() local 3124 JSThread *thread = argv->GetThread(); ToSorted() local 3178 JSThread *thread = argv->GetThread(); ToSpliced() local 3306 JSThread *thread = argv->GetThread(); FindLast() local 3379 JSThread *thread = argv->GetThread(); FindLastIndex() local 3450 JSThread *thread = argv->GetThread(); ToReversed() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | exceptions.cpp | 38 void ThrowException(const LanguageContext &ctx, ManagedThread *thread, const uint8_t *mutf8Name, in ThrowException() argument 41 ctx.ThrowException(thread, mutf8Name, mutf8Msg); in ThrowException() 44 static LanguageContext GetLanguageContext(ManagedThread *thread) in GetLanguageContext() argument 46 ASSERT(thread != nullptr); in GetLanguageContext() 47 return thread->GetVM()->GetLanguageContext(); in GetLanguageContext() 52 auto *thread = ManagedThread::GetCurrent(); in ThrowNullPointerException() local 53 auto ctx = GetLanguageContext(thread); in ThrowNullPointerException() 54 ThrowNullPointerException(ctx, thread); in ThrowNullPointerException() 57 void ThrowNullPointerException(const LanguageContext &ctx, ManagedThread *thread) in ThrowNullPointerException() argument 59 ThrowException(ctx, thread, ct in ThrowNullPointerException() 63 ThrowStackOverflowException(ManagedThread *thread) ThrowStackOverflowException() argument 71 auto *thread = ManagedThread::GetCurrent(); ThrowArrayIndexOutOfBoundsException() local 76 ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length, const LanguageContext &ctx, ManagedThread *thread) ThrowArrayIndexOutOfBoundsException() argument 87 auto *thread = ManagedThread::GetCurrent(); ThrowIndexOutOfBoundsException() local 95 auto *thread = ManagedThread::GetCurrent(); ThrowIllegalStateException() local 102 auto *thread = ManagedThread::GetCurrent(); ThrowStringIndexOutOfBoundsException() local 112 auto *thread = ManagedThread::GetCurrent(); ThrowNegativeArraySizeException() local 120 auto *thread = ManagedThread::GetCurrent(); ThrowNegativeArraySizeException() local 128 auto *thread = ManagedThread::GetCurrent(); ThrowArithmeticException() local 136 auto *thread = ManagedThread::GetCurrent(); ThrowClassCastException() local 145 auto *thread = ManagedThread::GetCurrent(); ThrowAbstractMethodError() local 156 auto *thread = ManagedThread::GetCurrent(); ThrowIncompatibleClassChangeErrorForMethodConflict() local 174 auto *thread = ManagedThread::GetCurrent(); ThrowArrayStoreException() local 182 auto *thread = ManagedThread::GetCurrent(); ThrowRuntimeException() local 190 auto *thread = ManagedThread::GetCurrent(); ThrowIllegalArgumentException() local 198 auto *thread = ManagedThread::GetCurrent(); ThrowClassCircularityError() local 203 DropCFrameIfNecessary(ManagedThread *thread, StackWalker *stack, Frame *origFrame, FrameAccessor nextFrame, Method *method) DropCFrameIfNecessary() argument 242 FindCatchBlockInCFrames(ManagedThread *thread, StackWalker *stack, Frame *origFrame) FindCatchBlockInCFrames() argument 303 FindCatchBlockInCallStack(ManagedThread *thread) FindCatchBlockInCallStack() argument 326 auto *thread = ManagedThread::GetCurrent(); ThrowFileNotFoundException() local 334 auto *thread = ManagedThread::GetCurrent(); ThrowIOException() local 342 auto *thread = ManagedThread::GetCurrent(); ThrowIllegalAccessException() local 348 ThrowOutOfMemoryError(ManagedThread *thread, const PandaString &msg) ThrowOutOfMemoryError() argument 364 auto *thread = ManagedThread::GetCurrent(); ThrowOutOfMemoryError() local 370 auto *thread = ManagedThread::GetCurrent(); ThrowUnsupportedOperationException() local 377 auto *thread = ManagedThread::GetCurrent(); ThrowVerificationException() local 385 auto *thread = ManagedThread::GetCurrent(); ThrowVerificationException() local 392 auto *thread = ManagedThread::GetCurrent(); ThrowInstantiationError() local 401 auto *thread = ManagedThread::GetCurrent(); ThrowNoClassDefFoundError() local 409 auto *thread = ManagedThread::GetCurrent(); ThrowTypedErrorDyn() local 416 auto *thread = ManagedThread::GetCurrent(); ThrowReferenceErrorDyn() local 423 auto *thread = ManagedThread::GetCurrent(); ThrowIllegalMonitorStateException() local 431 auto *thread = ManagedThread::GetCurrent(); ThrowCloneNotSupportedException() local 439 auto *thread = ManagedThread::GetCurrent(); HandlePendingException() local [all...] |
/arkcompiler/ets_runtime/ecmascript/containers/ |
H A D | containers_private.cpp | 59 JSThread *thread = msg->GetThread(); in Load() local 60 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Load() 66 THROW_TYPE_ERROR_AND_RETURN(thread, "Incorrect input parameters", JSTaggedValue::Exception()); in Load() 70 auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants()); in Load() 72 JSHandle<JSObject> undefinedIteratorResult = JSIterator::CreateIterResultObject(thread, undefinedHandle, true); in Load() 78 res = InitializeContainer(thread, thisValue, InitializeArrayList, "ArrayListConstructor"); in Load() 82 res = InitializeContainer(thread, thisValue, InitializeDeque, "DequeConstructor"); in Load() 86 res = InitializeContainer(thread, thisValue, InitializeLightWeightMap, "LightWeightMapConstructor"); in Load() 90 res = InitializeContainer(thread, thisValue, InitializeLightWeightSet, "LightWeightSetConstructor"); in Load() 94 res = InitializeContainer(thread, thisValu in Load() 147 InitializeContainer(JSThread *thread, const JSHandle<JSObject> &obj, InitializeFunction func, const char *name) InitializeContainer() argument 162 NewContainerConstructor(JSThread *thread, const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc, const char *name, int length) NewContainerConstructor() argument 185 SetFrozenFunction(JSThread *thread, const JSHandle<JSObject> &obj, const char *key, EcmaEntrypoint func, int length, kungfu::BuiltinsStubCSigns::ID builtinId) SetFrozenFunction() argument 195 SetFrozenConstructor(JSThread *thread, const JSHandle<JSObject> &obj, const char *keyChar, JSHandle<JSTaggedValue> &value) SetFrozenConstructor() argument 205 NewFunction(JSThread *thread, const JSHandle<JSTaggedValue> &key, EcmaEntrypoint func, int length, kungfu::BuiltinsStubCSigns::ID builtinId) NewFunction() argument 219 CreateGetter(JSThread *thread, EcmaEntrypoint func, const char *name, int length) CreateGetter() argument 232 SetGetter(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &getter) SetGetter() argument 242 SetFunctionAtSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &symbol, const char *name, EcmaEntrypoint func, int length) SetFunctionAtSymbol() argument 256 SetStringTagSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &obj, const char *key) SetStringTagSymbol() argument 266 InitializeArrayList(JSThread *thread) InitializeArrayList() argument 327 InitializeArrayListIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, GlobalEnvConstants *globalConst) InitializeArrayListIterator() argument 343 InitializeLightWeightMap(JSThread *thread) InitializeLightWeightMap() argument 401 InitializeLightWeightMapIterator(JSThread *thread) InitializeLightWeightMapIterator() argument 416 InitializeLightWeightSet(JSThread *thread) InitializeLightWeightSet() argument 467 InitializeLightWeightSetIterator(JSThread *thread) InitializeLightWeightSetIterator() argument 482 InitializeTreeMap(JSThread *thread) InitializeTreeMap() argument 542 InitializeTreeMapIterator(JSThread *thread) InitializeTreeMapIterator() argument 559 InitializeTreeSet(JSThread *thread) InitializeTreeSet() argument 616 InitializeTreeSetIterator(JSThread *thread) InitializeTreeSetIterator() argument 633 InitializePlainArray(JSThread *thread) InitializePlainArray() argument 694 InitializePlainArrayIterator(JSThread *thread) InitializePlainArrayIterator() argument 708 InitializeStack(JSThread *thread) InitializeStack() argument 755 InitializeStackIterator(JSThread *thread, GlobalEnvConstants *globalConst) InitializeStackIterator() argument 767 InitializeVector(JSThread *thread) InitializeVector() argument 835 InitializeVectorIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, GlobalEnvConstants *globalConst) InitializeVectorIterator() argument 849 InitializeBitVector(JSThread* thread) InitializeBitVector() argument 902 InitializeBitVectorIterator( JSThread* thread, const JSHandle<GlobalEnv>& env, GlobalEnvConstants* globalConst) InitializeBitVectorIterator() argument 917 InitializeQueue(JSThread *thread) InitializeQueue() argument 958 InitializeQueueIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, GlobalEnvConstants *globalConst) InitializeQueueIterator() argument 972 InitializeDeque(JSThread *thread) InitializeDeque() argument 1017 InitializeDequeIterator(JSThread *thread, const JSHandle<GlobalEnv> &env, GlobalEnvConstants *globalConst) InitializeDequeIterator() argument 1029 InitializeList(JSThread *thread) InitializeList() argument 1080 InitializeLinkedList(JSThread *thread) InitializeLinkedList() argument 1138 InitializeLinkedListIterator(JSThread *thread, const JSHandle<GlobalEnv> &env) InitializeLinkedListIterator() argument 1151 InitializeListIterator(JSThread *thread, const JSHandle<GlobalEnv> &env) InitializeListIterator() argument 1163 InitializeHashMap(JSThread *thread) InitializeHashMap() argument 1225 InitializeHashMapIterator(JSThread *thread) InitializeHashMapIterator() argument 1242 InitializeHashSet(JSThread *thread) InitializeHashSet() argument 1288 InitializeHashSetIterator(JSThread *thread) InitializeHashSetIterator() argument [all...] |
H A D | containers_lightweightset.cpp | 27 JSThread *thread = argv->GetThread(); in LightWeightSetConstructor() local 28 BUILTINS_API_TRACE(thread, LightWeightSet, Constructor); in LightWeightSetConstructor() 29 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LightWeightSetConstructor() 30 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in LightWeightSetConstructor() 34 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in LightWeightSetConstructor() 36 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightSetConstructor() 40 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in LightWeightSetConstructor() 44 JSAPILightWeightSet::CreateSlot(thread, JSAPILightWeightSet::DEFAULT_CAPACITY_LENGTH); in LightWeightSetConstructor() 46 JSAPILightWeightSet::CreateSlot(thread, JSAPILightWeightSet::DEFAULT_CAPACITY_LENGTH); in LightWeightSetConstructor() 47 lightweightSet->SetHashes(thread, hashe in LightWeightSetConstructor() 55 JSThread *thread = argv->GetThread(); Add() local 76 JSThread *thread = argv->GetThread(); AddAll() local 110 JSThread *thread = argv->GetThread(); IsEmpty() local 130 JSThread *thread = argv->GetThread(); GetValueAt() local 162 JSThread *thread = argv->GetThread(); HasAll() local 195 JSThread *thread = argv->GetThread(); Has() local 216 JSThread *thread = argv->GetThread(); HasHash() local 237 JSThread *thread = argv->GetThread(); Equal() local 257 JSThread *thread = argv->GetThread(); IncreaseCapacityTo() local 294 JSThread *thread = argv->GetThread(); GetIteratorObj() local 315 JSThread *thread = argv->GetThread(); Values() local 336 JSThread *thread = argv->GetThread(); Entries() local 358 JSThread *thread = argv->GetThread(); ForEach() local 389 JSThread *thread = argv->GetThread(); GetIndexOf() local 411 JSThread *thread = argv->GetThread(); Remove() local 434 JSThread *thread = argv->GetThread(); RemoveAt() local 468 JSThread *thread = argv->GetThread(); Clear() local 489 JSThread *thread = argv->GetThread(); ToString() local 510 JSThread *thread = argv->GetThread(); ToArray() local 547 JSThread *thread = argv->GetThread(); GetSize() local [all...] |
H A D | containers_hashmap.cpp | 27 JSThread *thread = argv->GetThread(); in HashMapConstructor() local 28 BUILTINS_API_TRACE(thread, HashMap, Constructor); in HashMapConstructor() 29 [[maybe_unused]] EcmaHandleScope handleScope(thread); in HashMapConstructor() 30 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HashMapConstructor() 35 ContainerError::BusinessError(thread, ErrorFlag::IS_NULL_ERROR, in HashMapConstructor() 37 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HashMapConstructor() 42 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in HashMapConstructor() 45 JSTaggedValue hashMapArray = TaggedHashArray::Create(thread); in HashMapConstructor() 46 hashMap->SetTable(thread, hashMapArray); in HashMapConstructor() 55 JSThread *thread in Keys() local 76 JSThread *thread = argv->GetThread(); Values() local 97 JSThread *thread = argv->GetThread(); GetIteratorObj() local 118 JSThread *thread = argv->GetThread(); Entries() local 139 JSThread *thread = argv->GetThread(); ForEach() local 192 JSThread *thread = argv->GetThread(); Set() local 216 JSThread *thread = argv->GetThread(); SetAll() local 253 JSThread *thread = argv->GetThread(); Get() local 274 JSThread *thread = argv->GetThread(); Remove() local 296 JSThread *thread = argv->GetThread(); HasKey() local 318 JSThread *thread = argv->GetThread(); HasValue() local 340 JSThread *thread = argv->GetThread(); Replace() local 362 JSThread *thread = argv->GetThread(); Clear() local 383 JSThread *thread = argv->GetThread(); GetLength() local 403 JSThread *thread = argv->GetThread(); IsEmpty() local [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 59 JSTaggedValue RuntimeStubs::RuntimeInc(JSThread *thread, const JSHandle<JSTaggedValue> &value) in RuntimeInc() argument 61 JSHandle<JSTaggedValue> inputVal = JSTaggedValue::ToNumeric(thread, value); in RuntimeInc() 62 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RuntimeInc() 65 return BigInt::BigintAddOne(thread, bigValue).GetTaggedValue(); in RuntimeInc() 71 JSTaggedValue RuntimeStubs::RuntimeDec(JSThread *thread, const JSHandle<JSTaggedValue> &value) in RuntimeDec() argument 73 JSHandle<JSTaggedValue> inputVal = JSTaggedValue::ToNumeric(thread, value); in RuntimeDec() 74 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in RuntimeDec() 77 return BigInt::BigintSubOne(thread, bigValue).GetTaggedValue(); in RuntimeDec() 83 JSTaggedValue RuntimeStubs::RuntimeExp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) in RuntimeExp() argument 85 JSHandle<JSTaggedValue> baseTag(thread, bas in RuntimeExp() 119 RuntimeIsIn(JSThread *thread, const JSHandle<JSTaggedValue> &prop, const JSHandle<JSTaggedValue> &obj) RuntimeIsIn() argument 132 RuntimeInstanceof(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &target) RuntimeInstanceof() argument 140 RuntimeInstanceofByHandler(JSThread *thread, JSHandle<JSTaggedValue> target, JSHandle<JSTaggedValue> object, JSHandle<JSTaggedValue> instOfHandler) RuntimeInstanceofByHandler() argument 176 RuntimeCreateGeneratorObj(JSThread *thread, const JSHandle<JSTaggedValue> &genFunc) RuntimeCreateGeneratorObj() argument 191 RuntimeCreateAsyncGeneratorObj(JSThread *thread, const JSHandle<JSTaggedValue> &genFunc) RuntimeCreateAsyncGeneratorObj() argument 206 RuntimeGetTemplateObject(JSThread *thread, const JSHandle<JSTaggedValue> &literal) RuntimeGetTemplateObject() argument 213 RuntimeGetNextPropName(JSThread *thread, const JSHandle<JSTaggedValue> &iter) RuntimeGetNextPropName() argument 221 RuntimeIterNext(JSThread *thread, const JSHandle<JSTaggedValue> &iter) RuntimeIterNext() argument 228 RuntimeCloseIterator(JSThread *thread, const JSHandle<JSTaggedValue> &iter) RuntimeCloseIterator() argument 249 RuntimeSuperCallSpread(JSThread *thread, const JSHandle<JSTaggedValue> &func, const JSHandle<JSTaggedValue> &newTarget, const JSHandle<JSTaggedValue> &array) RuntimeSuperCallSpread() argument 273 RuntimeOptSuperCallSpread(JSThread *thread, const JSHandle<JSTaggedValue> &func, const JSHandle<JSTaggedValue> &newTarget, const JSHandle<JSTaggedValue> &taggedArray) RuntimeOptSuperCallSpread() argument 297 RuntimeSuperCallForwardAllArgs(JSThread *thread, JSTaggedType *sp, const JSHandle<JSTaggedValue> &superFunc, const JSHandle<JSTaggedValue> &newTarget, uint32_t restNumArgs, uint32_t startIdx) RuntimeSuperCallForwardAllArgs() argument 322 RuntimeDelObjProp(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop) RuntimeDelObjProp() argument 334 RuntimeNewObjApply(JSThread *thread, const JSHandle<JSTaggedValue> &func, const JSHandle<JSTaggedValue> &array) RuntimeNewObjApply() argument 357 RuntimeCreateIterResultObj(JSThread *thread, const JSHandle<JSTaggedValue> &value, JSTaggedValue flag) RuntimeCreateIterResultObj() argument 367 RuntimeAsyncFunctionAwaitUncaught(JSThread *thread, const JSHandle<JSTaggedValue> &asyncFuncObj, const JSHandle<JSTaggedValue> &value) RuntimeAsyncFunctionAwaitUncaught() argument 393 RuntimeAsyncFunctionResolveOrReject(JSThread *thread, const JSHandle<JSTaggedValue> &asyncFuncObj, const JSHandle<JSTaggedValue> &value, bool is_resolve) RuntimeAsyncFunctionResolveOrReject() argument 419 RuntimeAsyncGeneratorResolve(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj, JSHandle<JSTaggedValue> value, JSTaggedValue flag) RuntimeAsyncGeneratorResolve() argument 436 RuntimeAsyncGeneratorReject(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj, JSHandle<JSTaggedValue> value) RuntimeAsyncGeneratorReject() argument 447 RuntimeCopyDataProperties(JSThread *thread, const JSHandle<JSTaggedValue> &dst, const JSHandle<JSTaggedValue> &src) RuntimeCopyDataProperties() argument 476 RuntimeStArraySpread(JSThread *thread, const JSHandle<JSTaggedValue> &dst, JSTaggedValue index, const JSHandle<JSTaggedValue> &src) RuntimeStArraySpread() argument 581 RuntimeGetIteratorNext(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &method) RuntimeGetIteratorNext() argument 596 RuntimeSetObjectWithProto(JSThread *thread, const JSHandle<JSTaggedValue> &proto, const JSHandle<JSObject> &obj) RuntimeSetObjectWithProto() argument 610 RuntimeLdObjByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop, bool callGetter, JSTaggedValue receiver) RuntimeLdObjByValue() argument 634 RuntimeStObjByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop, const JSHandle<JSTaggedValue> &value) RuntimeStObjByValue() argument 653 RuntimeStOwnByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) RuntimeStOwnByValue() argument 678 RuntimeLdSuperByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, JSTaggedValue thisFunc) RuntimeLdSuperByValue() argument 696 RuntimeStSuperByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, JSTaggedValue thisFunc) RuntimeStSuperByValue() argument 716 RuntimeLdObjByIndex(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t idx, bool callGetter, JSTaggedValue receiver) RuntimeLdObjByIndex() argument 729 RuntimeLdObjByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, bool callGetter, JSTaggedValue receiver) RuntimeLdObjByName() argument 744 RuntimeStObjByName(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop, const JSHandle<JSTaggedValue> &value) RuntimeStObjByName() argument 753 RuntimeStObjByIndex(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t idx, const JSHandle<JSTaggedValue> &value) RuntimeStObjByIndex() argument 761 RuntimeStOwnByIndex(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &idx, const JSHandle<JSTaggedValue> &value) RuntimeStOwnByIndex() argument 777 RuntimeStGlobalRecord(JSThread *thread, const JSHandle<JSTaggedValue> &prop, const JSHandle<JSTaggedValue> &value, bool isConst) RuntimeStGlobalRecord() argument 815 RuntimeNeg(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeNeg() argument 841 RuntimeNot(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeNot() argument 853 RuntimeResolveClass(JSThread *thread, const JSHandle<JSFunction> &ctor, const JSHandle<TaggedArray> &literal, const JSHandle<JSTaggedValue> &base, const JSHandle<JSTaggedValue> &lexenv) RuntimeResolveClass() argument 883 RuntimeCloneClassFromTemplate(JSThread *thread, const JSHandle<JSFunction> &ctor, const JSHandle<JSTaggedValue> &base, const JSHandle<JSTaggedValue> &lexenv) RuntimeCloneClassFromTemplate() argument 928 RuntimeCreateClassWithBuffer(JSThread *thread, const JSHandle<JSTaggedValue> &base, const JSHandle<JSTaggedValue> &lexenv, const JSHandle<JSTaggedValue> &constpool, uint16_t methodId, uint16_t literalId, const JSHandle<JSTaggedValue> &module, const JSHandle<JSTaggedValue> &length) RuntimeCreateClassWithBuffer() argument 992 SetProfileTypeInfoCellToFunction(JSThread *thread, const JSHandle<JSFunction> &jsFunc, const JSHandle<JSFunction> &definedFunc, uint16_t slotId) SetProfileTypeInfoCellToFunction() argument 1028 RuntimeCreateSharedClass(JSThread *thread, const JSHandle<JSTaggedValue> &base, const JSHandle<JSTaggedValue> &constpool, uint16_t methodId, uint16_t literalId, uint16_t length, const JSHandle<JSTaggedValue> &module) RuntimeCreateSharedClass() argument 1172 RuntimeSetClassConstructorLength(JSThread *thread, JSTaggedValue ctor, JSTaggedValue length) RuntimeSetClassConstructorLength() argument 1187 RuntimeNotifyInlineCache(JSThread *thread, const JSHandle<JSFunction> &function, uint32_t icSlotSize) RuntimeNotifyInlineCache() argument 1210 RuntimeStOwnByValueWithNameSet(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) RuntimeStOwnByValueWithNameSet() argument 1242 RuntimeStOwnByName(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop, const JSHandle<JSTaggedValue> &value) RuntimeStOwnByName() argument 1260 RuntimeStOwnByNameWithNameSet(JSThread *thread, const JSHandle<JSTaggedValue> &objHandle, const JSHandle<JSTaggedValue> &propHandle, const JSHandle<JSTaggedValue> &valueHandle) RuntimeStOwnByNameWithNameSet() argument 1282 RuntimeSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, const JSHandle<JSTaggedValue> &value) RuntimeSuspendGenerator() argument 1320 RuntimeSetGeneratorState(JSThread *thread, const JSHandle<JSTaggedValue> &genObj, const int32_t index) RuntimeSetGeneratorState() argument 1349 RuntimeGetModuleNamespace(JSThread *thread, int32_t index) RuntimeGetModuleNamespace() argument 1354 RuntimeGetModuleNamespace(JSThread *thread, int32_t index, JSTaggedValue jsFunc) RuntimeGetModuleNamespace() argument 1360 RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName) RuntimeGetModuleNamespace() argument 1365 RuntimeGetModuleNamespace(JSThread *thread, JSTaggedValue localName, JSTaggedValue jsFunc) RuntimeGetModuleNamespace() argument 1371 RuntimeStModuleVar(JSThread *thread, int32_t index, JSTaggedValue value) RuntimeStModuleVar() argument 1376 RuntimeStModuleVar(JSThread *thread, int32_t index, JSTaggedValue value, JSTaggedValue jsFunc) RuntimeStModuleVar() argument 1382 RuntimeStModuleVar(JSThread *thread, JSTaggedValue key, JSTaggedValue value) RuntimeStModuleVar() argument 1387 RuntimeStModuleVar(JSThread *thread, JSTaggedValue key, JSTaggedValue value, JSTaggedValue jsFunc) RuntimeStModuleVar() argument 1393 RuntimeLdLocalModuleVar(JSThread *thread, int32_t index) RuntimeLdLocalModuleVar() argument 1398 RuntimeLdLocalModuleVarWithModule(JSThread* thread, int32_t index, JSHandle<JSTaggedValue> moduleHdl) RuntimeLdLocalModuleVarWithModule() argument 1410 RuntimeLdLocalModuleVar(JSThread *thread, int32_t index, JSTaggedValue jsFunc) RuntimeLdLocalModuleVar() argument 1415 RuntimeLdExternalModuleVar(JSThread *thread, int32_t index) RuntimeLdExternalModuleVar() argument 1420 RuntimeLdExternalModuleVarWithModule(JSThread* thread, int32_t index, JSHandle<JSTaggedValue> moduleHdl) RuntimeLdExternalModuleVarWithModule() argument 1433 RuntimeLdSendableExternalModuleVar(JSThread *thread, int32_t index, JSTaggedValue jsFunc) RuntimeLdSendableExternalModuleVar() argument 1438 RuntimeLdExternalModuleVar(JSThread *thread, int32_t index, JSTaggedValue jsFunc) RuntimeLdExternalModuleVar() argument 1443 RuntimeLdLazyExternalModuleVar(JSThread *thread, int32_t index, JSTaggedValue jsFunc) RuntimeLdLazyExternalModuleVar() argument 1448 RuntimeLdLazySendableExternalModuleVar( JSThread *thread, int32_t index, JSTaggedValue jsFunc) RuntimeLdLazySendableExternalModuleVar() argument 1454 RuntimeLdModuleVar(JSThread *thread, JSTaggedValue key, bool inner) RuntimeLdModuleVar() argument 1464 RuntimeLdModuleVar(JSThread *thread, JSTaggedValue key, bool inner, JSTaggedValue jsFunc) RuntimeLdModuleVar() argument 1476 RuntimeGetPropIterator(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeGetPropIterator() argument 1483 RuntimeAsyncFunctionEnter(JSThread *thread) RuntimeAsyncFunctionEnter() argument 1508 RuntimeGetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj) RuntimeGetIterator() argument 1524 RuntimeGetAsyncIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj) RuntimeGetAsyncIterator() argument 1531 RuntimeLdPrivateProperty(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj) RuntimeLdPrivateProperty() argument 1562 RuntimeStPrivateProperty(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj, JSTaggedValue value) RuntimeStPrivateProperty() argument 1596 RuntimeTestIn(JSThread *thread, JSTaggedValue lexicalEnv, uint32_t levelIndex, uint32_t slotIndex, JSTaggedValue obj) RuntimeTestIn() argument 1615 RuntimeThrow(JSThread *thread, JSTaggedValue value) RuntimeThrow() argument 1620 RuntimeThrowThrowNotExists(JSThread *thread) RuntimeThrowThrowNotExists() argument 1625 RuntimeThrowPatternNonCoercible(JSThread *thread) RuntimeThrowPatternNonCoercible() argument 1633 RuntimeThrowDeleteSuperProperty(JSThread *thread) RuntimeThrowDeleteSuperProperty() argument 1641 RuntimeThrowUndefinedIfHole(JSThread *thread, const JSHandle<EcmaString> &obj) RuntimeThrowUndefinedIfHole() argument 1651 RuntimeThrowIfNotObject(JSThread *thread) RuntimeThrowIfNotObject() argument 1656 RuntimeThrowConstAssignment(JSThread *thread, const JSHandle<EcmaString> &value) RuntimeThrowConstAssignment() argument 1667 RuntimeLdGlobalRecord(JSThread *thread, JSTaggedValue key) RuntimeLdGlobalRecord() argument 1679 RuntimeTryLdGlobalByName(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &prop) RuntimeTryLdGlobalByName() argument 1690 RuntimeTryUpdateGlobalRecord(JSThread *thread, JSTaggedValue prop, JSTaggedValue value) RuntimeTryUpdateGlobalRecord() argument 1709 RuntimeThrowReferenceError(JSThread *thread, const JSHandle<JSTaggedValue> &prop, const char *desc) RuntimeThrowReferenceError() argument 1722 RuntimeLdGlobalVarFromProto(JSThread *thread, const JSHandle<JSTaggedValue> &globalObj, const JSHandle<JSTaggedValue> &prop) RuntimeLdGlobalVarFromProto() argument 1733 RuntimeStGlobalVar(JSThread *thread, const JSHandle<JSTaggedValue> &prop, const JSHandle<JSTaggedValue> &value) RuntimeStGlobalVar() argument 1743 RuntimeToNumber(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeToNumber() argument 1748 RuntimeToNumeric(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeToNumeric() argument 1753 RuntimeDynamicImport(JSThread *thread, const JSHandle<JSTaggedValue> &specifier, const JSHandle<JSTaggedValue> &func) RuntimeDynamicImport() argument 1794 RuntimeEq(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeEq() argument 1802 RuntimeNotEq(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeNotEq() argument 1810 RuntimeLess(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeLess() argument 1818 RuntimeLessEq(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeLessEq() argument 1826 RuntimeGreater(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeGreater() argument 1834 RuntimeGreaterEq(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeGreaterEq() argument 1843 RuntimeAdd2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeAdd2() argument 1883 RuntimeShl2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeShl2() argument 1913 RuntimeShr2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeShr2() argument 1939 RuntimeSub2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeSub2() argument 1959 RuntimeMul2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeMul2() argument 1981 RuntimeDiv2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeDiv2() argument 2009 RuntimeMod2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeMod2() argument 2038 RuntimeAshr2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeAshr2() argument 2064 RuntimeAnd2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeAnd2() argument 2090 RuntimeOr2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeOr2() argument 2116 RuntimeXor2(JSThread *thread, const JSHandle<JSTaggedValue> &left, const JSHandle<JSTaggedValue> &right) RuntimeXor2() argument 2142 RuntimeToJSTaggedValueWithInt32(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeToJSTaggedValueWithInt32() argument 2150 RuntimeToJSTaggedValueWithUint32(JSThread *thread, const JSHandle<JSTaggedValue> &value) RuntimeToJSTaggedValueWithUint32() argument 2157 RuntimeCreateEmptyObject([[maybe_unused]] JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv> globalEnv) RuntimeCreateEmptyObject() argument 2165 RuntimeCreateEmptyArray([[maybe_unused]] JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv> globalEnv) RuntimeCreateEmptyArray() argument 2173 RuntimeGetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, uint32_t startIdx) RuntimeGetUnmapedArgs() argument 2185 RuntimeCopyRestArgs(JSThread *thread, JSTaggedType *sp, uint32_t restNumArgs, uint32_t startIdx) RuntimeCopyRestArgs() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | tagged_value_test.cpp | 41 JSHandle<JSTaggedValue> stringV(thread->GetEcmaVM()->GetFactory()->NewFromASCII(data)); in NumberFromASCII() 42 return JSTaggedValue::ToNumber(thread, stringV); in NumberFromASCII() 135 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, intV)); in HWTEST_F_L0() 139 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, doubleV)); in HWTEST_F_L0() 143 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, undefinedV)); in HWTEST_F_L0() 147 result = JSTaggedValue::ToPrimitive(thread, JSHandle<JSTaggedValue>(thread, hole in HWTEST_F_L0() 674 CheckOkString(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, CString &rightCStr) CheckOkString() argument [all...] |
H A D | js_finalization_registry_test.cpp | 42 static JSHandle<JSTaggedValue> CreateFinalizationRegistry(JSThread *thread) in CreateFinalizationRegistry() argument 44 auto vm = thread->GetEcmaVM(); in CreateFinalizationRegistry() 51 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*finaRegFunc), 6); in CreateFinalizationRegistry() 56 auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo); in CreateFinalizationRegistry() 59 JSHandle<JSTaggedValue> finalizationRegistryHandle(thread, finalizationRegistry); in CreateFinalizationRegistry() 60 TestHelper::TearDownFrame(thread, prev); in CreateFinalizationRegistry() 76 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() 83 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0() 84 JSObject::SetProperty(thread, target, key, value); in HWTEST_F_L0() 85 JSHandle<JSTaggedValue> heldValue(thread, JSTaggedValu in HWTEST_F_L0() 145 RegisterUnRegisterTestCommon(JSThread *thread, bool testUnRegister = false, bool addFinReg = false) RegisterUnRegisterTestCommon() argument 190 RegisterUnRegisterTestCommonTwoTarget(JSThread *thread, bool testUnRegister = false) RegisterUnRegisterTestCommonTwoTarget() argument [all...] |
H A D | ecma_container_common.h | 58 static JSObject *JSObjectTestCreate(JSThread *thread) in JSObjectTestCreate() argument 60 [[maybe_unused]] ecmascript::EcmaHandleScope scope(thread); in JSObjectTestCreate() 61 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate() 69 static JSAPIArrayList *CreateArrayList(JSThread *thread) in CreateArrayList() argument 71 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateArrayList() 72 auto result = TestCommon::CreateContainerTaggedValue(thread, containers::ContainerTag::ArrayList); in CreateArrayList() 73 JSHandle<JSTaggedValue> constructor(thread, result); in CreateArrayList() 77 arrayList->SetElements(thread, taggedArray); in CreateArrayList() 81 static JSAPIPlainArray *CreatePlainArray(JSThread *thread) in CreatePlainArray() argument 83 ObjectFactory *factory = thread in CreatePlainArray() 95 CreateJSApiDeque(JSThread *thread) CreateJSApiDeque() argument 106 CreateHashMap(JSThread *thread) CreateHashMap() argument 118 CreateHashSet(JSThread *thread) CreateHashSet() argument 130 CreateLightWeightMap(JSThread *thread) CreateLightWeightMap() argument 147 CreateLightWeightSet(JSThread *thread) CreateLightWeightSet() argument 162 CreateLinkedList(JSThread *thread) CreateLinkedList() argument 175 CreateList(JSThread *thread) CreateList() argument 186 CreateQueue(JSThread *thread, int capacaty) CreateQueue() argument 200 CreateJSApiStack(JSThread *thread) CreateJSApiStack() argument 211 CreateTreeMap(JSThread *thread) CreateTreeMap() argument [all...] |
H A D | js_iterator_test.cpp | 39 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 41 data->Set(thread, 0, JSTaggedValue(1)); in HWTEST_F_L0() 42 data->Set(thread, 1, JSTaggedValue(1)); in HWTEST_F_L0() 43 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() 44 EXPECT_TRUE(array->IsArray(thread)); in HWTEST_F_L0() 45 JSHandle<JSArrayIterator> iter(JSIterator::GetIterator(thread, array)); in HWTEST_F_L0() 47 EXPECT_TRUE(iter->GetIteratedArray().IsArray(thread)); in HWTEST_F_L0() 52 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 53 JSHandle<JSTaggedValue> valueStr = thread->GlobalConstants()->GetHandledValueString(); in HWTEST_F_L0() 56 data->Set(thread, in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_shared_typedarray_test.cpp | 51 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 53 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 55 JSHandle<JSTaggedValue> val0(thread, JSTaggedValue(1)); in HWTEST_F_L0() 56 JSHandle<JSTaggedValue> val1(thread, JSTaggedValue(2)); in HWTEST_F_L0() 58 array->Set(thread, 0, val0); in HWTEST_F_L0() 59 array->Set(thread, 1, val1); in HWTEST_F_L0() 61 JSHandle<JSTaggedValue> jsarray(JSArray::CreateArrayFromList(thread, array)); in HWTEST_F_L0() 63 JSHandle<JSObject> globalObject(thread, env->GetGlobalObject()); in HWTEST_F_L0() 64 auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*typed_array), 6); in HWTEST_F_L0() 68 [[maybe_unused]] auto prev = TestHelper::SetupFrame(thread, ecmaRuntimeCallInfo in HWTEST_F_L0() [all...] |
H A D | builtins_regexp_test.cpp | 42 JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromASCII("\\w+"); in HWTEST_F_L0() 43 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromASCII("i"); in HWTEST_F_L0() 44 JSTaggedValue result = TestCommon::CreateJSRegexpByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0() 47 JSHandle<JSTaggedValue> regexpObject(thread, result); in HWTEST_F_L0() 48 ASSERT_TRUE(JSObject::IsRegExp(thread, regexpObject)); in HWTEST_F_L0() 50 JSHandle<JSRegExp> jsRegexp(thread, JSRegExp::Cast(regexpObject->GetTaggedObject())); in HWTEST_F_L0() 51 JSHandle<JSTaggedValue> originalSource(thread, jsRegexp->GetOriginalSource()); in HWTEST_F_L0() 53 JSHandle<JSTaggedValue> originalFlags(thread, BuiltinsRegExp::FlagsBitsToString(thread, flagsBits)); in HWTEST_F_L0() 61 JSHandle<EcmaString> pattern = thread in HWTEST_F_L0() 233 ExecCommon(JSThread* thread, EcmaVM* instance, JSHandle<JSTaggedValue>& execResult, JSHandle<EcmaString>& inputString, std::vector<JSHandle<EcmaString>>& result) ExecCommon() argument [all...] |
H A D | builtins_shared_array_test.cpp | 90 JSThread *thread = argv->GetThread(); in TestFlatMapFunc() local 91 JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString(); in TestFlatMapFunc() 92 JSSharedArray *arr = JSSharedArray::Cast(JSSharedArray::ArrayCreate(thread, JSTaggedNumber(0)) \ in TestFlatMapFunc() 95 JSHandle<JSObject> obj(thread, arr); in TestFlatMapFunc() 96 auto property = JSSharedArray::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle, in TestFlatMapFunc() 100 JSHandle<JSTaggedValue> key(thread, JSTaggedValue(0)); in TestFlatMapFunc() 101 PropertyDescriptor desc(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(accumulator)), in TestFlatMapFunc() 103 JSSharedArray::DefineOwnProperty(thread, obj, key, desc, SCheckMode::SKIP); in TestFlatMapFunc() 196 JSHandle<JSFunction> array(thread in HWTEST_F_L0() 224 SharedArrayDefineOwnPropertyTest(JSThread* thread, JSHandle<JSObject>& obj, std::vector<int>& vals) SharedArrayDefineOwnPropertyTest() argument 236 SharedArrayDefineOwnPropertyTest(JSThread* thread, JSHandle<JSTaggedValue>& obj, std::vector<int>& vals) SharedArrayDefineOwnPropertyTest() argument 249 SharedArrayCheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) SharedArrayCheckKeyValueCommon() argument 1428 JSThread *thread = argv->GetThread(); TestSharedArraySetProperty() local [all...] |
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_shared_array.cpp | 24 JSTaggedValue JSSharedArray::LengthGetter([[maybe_unused]] JSThread *thread, const JSHandle<JSObject> &self, in LengthGetter() argument 27 [[maybe_unused]] ConcurrentApiScope<JSSharedArray> scope(thread, JSHandle<JSTaggedValue>::Cast(self), in LengthGetter() 29 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, JSTaggedValue::Exception()); in LengthGetter() 33 bool JSSharedArray::DummyLengthSetter([[maybe_unused]] JSThread *thread, in DummyLengthSetter() argument 42 bool JSSharedArray::LengthSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTaggedValue> &value, in LengthSetter() argument 45 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, false); in LengthSetter() 47 if (!JSTaggedValue::ToArrayLength(thread, value, &newLen) && mayThrow) { in LengthSetter() 48 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, false); in LengthSetter() 56 if (!IsArrayLengthWritable(thread, self)) { in LengthSetter() 58 THROW_TYPE_ERROR_AND_RETURN(thread, GET_MESSAGE_STRIN in LengthSetter() 75 ArrayCreate(JSThread *thread, JSTaggedNumber length, ArrayMode mode) ArrayCreate() argument 83 ArrayCreate(JSThread *thread, JSTaggedNumber length, const JSHandle<JSTaggedValue> &newTarget, ArrayMode mode) ArrayCreate() argument 117 ArraySpeciesCreate(JSThread *thread, const JSHandle<JSObject> &originalArray, JSTaggedNumber length) ArraySpeciesCreate() argument 204 SetCapacity(const JSThread *thread, const JSHandle<TaggedArray> &array, uint32_t capa) SetCapacity() argument 213 SetCapacity(JSThread *thread, const JSHandle<JSObject> &array, uint32_t oldLen, uint32_t newLen, bool isNew) SetCapacity() argument 233 ArraySetLength(JSThread *thread, const JSHandle<JSObject> &array, const PropertyDescriptor &desc) ArraySetLength() argument 306 PropertyKeyToArrayIndex(JSThread *thread, const JSHandle<JSTaggedValue> &key, uint32_t *output) PropertyKeyToArrayIndex() argument 312 DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc, SCheckMode sCheckMode) DefineOwnProperty() argument 351 IsLengthString(JSThread *thread, const JSHandle<JSTaggedValue> &key) IsLengthString() argument 356 CreateArrayFromList(JSThread *thread, const JSHandle<TaggedArray> &elements) CreateArrayFromList() argument 375 FastGetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index) FastGetPropertyByValue() argument 383 FastGetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, SCheckMode sCheckMode) FastGetPropertyByValue() argument 392 FastSetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index, const JSHandle<JSTaggedValue> &value) FastSetPropertyByValue() argument 398 FastSetPropertyByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value) FastSetPropertyByValue() argument 405 GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, SCheckMode sCheckMode) GetProperty() argument 422 SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value, bool mayThrow, SCheckMode sCheckMode) SetProperty() argument 441 SetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t index, const JSHandle<JSTaggedValue> &value, bool mayThrow, SCheckMode sCheckMode) SetProperty() argument 461 Sort(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &fn) Sort() argument 511 IncludeInSortedValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &value) IncludeInSortedValue() argument 537 CheckAndCopyArray(const JSThread *thread, JSHandle<JSSharedArray> obj) CheckAndCopyArray() argument 556 DeleteInElementMode(const JSThread *thread, JSHandle<JSSharedArray> &obj) DeleteInElementMode() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | ic_compare_op.cpp | 21 JSTaggedValue CompareOp::EqualWithIC(JSThread* thread, JSTaggedValue left, in EqualWithIC() argument 24 INTERPRETER_TRACE(thread, EqualWithIC); in EqualWithIC() 42 JSHandle<JSTaggedValue> leftHandle(thread, left); in EqualWithIC() 43 JSHandle<JSTaggedValue> rightHandle(thread, right); in EqualWithIC() 44 rightDouble = JSTaggedValue::ToNumber(thread, rightHandle).GetNumber(); in EqualWithIC() 45 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, JSTaggedValue::False()); in EqualWithIC() 71 JSHandle<JSTaggedValue> leftHandle(thread, left); in EqualWithIC() 72 JSHandle<JSTaggedValue> rightHandle(thread, right); in EqualWithIC() 73 JSHandle<JSTaggedValue> rightPrimitive(thread, JSTaggedValue::ToPrimitive(thread, rightHandl in EqualWithIC() 206 NotEqualWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) NotEqualWithIC() argument 214 Compare(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) Compare() argument 425 LessWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) LessWithIC() argument 434 LessEqWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) LessEqWithIC() argument 443 GreaterWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) GreaterWithIC() argument 452 GreaterEqWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) GreaterEqWithIC() argument [all...] |