Home
last modified time | relevance | path

Searched refs:ScalarValue (Results 1 – 25 of 26) sorted by relevance

12

/arkcompiler/runtime_core/assembler/
Dannotation.cpp20 std::unique_ptr<ScalarValue> InitScalarValue(const ScalarValue &sc_val) in InitScalarValue()
22 std::unique_ptr<ScalarValue> copy_val; in InitScalarValue()
25 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(sc_val.GetValue<uint… in InitScalarValue()
29 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(sc_val.GetValue<uint… in InitScalarValue()
34 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(sc_val.GetValue<uint16_t>())); in InitScalarValue()
39 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(sc_val.GetValue<uint32_t>())); in InitScalarValue()
44 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U64>(sc_val.GetValue<uint64_t>())); in InitScalarValue()
48 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I8>(sc_val.GetValue<int8… in InitScalarValue()
52 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I16>(sc_val.GetValue<int… in InitScalarValue()
56 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I32>(sc_val.GetValue<int… in InitScalarValue()
[all …]
Dannotation.h71 class ScalarValue; variable
380 ScalarValue *GetAsScalar();
382 const ScalarValue *GetAsScalar() const;
449 class ScalarValue : public Value {
454 static ScalarValue Create(ValueTypeHelperT<type> value) in Create()
462 return ScalarValue(type, static_cast<uint64_t>(value)); in Create()
468 return ScalarValue(type, value); in Create()
487 DEFAULT_MOVE_SEMANTIC(ScalarValue);
488 DEFAULT_COPY_SEMANTIC(ScalarValue);
490 ~ScalarValue() override = default;
[all …]
Dassembly-emitter.cpp582 std::unique_ptr<ScalarValue> value; in MakeLiteralItems()
586 value = std::make_unique<ScalarValue>( in MakeLiteralItems()
587ScalarValue::Create<Value::Type::U1>(static_cast<bool>(std::get<bool>(literal.value_)))); in MakeLiteralItems()
592 value = std::make_unique<ScalarValue>( in MakeLiteralItems()
593 ScalarValue::Create<Value::Type::U8>(std::get<uint8_t>(literal.value_))); in MakeLiteralItems()
598 value = std::make_unique<ScalarValue>( in MakeLiteralItems()
599 ScalarValue::Create<Value::Type::I8>(std::get<uint8_t>(literal.value_))); in MakeLiteralItems()
604 value = std::make_unique<ScalarValue>( in MakeLiteralItems()
605 ScalarValue::Create<Value::Type::U16>(std::get<uint16_t>(literal.value_))); in MakeLiteralItems()
610 value = std::make_unique<ScalarValue>( in MakeLiteralItems()
[all …]
Dmeta.cpp132 static Expected<ScalarValue, Metadata::Error> CreatePrimitiveValue(std::string_view value, in CreatePrimitiveValue()
146 return ScalarValue::Create<type>(converted); in CreatePrimitiveValue()
149 static Expected<ScalarValue, Metadata::Error> CreateValue( in CreateValue()
188 return ScalarValue::Create<Value::Type::STRING>(value);
191 return ScalarValue::Create<Value::Type::RECORD>(Type::FromName(value));
194 return ScalarValue::Create<Value::Type::METHOD>(value);
197 return ScalarValue::Create<Value::Type::ENUM>(value);
206 return ScalarValue::Create<Value::Type::ANNOTATION>(*annotation_value);
Dmeta.h294 return AnnotationElement(name_, std::make_unique<ScalarValue>(values_.front())); in CreateAnnotationElement()
339 std::vector<ScalarValue> values_;
528 void SetValue(const ScalarValue &value) in SetValue()
533 std::optional<ScalarValue> GetValue() const in GetValue()
560 std::optional<ScalarValue> value_;
/arkcompiler/ets_frontend/merge_abc/src/
DannotationProto.cpp48 ScalarValue::Serialize(*(element.GetValue()->GetAsScalar()), *protoScalar); in Serialize()
61 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoElement.scalar(), allocator); in Deserialize()
63 std::make_unique<panda::pandasm::ScalarValue>(scalar)); in Deserialize()
67 void ScalarValue::Serialize(const panda::pandasm::ScalarValue &scalar, protoPanda::ScalarValue &pro… in Serialize()
133 panda::pandasm::ScalarValue ScalarValue::Deserialize(const protoPanda::ScalarValue &protoScalar, in Deserialize()
168 auto scalar = ScalarValue::CreateScalarValue(static_cast<panda::pandasm::Value::Type>( in Deserialize()
173 panda::pandasm::ScalarValue ScalarValue::CreateScalarValue(const panda::pandasm::Value::Type &type, in CreateScalarValue()
178 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U1>(static_cast<uint8_t>( in CreateScalarValue()
182 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>( in CreateScalarValue()
186 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U16>(static_cast<uint16_t>( in CreateScalarValue()
[all …]
DannotationProto.h40 class ScalarValue {
42 …static void Serialize(const panda::pandasm::ScalarValue &scalar, protoPanda::ScalarValue &protoSca…
43 static panda::pandasm::ScalarValue Deserialize(const protoPanda::ScalarValue &protoScalar,
45 static panda::pandasm::ScalarValue CreateScalarValue(const panda::pandasm::Value::Type &type,
DmetaProto.cpp68 ScalarValue::Serialize(val.value(), *protoValue); in Serialize()
85 ScalarValue scalarValue; in Deserialize()
/arkcompiler/runtime_core/assembler/tests/
Dannotation_test.cpp40 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1));
41 std::vector<panda::pandasm::ScalarValue> elements;
57 ScalarValue insn_order1(ScalarValue::Create<panda::pandasm::Value::Type::U1>(1U));
449 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1));
450 std::unique_ptr<ScalarValue> value = panda::pandasm::InitScalarValue(insn_order);
453 ScalarValue insn_order_u8(ScalarValue::Create<panda::pandasm::Value::Type::U8>(1U));
457 ScalarValue insn_order_u16(ScalarValue::Create<panda::pandasm::Value::Type::U16>(1U));
461 ScalarValue insn_order_u32(ScalarValue::Create<panda::pandasm::Value::Type::U32>(1U));
465 ScalarValue insn_order_u64(ScalarValue::Create<panda::pandasm::Value::Type::U64>(1U));
469 ScalarValue insn_order_i8(ScalarValue::Create<panda::pandasm::Value::Type::I8>(1));
[all …]
Dassembler_emitter_test.cpp978 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::RECORD>(type));
986ScalarValue insn_order_lite(ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>("array"…
991 ScalarValue insn_order_enum(ScalarValue::Create<panda::pandasm::Value::Type::ENUM>("R.f"));
997ScalarValue insn_order_method(ScalarValue::Create<panda::pandasm::Value::Type::METHOD>("f:(i8)"));
1002 ScalarValue insn_orders(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1));
1003 std::vector<panda::pandasm::ScalarValue> elements;
1012ScalarValue insn_order_anno(ScalarValue::Create<panda::pandasm::Value::Type::ANNOTATION>(annotatio…
/arkcompiler/runtime_core/libpandafile/
Dvalue.h26 class ScalarValue {
28 ScalarValue(const File &panda_file, uint32_t value) : panda_file_(panda_file), value_(value) {} in ScalarValue() function
30 ~ScalarValue() = default;
32 NO_COPY_SEMANTIC(ScalarValue);
33 NO_MOVE_SEMANTIC(ScalarValue);
Dannotation_data_accessor.h43 ScalarValue GetScalarValue() const in GetScalarValue()
45 return ScalarValue(panda_file_, value_); in GetScalarValue()
/arkcompiler/ets_frontend/merge_abc/protos/
Dannotation.proto25 message ScalarValue { message
49 repeated ScalarValue values = 3;
59 ScalarValue scalar = 2;
Dmeta.proto48 optional ScalarValue value = 3; field
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DtypeExtractorEmitter.cpp29 using ScalarValue = panda::pandasm::ScalarValue; typedef
140 std::make_unique<ScalarValue>(ScalarValue::Create<ValueType::LITERALARRAY>(literalId))); in GenFunctionTypeInfo()
178 std::make_unique<ScalarValue>(ScalarValue::Create<ValueType::LITERALARRAY>(literalId))); in GenImportOrDeclareTypeInfo()
205 …typeFlagField.metadata->SetValue(ScalarValue::Create<ValueType::U8>(static_cast<uint8_t>(typeFlag)… in GenTypeSummaryInfo()
212 typeSummaryIndexField.metadata->SetValue(ScalarValue::Create<ValueType::LITERALARRAY>( in GenTypeSummaryInfo()
Dcommonjs.cpp29 …panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(isCommon… in SetCommonjsField()
41 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(true))); in GenCommonjsRecord()
Demitter.cpp341 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(0))); in SetPkgNameField()
373 …jsonContentField.metadata->SetValue(panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Typ… in GenJsonContentRecord()
410 panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>( in AddSourceTextModuleRecord()
425 panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>( in AddSourceTextModuleRecord()
/arkcompiler/ets_frontend/merge_abc/
DHowToWriteProtoForAssemblyStuff.md258 class ScalarValue {
269 message ScalarValue {
278 ScalarValue scalar = 2;
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_test_helper.h57 pandasm::ScalarValue::Create<pandasm::Value::Type::LITERALARRAY>(typeSummaryId)); in AddTypeSummary()
73 … pandasm::ScalarValue::Create<pandasm::Value::Type::U8>(static_cast<uint8_t>(false))); in AddCommonJsField()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dbcopt_type_adaption_test.cpp24 using ScalarValue = panda::pandasm::ScalarValue; typedef
113 AnnotationElement element(TSTYPE_ANNO_ELEMENT_NAME, std::make_unique<ScalarValue>( in SetTypeAnnotationForFunc()
114 ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>(id))); in SetTypeAnnotationForFunc()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp698 TSTYPE_ANNO_ELEMENT_NAME, std::make_unique<panda::pandasm::ScalarValue>( in ParseFunctionTypeInfo()
699 panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>(litId))); in ParseFunctionTypeInfo()
778 std::make_unique<panda::pandasm::ScalarValue>( in ParseFunctionExportedType()
779 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>(litId))); in ParseFunctionExportedType()
805 std::make_unique<panda::pandasm::ScalarValue>( in ParseFunctionDeclaredType()
806 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>(litId))); in ParseFunctionDeclaredType()
880 …isCommonJsField.metadata->SetValue(panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type… in GenerateCommonJsRecord()
896 …panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(isCommon… in SetCommonjsField()
913 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>(moduleId)); in AddModuleRecord()
1087 … panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>(0))); in SetPackageName()
[all …]
/arkcompiler/ets_frontend/es2panda/util/
DmoduleHelpers.cpp57 …entryNameField.metadata->SetValue(panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type:… in CompileNpmModuleEntryList()
/arkcompiler/ets_frontend/es2panda/compiler/debugger/
DdebuginfoDumper.cpp122 pandasm::ScalarValue *value = elem.GetValue()->GetAsScalar(); in WriteMetaData()
/arkcompiler/runtime_core/disassembler/
Ddisassembler.h107 std::string ScalarValueToString(const panda_file::ScalarValue &value, const std::string &type);
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dtype_literal_extractor.cpp60 panda_file::ScalarValue sv = adae.GetScalarValue(); in GetMethodAnnoOffset()

12