/arkcompiler/runtime_core/assembler/tests/ |
H A D | ecmascript_meta_test.cpp | 36 pandasm::Metadata::Error err("Attribute 'ecmascript.extends' must have a value", in HWTEST_F() 37 pandasm::Metadata::Error::Type::MISSING_VALUE); in HWTEST_F() 39 std::optional<pandasm::Metadata::Error> result1 = rmd.SetAttribute("ecmascript.extends"); in HWTEST_F() 44 std::optional<pandasm::Metadata::Error> result2 = rmd.SetAttribute("ecmascript.annotation"); in HWTEST_F() 47 std::optional<pandasm::Metadata::Error> result3 = rmd.SetAttributeValue("ecmascript.extends", "value"); in HWTEST_F() 50 std::optional<pandasm::Metadata::Error> result4 = rmd.SetAttributeValue("ecmascript.annotation", "value"); in HWTEST_F() 53 EXPECT_EQ(result4->GetType(), pandasm::Metadata::Error::Type::UNEXPECTED_VALUE); in HWTEST_F() 55 std::optional<pandasm::Metadata::Error> result5 = rmd.SetAttributeValue("attribute", "bool"); in HWTEST_F() 59 std::optional<pandasm::Metadata::Error> result6 = rmd.SetAttribute("ecmascript.annotation"); in HWTEST_F() 63 std::optional<pandasm::Metadata in HWTEST_F() [all...] |
/arkcompiler/runtime_core/plugins/ecmascript/tests/ |
H A D | ecmascript_meta_test.cpp | 25 pandasm::Metadata::Error err("Attribute 'ecmascript.extends' must have a value", in HWTEST() 26 pandasm::Metadata::Error::Type::MISSING_VALUE); in HWTEST() 28 std::optional<pandasm::Metadata::Error> result1 = rmd.SetAttribute("ecmascript.extends"); in HWTEST() 33 std::optional<pandasm::Metadata::Error> result2 = rmd.SetAttribute("ecmascript.annotation"); in HWTEST() 36 std::optional<pandasm::Metadata::Error> result3 = rmd.SetAttributeValue("ecmascript.extends", "value"); in HWTEST() 39 std::optional<pandasm::Metadata::Error> result4 = rmd.SetAttributeValue("ecmascript.annotation", "value"); in HWTEST() 42 ASSERT_EQ(result4->GetType(), pandasm::Metadata::Error::Type::UNEXPECTED_VALUE); in HWTEST() 44 std::optional<pandasm::Metadata::Error> result5 = rmd.SetAttributeValue("attribute", "bool"); in HWTEST() 48 std::optional<pandasm::Metadata::Error> result6 = rmd.SetAttribute("ecmascript.annotation"); in HWTEST()
|
/arkcompiler/runtime_core/assembler/ |
H A D | meta.cpp | 27 std::optional<Metadata::Error> Metadata::ValidateSize(const std::string_view &value) const in ValidateSize() 112 static Expected<T, Metadata::Error> ConvertFromString(const std::string_view &value) in ConvertFromString() 120 return Unexpected(Metadata::Error("Excepted integer literal", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString() 125 return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString() 132 static Expected<ScalarValue, Metadata::Error> CreatePrimitiveValue(const std::string_view &value, in CreatePrimitiveValue() 142 return Unexpected(Metadata::Error("Value is out of range", Metadata in CreatePrimitiveValue() [all...] |
H A D | asm_metadata.rb | 52 module Metadata module 79 Metadata.wrap_data(data) 86 return attribute.name if Metadata.language.empty? 87 "#{Metadata.language.downcase}.#{attribute.name}" 91 item_type.capitalize + 'Metadata' 95 attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool } 129 Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? != is_bool }.each do |a| 137 if Metadata::extends_default? 150 attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool && a.set_flags? } 173 if Metadata [all...] |
H A D | meta.h | 34 class Metadata { class 68 Metadata() = default; 70 virtual ~Metadata() = default; 143 DEFAULT_COPY_SEMANTIC(Metadata); 145 DEFAULT_MOVE_SEMANTIC(Metadata); 194 class AnnotationMetadata : public Metadata { 435 std::optional<Metadata::Error> MeetExpRecordAttribute(const std::string_view &attribute, 437 std::optional<Metadata::Error> MeetExpIdAttribute(const std::string_view &attribute, const std::string_view &value); 438 std::optional<Metadata::Error> MeetExpElementNameAttribute(const std::string_view &attribute, 440 std::optional<Metadata [all...] |
H A D | assembly-parser.h | 90 Metadata *metadata_ = nullptr; 219 void SetMetadataContextError(const Metadata::Error &err, bool has_value);
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | meta.cpp | 27 std::optional<Metadata::Error> Metadata::ValidateSize(std::string_view value) const in ValidateSize() 112 static Expected<T, Metadata::Error> ConvertFromString(std::string_view value) in ConvertFromString() 121 return Unexpected(Metadata::Error("Excepted integer literal", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString() 126 return Unexpected(Metadata::Error("Value is out of range", Metadata::Error::Type::INVALID_VALUE)); in ConvertFromString() 133 static Expected<ScalarValue, Metadata::Error> CreatePrimitiveValue(std::string_view value, in CreatePrimitiveValue() 143 return Unexpected(Metadata::Error("Value is out of range", Metadata in CreatePrimitiveValue() [all...] |
H A D | asm_metadata.rb | 52 module Metadata module 79 Metadata.wrap_data(data) 86 return attribute.name if Metadata.language.empty? 87 "#{Metadata.language.downcase}.#{attribute.name}" 91 item_type.capitalize + 'Metadata' 95 attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool } 129 Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? != is_bool }.each do |a| 137 if Metadata::extends_default? 150 attributes = Metadata::attributes.select { |a| a.applicable_to?(item_type) && a.bool? == is_bool && a.set_flags? } 173 if Metadata [all...] |
H A D | meta.h | 34 class Metadata { class 68 Metadata() = default; 70 virtual ~Metadata() = default; 143 DEFAULT_COPY_SEMANTIC(Metadata); 145 DEFAULT_MOVE_SEMANTIC(Metadata); 193 class AnnotationMetadata : public Metadata { 395 std::optional<Metadata::Error> MeetExpRecordAttribute(std::string_view attribute, std::string_view value); 396 std::optional<Metadata::Error> MeetExpIdAttribute(std::string_view attribute, std::string_view value); 397 std::optional<Metadata::Error> MeetExpElementNameAttribute(std::string_view attribute, std::string_view value); 398 std::optional<Metadata [all...] |
H A D | assembly-parser.h | 90 Metadata *metadata_ = nullptr; 226 void SetMetadataContextError(const Metadata::Error &err, bool hasValue);
|
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | metaProto.cpp | 35 Metadata::Deserialize(protoMetadata, *meta); in Deserialize() 56 Metadata::Deserialize(protoMetadata, *meta); in Deserialize() 81 Metadata::Deserialize(protoMetadata, *meta); in Deserialize() 122 Metadata::Serialize(static_cast<const panda::pandasm::Metadata &>(meta), *protoMetadata); in Serialize() 144 void Metadata::Serialize(const panda::pandasm::Metadata &meta, protoPanda::Metadata &protoMeta) in Serialize() 158 void Metadata::Deserialize(const protoPanda::Metadata [all...] |
H A D | metaProto.h | 73 class Metadata { class 75 static void Serialize(const panda::pandasm::Metadata &meta, protoPanda::Metadata &protoMeta); 76 static void Deserialize(const protoPanda::Metadata &protoMeta, panda::pandasm::Metadata &meta);
|
/arkcompiler/runtime_core/assembler/extensions/ |
H A D | ecmascript_meta.cpp | 20 std::optional<Metadata::Error> RecordMetadata::Validate(const std::string_view &attribute) const in Validate() 38 std::optional<Metadata::Error> RecordMetadata::Validate(const std::string_view &attribute, in Validate() 57 std::optional<Metadata::Error> FieldMetadata::Validate(const std::string_view &attribute) const in Validate() 62 std::optional<Metadata::Error> FieldMetadata::Validate(const std::string_view &attribute, in Validate() 68 std::optional<Metadata::Error> FunctionMetadata::Validate(const std::string_view &attribute) const in Validate() 73 std::optional<Metadata::Error> FunctionMetadata::Validate(const std::string_view &attribute, in Validate() 79 std::optional<Metadata::Error> ParamMetadata::Validate(const std::string_view &attribute) const in Validate() 84 std::optional<Metadata::Error> ParamMetadata::Validate(const std::string_view &attribute, in Validate()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | metadata.h | 21 namespace ark::llvmbackend::Metadata::BranchWeights { 24 } // namespace ark::llvmbackend::Metadata::BranchWeights
|
H A D | llvm_ir_constructor.cpp | 874 .createBranchWeights(llvmbackend::Metadata::BranchWeights::UNLIKELY_BRANCH_WEIGHT, in EmitStringHashCode() 875 llvmbackend::Metadata::BranchWeights::LIKELY_BRANCH_WEIGHT); in EmitStringHashCode() 1252 llvmbackend::Metadata::BranchWeights::LIKELY_BRANCH_WEIGHT, // if other comparisons are enough in CreateIsInstanceArray() 1253 llvmbackend::Metadata::BranchWeights::UNLIKELY_BRANCH_WEIGHT); // else in CreateIsInstanceArray() 1398 llvmbackend::Metadata::BranchWeights::LIKELY_BRANCH_WEIGHT, // if other comparisons are enough in CreateCheckCastArray() 1399 llvmbackend::Metadata::BranchWeights::UNLIKELY_BRANCH_WEIGHT); // else in CreateCheckCastArray() 1985 llvmbackend::Metadata::BranchWeights::UNLIKELY_BRANCH_WEIGHT, // if unlikely(deoptimize) then throw in CreateDeoptimizationBranch() 1986 llvmbackend::Metadata::BranchWeights::LIKELY_BRANCH_WEIGHT); // else continue in CreateDeoptimizationBranch() 2219 auto constexpr LIKELY = llvmbackend::Metadata::BranchWeights::LIKELY_BRANCH_WEIGHT; in CreateIf() 2220 auto constexpr UNLIKELY = llvmbackend::Metadata in CreateIf() [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/ |
H A D | builtins.cpp | 32 using ark::llvmbackend::Metadata::BranchWeights::LIKELY_BRANCH_WEIGHT; 33 using ark::llvmbackend::Metadata::BranchWeights::UNLIKELY_BRANCH_WEIGHT;
|
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/ |
H A D | codegen_test.cpp | 66 void Visit(vixl::aarch64::Metadata *metadata, const vixl::aarch64::Instruction *instr) final
|