/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_tagged_value.cpp | 82 JSTaggedNumber JSTaggedValue::ToNumber(JSThread *thread, JSTaggedValue tagged) in ToNumber() argument 85 if (tagged.IsInt() || tagged.IsDouble()) { in ToNumber() 86 return JSTaggedNumber(tagged); in ToNumber() 89 switch (tagged.GetRawData()) { in ToNumber() 106 if (tagged.IsString()) { in ToNumber() 107 return StringToNumber(tagged); in ToNumber() 109 if (tagged.IsECMAObject()) { in ToNumber() 110 JSHandle<JSTaggedValue>taggedHandle(thread, tagged); in ToNumber() 115 if (tagged in ToNumber() 124 ToNumber(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToNumber() argument 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 308 ToPropertyKey(JSThread *thread, const JSHandle<JSTaggedValue> &tagged) ToPropertyKey() 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 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 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 1667 StringToNumber(JSTaggedValue tagged) StringToNumber() argument 1696 ToNumeric(JSThread *thread, JSHandle<JSTaggedValue> tagged) ToNumeric() argument [all...] |
H A D | ecma_runtime_call_info.h | 82 inline void SetNewTarget(const JSTaggedValue tagged) in SetNewTarget() 84 SetArg(NEW_TARGET_INDEX, tagged); in SetNewTarget() 87 inline void SetFunction(const JSTaggedValue tagged) in SetFunction() 89 SetArg(FUNC_INDEX, tagged); in SetFunction() 92 inline void SetThis(const JSTaggedValue tagged) in SetThis() 94 SetArg(THIS_INDEX, tagged); in SetThis() 97 inline void SetCallArg(uint32_t idx, const JSTaggedValue tagged) in SetCallArg() 100 SetArg(idx + FIRST_ARGS_INDEX, tagged); in SetCallArg() 242 inline void SetArg(uint32_t idx, const JSTaggedValue tagged) 246 *reinterpret_cast<JSTaggedValue *>(addr) = tagged; [all...] |
H A D | js_tagged_value.h | 115 ASSERT_PRINT(!IsImpureNaN(v), "pureNaN will break the encoding of tagged double: " in JSTaggedValue() 144 ASSERT_PRINT(IsHeapObject() && ((value_ & TAG_WEAK) == TAG_WEAK), "The tagged value is not a weak ref."); in RemoveWeakTag() 282 // Tests if the double value would break tagged double encoding. in IsImpureNaN() 361 static JSTaggedValue OrdinaryToPrimitive(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, 365 static JSTaggedValue ToPrimitive(JSThread *thread, const JSHandle<JSTaggedValue> &tagged, 368 static JSTaggedNumber ToNumber(JSThread *thread, JSTaggedValue tagged); 369 static JSTaggedNumber ToNumber(JSThread *thread, const JSHandle<JSTaggedValue> &tagged); 370 static JSTaggedValue ToBigInt(JSThread *thread, const JSHandle<JSTaggedValue> &tagged); 371 static JSTaggedValue ToBigInt64(JSThread *thread, const JSHandle<JSTaggedValue> &tagged); 372 static JSTaggedValue ToBigUint64(JSThread *thread, const JSHandle<JSTaggedValue> &tagged); [all...] |
H A D | js_tagged_number.h | 166 inline static JSTaggedNumber FromIntOrDouble(JSThread *thread, JSTaggedValue tagged) in FromIntOrDouble() argument 168 if (tagged.IsInt() || tagged.IsDouble()) { in FromIntOrDouble() 169 return JSTaggedNumber(tagged); in FromIntOrDouble()
|
H A D | js_typed_array.cpp | 643 JSTaggedNumber JSTypedArray::NonEcmaObjectToNumber(JSThread *thread, const JSTaggedValue tagged) in NonEcmaObjectToNumber() argument 645 ASSERT_PRINT(!tagged.IsECMAObject(), "tagged must not be EcmaObject"); in NonEcmaObjectToNumber() 646 if (tagged.IsInt() || tagged.IsDouble()) { in NonEcmaObjectToNumber() 647 return JSTaggedNumber(tagged); in NonEcmaObjectToNumber() 649 if (tagged.IsString()) { in NonEcmaObjectToNumber() 650 return JSTaggedValue::StringToDouble(tagged); in NonEcmaObjectToNumber() 652 switch (tagged.GetRawData()) { in NonEcmaObjectToNumber() 668 if (tagged in NonEcmaObjectToNumber() [all...] |
H A D | js_typed_array.h | 101 static JSTaggedNumber NonEcmaObjectToNumber(JSThread *thread, const JSTaggedValue tagged);
|
H A D | js_tagged_value-inl.h | 1385 inline JSTaggedNumber JSTaggedValue::StringToDouble(JSTaggedValue tagged) in StringToDouble() argument 1387 auto strObj = static_cast<EcmaString *>(tagged.GetTaggedObject()); in StringToDouble()
|
/arkcompiler/toolchain/tooling/base/ |
H A D | pt_types.cpp | 116 std::unique_ptr<RemoteObject> RemoteObject::FromTagged(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) in FromTagged() argument 118 if (tagged->IsNull() || tagged->IsUndefined() || in FromTagged() 119 tagged->IsBoolean() || tagged->IsNumber() || in FromTagged() 120 tagged->IsBigInt(ecmaVm)) { in FromTagged() 121 return std::make_unique<PrimitiveRemoteObject>(ecmaVm, tagged); in FromTagged() 123 if (tagged->IsString(ecmaVm)) { in FromTagged() 124 return std::make_unique<StringRemoteObject>(ecmaVm, Local<StringRef>(tagged)); in FromTagged() 126 if (tagged in FromTagged() 240 AppendingHashToDescription(const EcmaVM *ecmaVm, Local<JSValueRef> tagged, std::string &description) AppendingHashToDescription() argument 254 AppendingSendableDescription(Local<JSValueRef> tagged, std::string &description) AppendingSendableDescription() argument 261 ResolveClassNameToDescription(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) ResolveClassNameToDescription() argument 271 PrimitiveRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) PrimitiveRemoteObject() argument 303 StringRemoteObject([[maybe_unused]] const EcmaVM *ecmaVm, Local<StringRef> tagged) StringRemoteObject() argument 313 SymbolRemoteObject(const EcmaVM *ecmaVm, Local<SymbolRef> tagged) SymbolRemoteObject() argument 325 FunctionRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) FunctionRemoteObject() argument 338 GeneratorFunctionRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) GeneratorFunctionRemoteObject() argument 351 ObjectRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged, const std::string &classname) ObjectRemoteObject() argument 365 ObjectRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged, const std::string &classname, const std::string &subtype) ObjectRemoteObject() argument 380 DescriptionForObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) DescriptionForObject() argument 533 DescriptionForNativePointer(const Local<NativePointerRef> &tagged) DescriptionForNativePointer() argument 541 DescriptionForArray(const EcmaVM *ecmaVm, Local<ArrayRef> tagged) DescriptionForArray() argument 547 DescriptionForRegexp(const EcmaVM *ecmaVm, Local<RegExpRef> tagged) DescriptionForRegexp() argument 554 DescriptionForDate(const EcmaVM *ecmaVm, Local<DateRef> tagged) DescriptionForDate() argument 560 DescriptionForMap(const EcmaVM *ecmaVm, Local<MapRef> tagged) DescriptionForMap() argument 606 DescriptionForWeakMap(const EcmaVM *ecmaVm, Local<WeakMapRef> tagged) DescriptionForWeakMap() argument 650 DescriptionForSet(const EcmaVM *ecmaVm, Local<SetRef> tagged) DescriptionForSet() argument 685 DescriptionForWeakSet(const EcmaVM *ecmaVm, Local<WeakSetRef> tagged) DescriptionForWeakSet() argument 718 DescriptionForDataView(Local<DataViewRef> tagged) DescriptionForDataView() argument 724 DescriptionForError(const EcmaVM *ecmaVm, Local<JSValueRef> tagged) DescriptionForError() argument 757 DescriptionForArrayBuffer(const EcmaVM *ecmaVm, Local<ArrayBufferRef> tagged) DescriptionForArrayBuffer() argument 764 DescriptionForSharedArrayBuffer(const EcmaVM *ecmaVm, Local<ArrayBufferRef> tagged) DescriptionForSharedArrayBuffer() argument 771 DescriptionForUint8Array(const EcmaVM *ecmaVm, Local<TypedArrayRef> tagged) DescriptionForUint8Array() argument 778 DescriptionForInt8Array(const EcmaVM *ecmaVm, Local<TypedArrayRef> tagged) DescriptionForInt8Array() argument 785 DescriptionForInt16Array(const EcmaVM *ecmaVm, Local<TypedArrayRef> tagged) DescriptionForInt16Array() argument 792 DescriptionForInt32Array(const EcmaVM *ecmaVm, Local<TypedArrayRef> tagged) DescriptionForInt32Array() argument 799 DescriptionForPrimitiveNumber(const EcmaVM *ecmaVm, const Local<JSValueRef> &tagged) DescriptionForPrimitiveNumber() argument 806 DescriptionForPrimitiveString(const EcmaVM *ecmaVm, const Local<JSValueRef> &tagged) DescriptionForPrimitiveString() argument 813 DescriptionForPrimitiveBoolean(const EcmaVM *ecmaVm, const Local<JSValueRef> &tagged) DescriptionForPrimitiveBoolean() argument 820 DescriptionForGeneratorObject(const EcmaVM *ecmaVm, const Local<JSValueRef> &tagged) DescriptionForGeneratorObject() argument [all...] |
H A D | pt_types.h | 261 static std::unique_ptr<RemoteObject> FromTagged(const EcmaVM *ecmaVm, Local<JSValueRef> tagged); 264 static void AppendingHashToDescription(const EcmaVM *ecmaVM, Local<JSValueRef> tagged, 266 static void AppendingSendableDescription(Local<JSValueRef> tagged, std::string &description); 267 static std::string ResolveClassNameToDescription(const EcmaVM *ecmaVM, Local<JSValueRef> tagged); 523 PrimitiveRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged); 529 StringRemoteObject(const EcmaVM *ecmaVm, Local<StringRef> tagged); 535 SymbolRemoteObject(const EcmaVM *ecmaVm, Local<SymbolRef> tagged); 539 std::string DescriptionForSymbol(const EcmaVM *ecmaVm, Local<SymbolRef> tagged) const; 544 FunctionRemoteObject(const EcmaVM *ecmaVm, Local<JSValueRef> tagged); 548 std::string DescriptionForFunction(const EcmaVM *ecmaVm, Local<FunctionRef> tagged) cons [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_dataview_test.cpp | 171 JSTaggedValue tagged = CreateBuiltinsDataviewArrayBuffer(thread, length); in CreateBuiltinsDataView() local 172 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in CreateBuiltinsDataView() 198 JSTaggedValue tagged = CreateBuiltinsDataviewArrayBuffer(thread, 10); in HWTEST_F_L0() local 199 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 230 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 10, 1); in HWTEST_F_L0() local 231 JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 252 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 10, 2); in HWTEST_F_L0() local 253 JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 273 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 10, 1); in HWTEST_F_L0() local 274 JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged in HWTEST_F_L0() 283 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 298 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 312 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); // 8: data len GetCommonInt32() local 342 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 355 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 367 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 383 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 12, 0); HWTEST_F_L0() local 402 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 417 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 432 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 448 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 4, 0); HWTEST_F_L0() local 462 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 8, 0); HWTEST_F_L0() local 477 JSTaggedValue tagged = CreateBuiltinsDataView(thread, 10, 2); BigInt64Common() local [all...] |
H A D | builtins_sendable_arraybuffer_test.cpp | 35 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 10); in SendableArrayBufferSliceTest() local 37 thread, JSSendableArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in SendableArrayBufferSliceTest() 88 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 5); in HWTEST_F_L0() local 90 thread, JSSendableArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 104 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 5); in HWTEST_F_L0() local 106 thread, JSSendableArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 154 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsArrayBuffer(thread, 10); in HWTEST_F_L0() local 156 thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 171 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 10); in HWTEST_F_L0() local 173 thread, JSSendableArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged in HWTEST_F_L0() 266 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 5); HWTEST_F_L0() local 277 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 5); HWTEST_F_L0() local 311 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 5); HWTEST_F_L0() local 351 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSendableArrayBuffer(thread, 6); HWTEST_F_L0() local [all...] |
H A D | builtins_arraybuffer_test.cpp | 54 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsArrayBuffer(thread, 5); in HWTEST_F_L0() local 55 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 69 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsArrayBuffer(thread, 10); in HWTEST_F_L0() local 70 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0()
|
H A D | builtins_sharedarraybuffer_test.cpp | 65 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSharedArrayBuffer(thread, 18); in HWTEST_F_L0() local 66 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 79 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSharedArrayBuffer(thread, 10); in HWTEST_F_L0() local 80 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 121 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSharedArrayBuffer(thread, 10); in HWTEST_F_L0() local 123 JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0()
|
H A D | builtins_atomics_test.cpp | 401 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSharedArrayBuffer(thread, 0); in HWTEST_F_L0() local 402 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 619 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSharedArrayBuffer(thread, 4); in HWTEST_F_L0() local 620 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() 638 JSTaggedValue tagged = BuiltTestUtil::CreateBuiltinsSharedArrayBuffer(thread, 4); in HWTEST_F_L0() local 639 JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | lcr_circuit_builder.h | 140 GateRef tagged = ChangeTaggedPointerToInt64(x); in GetInt64OfTInt() local 141 return Int64And(tagged, Int64(~JSTaggedValue::TAG_MARK)); in GetInt64OfTInt() 146 GateRef tagged = ChangeTaggedPointerToInt64(x); in GetInt32OfTInt() local 147 return TruncInt64ToInt32(tagged); in GetInt32OfTInt() 187 GateRef tagged = ChangeTaggedPointerToInt64(x); in GetDoubleOfTDouble() local 188 GateRef val = Int64Sub(tagged, Int64(JSTaggedValue::DOUBLE_ENCODE_OFFSET)); in GetDoubleOfTDouble() 194 GateRef tagged = ChangeTaggedPointerToInt64(x); in GetBooleanOfTBoolean() local 195 return TruncInt64ToInt1(tagged); in GetBooleanOfTBoolean()
|
/arkcompiler/runtime_core/assembler/tests/ |
H A D | assembler_emitter_test.cpp | 822 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in HWTEST_F() local 825 EXPECT_EQ(tagged.GetFieldEncoding(), type); in HWTEST_F() 1223 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in HWTEST_F() local 1227 EXPECT_EQ(tagged, pda.GetReturnType()); in HWTEST_F() 1229 EXPECT_EQ(tagged, pda.GetArgType(0)); in HWTEST_F() 1287 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in HWTEST_F() local 1291 EXPECT_EQ(tagged, pda.GetReturnType()); in HWTEST_F() 1293 EXPECT_EQ(tagged, pda.GetArgType(0)); in HWTEST_F() 1349 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in HWTEST_F() local 1353 EXPECT_EQ(tagged, pd in HWTEST_F() [all...] |
H A D | emitter_test.cpp | 695 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in TEST() local 698 ASSERT_EQ(tagged, pda.GetReturnType()); in TEST() 700 ASSERT_EQ(tagged, pda.GetArgType(0)); in TEST() 730 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in TEST() local 733 ASSERT_EQ(tagged.GetFieldEncoding(), type); in TEST()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | mir_function.h | 1015 void SetFormalWordsTypeTagged(uint8 *tagged) in SetFormalWordsTypeTagged() argument 1017 formalWordsTypeTagged = tagged; in SetFormalWordsTypeTagged() 1028 void SetLocalWordsTypeTagged(uint8 *tagged) in SetLocalWordsTypeTagged() argument 1030 localWordsTypeTagged = tagged; in SetLocalWordsTypeTagged()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
H A D | debugger_api.cpp | 287 int32_t DebuggerApi::GetObjectHash(const EcmaVM *ecmaVM, const JSHandle<JSTaggedValue> &tagged) in GetObjectHash() argument 289 if (!tagged->IsECMAObject()) { in GetObjectHash() 292 bool hasHash = ECMAObject::Cast(tagged->GetTaggedObject())->HasHash(); in GetObjectHash() 295 auto ecmaObj = ECMAObject::Cast(tagged->GetTaggedObject()); in GetObjectHash() 300 return ECMAObject::Cast(tagged->GetTaggedObject())->GetHash(); in GetObjectHash() 304 void DebuggerApi::GetObjectClassName(const EcmaVM *ecmaVM, Local<JSValueRef> &tagged, std::string &className) in GetObjectClassName() argument 306 if (!tagged->IsObject(ecmaVM)) { in GetObjectClassName() 309 Local<JSValueRef> prototype = Local<ObjectRef>(tagged)->GetPrototype(ecmaVM); in GetObjectClassName()
|
H A D | debugger_api.h | 157 static int32_t GetObjectHash(const EcmaVM *ecmaVM, const JSHandle<JSTaggedValue> &tagged); 158 static void GetObjectClassName(const EcmaVM *ecmaVM, Local<JSValueRef> &tagged, std::string &className);
|
/arkcompiler/runtime_core/static_core/assembler/tests/ |
H A D | emitter_test.cpp | 704 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in TEST() local 707 ASSERT_EQ(tagged, pda.GetReturnType()); in TEST() 709 ASSERT_EQ(tagged, pda.GetArgType(0)); in TEST() 739 const auto tagged = panda_file::Type(panda_file::Type::TypeId::TAGGED); in TEST() local 742 ASSERT_EQ(tagged.GetFieldEncoding(), type); in TEST()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot_processor.h | 123 uint64_t SerializeTaggedField(JSTaggedType *tagged, CQueue<TaggedObject *> *queue,
|
H A D | snapshot_processor.cpp | 1587 uint64_t SnapshotProcessor::SerializeTaggedField(JSTaggedType *tagged, CQueue<TaggedObject *> *queue, in SerializeTaggedField() argument 1590 JSTaggedValue taggedValue(*tagged); in SerializeTaggedField()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi_expo.cpp | 248 JSHandle<JSTaggedValue> tagged = JSNApiHelper::ToJSHandle(this); in IntegerValue() local 249 LOG_IF_SPECIAL(tagged, ERROR); in IntegerValue() 250 if (tagged->IsNumber()) { in IntegerValue() 251 if (!NumberHelper::IsFinite(tagged.GetTaggedValue()) || NumberHelper::IsNaN(tagged.GetTaggedValue())) { in IntegerValue() 254 return NumberHelper::DoubleToInt64(tagged->GetNumber()); in IntegerValue() 257 JSTaggedNumber number = JSTaggedValue::ToInteger(thread, tagged); in IntegerValue() 266 JSHandle<JSTaggedValue> tagged = JSNApiHelper::ToJSHandle(this); in Uint32Value() local 268 if (!tagged->IsECMAObject()) { in Uint32Value() 269 number = JSTaggedValue::ToUint32(thread, tagged); in Uint32Value() 282 JSHandle<JSTaggedValue> tagged = JSNApiHelper::ToJSHandle(this); Int32Value() local [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 159 JSTaggedValue tagged = JSFunction::Call(info); in RuntimeInstanceofByHandler() local 162 return tagged; in RuntimeInstanceofByHandler() 2251 auto tagged = RuntimeOptConstruct(thread, func, newTarget, preArgs, args); 2253 return tagged;
|