Home
last modified time | relevance | path

Searched refs:value_arg (Results 1 – 5 of 5) sorted by relevance

/art/libdexfile/dex/
Ddex_file.cc613 uint8_t value_arg = value_type >> kEncodedValueArgShift; in Next() local
614 size_t width = value_arg + 1; // assume and correct later in Next()
618 jval_.i = (value_arg != 0) ? 1 : 0; in Next()
622 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next()
626 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next()
630 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, false); in Next()
634 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next()
637 jval_.j = DexFile::ReadSignedLong(ptr_, value_arg); in Next()
640 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, true); in Next()
643 jval_.j = DexFile::ReadUnsignedLong(ptr_, value_arg, true); in Next()
[all …]
Ddex_file_verifier.cc733 uint32_t value_arg = header_byte >> DexFile::kDexAnnotationValueArgShift; in CheckEncodedValue() local
737 if (UNLIKELY(value_arg != 0)) { in CheckEncodedValue()
738 ErrorStringPrintf("Bad encoded_value byte size %x", value_arg); in CheckEncodedValue()
745 if (UNLIKELY(value_arg > 1)) { in CheckEncodedValue()
746 ErrorStringPrintf("Bad encoded_value char/short size %x", value_arg); in CheckEncodedValue()
749 ptr_ += value_arg + 1; in CheckEncodedValue()
753 if (UNLIKELY(value_arg > 3)) { in CheckEncodedValue()
754 ErrorStringPrintf("Bad encoded_value int/float size %x", value_arg); in CheckEncodedValue()
757 ptr_ += value_arg + 1; in CheckEncodedValue()
761 ptr_ += value_arg + 1; in CheckEncodedValue()
[all …]
/art/runtime/dex/
Ddex_file_annotations.cc210 uint8_t value_arg = header_byte >> DexFile::kDexAnnotationValueArgShift; in SkipAnnotationValue() local
211 int32_t width = value_arg + 1; in SkipAnnotationValue()
429 uint8_t value_arg = header_byte >> DexFile::kDexAnnotationValueArgShift; in ProcessAnnotationValue() local
430 int32_t width = value_arg + 1; in ProcessAnnotationValue()
436 static_cast<int8_t>(DexFile::ReadSignedInt(annotation, value_arg))); in ProcessAnnotationValue()
441 static_cast<int16_t>(DexFile::ReadSignedInt(annotation, value_arg))); in ProcessAnnotationValue()
446 static_cast<uint16_t>(DexFile::ReadUnsignedInt(annotation, value_arg, false))); in ProcessAnnotationValue()
450 annotation_value->value_.SetI(DexFile::ReadSignedInt(annotation, value_arg)); in ProcessAnnotationValue()
454 annotation_value->value_.SetJ(DexFile::ReadSignedLong(annotation, value_arg)); in ProcessAnnotationValue()
458 annotation_value->value_.SetI(DexFile::ReadUnsignedInt(annotation, value_arg, true)); in ProcessAnnotationValue()
[all …]
/art/dexlayout/
Ddex_writer.h228 void WriteEncodedValueHeader(Stream* stream, int8_t value_type, size_t value_arg);
Ddex_writer.cc186 void DexWriter::WriteEncodedValueHeader(Stream* stream, int8_t value_type, size_t value_arg) { in WriteEncodedValueHeader() argument
187 uint8_t buffer[1] = { static_cast<uint8_t>((value_arg << 5) | value_type) }; in WriteEncodedValueHeader()