| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | globalTypesHolder.cpp | 42 globalTypes_[static_cast<size_t>(GlobalTypeId::NUMBER)] = allocator->New<NumberType>(); in GlobalTypesHolder() 43 globalTypes_[static_cast<size_t>(GlobalTypeId::ANY)] = allocator->New<AnyType>(); in GlobalTypesHolder() 44 globalTypes_[static_cast<size_t>(GlobalTypeId::STRING)] = allocator->New<StringType>(); in GlobalTypesHolder() 45 globalTypes_[static_cast<size_t>(GlobalTypeId::SYMBOL)] = allocator->New<SymbolType>(); in GlobalTypesHolder() 46 globalTypes_[static_cast<size_t>(GlobalTypeId::BOOLEAN)] = allocator->New<BooleanType>(); in GlobalTypesHolder() 47 globalTypes_[static_cast<size_t>(GlobalTypeId::VOID)] = allocator->New<VoidType>(); in GlobalTypesHolder() 48 globalTypes_[static_cast<size_t>(GlobalTypeId::NULL_ID)] = allocator->New<NullType>(); in GlobalTypesHolder() 49 globalTypes_[static_cast<size_t>(GlobalTypeId::UNDEFINED)] = allocator->New<UndefinedType>(); in GlobalTypesHolder() 50 globalTypes_[static_cast<size_t>(GlobalTypeId::UNKNOWN)] = allocator->New<UnknownType>(); in GlobalTypesHolder() 51 globalTypes_[static_cast<size_t>(GlobalTypeId::NEVER)] = allocator->New<NeverType>(); in GlobalTypesHolder() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | panda_file_translator.cpp | 172 size_t index = static_cast<size_t>(it.first); in ParseConstPool() 191 size_t index = static_cast<size_t>(it.first); in ParseConstPool() 200 size_t index = static_cast<size_t>(it.first); in ParseConstPool() 242 size_t index = static_cast<size_t>(it.first); in ParseFuncAndLiteralConstPool() 261 size_t index = static_cast<size_t>(it.first); in ParseFuncAndLiteralConstPool() 269 size_t index = static_cast<size_t>(it.first); in ParseFuncAndLiteralConstPool() 303 int newLen = static_cast<int>(BytecodeInstruction::Size(newOpcode)); \ 304 int paddingSize = static_cast<int>(oldLen) - newLen; \ 306 *(pc + newLen + i) = static_cast<uint8_t>(EcmaOpcode::NOP); \ 318 if (static_cast<uint16_t>(opcode) < 236) { // 236: second level bytecode index in FixOpcode() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ic/tests/ |
| D | ic_binaryop_test.cpp | 63 JSTaggedValue arg1Value(static_cast<uint32_t>(2)); in HWTEST_F_L0() 64 JSTaggedValue arg2Value(static_cast<uint32_t>(3)); in HWTEST_F_L0() 65 JSTaggedValue arg3Value(static_cast<double>(9.5561)); in HWTEST_F_L0() 74 … JSTaggedValue(static_cast<int>(BinaryType::NUMBER))); in HWTEST_F_L0() 81 … JSTaggedValue(static_cast<int>(BinaryType::NUMBER))); in HWTEST_F_L0() 88 … JSTaggedValue(static_cast<int>(BinaryType::STRING))); in HWTEST_F_L0() 97 … JSTaggedValue(static_cast<int>(BinaryType::NUMBER_GEN))); in HWTEST_F_L0() 105 … JSTaggedValue(static_cast<int>(BinaryType::STRING_GEN))); in HWTEST_F_L0() 113 … JSTaggedValue(static_cast<int>(BinaryType::STRING_GEN))); in HWTEST_F_L0() 121 … JSTaggedValue(static_cast<int>(BinaryType::NUMBER_GEN))); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | enumbitops.h | 26 return static_cast<T>(~static_cast<utype>(a)); \ 33 return (!static_cast<utype>(a)); \ 40 return static_cast<T>(static_cast<utype>(a) | static_cast<utype>(b)); \ 47 return static_cast<utype>(static_cast<utype>(a) & static_cast<utype>(b)); \ 54 return static_cast<T>(static_cast<utype>(a) ^ static_cast<utype>(b)); \ 67 return a = static_cast<T>(static_cast<utype>(a) & static_cast<utype>(b)); \
|
| D | ustring.h | 150 return static_cast<size_t>(iter_ - sv_.begin()); in Index() 319 char32_t cu0 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 325 char32_t cu1 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 328 char32_t cu1 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 329 char32_t cu2 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 334 char32_t cu1 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 335 char32_t cu2 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 336 char32_t cu3 = static_cast<uint8_t>(*iterNext++); in DecodeCP() 418 str->push_back(static_cast<char>(cu)); in Utf8Encode() 420 …str->push_back(static_cast<char>(((cu >> Constants::UTF8_2BYTE_SHIFT) & Constants::UTF8_2BYTE_MASK… in Utf8Encode() [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | asm_caller.cpp | 74 std::cerr << "ui8 result:" << std::hex << static_cast<uint64_t>(test_##opc##_8(ui8)) \ in EMITED_TWO_PARAM_INST_LIST() 75 << " input:" << static_cast<uint64_t>(ui8) << "\n"; \ in EMITED_TWO_PARAM_INST_LIST() 76 std::cerr << "ui16 result:" << std::hex << static_cast<uint64_t>(test_##opc##_16(ui16)) \ in EMITED_TWO_PARAM_INST_LIST() 77 << " input:" << static_cast<uint64_t>(ui16) << "\n"; \ in EMITED_TWO_PARAM_INST_LIST() 78 std::cerr << "ui32 result:" << std::hex << static_cast<uint64_t>(test_##opc##_32(ui32)) \ in EMITED_TWO_PARAM_INST_LIST() 79 << " input:" << static_cast<uint64_t>(ui32) << "\n"; \ in EMITED_TWO_PARAM_INST_LIST() 80 std::cerr << "ui64 result:" << std::hex << static_cast<uint64_t>(test_##opc##_64(ui64)) \ in EMITED_TWO_PARAM_INST_LIST() 81 << " input:" << static_cast<uint64_t>(ui64) << "\n"; in EMITED_TWO_PARAM_INST_LIST() 84 EXPECT_EQ(test_##opc##_8(ui8), static_cast<uint8_t>(param(ui8))); \ in EMITED_TWO_PARAM_INST_LIST() 85 EXPECT_EQ(test_##opc##_16(ui16), static_cast<uint16_t>(param(ui16))); \ in EMITED_TWO_PARAM_INST_LIST() [all …]
|
| D | vixl_exec_module.h | 46 return static_cast<T>(static_cast<bool>(data)); in CutValue() 48 return static_cast<T>(static_cast<uint8_t>(data)); in CutValue() 50 return static_cast<T>(static_cast<int8_t>(data)); in CutValue() 52 return static_cast<T>(static_cast<uint16_t>(data)); in CutValue() 54 return static_cast<T>(static_cast<int16_t>(data)); in CutValue() 56 return static_cast<T>(static_cast<uint32_t>(data)); in CutValue() 58 return static_cast<T>(static_cast<int32_t>(data)); in CutValue() 60 return static_cast<T>(static_cast<uint64_t>(data)); in CutValue() 62 return static_cast<T>(static_cast<int64_t>(data)); in CutValue() 64 return static_cast<T>(static_cast<float>(data)); in CutValue() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_date_test.cpp | 78 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(static_cast<double>(2))); in HWTEST_F_L0() 83 ASSERT_EQ(result2.GetRawData(), JSTaggedValue(static_cast<double>(2)).GetRawData()); in HWTEST_F_L0() 93 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(static_cast<double>(2))); in HWTEST_F_L0() 98 ASSERT_EQ(result4.GetRawData(), JSTaggedValue(static_cast<double>(2)).GetRawData()); in HWTEST_F_L0() 108 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(static_cast<double>(-2))); in HWTEST_F_L0() 113 ASSERT_EQ(result4.GetRawData(), JSTaggedValue(static_cast<double>(29)).GetRawData()); in HWTEST_F_L0() 124 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(static_cast<double>(2018))); in HWTEST_F_L0() 126 ecmaRuntimeCallInfo->SetCallArg(1, JSTaggedValue(static_cast<double>(10))); in HWTEST_F_L0() 128 ecmaRuntimeCallInfo->SetCallArg(2, JSTaggedValue(static_cast<double>(6))); in HWTEST_F_L0() 134 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(static_cast<double>(2018)).GetRawData()); in HWTEST_F_L0() [all …]
|
| D | builtins_atomics_test.cpp | 256 ecmaRuntimeCallInfo->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(0))); in HWTEST_F_L0() 257 ecmaRuntimeCallInfo->SetCallArg(2, JSTaggedValue(static_cast<int32_t>(5))); in HWTEST_F_L0() 276 ecmaRuntimeCallInfo->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(0))); in HWTEST_F_L0() 277 ecmaRuntimeCallInfo->SetCallArg(2, JSTaggedValue(static_cast<int32_t>(2))); in HWTEST_F_L0() 297 ecmaRuntimeCallInfo->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(0))); in HWTEST_F_L0() 298 ecmaRuntimeCallInfo->SetCallArg(2, JSTaggedValue(static_cast<int32_t>(2))); in HWTEST_F_L0() 310 ecmaRuntimeCallInfos->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(0))); in HWTEST_F_L0() 331 ecmaRuntimeCallInfo->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(0))); in HWTEST_F_L0() 332 ecmaRuntimeCallInfo->SetCallArg(2, JSTaggedValue(static_cast<int32_t>(2))); in HWTEST_F_L0() 355 ecmaRuntimeCallInfo->SetCallArg(1, JSTaggedValue(static_cast<int32_t>(0))); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | argument_accessor.cpp | 21 circuit_->NewArg(machineType, static_cast<size_t>(argIndex), gateType, argRoot_); in NewCommonArg() 34 return static_cast<size_t>(CommonArgIdx::NUM_OF_ARGS) + numArgs; in GetActualNumArgs() 62 if (argIndex == static_cast<size_t>(TypedArgIdx::FUNC)) { in GetTypedArgGate() 65 if (argIndex == static_cast<size_t>(TypedArgIdx::NEW_TARGET)) { in GetTypedArgGate() 68 if (argIndex == static_cast<size_t>(TypedArgIdx::THIS_OBJECT)) { in GetTypedArgGate() 71 return args_.at(argIndex - static_cast<size_t>(TypedArgIdx::NUM_OF_TYPED_ARGS) + in GetTypedArgGate() 72 static_cast<size_t>(CommonArgIdx::NUM_OF_ARGS)); in GetTypedArgGate() 77 return args_.at(static_cast<size_t>(arg)); in GetCommonArgGate() 87 return static_cast<size_t>(CommonArgIdx::NEW_TARGET); in GetFunctionArgIndex() 90 return static_cast<size_t>(CommonArgIdx::THIS_OBJECT); in GetFunctionArgIndex() [all …]
|
| D | type.h | 67 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::ANY)); in AnyType() 73 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::NUMBER)); in NumberType() 79 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::DOUBLE)); in DoubleType() 85 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::BOOLEAN)); in BooleanType() 91 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::VOID_TYPE)); in VoidType() 97 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::STRING)); in StringType() 103 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::SYMBOL)); in SymbolType() 109 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::NULL_TYPE)); in NullType() 115 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::UNDEFINED)); in UndefinedType() 121 GlobalTSTypeRef r(0, static_cast<int>(TSPrimitiveType::INT)); in IntType() [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 33 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 41 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 50 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 51 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 57 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 65 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 67 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 73 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 82 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() 89 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x00); in TEST() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/tests/ |
| D | ts_type_parser_test.cpp | 29 static constexpr uint16_t FIRST_USER_DEFINE_MODULE_ID = static_cast<uint32_t>(ModuleTableIdx::NUM_O… 68 …EXPECT_EQ(resultGT, GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableIdx::PRIMITIVE), primetiveTyp… in HWTEST_F_L0() 80 …EXPECT_EQ(builtinGT, GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableIdx::BUILTIN), builtinTypeId… in HWTEST_F_L0() 109 std::vector<LiteralValueType> classValues { static_cast<uint32_t>(1), in HWTEST_F_L0() 110 static_cast<uint32_t>(0), in HWTEST_F_L0() 111 static_cast<uint8_t>(0), in HWTEST_F_L0() 112 static_cast<uint32_t>(0), in HWTEST_F_L0() 113 static_cast<uint32_t>(0), in HWTEST_F_L0() 114 static_cast<uint32_t>(0), in HWTEST_F_L0() 115 static_cast<uint32_t>(1), in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/ |
| D | assembler_x64.cpp | 31 EmitI8(static_cast<int8_t>(x.Value())); in Pushq() 65 EmitI8(static_cast<int8_t>(src.Value())); in Addq() 95 EmitI8(static_cast<int8_t>(src.Value())); in Addl() 117 EmitI8(static_cast<int8_t>(src.Value())); in Subq() 147 EmitI8(static_cast<int8_t>(src.Value())); in Subl() 169 EmitI8(static_cast<int8_t>(src.Value())); in Cmpq() 191 EmitI8(static_cast<int8_t>(src.Value())); in Cmpb() 218 EmitI8(static_cast<int8_t>(src.Value())); in Cmpl() 258 size_t delta = static_cast<size_t>(x - (pos & (x - 1))); in Align16() 531 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); in Callq() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | module_data_accessor-inl.h | 31 … auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 32 … auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 33 … auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord() 39 … auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 40 … auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord() 46 … auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 47 … auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 53 … auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 54 … auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord() 55 … auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord() [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | assemblyLiteralsProto.cpp | 21 const auto type = static_cast<protoPanda::VariantValue_VariantValueType>(value.index()); in Serialize() 25 protoValue.set_valueint(static_cast<uint64_t>(std::get<bool>(value))); in Serialize() 29 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint8_t>(value))); in Serialize() 33 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint16_t>(value))); in Serialize() 37 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint32_t>(value))); in Serialize() 66 value = static_cast<bool>(protoValue.valueint()); in Deserialize() 70 value = static_cast<uint8_t>(protoValue.valueint()); in Deserialize() 74 value = static_cast<uint16_t>(protoValue.valueint()); in Deserialize() 78 value = static_cast<uint32_t>(protoValue.valueint()); in Deserialize() 82 value = static_cast<uint64_t>(protoValue.valueint()); in Deserialize() [all …]
|
| D | annotationProto.cpp | 70 protoScalar.mutable_father()->set_type(static_cast<uint32_t>(valueType)); in Serialize() 75 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<uint8_t>())); in Serialize() 78 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<uint16_t>())); in Serialize() 82 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<uint32_t>())); in Serialize() 88 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<int8_t>())); in Serialize() 91 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<int16_t>())); in Serialize() 94 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<int32_t>())); in Serialize() 97 protoScalar.set_valueu64(static_cast<uint64_t>(scalar.GetValue<int64_t>())); in Serialize() 140 value = static_cast<uint64_t>(protoScalar.valueu64()); in Deserialize() 144 value = static_cast<float>(protoScalar.valuefloat()); in Deserialize() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_tagged_number_test.cpp | 63 EXPECT_EQ(result, JSTaggedNumber(static_cast<double>(4294967294))); in HWTEST_F_L0() 65 JSTaggedNumber number3(static_cast<double>(123.456)); in HWTEST_F_L0() 66 JSTaggedNumber number4(static_cast<double>(-123.456)); in HWTEST_F_L0() 68 EXPECT_EQ(result, JSTaggedNumber(static_cast<double>(246.912))); in HWTEST_F_L0() 83 JSTaggedNumber number4(static_cast<double>(12.1)); in HWTEST_F_L0() 87 JSTaggedNumber number5(static_cast<double>(12.12)); in HWTEST_F_L0() 88 JSTaggedNumber number6(static_cast<double>(12.12)); in HWTEST_F_L0() 90 EXPECT_EQ(result, JSTaggedNumber(static_cast<double>(146.8944))); in HWTEST_F_L0() 103 JSTaggedNumber number1(static_cast<double>(12.1)); in HWTEST_F_L0() 118 JSTaggedNumber number3(static_cast<double>(0.0)); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_profiler_type.h | 131 return static_cast<int32_t>(Type::NONE); in None() 136 return static_cast<int32_t>(Type::ANY); in AnyType() 141 return static_cast<int32_t>(Type::INT); in IntType() 146 return static_cast<int32_t>(Type::INT_OVERFLOW); in IntOverFlowType() 151 return static_cast<int32_t>(Type::DOUBLE); in DoubleType() 156 return static_cast<int32_t>(Type::NUMBER); in NumberType() 161 return static_cast<int32_t>(Type::HEAP_OBJECT); in HeapObjectType() 166 return static_cast<int32_t>(Type::UNDEFINED_OR_NULL); in UndefineOrNullType() 171 return static_cast<int32_t>(Type::BOOLEAN); in BooleanType() 176 return static_cast<int32_t>(Type::STRING); in StringType() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ic/ |
| D | ic_binary_op.h | 40 BinaryType addType = static_cast<BinaryType>(argType.GetInt()); in AddWithTSType() 110 BinaryType subType = static_cast<BinaryType>(argType.GetInt()); in SubWithTSType() 143 BinaryType mulType = static_cast<BinaryType>(argType.GetInt()); in MulWithTSType() 178 BinaryType divType = static_cast<BinaryType>(argType.GetInt()); in DivWithTSType() 214 BinaryType modType = static_cast<BinaryType>(argType.GetInt()); in ModWithTSType() 298 BinaryType shlType = static_cast<BinaryType>(argType.GetInt()); in ShlWithTSType() 303 …static_cast<uint32_t>(opNumber1) & 0x1f; // NOLINT(hicpp-signed-bitwise, readability-magic-number… in ShlWithTSType() 306 …static_cast<int32_t>(static_cast<unsigned_type>(opNumber0) << shift); // NOLINT(hicpp-signed-bitw… in ShlWithTSType() 314 BinaryType shrType = static_cast<BinaryType>(argType.GetInt()); in ShrWithTSType() 319 …static_cast<uint32_t>(opNumber1) & 0x1f; // NOLINT(hicpp-signed-bitwise, readability-magic-num… in ShrWithTSType() [all …]
|
| /arkcompiler/runtime_core/platforms/windows/libpandabase/ |
| D | mem.cpp | 42 if (static_cast<unsigned>(prot) == MMAP_PROT_NONE) { in mem_protection_flags_for_page() 46 if ((static_cast<unsigned>(prot) & MMAP_PROT_EXEC) != 0) { in mem_protection_flags_for_page() 47 …flags = ((static_cast<unsigned>(prot) & MMAP_PROT_WRITE) != 0) ? PAGE_EXECUTE_READWRITE : PAGE_EXE… in mem_protection_flags_for_page() 49 … flags = ((static_cast<unsigned>(prot) & MMAP_PROT_WRITE) != 0) ? PAGE_READWRITE : PAGE_READONLY; in mem_protection_flags_for_page() 71 if ((static_cast<unsigned>(prot) & MMAP_PROT_READ) != 0) { in mem_protection_flags_for_file() 74 if ((static_cast<unsigned>(prot) & MMAP_PROT_WRITE) != 0) { in mem_protection_flags_for_file() 77 if ((static_cast<unsigned>(prot) & MMAP_PROT_EXEC) != 0) { in mem_protection_flags_for_file() 87 return (sizeof(off_t) <= sizeof(DWORD)) ? static_cast<DWORD>(off) in mem_select_lower_bound() 88 … : static_cast<DWORD>(static_cast<uoff_t>(off) & 0xFFFFFFFFL); in mem_select_lower_bound() 96 ? static_cast<DWORD>(0) in mem_select_upper_bound() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | global_env_constants-inl.h | 27 return &constants_[static_cast<int>(ConstantIndex::CONSTATNT_BEGIN)]; in BeginSlot() 32 return &constants_[static_cast<int>(ConstantIndex::CONSTATNT_END)]; in EndSlot() 39 constants_[static_cast<int>(index)] = value; in SetConstant() 47 constants_[static_cast<int>(index)] = value.GetTaggedValue(); in SetConstant() 52 return ToUintPtr(this) + sizeof(JSTaggedValue) * static_cast<uint32_t>(index); in GetGlobalConstantAddr() 60 return constants_[static_cast<int>(ConstantIndex::Index)]; \ 65 &constants_[static_cast<int>(ConstantIndex::Index)])); \ 70 * static_cast<int>(ConstantIndex::Index); \
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | tagged_value.h | 79 TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE | static_cast<TaggedType>(false); 81 TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE | static_cast<TaggedType>(true); 96 constexpr explicit TaggedValue(int v) : value_(static_cast<TaggedType>(v) | TAG_INT) {} in TaggedValue() 100 if (static_cast<int32_t>(v) < 0) { in TaggedValue() 101 value_ = TaggedValue(static_cast<double>(v)).GetRawData(); in TaggedValue() 104 value_ = TaggedValue(static_cast<int32_t>(v)).GetRawData(); in TaggedValue() 109 if (UNLIKELY(static_cast<int32_t>(v) != v)) { in TaggedValue() 110 value_ = TaggedValue(static_cast<double>(v)).GetRawData(); in TaggedValue() 113 value_ = TaggedValue(static_cast<int32_t>(v)).GetRawData(); in TaggedValue() 117 : value_(static_cast<TaggedType>(v) | TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE) in TaggedValue() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | utf_helper.cpp | 24 ((static_cast<int32_t>(lead) << 10UL) + static_cast<int32_t>(trail) - U16_SURROGATE_OFFSET) 133 … auto ch0 = static_cast<uint8_t>(UTF8_3B_FIRST | static_cast<uint8_t>(d0 >> UtfOffset::TWELVE)); in ConvertUtf16ToUtf8() 134 …auto ch1 = static_cast<uint8_t>(UTF8_3B_SECOND | (static_cast<uint8_t>(d0 >> UtfOffset::SIX) & utf… in ConvertUtf16ToUtf8() 135 auto ch2 = static_cast<uint8_t>(UTF8_3B_THIRD | (d0 & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 151 return {UtfLength::ONE, {static_cast<uint8_t>(d0)}}; in ConvertUtf16ToUtf8() 154 auto ch0 = static_cast<uint8_t>(UTF8_2B_FIRST | static_cast<uint8_t>(d0 >> UtfOffset::SIX)); in ConvertUtf16ToUtf8() 155 auto ch1 = static_cast<uint8_t>(UTF8_2B_SECOND | (d0 & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() 159 … auto ch0 = static_cast<uint8_t>(UTF8_3B_FIRST | static_cast<uint8_t>(d0 >> UtfOffset::TWELVE)); in ConvertUtf16ToUtf8() 160 …auto ch1 = static_cast<uint8_t>(UTF8_3B_SECOND | (static_cast<uint8_t>(d0 >> UtfOffset::SIX) & utf… in ConvertUtf16ToUtf8() 161 auto ch2 = static_cast<uint8_t>(UTF8_3B_THIRD | (d0 & utf::MASK_6BIT)); in ConvertUtf16ToUtf8() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/deoptimizer/ |
| D | deoptimizer.h | 57 static_assert(static_cast<size_t>(Index::NUM_OF_MEMBER) == NumOfTypes); 61 return GetOffset<static_cast<size_t>(Index::INLINE_DEPTH_INDEX)>(isArch32); in GetInlineDepthOffset() 66 return GetOffset<static_cast<size_t>(Index::CALLFRAME_TOP_INDEX)>(isArch32); in GetCallFrameTopOffset() 71 return GetOffset<static_cast<size_t>(Index::RETURN_ADDRESS_INDEX)>(isArch32); in GetReturnAddressOffset() 76 return GetOffset<static_cast<size_t>(Index::CALLERFRAME_POINTER_INDEX)>(isArch32); in GetCallerFpOffset() 110 numCalleeRegs_ = static_cast<size_t>(callreg.GetCallRegNum()); in Deoptimizier() 136 return static_cast<size_t>(index) - static_cast<size_t>(CommonArgIdx::FUNC); in GetFrameIndex() 151 return GetFrameArgv(static_cast<size_t>(index)); in GetActualFrameArgs() 157 return deoptVregs_.find({curDepth, static_cast<OffsetType>(index)}) != deoptVregs_.end(); in HasDeoptValue() 165 return deoptVregs_.at({curDepth, static_cast<OffsetType>(index)}).GetTaggedValue(); in GetDeoptValue()
|