/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | value-inl.h | 23 inline ObjectHeader *Value::GetAs() const in GetAs() function in ark::Value 29 inline float Value::GetAs() const in GetAs() function in ark::Value 31 return bit_cast<float>(GetAs<uint32_t>()); in GetAs() 35 inline double Value::GetAs() const in GetAs() function in ark::Value 37 return bit_cast<double>(GetAs<uint64_t>()); in GetAs() 43 return GetAs<int64_t>(); in GetAsLong() 45 return reinterpret_cast<int64_t>(GetAs<ObjectHeader *>()); in GetAsLong()
|
H A D | value.h | 59 T GetAs() const in GetAs() function in ark::Value
|
H A D | method-inl.h | 62 staticFrameHelper.GetVReg(numVregs + i).SetReference(argsSpan[i].GetAs<ObjectHeader *>()); in InitActualArgs() 64 staticFrameHelper.GetVReg(numVregs + i).SetPrimitive(argsSpan[i].GetAs<int64_t>()); in InitActualArgs() 153 return TaggedValue(aacVreg.GetAs<uint64_t>()); in GetReturnValueFromAcc() 192 valuesSpan[i] = reinterpret_cast<int64_t>(argsSpan[i].GetAs<ObjectHeader *>()); in InvokeCompiledCode() 194 valuesSpan[i] = argsSpan[i].GetAs<int64_t>(); in InvokeCompiledCode() 329 res = TaggedValue(dynamicFrameHelper.GetAcc().GetAs<uint64_t>()); in InvokeContext()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | exception_test.cpp | 173 ASSERT_NE(result.GetAs<int64_t>(), unexpectedException) in TEST_F() 175 ASSERT_NE(result.GetAs<int64_t>(), noExceptions) << "No exceptions were thrown"; in TEST_F() 176 ASSERT_EQ(result.GetAs<int64_t>(), expectedResult) << "Unexpected error"; in TEST_F() 258 ASSERT_NE(result.GetAs<int64_t>(), unexpectedException) in TEST_F() 260 ASSERT_NE(result.GetAs<int64_t>(), noExceptions) << "No exceptions were thrown"; in TEST_F() 261 ASSERT_EQ(result.GetAs<int64_t>(), expectedResult) << "Unexpected error"; in TEST_F() 346 ASSERT_NE(result.GetAs<int64_t>(), unexpectedException) in TEST_F() 348 ASSERT_NE(result.GetAs<int64_t>(), noExceptions) << "No exceptions were thrown"; in TEST_F() 349 ASSERT_EQ(result.GetAs<int64_t>(), expectedResult) << "Unexpected error"; in TEST_F() 435 ASSERT_NE(result.GetAs<int64_ in TEST_F() [all...] |
H A D | frame_test.cpp | 80 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<int64_t>(), v64); in TEST_F() 101 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<int32_t>(), v32); in TEST_F() 107 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<int32_t>(), v16); in TEST_F() 113 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<int32_t>(), v8); in TEST_F() 119 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<float>(), f32); in TEST_F() 125 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<double>(), f64); in TEST_F()
|
H A D | interpreter_test_resolve_field.cpp | 112 auto ret = v.GetAs<int32_t>(); in TEST_F() 127 auto ret = v.GetAs<int32_t>(); in TEST_F()
|
H A D | interpreter_test_resolve_ctor_class.cpp | 110 auto *ret = v.GetAs<ObjectHeader *>(); in TEST_F()
|
H A D | interpreter_test_switch.cpp | 145 ASSERT_EQ(v.GetAs<int32_t>(), RET); in TEST_F()
|
H A D | method_test.cpp | 198 EXPECT_EQ(v.GetAs<int64_t>(), 0); in TEST_F() 208 EXPECT_EQ(v.GetAs<int64_t>(), 0); in TEST_F() 554 EXPECT_EQ(v.GetAs<int32_t>(), 0); in TEST_F()
|
H A D | interpreter_test.cpp | 791 EXPECT_EQ(f->GetAccAsVReg().GetAs<R>(), r) << ss.str(); in TestUnaryOp() 835 EXPECT_EQ(frameHandler.GetVReg(0).GetAs<int32_t>(), 0); in TEST_F() 836 EXPECT_EQ(frameHandler.GetVReg(1).GetAs<int32_t>(), 0); in TEST_F() 1114 EXPECT_EQ(frameHandler.GetVReg(3U).GetAs<ComponentType>(), loadValue) << ss.str(); in TestArray() 1258 if (sp[0].GetAs<ObjectHeader *>() != obj) { in TEST_F() 1263 if (sp[1].GetAs<int32_t>() != frameHandler.GetVReg(0).Get()) { in TEST_F() 1268 if (sp[2U].GetAs<int32_t>() != frameHandler.GetVReg(2U).Get()) { in TEST_F() 1354 if (sp[0].GetAs<ObjectHeader *>() != obj) { in TEST_F() 1359 if (sp[1].GetAs<int32_t>() != frameHandler.GetVReg(0).Get()) { in TEST_F() 1364 if (sp[2U].GetAs<int32_ in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_coroutine.cpp | 103 << returnValue.GetAs<uint64_t>(); in RequestCompletion() 106 << returnValue.GetAs<ObjectHeader *>() << ">"; in RequestCompletion() 142 return EtsBoxPrimitive<EtsBoolean>::Create(this, returnValue.GetAs<EtsBoolean>()); in GetReturnValueAsObject() 144 return EtsBoxPrimitive<EtsByte>::Create(this, returnValue.GetAs<EtsByte>()); in GetReturnValueAsObject() 146 return EtsBoxPrimitive<EtsShort>::Create(this, returnValue.GetAs<EtsShort>()); in GetReturnValueAsObject() 148 return EtsBoxPrimitive<EtsChar>::Create(this, returnValue.GetAs<EtsChar>()); in GetReturnValueAsObject() 150 return EtsBoxPrimitive<EtsInt>::Create(this, returnValue.GetAs<EtsInt>()); in GetReturnValueAsObject() 152 return EtsBoxPrimitive<EtsFloat>::Create(this, returnValue.GetAs<EtsFloat>()); in GetReturnValueAsObject() 154 return EtsBoxPrimitive<EtsDouble>::Create(this, returnValue.GetAs<EtsDouble>()); in GetReturnValueAsObject() 156 return EtsBoxPrimitive<EtsLong>::Create(this, returnValue.GetAs<EtsLon in GetReturnValueAsObject() [all...] |
H A D | ets_vm.cpp | 475 return v.GetAs<int>(); in InvokeEntrypointImpl() 484 return v.GetAs<int>(); in InvokeEntrypointImpl() 553 EtsMethod::ToRuntimeMethod(method)->Invoke(coro, args.data()).GetAs<ObjectHeader *>()); in PrintExceptionInfo() 619 ObjectHeader *arg = arguments[argIdx].GetAs<ObjectHeader *>(); in HandleEmptyArguments() 627 ObjectHeader *arg = arguments[argIdx].GetAs<ObjectHeader *>(); in HandleEmptyArguments() 663 ObjectHeader *arg = ref.GetAs<ObjectHeader *>(); in UpdateMovedVmRef()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
H A D | object_repository.cpp | 103 return RemoteObject::Boolean(value.template GetAs<bool>()); in CreateObject() 105 return RemoteObject::Number(value.template GetAs<int8_t>()); in CreateObject() 107 return RemoteObject::Number(value.template GetAs<uint8_t>()); in CreateObject() 109 return RemoteObject::Number(value.template GetAs<int16_t>()); in CreateObject() 111 return RemoteObject::Number(value.template GetAs<uint16_t>()); in CreateObject() 113 return RemoteObject::Number(value.template GetAs<int32_t>()); in CreateObject() 115 return RemoteObject::Number(value.template GetAs<uint32_t>()); in CreateObject() 117 return RemoteObject::Number(value.template GetAs<float>()); in CreateObject() 119 return RemoteObject::Number(value.template GetAs<double>()); in CreateObject() 121 return RemoteObject::Number(value.template GetAs<int64_ in CreateObject() [all...] |
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | vregister.h | 127 return GetAs<int32_t>(); in Get() 132 return GetAs<float>(); in GetFloat() 142 return GetAs<double>(); in GetDouble() 147 return GetAs<ObjectHeader *>(); in GetReference() 154 ALWAYS_INLINE inline M GetAs() const in GetAs() function in ark::interpreter::VRegisterIface 160 ALWAYS_INLINE inline float GetAs() const in GetAs() function in ark::interpreter::VRegisterIface 166 ALWAYS_INLINE inline double GetAs() const in GetAs() function in ark::interpreter::VRegisterIface 172 ALWAYS_INLINE inline ObjectHeader *GetAs() const in GetAs() function in ark::interpreter::VRegisterIface 350 ALWAYS_INLINE inline M GetAs() const in GetAs() function in ark::interpreter::VRegisterRef 352 return payload_->template GetAs< in GetAs() [all...] |
H A D | vregister_iterator.h | 65 ALWAYS_INLINE T GetAs(size_t paramIdx) const in GetAs() function in ark::interpreter::VRegisterIterator 67 return frame_->GetVReg(GetVRegIdx(paramIdx)).template GetAs<T>(); in GetAs() 83 return this->template GetAs<int32_t>(paramIdx); in Get()
|
H A D | interpreter-inl.h | 1411 auto value = reg.template GetAs<int32_t>(); in HandleInci() 2855 obj->SetFieldPrimitive(*field, vreg.template GetAs<uint8_t>()); in StorePrimitiveFieldReg() 2859 obj->SetFieldPrimitive(*field, vreg.template GetAs<int8_t>()); in StorePrimitiveFieldReg() 2863 obj->SetFieldPrimitive(*field, vreg.template GetAs<int16_t>()); in StorePrimitiveFieldReg() 2867 obj->SetFieldPrimitive(*field, vreg.template GetAs<uint16_t>()); in StorePrimitiveFieldReg() 2871 obj->SetFieldPrimitive(*field, vreg.template GetAs<int32_t>()); in StorePrimitiveFieldReg() 2875 obj->SetFieldPrimitive(*field, vreg.template GetAs<uint32_t>()); in StorePrimitiveFieldReg() 2879 obj->SetFieldPrimitive(*field, vreg.template GetAs<int64_t>()); in StorePrimitiveFieldReg() 2883 obj->SetFieldPrimitive(*field, vreg.template GetAs<uint64_t>()); in StorePrimitiveFieldReg() 2887 obj->SetFieldPrimitive(*field, vreg.template GetAs<floa in StorePrimitiveFieldReg() [all...] |
H A D | acc_vregister-inl.h | 115 coretypes::TaggedValue v(this->payload_->template GetAs<uint64_t>()); in HasObject()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core_Method.cpp | 78 return EtsObject::FromCoreType(res.GetAs<ObjectHeader *>()); in TypeAPIMethodInvokeImplementation() 90 return EtsBoxPrimitive<T>::Create(coro, res.GetAs<T>()); in TypeAPIMethodInvokeImplementation()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
H A D | ets_method_test.cpp | 116 ASSERT_EQ(res.GetAs<int32_t>(), 111_I); in TEST_F() 118 ASSERT_EQ(res.GetAs<int32_t>(), 222_I); in TEST_F() 120 ASSERT_EQ(res.GetAs<int32_t>(), 333_I); in TEST_F()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_method.cpp | 64 auto *obj = reinterpret_cast<EtsObject *>(res.GetAs<ObjectHeader *>()); in Invoke() 71 return EtsValue(res.GetAs<EtsLong>()); in Invoke()
|
H A D | ets_value.h | 76 T GetAs() in GetAs() function in ark::ets::EtsValue
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/ |
H A D | call_ets.cpp | 183 auto readVal = [&etsRes](auto typeTag) { return etsRes.GetAs<typename decltype(typeTag)::type>(); }; in HandleImpl()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | ets_type_visitor-inl.h | 269 return std::get<ark::Value>(*u_.dataPtr).GetAs<T>(); // NOLINT(cppcoreguidelines-pro-type-union-access) in LoadPrimitive()
|
H A D | interop_context.cpp | 141 auto queue = EtsObject::FromCoreType(res.GetAs<ObjectHeader *>()); in InteropCtx()
|
/arkcompiler/runtime_core/static_core/runtime/core/ |
H A D | core_vm.cpp | 285 return v.GetAs<int>(); in InvokeEntrypointImpl()
|