Home
last modified time | relevance | path

Searched refs:ShortyFieldType (Results 1 – 10 of 10) sorted by relevance

/art/runtime/lambda/
Dshorty_field_type_test.cc96 static std::vector<ShortyFieldType> ParseLongTypeDescriptorsToList(const char* type_descriptor) { in ParseLongTypeDescriptorsToList()
97 std::vector<ShortyFieldType> lst; in ParseLongTypeDescriptorsToList()
99 ShortyFieldType shorty; in ParseLongTypeDescriptorsToList()
102 while ((parsed = ShortyFieldType::ParseFromFieldTypeDescriptor(parsed, &shorty)) != nullptr) { in ParseLongTypeDescriptorsToList()
112 static constexpr ShortyFieldType kSZ = ShortyFieldType::kBoolean;
113 static constexpr ShortyFieldType kSB = ShortyFieldType::kByte;
114 static constexpr ShortyFieldType kSC = ShortyFieldType::kChar;
115 static constexpr ShortyFieldType kSS = ShortyFieldType::kShort;
116 static constexpr ShortyFieldType kSI = ShortyFieldType::kInt;
117 static constexpr ShortyFieldType kSF = ShortyFieldType::kFloat;
[all …]
Dshorty_field_type.h44 struct ShortyFieldType : ValueObject { struct
64 inline constexpr ShortyFieldType(decltype(kByte) c) : value_(c) { in ShortyFieldType() argument
69 explicit ShortyFieldType() : value_(StaticCastValue(0)) { in ShortyFieldType() argument
74 explicit inline ShortyFieldType(char c) : value_(StaticCastValue(c)) { in ShortyFieldType() argument
77 ShortyFieldType ignored; in ShortyFieldType()
84 static bool MaybeCreate(char shorty_field_type, ShortyFieldType* out) { in MaybeCreate() argument
97 *out = ShortyFieldType(static_cast<decltype(kByte)>(shorty_field_type)); in MaybeCreate()
109 static ShortyFieldType CreateFromFieldTypeDescriptor(const char* field_type_descriptor) { in CreateFromFieldTypeDescriptor() argument
115 return ShortyFieldType{c}; // NOLINT [readability/braces] [4] in CreateFromFieldTypeDescriptor()
128 ShortyFieldType* out_type) { in ParseFromFieldTypeDescriptor() argument
[all …]
Dclosure.cc36 size_t Closure::GetCapturedVariableSize(ShortyFieldType variable_type, size_t offset) const { in GetCapturedVariableSize()
38 case ShortyFieldType::kLambda: in GetCapturedVariableSize()
57 ShortyFieldType last_type; in ParseTypeDescriptor()
63 ShortyFieldType::ParseFromFieldTypeDescriptor(type_descriptor, &last_type)) != nullptr) { in ParseTypeDescriptor()
191 ShortyFieldType Closure::GetCapturedShortyType(size_t index) const { in GetCapturedShortyType()
204 ShortyFieldType variable_type; in GetCapturedPrimitiveNarrow()
216 case ShortyFieldType::kBoolean: in GetCapturedPrimitiveNarrow()
219 case ShortyFieldType::kByte: in GetCapturedPrimitiveNarrow()
222 case ShortyFieldType::kChar: in GetCapturedPrimitiveNarrow()
225 case ShortyFieldType::kShort: in GetCapturedPrimitiveNarrow()
[all …]
Dart_lambda_method.cc43 ShortyFieldType shorty_field{*shorty}; // NOLINT [readability/braces] [4] in ArtLambdaMethod()
63 ShortyFieldType out; in ArtLambdaMethod()
64 while ((long_type = ShortyFieldType::ParseFromFieldTypeDescriptor(long_type, &out)) in ArtLambdaMethod()
Dclosure.h74 ShortyFieldType GetCapturedShortyType(size_t index) const; in PACKED()
105 ShortyFieldType variable_type_; in PACKED()
128 ShortyFieldType* out_type, in PACKED()
134 size_t GetCapturedVariableSize(ShortyFieldType variable_type, size_t offset) const; in PACKED()
Dclosure_builder.cc68 shorty_types_ += ShortyFieldType::kObject; in CaptureVariableObject()
84 shorty_types_ += ShortyFieldType::kLambda; in CaptureVariableLambda()
160 ShortyFieldType shorty{shorty_types[i]}; // NOLINT [readability/braces] [4] in WriteValues()
Dclosure_builder-inl.h29 const size_t type_size = ShortyFieldType(kShortyType).GetStaticSize(); in CaptureVariablePrimitive()
Dclosure_builder.h45 using ShortyTypeEnum = decltype(ShortyFieldType::kByte);
Dclosure_test.cc293 ASSERT_EQ(ShortyFieldType(shorty[index]).GetStaticSize(), sizeof(T)) in TestPrimitiveExpects()
296 EXPECT_EQ(ShortyFieldType(shorty[index]), closure->GetCapturedShortyType(index)); in TestPrimitiveExpects()
/art/runtime/interpreter/
Dinterpreter_common.h254 lambda::ShortyFieldType shorty_field_type(shorty); in DoCreateLambda()
382 using lambda::ShortyFieldType; in DoCaptureVariable()
400 ShortyFieldType shorty_type; in DoCaptureVariable()
402 …UNLIKELY(!ShortyFieldType::MaybeCreate(type_first_letter, /*out*/&shorty_type))) { // NOLINT: [wh… in DoCaptureVariable()
408 shorty_type = ShortyFieldType(type_first_letter); in DoCaptureVariable()
415 case ShortyFieldType::kBoolean: { in DoCaptureVariable()
420 case ShortyFieldType::kByte: { in DoCaptureVariable()
425 case ShortyFieldType::kChar: { in DoCaptureVariable()
430 case ShortyFieldType::kShort: { in DoCaptureVariable()
435 case ShortyFieldType::kInt: { in DoCaptureVariable()
[all …]