Lines Matching defs:in

5  * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
55 // which should be the one passed as `this` in this method.
171 // The main VerifierDeps is the one set in the compiler callbacks, which at the
205 // String is in the DEX file. Return its ID.
209 // String is not in the DEX file. Assign a new ID to it which is higher than
210 // the number of strings in the DEX file.
258 // is in the classpath.
273 // file was not registered as being compiled and we assume `klass` is in the
349 // If the destination is a direct interface of a class defined in the DEX files being
365 // Check if we have an interface defined in the DEX files being compiled, direclty
458 // Both `destination` and `source` are defined in the compiled DEX files.
486 // Get string IDs for both descriptors and store in the appropriate set.
552 static inline uint32_t DecodeUint32WithOverflowCheck(const uint8_t** in, const uint8_t* end) {
553 CHECK_LT(*in, end);
554 return DecodeUnsignedLeb128(in);
557 template<typename T> inline uint32_t Encode(T in);
559 template<> inline uint32_t Encode<uint16_t>(uint16_t in) {
560 return in;
562 template<> inline uint32_t Encode<uint32_t>(uint32_t in) {
563 return in;
565 template<> inline uint32_t Encode<dex::TypeIndex>(dex::TypeIndex in) {
566 return in.index_;
568 template<> inline uint32_t Encode<dex::StringIndex>(dex::StringIndex in) {
569 return in.index_;
572 template<typename T> inline T Decode(uint32_t in);
574 template<> inline uint16_t Decode<uint16_t>(uint32_t in) {
575 return dchecked_integral_cast<uint16_t>(in);
577 template<> inline uint32_t Decode<uint32_t>(uint32_t in) {
578 return in;
580 template<> inline dex::TypeIndex Decode<dex::TypeIndex>(uint32_t in) {
581 return dex::TypeIndex(in);
583 template<> inline dex::StringIndex Decode<dex::StringIndex>(uint32_t in) {
584 return dex::StringIndex(in);
593 static inline void DecodeTuple(const uint8_t** in, const uint8_t* end, dex::TypeIndex* t) {
594 *t = Decode<dex::TypeIndex>(DecodeUint32WithOverflowCheck(in, end));
604 static inline void DecodeTuple(const uint8_t** in, const uint8_t* end, std::tuple<T1, T2>* t) {
605 T1 v1 = Decode<T1>(DecodeUint32WithOverflowCheck(in, end));
606 T2 v2 = Decode<T2>(DecodeUint32WithOverflowCheck(in, end));
618 static inline void DecodeTuple(const uint8_t** in, const uint8_t* end, std::tuple<T1, T2, T3>* t) {
619 T1 v1 = Decode<T1>(DecodeUint32WithOverflowCheck(in, end));
620 T2 v2 = Decode<T2>(DecodeUint32WithOverflowCheck(in, end));
621 T3 v3 = Decode<T3>(DecodeUint32WithOverflowCheck(in, end));
643 static inline void DecodeSet(const uint8_t** in, const uint8_t* end, std::set<T>* set) {
645 size_t num_entries = DecodeUint32WithOverflowCheck(in, end);
648 DecodeTuple(in, end, &tuple);
654 static inline void DecodeUint16Vector(const uint8_t** in,
658 size_t num_entries = DecodeUint32WithOverflowCheck(in, end);
662 Decode<T>(dchecked_integral_cast<uint16_t>(DecodeUint32WithOverflowCheck(in, end))));
677 static inline void DecodeStringVector(const uint8_t** in,
681 size_t num_strings = DecodeUint32WithOverflowCheck(in, end);
684 CHECK_LT(*in, end);
685 const char* string_start = reinterpret_cast<const char*>(*in);
687 *in += strings->back().length() + 1;
816 << "in class "
834 << "in class "