/ark/runtime_core/assembler/ |
D | annotation.cpp | 25 case Value::Type::U1: { in InitScalarValue() 26 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(sc_val.GetValue<uint… in InitScalarValue() 29 case Value::Type::U8: { in InitScalarValue() 30 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(sc_val.GetValue<uint… in InitScalarValue() 33 case Value::Type::U16: { in InitScalarValue() 35 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(sc_val.GetValue<uint16_t>())); in InitScalarValue() 38 case Value::Type::U32: { in InitScalarValue() 40 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(sc_val.GetValue<uint32_t>())); in InitScalarValue() 43 case Value::Type::U64: { in InitScalarValue() 45 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U64>(sc_val.GetValue<uint64_t>())); in InitScalarValue() [all …]
|
D | annotation.h | 71 class Value { 389 virtual ~Value() = default; 391 DEFAULT_COPY_SEMANTIC(Value); 392 DEFAULT_MOVE_SEMANTIC(Value); 395 explicit Value(Type type) : type_(type) {} in Value() function 403 template <Value::Type value_type> 407 using type = std::conditional_t<value_type == Value::Type::U1, uint8_t, 409 std::conditional_t<value_type == Value::Type::I8, int8_t, 411 std::conditional_t<value_type == Value::Type::U8, uint8_t, 413 std::conditional_t<value_type == Value::Type::I16, int16_t, [all …]
|
D | meta.cpp | 48 static panda::pandasm::Value::Type GetType(std::string_view value) in GetType() 50 using VType = panda::pandasm::Value::Type; in GetType() 131 template <Value::Type type, class T = ValueTypeHelperT<type>> 140 auto converted = res.Value(); in CreatePrimitiveValue() 150 Value::Type type, std::string_view value, in CreateValue() 154 case Value::Type::U1: { 155 return CreatePrimitiveValue<Value::Type::U1>(value, 1); 157 case Value::Type::I8: { 158 return CreatePrimitiveValue<Value::Type::I8>(value); 160 case Value::Type::U8: { [all …]
|
D | assembly-emitter.cpp | 97 static panda_file::Type::TypeId GetTypeId(Value::Type type) in GetTypeId() 100 case Value::Type::U1: in GetTypeId() 102 case Value::Type::I8: in GetTypeId() 104 case Value::Type::U8: in GetTypeId() 106 case Value::Type::I16: in GetTypeId() 108 case Value::Type::U16: in GetTypeId() 110 case Value::Type::I32: in GetTypeId() 112 case Value::Type::U32: in GetTypeId() 114 case Value::Type::I64: in GetTypeId() 116 case Value::Type::U64: in GetTypeId() [all …]
|
D | assembly-emitter.h | 147 static bool CheckValueType(Value::Type value_type, Type type, const Program &program); 149 static bool CheckValueEnumCase(const Value *value, Type type, const Program &program); 150 static bool CheckValueArrayCase(const Value *value, Type type, const Program &program); 151 static bool CheckValueMethodCase(const Value *value, const Program &program); 152 static bool CheckValueRecordCase(const Value *value, const Program &program); 153 static bool CheckValue(const Value *value, Type type, const Program &program); 156 …panda_file::ItemContainer *container, const Value *value, std::vector<panda_file::LiteralItem> *ou… 161 const Value *value, in CreateScalarPrimValueItem() 186 const Value *value, 189 …panda_file::ItemContainer *container, const Value *value, std::vector<panda_file::ScalarValueItem>… [all …]
|
/ark/runtime_core/runtime/include/ |
D | histogram-inl.h | 25 template <class Value> 27 SimpleHistogram<Value>::SimpleHistogram(ForwardIterator start, ForwardIterator finish, helpers::Val… in SimpleHistogram() 35 template <class Value> 36 PandaString SimpleHistogram<Value>::GetGeneralStatistic() const in GetGeneralStatistic() 45 template <class Value> 46 void SimpleHistogram<Value>::AddValue(const Value &element, size_t number) in AddValue() 60 template <class Value> 62 Histogram<Value>::Histogram(ForwardIterator start, ForwardIterator finish, helpers::ValueType type_… in Histogram() 63 : SimpleHistogram<Value>(type_of_value) in Histogram() 70 template <class Value> [all …]
|
D | histogram.h | 30 template <class Value> 58 void AddValue(const Value &element, size_t number = 1); 65 Value GetSum() const in GetSum() 70 Value GetMin() const in GetMin() 75 Value GetMax() const in GetMax() 103 Value sum_ = 0; 104 Value sum_of_squares_ = 0; 105 Value min_ = 0; 106 Value max_ = 0; 114 template <class Value> [all …]
|
D | method.h | 202 Value Invoke(ManagedThread *thread, Value *args, bool proxy_call = false); 204 void InvokeVoid(ManagedThread *thread, Value *args) in InvokeVoid() 216 Value InvokeDyn(ManagedThread *thread, uint32_t num_args, Value *args, bool proxy_call = false, 225 …Value InvokeGen(ManagedThread *thread, const uint8_t *pc, Value acc, uint32_t num_actual_args, Val… 628 Value InvokeCompiledCode(ManagedThread *thread, uint32_t num_actual_args, Value *args); 630 Value GetReturnValueFromTaggedValue(DecodedTaggedValue ret_value) in GetReturnValueFromTaggedValue() 632 Value res(static_cast<int64_t>(0)); in GetReturnValueFromTaggedValue() 638 res = Value(reinterpret_cast<ObjectHeader *>(ret_value.value)); in GetReturnValueFromTaggedValue() 640 res = Value(ret_value.value, ret_value.tag); in GetReturnValueFromTaggedValue() 642 res = Value(ret_value.value); in GetReturnValueFromTaggedValue() [all …]
|
D | value-inl.h | 24 inline ObjectHeader *Value::GetAs() const in GetAs() 30 inline float Value::GetAs() const in GetAs() 36 inline double Value::GetAs() const in GetAs() 41 inline int64_t Value::GetAsLong() in GetAsLong()
|
D | method-inl.h | 38 Value Method::InvokeCompiledCode(ManagedThread *thread, uint32_t num_actual_args, Value *args) in InvokeCompiledCode() 41 Span<Value> args_span(args, num_actual_args); in InvokeCompiledCode() 96 Value Method::InvokeInterpretedCode(ManagedThread *thread, uint32_t num_actual_args, Value *args, v… in InvokeInterpretedCode() 100 Value res(static_cast<int64_t>(0)); in InvokeInterpretedCode() 106 res = Value(nullptr); in InvokeInterpretedCode() 108 res = Value(static_cast<int64_t>(0)); in InvokeInterpretedCode() 116 res = Value(nullptr); in InvokeInterpretedCode() 118 res = Value(static_cast<int64_t>(0)); in InvokeInterpretedCode() 165 …rame, FrameDeleter> Method::InitFrame(ManagedThread *thread, uint32_t num_actual_args, Value *args, in InitFrame() 172 Span<Value> args_span(args, num_actual_args); in InitFrame() [all …]
|
D | value.h | 30 class Value { 33 explicit Value(T value) in Value() function 50 Value(int64_t value, int64_t tag) : value_(DecodedTaggedValue(value, tag)) {} in Value() function
|
/ark/runtime_core/libpandabase/serializer/ |
D | serializer.h | 71 return ret.Value() + size; 95 ret.Value() += k.Value(); 102 ret.Value() += v.Value(); 131 ASSERT(r.Value() <= size); in BufferToType() 132 data = ToUint8tPtr(ToUintPtr(data) + r.Value()); in BufferToType() 133 size -= r.Value(); in BufferToType() 142 return r.Value() + str_size; in BufferToType() 156 ASSERT(r.Value() <= size); in BufferToType() 157 data = ToUint8tPtr(ToUintPtr(data) + r.Value()); in BufferToType() 158 size -= r.Value(); in BufferToType() [all …]
|
/ark/runtime_core/libpandabase/utils/ |
D | expected.h | 30 const E &Value() const &noexcept in Value() function 34 E &Value() & noexcept in Value() function 38 E &&Value() && noexcept in Value() function 72 …ed(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value())) {} in noexcept() 102 const T &Value() const &noexcept(ExpectedConfig::RELEASE) in Value() function 109 T &Value() & noexcept(ExpectedConfig::RELEASE) in Value() function 115 T &&Value() && noexcept(ExpectedConfig::RELEASE) in Value() function 123 return Value(); in noexcept() 128 return Value(); in noexcept() 133 return std::move(*this).Value(); in noexcept() [all …]
|
D | json_parser.h | 32 class Value; 36 using ArrayT = std::vector<Value>; 40 class Value { 42 Value() = default; 43 ~Value() = default; 44 NO_COPY_SEMANTIC(Value); 46 Value(Value &&rhs) noexcept in Value() function 52 Value &operator=(Value &&rhs) noexcept 114 Value parsed_temp_; 190 std::unordered_map<Key, Value> values_map_;
|
/ark/runtime_core/runtime/ |
D | mark_word.h | 203 markWordSize temp = Value() & (~(MONITOR_POINTER_MASK_IN_PLACE | STATUS_MASK_IN_PLACE)); in DecodeFromMonitor() 223 Value() & in DecodeFromLightLock() 236 markWordSize unlocked = Value() & (~(UNLOCKED_STATE_MASK_IN_PLACE | STATUS_MASK_IN_PLACE)); in DecodeFromUnlocked() 242 return (Value() & GC_STATUS_MASK_IN_PLACE) != 0U; in IsMarkedForGC() 247 return (Value() & RB_STATUS_MASK_IN_PLACE) != 0U; in IsReadBarrierSet() 254 return MarkWord((Value() & (~GC_STATUS_MASK_IN_PLACE)) | GC_STATUS_MASK_IN_PLACE); in SetMarkedForGC() 259 return MarkWord(Value() & (~GC_STATUS_MASK_IN_PLACE)); in SetUnMarkedForGC() 264 return MarkWord((Value() & (~RB_STATUS_MASK_IN_PLACE)) | RB_STATUS_MASK_IN_PLACE); in SetReadBarrier() 269 return MarkWord(Value() & (~RB_STATUS_MASK_IN_PLACE)); in ClearReadBarrier() 276 switch ((Value() >> STATUS_SHIFT) & STATUS_MASK) { in GetState() [all …]
|
D | mark_word.cpp | 24 return static_cast<uint32_t>((Value() >> HASH_SHIFT) & HASH_MASK); in GetHashConfigured() 43 markWordSize temp = Value() & (~(HASH_MASK_IN_PLACE | STATUS_MASK_IN_PLACE)); in DecodeFromHashConfigured() 71 return MarkWord((Value() & (~HASH_STATUS_MASK_IN_PLACE)) | HASH_STATUS_MASK_IN_PLACE); in SetHashedConfigured() 89 return (Value() & HASH_STATUS_MASK_IN_PLACE) != 0U; in IsHashedConfigured()
|
/ark/runtime_core/assembler/tests/ |
D | parser_test.cpp | 33 ASSERT_EQ(item.Value().function_table.at("main").ins[0].opcode, Opcode::MOV); in TEST() 34 ASSERT_EQ(item.Value().function_table.at("main").ins[0].regs[0], 1) << "1 expected"; in TEST() 35 ASSERT_EQ(item.Value().function_table.at("main").ins[0].regs[1], 2) << "2 expected"; in TEST() 47 ASSERT_EQ(item.Value().function_table.at("main").ins[0].label, "label") << "label expected"; in TEST() 48 ASSERT_EQ(item.Value().function_table.at("main").ins[0].set_label, true) << "true expected"; in TEST() 49 …ASSERT_EQ(item.Value().function_table.at("main").ins[0].opcode, Opcode::INVALID) << "NONE expected… in TEST() 83 ASSERT_EQ(item.Value().function_table.at("main").ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST() 84 …ASSERT_EQ(item.Value().function_table.at("main").ins[0].imms[0], Ins::IType(int64_t(1))) << "1 exp… in TEST() 96 ASSERT_EQ(item.Value().function_table.at("main").ins[0].opcode, Opcode::ADDI) << "IMM expected"; in TEST() 97 …ASSERT_EQ(item.Value().function_table.at("main").ins[0].imms[0], Ins::IType(int64_t(12345))) << "1… in TEST() [all …]
|
D | emitter_test.cpp | 68 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 212 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 301 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 361 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 375 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 389 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 403 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 418 auto pf = AsmEmitter::Emit(res.Value()); in TEST() 488 template <Value::Type type> 494 if constexpr (type == Value::Type::U1) { in GetAnnotationElementValue() [all …]
|
/ark/runtime_core/verification/models/contexts_merge/ |
D | check_set_intersection_as_lub.als | 92 -- Sig java_typing/Value scope <= 8 104 …Value in [[java_typing/Null$0], [java_typing/Value$0], [java_typing/Value$1], [java_typing/Value$2… 105 …ping/Value$0], [java_typing/Value$1], [java_typing/Value$2], [java_typing/Value$3], [java_typing/V…
|
/ark/runtime_core/libpandabase/tests/ |
D | expected_test.cpp | 44 EXPECT_EQ(Unexpected<int>(1).Value(), 1); in TEST() 45 EXPECT_EQ(u.Value(), 1); in TEST() 46 EXPECT_EQ(static_cast<const Unexpected<int> &>(u).Value(), 1); in TEST() 54 EXPECT_EQ(e.Value(), 1); in TEST() 61 EXPECT_EQ(e1.Value(), 2); in TEST() 77 EXPECT_EQ(e2.Value(), 1); in TEST() 80 EXPECT_EQ((Expected<int, ErrorCode>(3).Value()), 3); in TEST() 87 t.Value() = Default {2}; in TEST()
|
/ark/ts2abc/ts2panda/ts2abc/ |
D | ts2abc.h | 52 void ParseLogEnable(const Json::Value &rootValue); 54 void ParseDebugMode(const Json::Value &rootValue); 56 int ParseJson(const std::string &data, Json::Value &rootValue); 57 panda::pandasm::Function GetFunctionDefintion(const Json::Value &function);
|
D | ts2abc.cpp | 219 static void ParseLiteral(const Json::Value &literal, std::vector<panda::pandasm::LiteralArray::Lite… in ParseLiteral() 283 static panda::pandasm::Record ParseRecord(const Json::Value &record) in ParseRecord() 326 static void ParseInstructionOpCode(const Json::Value &ins, panda::pandasm::Ins &pandaIns) in ParseInstructionOpCode() 336 static void ParseInstructionRegs(const Json::Value &ins, panda::pandasm::Ins &pandaIns) in ParseInstructionRegs() 346 static void ParseInstructionIds(const Json::Value &ins, panda::pandasm::Ins &pandaIns) in ParseInstructionIds() 358 static void ParseInstructionImms(const Json::Value &ins, panda::pandasm::Ins &pandaIns) in ParseInstructionImms() 375 static void ParseInstructionLabel(const Json::Value &ins, panda::pandasm::Ins &pandaIns) in ParseInstructionLabel() 388 static void ParseInstructionDebugInfo(const Json::Value &ins, panda::pandasm::Ins &pandaIns) in ParseInstructionDebugInfo() 422 static panda::pandasm::Ins ParseInstruction(const Json::Value &ins) in ParseInstruction() 434 static int ParseVariablesDebugInfo(const Json::Value &function, panda::pandasm::Function &pandaFunc) in ParseVariablesDebugInfo() [all …]
|
/ark/runtime_core/runtime/tests/ |
D | method_test.cpp | 74 auto &prog = res.Value(); in VerifyLineNumber() 85 auto pf = pandasm::AsmEmitter::Emit(res.Value()); in VerifyLineNumber() 148 auto pf = pandasm::AsmEmitter::Emit(res.Value()); in TEST_F() 181 std::vector<Value> args; in TEST_F() 182 Value v = f_method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F() 210 auto pf = pandasm::AsmEmitter::Emit(res.Value()); in TEST_F() 224 std::vector<Value> args; in TEST_F() 225 args.emplace_back(Value(1, interpreter::TypeTag::INT)); in TEST_F() 226 Value v = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F() 245 auto pf = pandasm::AsmEmitter::Emit(res.Value()); in TEST_F() [all …]
|
/ark/runtime_core/runtime/core/ |
D | core_language_context.cpp | 37 return core_vm.Value(); in CreateVM() 94 …std::array<Value, NARGS> args {Value(exc_handle.GetPtr()), Value(msg_handle.GetPtr()), Value(cause… in ThrowException()
|
/ark/js_runtime/ecmascript/tooling/test/ |
D | debugger_events_test.cpp | 179 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 0); in HWTEST_F_L0() 185 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 4); in HWTEST_F_L0() 191 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 10); in HWTEST_F_L0() 197 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 10); in HWTEST_F_L0() 203 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 2); in HWTEST_F_L0() 236 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 34); in HWTEST_F_L0() 242 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 432); in HWTEST_F_L0() 300 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 0); in HWTEST_F_L0() 306 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 4); in HWTEST_F_L0() 312 EXPECT_EQ(Local<IntegerRef>(result)->Value(), 10); in HWTEST_F_L0() [all …]
|