| /arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
| D | snapshot_processor.cpp | 176 reinterpret_cast<uintptr_t>(nullptr), 177 reinterpret_cast<uintptr_t>(BuiltinsMap::Species), 178 reinterpret_cast<uintptr_t>(StringIterator::Next), 179 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeInvokeSelf), 180 reinterpret_cast<uintptr_t>(Function::FunctionConstructor), 181 reinterpret_cast<uintptr_t>(JSFunction::AccessCallerArgumentsThrowTypeError), 182 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeApply), 183 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeBind), 184 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeCall), 185 reinterpret_cast<uintptr_t>(Function::FunctionPrototypeToString), [all …]
|
| /arkcompiler/runtime_core/libabckit/src/mock/ |
| D | mock_values.h | 60 #define DEFAULT_FILE (reinterpret_cast<AbckitFile *>(0xdeadffff)) 62 #define DEFAULT_GRAPH (reinterpret_cast<AbckitGraph *>(0xdeadeeee)) 64 #define DEFAULT_VOID (reinterpret_cast<void *>(0xdead0001)) 66 #define DEFAULT_CB (reinterpret_cast<void *>(0xdead0002)) 68 #define DEFAULT_CORE_MODULE (reinterpret_cast<AbckitCoreModule *>(0xdead0003)) 70 #define DEFAULT_STRING (reinterpret_cast<AbckitString *>(0xdead0005)) 72 #define DEFAULT_CORE_NAMESPACE (reinterpret_cast<AbckitCoreNamespace *>(0xdead0006)) 74 #define DEFAULT_CORE_IMPORT_DESCRIPTOR (reinterpret_cast<AbckitCoreImportDescriptor *>(0xdead0006)) 76 #define DEFAULT_CORE_EXPORT_DESCRIPTOR (reinterpret_cast<AbckitCoreExportDescriptor *>(0xdead0007)) 78 #define DEFAULT_CORE_CLASS (reinterpret_cast<AbckitCoreClass *>(0xdead0008)) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/plugin_conversion_rule/ |
| D | plugin_conversion_rule_part_iii.cpp | 31 auto *allocatorE2p = reinterpret_cast<Context *>(context)->allocator; in TEST_F() 33 {reinterpret_cast<Context *>(context)->allocator->Adapter()}; in TEST_F() 36 … auto *statementListElement1E2p = reinterpret_cast<ir::Statement *>(statementListElement1); in TEST_F() 40 auto *identE2p = reinterpret_cast<ir::Identifier *>(ident); in TEST_F() 42 auto *programE2p = reinterpret_cast<parser::Program *>(program); in TEST_F() 43 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 48 return reinterpret_cast<es2panda_AstNode *>(astNode); in TEST_F() 63 auto *allocatorE2p = reinterpret_cast<Context *>(context)->allocator; in TEST_F() 64 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 67 … std::forward<ir::FunctionSignature>(*reinterpret_cast<ir::FunctionSignature *>(signature)), in TEST_F() [all …]
|
| D | plugin_conversion_rule_part_i.cpp | 39 …ArenaVector<ir::TypeNode *> typesArenaVector {reinterpret_cast<Context *>(context)->allocator->Ada… in TEST_F() 42 auto *typesElement1E2p = reinterpret_cast<ir::TypeNode *>(typesElement1); in TEST_F() 46 auto *allocatorE2p = reinterpret_cast<Context *>(context)->allocator; in TEST_F() 47 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 51 return reinterpret_cast<es2panda_AstNode *>(astNode); in TEST_F() 66 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 68 …auto resultVector = ((reinterpret_cast< ir::AnnotationAllowed<ir::AstNode> *>(classInstance))->Ann… in TEST_F() 72 auto toPush = reinterpret_cast< es2panda_AstNode *>(resultVector.at(i)); in TEST_F() 73 apiRes[i] = reinterpret_cast<es2panda_AstNode *>(toPush); in TEST_F() 93 auto *relationE2p = reinterpret_cast<checker::TypeRelation *>(relation); in TEST_F() [all …]
|
| D | plugin_conversion_rule_part_iv.cpp | 30 auto *signatureInfoE2p = reinterpret_cast<checker::SignatureInfo *>(signatureInfo); in TEST_F() 31 auto *returnTypeE2p = reinterpret_cast<checker::Type *>(returnType); in TEST_F() 32 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 34 return reinterpret_cast<es2panda_Signature *>(ctxAllocator->New<checker::Signature> in TEST_F() 49 auto apiRes = reinterpret_cast<const es2panda_SignatureInfo *>((reinterpret_cast< in TEST_F() 65 auto *checkerE2p = reinterpret_cast<Context *>(context)->checker; in TEST_F() 67 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 69 … return reinterpret_cast<es2panda_CheckerContext *>(ctxAllocator->New<checker::CheckerContext> in TEST_F() 84 auto apiRes = IrToE2pCheckerStatus((reinterpret_cast<const checker::CheckerContext *> in TEST_F() 100 auto *checkerE2p = reinterpret_cast<Context *>(context)->checker; in TEST_F() [all …]
|
| D | plugin_conversion_rule_part_ii.cpp | 27 auto *relationE2p = reinterpret_cast<checker::TypeRelation *>(relation); in TEST_F() 28 auto *otherE2p = reinterpret_cast<checker::Type *>(other); in TEST_F() 29 ((reinterpret_cast<checker::Type *>(classInstance))->Identical(relationE2p, otherE2p)); in TEST_F() 45 auto *sourceE2p = reinterpret_cast<checker::Type *>(source); in TEST_F() 46 auto *targetE2p = reinterpret_cast<checker::Type *>(target); in TEST_F() 47 auto apiRes = ((reinterpret_cast<checker::TypeRelation *>(classInstance)) in TEST_F() 63 auto *checkerE2p = reinterpret_cast<Context *>(context)->checker; in TEST_F() 64 auto *ctx = reinterpret_cast<Context *>(context); in TEST_F() 66 …return reinterpret_cast<es2panda_TypeRelation *>(ctxAllocator->New<checker::TypeRelation>(checkerE… in TEST_F() 82 auto *sourceE2p = reinterpret_cast<checker::IndexInfo *>(source); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/bindings/native/src/ |
| D | lsp.cpp | 45 …ctx->getCurrentTokenValue(reinterpret_cast<es2panda_Context *>(context), static_cast<std::size_t>(… in impl_getCurrentTokenValue() 54 …new DiagnosticReferences(ctx->getSemanticDiagnostics(reinterpret_cast<es2panda_Context *>(context)… in TS_INTEROP_2() 62 auto info = ctx->getClassPropertyInfo(reinterpret_cast<es2panda_Context *>(context), in TS_INTEROP_1() 70 auto info = reinterpret_cast<std::vector<FieldsInfo> *>(infoPtr); in TS_INTEROP_3() 81 auto info = reinterpret_cast<FieldsInfo *>(infoPtr); in TS_INTEROP_1() 88 auto info = reinterpret_cast<FieldsInfo *>(infoPtr); in TS_INTEROP_1() 99 auto info = reinterpret_cast<FieldListProperty *>(infoPtr); in TS_INTEROP_1() 106 auto info = reinterpret_cast<FieldListProperty *>(infoPtr); in TS_INTEROP_1() 117 auto info = reinterpret_cast<FieldListProperty *>(infoPtr); in TS_INTEROP_1() 124 auto info = reinterpret_cast<FieldListProperty *>(infoPtr); in TS_INTEROP_1() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/templates/intrinsics/ |
| D | get_intrinsics.inl.erb | 71 return reinterpret_cast<uintptr_t>(static_cast<Fp>(fmod)); 75 return reinterpret_cast<uintptr_t>(static_cast<Fp>(fmodf)); 79 return reinterpret_cast<uintptr_t>(static_cast<Fp>(ldexp)); 83 return reinterpret_cast<uintptr_t>(static_cast<Fp>(ldexpf)); 87 return reinterpret_cast<uintptr_t>(static_cast<Fp>(exp2)); 91 return reinterpret_cast<uintptr_t>(static_cast<Fp>(exp2f)); 95 return reinterpret_cast<uintptr_t>(static_cast<Fp>(memcpy)); 99 return reinterpret_cast<uintptr_t>(static_cast<Fp>(ark::intrinsics::Memset8)); 103 return reinterpret_cast<uintptr_t>(static_cast<Fp>(ark::intrinsics::Memset16)); 107 return reinterpret_cast<uintptr_t>(static_cast<Fp>(ark::intrinsics::Memset32)); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/bindings/native/src/generated/ |
| D | bridges.cpp | 25 const auto ctx = reinterpret_cast<es2panda_Context *>(context); in impl_CreateMemberExpression() 26 const auto objArg = reinterpret_cast<es2panda_AstNode *>(objectArg); in impl_CreateMemberExpression() 27 const auto prop = reinterpret_cast<es2panda_AstNode *>(property); in impl_CreateMemberExpression() 42 const auto _context = reinterpret_cast<es2panda_Context *>(context); in TS_INTEROP_6() 43 const auto _original = reinterpret_cast<es2panda_AstNode *>(original); in TS_INTEROP_6() 44 const auto _object_arg = reinterpret_cast<es2panda_AstNode *>(object_arg); in TS_INTEROP_6() 45 const auto _property = reinterpret_cast<es2panda_AstNode *>(property); in TS_INTEROP_6() 59 const auto _context = reinterpret_cast<es2panda_Context *>(context); in TS_INTEROP_7() 60 const auto _receiver = reinterpret_cast<es2panda_AstNode *>(receiver); in TS_INTEROP_7() 68 const auto _context = reinterpret_cast<es2panda_Context *>(context); in TS_INTEROP_2() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | json_helper_test.cpp | 35 Span<const uint8_t> sp1(reinterpret_cast<const uint8_t*>("Hello World"), 11); in HWTEST_F_L0() 36 Span<const uint8_t> sp2(reinterpret_cast<const uint8_t*>("0123456789"), 10); in HWTEST_F_L0() 37 Span<const uint8_t> sp3(reinterpret_cast<const uint8_t*>("!#$%&'()*+,-./:;=?@[]^_`{|}~"), 28); in HWTEST_F_L0() 51 Span<const uint8_t> sp1(reinterpret_cast<const uint8_t*>("\""), 1); in HWTEST_F_L0() 52 Span<const uint8_t> sp2(reinterpret_cast<const uint8_t*>("\\"), 1); in HWTEST_F_L0() 53 Span<const uint8_t> sp3(reinterpret_cast<const uint8_t*>("\b"), 1); in HWTEST_F_L0() 54 Span<const uint8_t> sp4(reinterpret_cast<const uint8_t*>("\f"), 1); in HWTEST_F_L0() 55 Span<const uint8_t> sp5(reinterpret_cast<const uint8_t*>("\n"), 1); in HWTEST_F_L0() 56 Span<const uint8_t> sp6(reinterpret_cast<const uint8_t*>("\r"), 1); in HWTEST_F_L0() 57 Span<const uint8_t> sp7(reinterpret_cast<const uint8_t*>("\t"), 1); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | addr_map.h | 30 : AddrMap(reinterpret_cast<uintptr_t>(startPtr), reinterpret_cast<uintptr_t>(endPtr)) in AddrMap() 35 … : AddrMap(reinterpret_cast<uintptr_t>(startPtr), reinterpret_cast<uintptr_t>(startPtr) + size - 1) in AddrMap() 46 return IsInAddressSpace(reinterpret_cast<uintptr_t>(ptr)); in IsInAddressSpace() 52 return reinterpret_cast<PtrType>(addrRange_.Start()); in AddrStart() 58 return reinterpret_cast<PtrType>(addrRange_.Finish()); in AddrEnd() 68 … return Mark(reinterpret_cast<uintptr_t>(addrStartPtr), reinterpret_cast<uintptr_t>(addrEndPtr)); in Mark() 83 … return Clear(reinterpret_cast<uintptr_t>(addrStartPtr), reinterpret_cast<uintptr_t>(addrEndPtr)); in Clear() 93 …return HasMarks(reinterpret_cast<uintptr_t>(addrStartPtr), reinterpret_cast<uintptr_t>(addrEndPtr)… in HasMarks() 111 *ptr = reinterpret_cast<PtrType>(addrRange_.IndexOf(offset)); in GetFirstCommonMark() 128 start = reinterpret_cast<PtrType>(addr); in EnumerateMarkedBlocks() [all …]
|
| /arkcompiler/runtime_core/libabckit/src/wrappers/ |
| D | abcfile_wrapper.cpp | 38 delete reinterpret_cast<const panda_file::File *>(abcFile_); in ~FileWrapper() 43 return panda_file::File::EntityId(reinterpret_cast<uintptr_t>(method)); in MethodCast() 48 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in ResolveOffsetByIndex() 54 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetMethodTotalArgumentsCount() 65 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetMethodArgumentsCount() 74 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetMethodRegistersCount() 83 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetMethodCode() 92 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetMethodCodeSize() 103 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetMethodSourceLanguage() 116 auto *pf = reinterpret_cast<const panda_file::File *>(abcFile_); in GetClassIdForMethod() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/public/ |
| D | cppToCTypes.yaml | 40 {reinterpret_cast<Context *>(context)->allocator->Adapter()};\n 49 \tauto *ctx = reinterpret_cast<Context *>(context);\n 57 …\t\tapiRes[i] = reinterpret_cast<|new_args.0.type.const| |new_args.0.type.name| |new_args.0.type.p… 84 … auto *|arg_name|ArenaVector = reinterpret_cast<Context *>(context)->allocator->New<ArenaVector< 86 …|es2panda_arg.type.template_args.0.type.ptr_depth|>>(reinterpret_cast<Context *>(context)->allocat… 95 \tauto *ctx = reinterpret_cast<Context *>(context);\n 103 …\t\tapiRes[i] = reinterpret_cast<|new_args.0.type.const| |new_args.0.type.name| |new_args.0.type.p… 138 auto *ctx = reinterpret_cast<Context *>(context);\n 147 …\t\tapiRes[i] = reinterpret_cast<|new_args.0.type.const| |new_args.0.type.name| |new_args.0.type.p… 176 *|arg_name|Vector = reinterpret_cast<Context *>(context)->allocator->New<std::vector< [all …]
|
| D | es2panda_lib.cpp | 97 char *res = reinterpret_cast<char *>(allocator->Alloc(utf8.size() + 1)); in StringViewToCString() 115 char *res = reinterpret_cast<char *>(allocator->Alloc(str.length() + 1)); in StdStringToCString() 155 auto import = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData->import); in DynamicImportDataToE2pPtr() 156 auto specifier = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData->specifier); in DynamicImportDataToE2pPtr() 157 auto variable = reinterpret_cast<es2panda_Variable *>(dynamicImportData->variable); in DynamicImportDataToE2pPtr() 168 auto import = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData.import); in DynamicImportDataToE2p() 169 auto specifier = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData.specifier); in DynamicImportDataToE2p() 170 auto variable = reinterpret_cast<es2panda_Variable *>(dynamicImportData.variable); in DynamicImportDataToE2p() 237 char *res = reinterpret_cast<char *>(allocator->Alloc(len + 1)); in ArenaStrdup() 262 return reinterpret_cast<es2panda_Config *>(res); in CreateConfig() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | machine_code.cpp | 31 uintptr_t startPage = AlignDown(reinterpret_cast<uintptr_t>(textStart), pageSize); in SetPageProtect() 32 uintptr_t endPage = AlignUp(reinterpret_cast<uintptr_t>(textStart) + dataSize, pageSize); in SetPageProtect() 34 return PageProtect(reinterpret_cast<void*>(startPage), protSize, PAGE_PROT_EXEC_READWRITE); in SetPageProtect() 43 …if (memcpy_s(pText, desc.codeSizeAlign, reinterpret_cast<uint8_t*>(desc.codeAddr), desc.codeSize) … in MachineCodeCopyToCache() 52 reinterpret_cast<OHOS::Security::CodeSign::JitCodeSigner*>(desc.codeSigner); in MachineCodeCopyToCache() 53 …int err = OHOS::Security::CodeSign::CopyToJitCode(signer, pText, reinterpret_cast<void*>(desc.code… in MachineCodeCopyToCache() 61 delete reinterpret_cast<OHOS::Security::CodeSign::JitCodeSigner*>(desc.codeSigner); in MachineCodeCopyToCache() 65 reinterpret_cast<uint8_t*>(desc.codeAddr), in MachineCodeCopyToCache() 76 uint8_t *textStart = reinterpret_cast<uint8_t*>(GetText()); in SetText() 80 reinterpret_cast<uint8_t*>(desc.rodataAddrBeforeText), in SetText() [all …]
|
| D | tagged_object-inl.h | 37 reinterpret_cast<TaggedStateWord *>(this)->SetClass(reinterpret_cast<uintptr_t>(hclass)); in TransitionClassWithoutBarrier() 44 reinterpret_cast<TaggedStateWord *>(this)->SynchronizedSetGCStateWord(state); in SetFreeObjectClass() 61 …reinterpret_cast<TaggedStateWord *>(this)->SynchronizedSetClass(reinterpret_cast<uintptr_t>(hclass… in SynchronizedTransitionClass() 65 …reinterpret_cast<TaggedStateWord *>(this)->SynchronizedSetClass(reinterpret_cast<uintptr_t>(hclass… in SynchronizedTransitionClass() 71 …return reinterpret_cast<JSHClass *>(reinterpret_cast<const TaggedStateWord *>(this)->SynchronizedG… in SynchronizedGetClass()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/ |
| D | bouncing_peas_unit.cpp | 238 {"_skoala_createRedrawerPeer", reinterpret_cast<void *>(SkoalaCreateRedrawerPeer)}, 239 {"_skoala_drawPicture", reinterpret_cast<void *>(SkoalaDrawPicture)}, 240 {"_skoala_getFrame", reinterpret_cast<void *>(SkoalaGetFrame)}, 241 {"_skoala_getFrameWidth", reinterpret_cast<void *>(SkoalaGetFrameWidth)}, 242 {"_skoala_getFrameHeight", reinterpret_cast<void *>(SkoalaGetFrameHeight)}, 243 {"_skoala_initRedrawer", reinterpret_cast<void *>(SkoalaInitRedrawer)}, 244 {"_skoala_providePeerFactory", reinterpret_cast<void *>(SkoalaProvidePeerFactory)}, 245 {"_skoala_setPlatformAPI", reinterpret_cast<void *>(SkoalaSetPlatformApi)}, 246 {"_skoala_Canvas__1nDrawDrawable", reinterpret_cast<void *>(SkoalaCanvas1nDrawDrawable)}, 247 {"_skoala_Canvas__1nRestore", reinterpret_cast<void *>(SkoalaCanvas1nRestore)}, [all …]
|
| D | bouncing_peas_unit_napi.cpp | 274 … {{"_skoala_createRedrawerPeer", nullptr, reinterpret_cast<void *>(SkoalaCreateRedrawerPeer)}, in InitExports() 275 {"_skoala_drawPicture", nullptr, reinterpret_cast<void *>(SkoalaDrawPicture)}, in InitExports() 276 {"_skoala_getFrame", nullptr, reinterpret_cast<void *>(SkoalaGetFrame)}, in InitExports() 277 {"_skoala_getFrameWidth", nullptr, reinterpret_cast<void *>(SkoalaGetFrameWidth)}, in InitExports() 278 {"_skoala_getFrameHeight", nullptr, reinterpret_cast<void *>(SkoalaGetFrameHeight)}, in InitExports() 279 {"_skoala_initRedrawer", nullptr, reinterpret_cast<void *>(SkoalaInitRedrawer)}, in InitExports() 280 … {"_skoala_providePeerFactory", nullptr, reinterpret_cast<void *>(SkoalaProvidePeerFactory)}, in InitExports() 281 {"_skoala_setPlatformAPI", nullptr, reinterpret_cast<void *>(SkoalaSetPlatformApi)}, in InitExports() 282 … {"_skoala_Canvas__1nDrawDrawable", nullptr, reinterpret_cast<void *>(SkoalaCanvas1nDrawDrawable)}, in InitExports() 283 … {"_skoala_Canvas__1nRestore", nullptr, reinterpret_cast<void *>(SkoalaCanvas1nRestore)}, in InitExports() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | bit_helper.cpp | 23 if (reinterpret_cast<uintptr_t>(addr) > reinterpret_cast<uintptr_t>(buffer) + bufferSize || in CheckBufferBounds() 24 reinterpret_cast<uintptr_t>(addr) < reinterpret_cast<uintptr_t>(buffer)) { in CheckBufferBounds() 26 << reinterpret_cast<uintptr_t>(addr) << ", buffer start: 0x" in CheckBufferBounds() 27 << reinterpret_cast<uintptr_t>(buffer) << ", buffer end: 0x" in CheckBufferBounds() 28 << reinterpret_cast<uintptr_t>(buffer) + bufferSize << std::dec; in CheckBufferBounds()
|
| D | gc_helper.h | 34 if (JSTaggedValue(reinterpret_cast<TaggedObject*>(callTargetToRef)).IsJSProxy()) { in CopyCallTarget() 37 …reinterpret_cast<TaggedObject *>(Barriers::UpdateSlot(thread, callTargetToRef, JSProxy::METHOD_OFF… in CopyCallTarget() 39 … } else if (JSTaggedValue(reinterpret_cast<TaggedObject*>(callTargetToRef)).IsJSFunctionBase()) { in CopyCallTarget() 41 TaggedObject *methodToRef = reinterpret_cast<TaggedObject *>( in CopyCallTarget() 45 if (JSTaggedValue(reinterpret_cast<TaggedObject*>(callTargetToRef)).IsJSFunction()) { in CopyCallTarget() 46 TaggedObject *profileTypeInfoToRef = reinterpret_cast<TaggedObject *>( in CopyCallTarget() 52 if (JSTaggedValue(reinterpret_cast<TaggedObject*>(callTargetToRef)).IsBoundFunction()) { in CopyCallTarget() 53 auto toTaggedArray = reinterpret_cast<TaggedObject *>( in CopyCallTarget() 55 auto boundTargetToRef = reinterpret_cast<TaggedObject *>( in CopyCallTarget() 61 void *argvToRef = reinterpret_cast<void *>(argvAddr); in CopyCallTarget() [all …]
|
| /arkcompiler/runtime_core/common_interfaces/objects/ |
| D | base_object.h | 33 return reinterpret_cast<BaseObject *>(address); in Cast() 77 auto addr = reinterpret_cast<MAddress>(this) + objectHeaderSize; in SetSizeForwarded() 78 *reinterpret_cast<size_t*>(addr) = size; in SetSizeForwarded() 83 auto addr = reinterpret_cast<MAddress>(this) + sizeof(BaseStateWord); in GetSizeForwarded() 84 return *reinterpret_cast<size_t*>(addr); in GetSizeForwarded() 130 auto addr = reinterpret_cast<MAddress>(this) + offset; in GetField() 131 return *reinterpret_cast<Field<T> *>(addr); in GetField() 148 return reinterpret_cast<intptr_t>(field) - reinterpret_cast<intptr_t>(object); in FieldOffset() 154 return reinterpret_cast<TypeInfo *>(const_cast<BaseObject *>(this)); in GetComponentTypeInfo() 164 return reinterpret_cast<TypeInfo *>(const_cast<BaseObject *>(this)); in GetTypeInfo() [all …]
|
| /arkcompiler/ets_runtime/common_components/mutator/tests/ |
| D | satb_buffer_test.cpp | 64 RegionSpace& theAllocator = reinterpret_cast<RegionSpace&>(Heap::GetHeap().GetAllocator()); in HWTEST_F_L0() 71 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 79 RegionSpace& theAllocator = reinterpret_cast<RegionSpace&>(Heap::GetHeap().GetAllocator()); in HWTEST_F_L0() 86 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 94 RegionSpace& theAllocator = reinterpret_cast<RegionSpace&>(Heap::GetHeap().GetAllocator()); in HWTEST_F_L0() 101 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 109 RegionSpace& theAllocator = reinterpret_cast<RegionSpace&>(Heap::GetHeap().GetAllocator()); in HWTEST_F_L0() 115 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 121 RegionSpace& theAllocator = reinterpret_cast<RegionSpace&>(Heap::GetHeap().GetAllocator()); in HWTEST_F_L0() 124 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | data_protect.h | 40 protect_pointer_ = DataProtectPac(pointer, reinterpret_cast<uintptr_t>(&protect_pointer_)); in DataProtect() 52 void *t1 = reinterpret_cast<void*>(pointer); in DataProtectAut() 53 void *t2 = reinterpret_cast<void*>(address); in DataProtectAut() 59 return reinterpret_cast<uintptr_t>(t1); in DataProtectAut() 72 void *t1 = reinterpret_cast<void*>(pointer); in DataProtectPac() 73 void *t2 = reinterpret_cast<void*>(address); in DataProtectPac() 79 return reinterpret_cast<uintptr_t>(t1); in DataProtectPac() 91 protect_pointer_ = DataProtectPac(pointer, reinterpret_cast<uintptr_t>(&protect_pointer_)); in Update() 99 return DataProtectAut(protect_pointer_, reinterpret_cast<uintptr_t>(&protect_pointer_)); in GetOriginPointer() 126 reinterpret_cast<uintptr_t>(&protect_bool_)); in Update() [all …]
|
| /arkcompiler/ets_runtime/common_components/heap/ark_collector/tests/ |
| D | post_marking_barrier_test.cpp | 53 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 68 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 83 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 110 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 127 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 143 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 158 BaseObject* oldObj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() 163 BaseObject* newObj = reinterpret_cast<BaseObject*>(newObjAddr); in HWTEST_F_L0() 168 EXPECT_EQ(newAddr, reinterpret_cast<MAddress>(newObj)); in HWTEST_F_L0() 178 BaseObject* obj = reinterpret_cast<BaseObject*>(addr); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | ecma_string_hash_test.cpp | 61 uint32_t rawHash8 = ComputeHashRaw(reinterpret_cast<uint8_t*>(data.data()), data.size(), 0); in HWTEST_F_L0() 62 uint32_t optHash8 = ComputeHashOpt(reinterpret_cast<uint8_t*>(data.data()), data.size(), 0); in HWTEST_F_L0() 66 … uint32_t rawHash16 = ComputeHashRaw(reinterpret_cast<uint16_t*>(data16.data()), data16.size(), 0); in HWTEST_F_L0() 67 … uint32_t optHash16 = ComputeHashOpt(reinterpret_cast<uint16_t*>(data16.data()), data16.size(), 0); in HWTEST_F_L0() 80 uint32_t rawHash8 = ComputeHashRaw(reinterpret_cast<uint8_t*>(data.data()), data.size(), 0); in HWTEST_F_L0() 81 uint32_t optHash8 = ComputeHashOpt(reinterpret_cast<uint8_t*>(data.data()), data.size(), 0); in HWTEST_F_L0() 85 … uint32_t rawHash16 = ComputeHashRaw(reinterpret_cast<uint16_t*>(data16.data()), data16.size(), 0); in HWTEST_F_L0() 86 … uint32_t optHash16 = ComputeHashOpt(reinterpret_cast<uint16_t*>(data16.data()), data16.size(), 0); in HWTEST_F_L0() 105 uint32_t rawHash8 = ComputeHashRaw(reinterpret_cast<uint8_t*>(data.data()), data.size(), 0); in HWTEST_F_L0() 106 uint32_t optHash8 = ComputeHashOpt(reinterpret_cast<uint8_t*>(data.data()), data.size(), 0); in HWTEST_F_L0() [all …]
|