Searched refs:magic (Results 1 - 13 of 13) sorted by relevance

/art/test/037-inherit/src/
H A DMain.java10 MagicClass magic = new MagicClass();
12 System.out.print("magic is ");
13 System.out.println(magic.getSomeData());
/art/runtime/gc/space/
H A Dlarge_object_space_test.cc57 // Fill in our magic value.
58 byte magic = (request_size & 0xFF) | 1; local
59 memset(obj, magic, request_size);
76 byte magic = (request_size & 0xFF) | 1; local
78 ASSERT_EQ(reinterpret_cast<const byte*>(obj)[k], magic);
/art/runtime/
H A Ddex_file.cc53 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
54 CHECK(magic != NULL);
60 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic)));
61 if (n != sizeof(*magic)) {
62 *error_msg = StringPrintf("Failed to find magic in '%s'", filename);
75 uint32_t magic; local
89 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg));
94 if (IsZipMagic(magic)) {
109 if (IsDexMagic(magic)) {
123 uint32_t magic; local
408 IsMagicValid(const byte* magic) argument
412 IsVersionValid(const byte* magic) argument
[all...]
H A Dutils.cc1311 bool IsZipMagic(uint32_t magic) { argument
1312 return (('P' == ((magic >> 0) & 0xff)) &&
1313 ('K' == ((magic >> 8) & 0xff)));
1316 bool IsDexMagic(uint32_t magic) { argument
1317 return DexFile::IsMagicValid(reinterpret_cast<const byte*>(&magic));
1320 bool IsOatMagic(uint32_t magic) { argument
1321 return (memcmp(reinterpret_cast<const byte*>(magic),
H A Dutils.h519 // Check whether the given magic matches a known file type.
520 bool IsZipMagic(uint32_t magic);
521 bool IsDexMagic(uint32_t magic);
522 bool IsOatMagic(uint32_t magic);
H A Ddex_file.h442 // Decode the dex magic version
445 // Returns true if the byte string points to the magic value.
446 static bool IsMagicValid(const byte* magic);
448 // Returns true if the byte string after the magic is the correct value.
449 static bool IsVersionValid(const byte* magic);
945 // Returns true if the header magic and version numbers are of the expected values.
H A Dcheck_jni.cc917 uint32_t magic; member in struct:art::GuardedCopy
955 pExtra->magic = kGuardMagic;
985 // Before we do anything with "pExtra", check the magic number. We
989 if (memcmp(&pExtra->magic, &kMagicCmp, 4) != 0) {
991 memcpy(buf, &pExtra->magic, 4);
993 "guard magic does not match (found 0x%02x%02x%02x%02x) -- incorrect data pointer %p?",
/art/compiler/
H A Dimage_test.cc220 char* magic = const_cast<char*>(image_header.GetMagic());
221 strcpy(magic, ""); // bad magic
223 strcpy(magic, "art\n000"); // bad version
H A Doat_test.cc208 char* magic = const_cast<char*>(oat_header->GetMagic()); local
209 strcpy(magic, ""); // bad magic
211 strcpy(magic, "oat\n000"); // bad version
/art/compiler/dex/quick/x86/
H A Dint_x86.cc525 void X86Mir2Lir::CalculateMagicAndShift(int64_t divisor, int64_t& magic, int& shift, bool is_long) { argument
526 // It does not make sense to calculate magic and shift for zero divisor.
531 * The magic number M and shift S can be calculated in the following way:
544 * the magic number M is calcuated by
587 magic = (divisor > 0) ? (quotient2 + 1) : (-quotient2 - 1);
590 magic = static_cast<int>(magic);
652 int64_t magic; local
654 CalculateMagicAndShift((int64_t)imm, magic, shift, false /* is_long */);
664 * 1. multiply magic numbe
1846 int64_t magic; local
[all...]
H A Dcodegen_x86.h714 * @brief Calculate magic number and shift for a given divisor
716 * @param magic hold calculated magic number
720 void CalculateMagicAndShift(int64_t divisor, int64_t& magic, int& shift, bool is_long);
/art/runtime/hprof/
H A Dhprof.cc636 char magic[] = "JAVA PROFILE 1.0.3"; local
640 // U1: NUL-terminated magic string.
641 fwrite(magic, 1, sizeof(magic), header_fp_);
/art/compiler/dex/quick/arm/
H A Dint_arm.cc465 // Table of magic divisors
467 uint32_t magic; member in struct:art::MagicTable
503 LoadConstant(r_magic, magic_table[lit].magic);

Completed in 1164 milliseconds