Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/art/art/compiler/jni/     Datei vom 26.5.2026 mit Größe 14 kB image not shown  

Quelle  jni_cfi_test_expected.inc   Sprache: Delphi

 

// TODO These arrays should be generated automatically. To regenerate an array,
// manually set JNICFITest::kGenerateExpected to true, and run:
//     out/host/linux-x86/nativetest64/art_compiler_host_tests/art_compiler_host_tests '--gtest_filter=JNICFITest.*'
// The gc_is_marking offset can be adjusted by tweaking the last CL that made a
// similar change.

static constexpr uint8_t expected_asm_kThumb2[] = {
    0x2D, 0xE9, 0xE0, 0x4D, 0x2D, 0xED, 0x10, 0x8A, 0x81, 0xB0, 0x00, 0x90,
    0x19, 0x91, 0x8D, 0xED, 0x1A, 0x0A, 0x1B, 0x92, 0x1C, 0x93, 0x88, 0xB0,
    0x08, 0xB0, 0x01, 0xB0, 0xBD, 0xEC, 0x10, 0x8A, 0xBD, 0xE8, 0xE0, 0x4D,
    0xD9, 0xF8, 0x20, 0x80, 0x70, 0x47,
};
static constexpr uint8_t expected_cfi_kThumb2[] = {
    0x44, 0x0E, 0x1C, 0x85, 0x07, 0x86, 0x06, 0x87, 0x05, 0x88, 0x04, 0x8A,
    0x03, 0x8B, 0x02, 0x8E, 0x01, 0x44, 0x0E, 0x5C, 0x05, 0x50, 0x17, 0x05,
    0x51, 0x16, 0x05, 0x52, 0x15, 0x05, 0x53, 0x14, 0x05, 0x54, 0x13, 0x05,
    0x55, 0x12, 0x05, 0x56, 0x11, 0x05, 0x57, 0x10, 0x05, 0x58, 0x0F, 0x05,
    0x59, 0x0E, 0x05, 0x5A, 0x0D, 0x05, 0x5B, 0x0C, 0x05, 0x5C, 0x0B, 0x05,
    0x5D, 0x0A, 0x05, 0x5E, 0x09, 0x05, 0x5F, 0x08, 0x42, 0x0E, 0x60, 0x4E,
    0x0E, 0x80, 0x01, 0x42, 0x0E, 0x60, 0x0A, 0x42, 0x0E, 0x5C, 0x44, 0x0E,
    0x1C, 0x06, 0x50, 0x06, 0x51, 0x06, 0x52, 0x06, 0x53, 0x06, 0x54, 0x06,
    0x55, 0x06, 0x56, 0x06, 0x57, 0x06, 0x58, 0x06, 0x59, 0x06, 0x5A, 0x06,
    0x5B, 0x06, 0x5C, 0x06, 0x5D, 0x06, 0x5E, 0x06, 0x5F, 0x44, 0x0E, 0x00,
    0xC5, 0xC6, 0xC7, 0xC8, 0xCA, 0xCB, 0xCE, 0x46, 0x0B, 0x0E, 0x60,
};
// 0x00000000: .cfi_def_cfa: R8 +0
// 0x00000000: push {r5,r6,r7,r8,r10,r11,lr}
// 0x00000004: .cfi_def_cfa_offset: +28
// 0x00000004: .cfi_offset: R5 -28
// 0x00000004: .cfi_offset: R6 -24
// 0x00000004: .cfi_offset: R7 -20
// 0x00000004: .cfi_offset: R8 -16
// 0x00000004: .cfi_offset: R10 -12
// 0x00000004: .cfi_offset: R11 -8
// 0x00000004: .cfi_offset: LR -4
// 0x00000004: vpush {s16-s31}
// 0x00000008: .cfi_def_cfa_offset: +92
// 0x00000008: .cfi_offset_extended: reg80 -92
// 0x00000008: .cfi_offset_extended: reg81 -88
// 0x00000008: .cfi_offset_extended: reg82 -84
// 0x00000008: .cfi_offset_extended: reg83 -80
// 0x00000008: .cfi_offset_extended: reg84 -76
// 0x00000008: .cfi_offset_extended: reg85 -72
// 0x00000008: .cfi_offset_extended: reg86 -68
// 0x00000008: .cfi_offset_extended: reg87 -64
// 0x00000008: .cfi_offset_extended: reg88 -60
// 0x00000008: .cfi_offset_extended: reg89 -56
// 0x00000008: .cfi_offset_extended: reg90 -52
// 0x00000008: .cfi_offset_extended: reg91 -48
// 0x00000008: .cfi_offset_extended: reg92 -44
// 0x00000008: .cfi_offset_extended: reg93 -40
// 0x00000008: .cfi_offset_extended: reg94 -36
// 0x00000008: .cfi_offset_extended: reg95 -32
// 0x00000008: sub sp, #4
// 0x0000000a: .cfi_def_cfa_offset: +96
// 0x0000000a: str r0, [sp]
// 0x0000000c: str r1, [sp, #100]
// 0x0000000e: vstr s0, [sp, #104]
// 0x00000012: str r2, [sp, #108]
// 0x00000014: str r3, [sp, #112]
// 0x00000016: sub sp, #32
// 0x00000018: .cfi_def_cfa_offset: +128
// 0x00000018: add sp, #32
// 0x0000001a: .cfi_def_cfa_offset: +96
// 0x0000001a: .cfi_remember_state:
// 0x0000001a: add sp, #4
// 0x0000001c: .cfi_def_cfa_offset: +92
// 0x0000001c: vpop {s16-s31}
// 0x00000020: .cfi_def_cfa_offset: +28
// 0x00000020: .cfi_restore_extended: reg80
// 0x00000020: .cfi_restore_extended: reg81
// 0x00000020: .cfi_restore_extended: reg82
// 0x00000020: .cfi_restore_extended: reg83
// 0x00000020: .cfi_restore_extended: reg84
// 0x00000020: .cfi_restore_extended: reg85
// 0x00000020: .cfi_restore_extended: reg86
// 0x00000020: .cfi_restore_extended: reg87
// 0x00000020: .cfi_restore_extended: reg88
// 0x00000020: .cfi_restore_extended: reg89
// 0x00000020: .cfi_restore_extended: reg90
// 0x00000020: .cfi_restore_extended: reg91
// 0x00000020: .cfi_restore_extended: reg92
// 0x00000020: .cfi_restore_extended: reg93
// 0x00000020: .cfi_restore_extended: reg94
// 0x00000020: .cfi_restore_extended: reg95
// 0x00000020: pop {r5,r6,r7,r8,r10,r11,lr}
// 0x00000024: .cfi_def_cfa_offset: +0
// 0x00000024: .cfi_restore: R5
// 0x00000024: .cfi_restore: R6
// 0x00000024: .cfi_restore: R7
// 0x00000024: .cfi_restore: R8
// 0x00000024: .cfi_restore: R10
// 0x00000024: .cfi_restore: R11
// 0x00000024: .cfi_restore: LR
// 0x00000024: ldr r8, [tr, #32] ; is_gc_marking
// 0x00000028: bx lr
// 0x0000002a: .cfi_restore_state:
// 0x0000002a: .cfi_def_cfa_offset: +96

static constexpr uint8_t expected_asm_kArm64[] = {
    0xFF, 0xC3, 0x02, 0xD1, 0xF3, 0x53, 0x05, 0xA9, 0xF5, 0x5B, 0x06, 0xA9,
    0xF7, 0x63, 0x07, 0xA9, 0xF9, 0x6B, 0x08, 0xA9, 0xFB, 0x73, 0x09, 0xA9,
    0xFD, 0x7B, 0x0A, 0xA9, 0xE8, 0x27, 0x01, 0x6D, 0xEA, 0x2F, 0x02, 0x6D,
    0xEC, 0x37, 0x03, 0x6D, 0xEE, 0x3F, 0x04, 0x6D, 0xE0, 0x03, 0x00, 0xF9,
    0xE1, 0xBB, 0x00, 0xB9, 0xE0, 0xBF, 0x00, 0xBD, 0xE2, 0xC3, 0x00, 0xB9,
    0xE3, 0xC7, 0x00, 0xB9, 0xFF, 0x83, 0x00, 0xD1, 0xFF, 0x83, 0x00, 0x91,
    0xF3, 0x53, 0x45, 0xA9, 0xF5, 0x5B, 0x46, 0xA9, 0xF7, 0x63, 0x47, 0xA9,
    0xF9, 0x6B, 0x48, 0xA9, 0xFB, 0x73, 0x49, 0xA9, 0xFD, 0x7B, 0x4A, 0xA9,
    0xE8, 0x27, 0x41, 0x6D, 0xEA, 0x2F, 0x42, 0x6D, 0xEC, 0x37, 0x43, 0x6D,
    0xEE, 0x3F, 0x44, 0x6D, 0x74, 0x22, 0x40, 0xB9, 0xFF, 0xC3, 0x02, 0x91,
    0xC0, 0x03, 0x5F, 0xD6,
};
static constexpr uint8_t expected_cfi_kArm64[] = {
    0x44, 0x0E, 0xB0, 0x01, 0x44, 0x93, 0x18, 0x94, 0x16, 0x44, 0x95, 0x14,
    0x96, 0x12, 0x44, 0x97, 0x10, 0x98, 0x0E, 0x44, 0x99, 0x0C, 0x9A, 0x0A,
    0x44, 0x9B, 0x08, 0x9C, 0x06, 0x44, 0x9D, 0x04, 0x9E, 0x02, 0x44, 0x05,
    0x48, 0x28, 0x05, 0x49, 0x26, 0x44, 0x05, 0x4A, 0x24, 0x05, 0x4B, 0x22,
    0x44, 0x05, 0x4C, 0x20, 0x05, 0x4D, 0x1E, 0x44, 0x05, 0x4E, 0x1C, 0x05,
    0x4F, 0x1A, 0x58, 0x0E, 0xD0, 0x01, 0x44, 0x0E, 0xB0, 0x01, 0x0A, 0x44,
    0xD3, 0xD4, 0x44, 0xD5, 0xD6, 0x44, 0xD7, 0xD8, 0x44, 0xD9, 0xDA, 0x44,
    0xDB, 0xDC, 0x44, 0xDD, 0xDE, 0x44, 0x06, 0x48, 0x06, 0x49, 0x44, 0x06,
    0x4A, 0x06, 0x4B, 0x44, 0x06, 0x4C, 0x06, 0x4D, 0x44, 0x06, 0x4E, 0x06,
    0x4F, 0x48, 0x0E, 0x00, 0x44, 0x0B, 0x0E, 0xB0, 0x01,
};
// 0x00000000: .cfi_def_cfa: W8 +0
// 0x00000000: sub sp, sp, #0xb0 (176)
// 0x00000004: .cfi_def_cfa_offset: +176
// 0x00000004: stp tr, x20, [sp, #80]
// 0x00000008: .cfi_offset: W19 -96
// 0x00000008: .cfi_offset: W20 -88
// 0x00000008: stp x21, x22, [sp, #96]
// 0x0000000c: .cfi_offset: W21 -80
// 0x0000000c: .cfi_offset: W22 -72
// 0x0000000c: stp x23, x24, [sp, #112]
// 0x00000010: .cfi_offset: W23 -64
// 0x00000010: .cfi_offset: W24 -56
// 0x00000010: stp x25, x26, [sp, #128]
// 0x00000014: .cfi_offset: W25 -48
// 0x00000014: .cfi_offset: W26 -40
// 0x00000014: stp x27, x28, [sp, #144]
// 0x00000018: .cfi_offset: W27 -32
// 0x00000018: .cfi_offset: W28 -24
// 0x00000018: stp x29, lr, [sp, #160]
// 0x0000001c: .cfi_offset: W29 -16
// 0x0000001c: .cfi_offset: W30 -8
// 0x0000001c: stp d8, d9, [sp, #16]
// 0x00000020: .cfi_offset_extended: B8 -160
// 0x00000020: .cfi_offset_extended: B9 -152
// 0x00000020: stp d10, d11, [sp, #32]
// 0x00000024: .cfi_offset_extended: B10 -144
// 0x00000024: .cfi_offset_extended: B11 -136
// 0x00000024: stp d12, d13, [sp, #48]
// 0x00000028: .cfi_offset_extended: B12 -128
// 0x00000028: .cfi_offset_extended: B13 -120
// 0x00000028: stp d14, d15, [sp, #64]
// 0x0000002c: .cfi_offset_extended: B14 -112
// 0x0000002c: .cfi_offset_extended: B15 -104
// 0x0000002c: str x0, [sp]
// 0x00000030: str w1, [sp, #184]
// 0x00000034: str s0, [sp, #188]
// 0x00000038: str w2, [sp, #192]
// 0x0000003c: str w3, [sp, #196]
// 0x00000040: sub sp, sp, #0x20 (32)
// 0x00000044: .cfi_def_cfa_offset: +208
// 0x00000044: add sp, sp, #0x20 (32)
// 0x00000048: .cfi_def_cfa_offset: +176
// 0x00000048: .cfi_remember_state:
// 0x00000048: ldp tr, x20, [sp, #80]
// 0x0000004c: .cfi_restore: W19
// 0x0000004c: .cfi_restore: W20
// 0x0000004c: ldp x21, x22, [sp, #96]
// 0x00000050: .cfi_restore: W21
// 0x00000050: .cfi_restore: W22
// 0x00000050: ldp x23, x24, [sp, #112]
// 0x00000054: .cfi_restore: W23
// 0x00000054: .cfi_restore: W24
// 0x00000054: ldp x25, x26, [sp, #128]
// 0x00000058: .cfi_restore: W25
// 0x00000058: .cfi_restore: W26
// 0x00000058: ldp x27, x28, [sp, #144]
// 0x0000005c: .cfi_restore: W27
// 0x0000005c: .cfi_restore: W28
// 0x0000005c: ldp x29, lr, [sp, #160]
// 0x00000060: .cfi_restore: W29
// 0x00000060: .cfi_restore: W30
// 0x00000060: ldp d8, d9, [sp, #16]
// 0x00000064: .cfi_restore_extended: B8
// 0x00000064: .cfi_restore_extended: B9
// 0x00000064: ldp d10, d11, [sp, #32]
// 0x00000068: .cfi_restore_extended: B10
// 0x00000068: .cfi_restore_extended: B11
// 0x00000068: ldp d12, d13, [sp, #48]
// 0x0000006c: .cfi_restore_extended: B12
// 0x0000006c: .cfi_restore_extended: B13
// 0x0000006c: ldp d14, d15, [sp, #64]
// 0x00000070: .cfi_restore_extended: B14
// 0x00000070: .cfi_restore_extended: B15
// 0x00000070: ldr w20, [tr, #32] ; is_gc_marking
// 0x00000074: add sp, sp, #0xb0 (176)
// 0x00000078: .cfi_def_cfa_offset: +0
// 0x00000078: ret
// 0x0000007c: .cfi_restore_state:
// 0x0000007c: .cfi_def_cfa_offset: +176

static constexpr uint8_t expected_asm_kX86[] = {
    0x57, 0x56, 0x55, 0x83, 0xC4, 0xF4, 0x50, 0x89, 0x4C, 0x24, 0x24, 0xF3,
    0x0F, 0x11, 0x44, 0x24, 0x28, 0x89, 0x54, 0x24, 0x2C, 0x89, 0x5C, 0x24,
    0x30, 0x83, 0xC4, 0xE0, 0x83, 0xC4, 0x20, 0x83, 0xC4, 0x10, 0x5D, 0x5E,
    0x5F, 0xC3,
};
static constexpr uint8_t expected_cfi_kX86[] = {
    0x41, 0x0E, 0x08, 0x87, 0x02, 0x41, 0x0E, 0x0C, 0x86, 0x03, 0x41, 0x0E,
    0x10, 0x85, 0x04, 0x43, 0x0E, 0x1C, 0x41, 0x0E, 0x20, 0x55, 0x0E, 0x40,
    0x43, 0x0E, 0x20, 0x0A, 0x43, 0x0E, 0x10, 0x41, 0x0E, 0x0C, 0xC5, 0x41,
    0x0E, 0x08, 0xC6, 0x41, 0x0E, 0x04, 0xC7, 0x41, 0x0B, 0x0E, 0x20,
};
// 0x00000000: .cfi_def_cfa: EIP +0
// 0x00000000: push edi
// 0x00000001: .cfi_def_cfa_offset: +8
// 0x00000001: .cfi_offset: EDI -8
// 0x00000001: push esi
// 0x00000002: .cfi_def_cfa_offset: +12
// 0x00000002: .cfi_offset: ESI -12
// 0x00000002: push ebp
// 0x00000003: .cfi_def_cfa_offset: +16
// 0x00000003: .cfi_offset: EBP -16
// 0x00000003: add esp, -12
// 0x00000006: .cfi_def_cfa_offset: +28
// 0x00000006: push eax
// 0x00000007: .cfi_def_cfa_offset: +32
// 0x00000007: mov [esp + 36], ecx
// 0x0000000b: movss [esp + 40], xmm0
// 0x00000011: mov [esp + 44], edx
// 0x00000015: mov [esp + 48], ebx
// 0x00000019: add esp, -32
// 0x0000001c: .cfi_def_cfa_offset: +64
// 0x0000001c: add esp, 32
// 0x0000001f: .cfi_def_cfa_offset: +32
// 0x0000001f: .cfi_remember_state:
// 0x0000001f: add esp, 16
// 0x00000022: .cfi_def_cfa_offset: +16
// 0x00000022: pop ebp
// 0x00000023: .cfi_def_cfa_offset: +12
// 0x00000023: .cfi_restore: EBP
// 0x00000023: pop esi
// 0x00000024: .cfi_def_cfa_offset: +8
// 0x00000024: .cfi_restore: ESI
// 0x00000024: pop edi
// 0x00000025: .cfi_def_cfa_offset: +4
// 0x00000025: .cfi_restore: EDI
// 0x00000025: ret
// 0x00000026: .cfi_restore_state:
// 0x00000026: .cfi_def_cfa_offset: +32

static constexpr uint8_t expected_asm_kX86_64[] = {
    0x41, 0x57, 0x41, 0x56, 0x41, 0x55, 0x41, 0x54, 0x55, 0x53, 0x48, 0x83,
    0xEC, 0x28, 0xF2, 0x44, 0x0F, 0x11, 0x7C, 0x24, 0x20, 0xF2, 0x44, 0x0F,
    0x11, 0x74, 0x24, 0x18, 0xF2, 0x44, 0x0F, 0x11, 0x6C, 0x24, 0x10, 0xF2,
    0x44, 0x0F, 0x11, 0x64, 0x24, 0x08, 0x48, 0x89, 0x3C, 0x24, 0x89, 0x74,
    0x24, 0x68, 0xF3, 0x0F, 0x11, 0x44, 0x24, 0x6C, 0x89, 0x54, 0x24, 0x70,
    0x89, 0x4C, 0x24, 0x74, 0x48, 0x83, 0xC4, 0xE0, 0x48, 0x83, 0xC4, 0x20,
    0xF2, 0x44, 0x0F, 0x10, 0x64, 0x24, 0x08, 0xF2, 0x44, 0x0F, 0x10, 0x6C,
    0x24, 0x10, 0xF2, 0x44, 0x0F, 0x10, 0x74, 0x24, 0x18, 0xF2, 0x44, 0x0F,
    0x10, 0x7C, 0x24, 0x20, 0x48, 0x83, 0xC4, 0x28, 0x5B, 0x5D, 0x41, 0x5C,
    0x41, 0x5D, 0x41, 0x5E, 0x41, 0x5F, 0xC3,
};
static constexpr uint8_t expected_cfi_kX86_64[] = {
    0x42, 0x0E, 0x10, 0x8F, 0x04, 0x42, 0x0E, 0x18, 0x8E, 0x06, 0x42, 0x0E,
    0x20, 0x8D, 0x08, 0x42, 0x0E, 0x28, 0x8C, 0x0A, 0x41, 0x0E, 0x30, 0x86,
    0x0C, 0x41, 0x0E, 0x38, 0x83, 0x0E, 0x44, 0x0E, 0x60, 0x47, 0xA0, 0x10,
    0x47, 0x9F, 0x12, 0x47, 0x9E, 0x14, 0x47, 0x9D, 0x16, 0x5A, 0x0E, 0x80,
    0x01, 0x44, 0x0E, 0x60, 0x0A, 0x47, 0xDD, 0x47, 0xDE, 0x47, 0xDF, 0x47,
    0xE0, 0x44, 0x0E, 0x38, 0x41, 0x0E, 0x30, 0xC3, 0x41, 0x0E, 0x28, 0xC6,
    0x42, 0x0E, 0x20, 0xCC, 0x42, 0x0E, 0x18, 0xCD, 0x42, 0x0E, 0x10, 0xCE,
    0x42, 0x0E, 0x08, 0xCF, 0x41, 0x0B, 0x0E, 0x60,
};
// 0x00000000: .cfi_def_cfa: R8 +0
// 0x00000000: push r15
// 0x00000002: .cfi_def_cfa_offset: +16
// 0x00000002: .cfi_offset: R15 -16
// 0x00000002: push r14
// 0x00000004: .cfi_def_cfa_offset: +24
// 0x00000004: .cfi_offset: R14 -24
// 0x00000004: push r13
// 0x00000006: .cfi_def_cfa_offset: +32
// 0x00000006: .cfi_offset: R13 -32
// 0x00000006: push r12
// 0x00000008: .cfi_def_cfa_offset: +40
// 0x00000008: .cfi_offset: R12 -40
// 0x00000008: push rbp
// 0x00000009: .cfi_def_cfa_offset: +48
// 0x00000009: .cfi_offset: RBP -48
// 0x00000009: push rbx
// 0x0000000a: .cfi_def_cfa_offset: +56
// 0x0000000a: .cfi_offset: RBX -56
// 0x0000000a: subq rsp, 40
// 0x0000000e: .cfi_def_cfa_offset: +96
// 0x0000000e: movsd [rsp + 32], xmm15
// 0x00000015: .cfi_offset: XMM15 -64
// 0x00000015: movsd [rsp + 24], xmm14
// 0x0000001c: .cfi_offset: XMM14 -72
// 0x0000001c: movsd [rsp + 16], xmm13
// 0x00000023: .cfi_offset: XMM13 -80
// 0x00000023: movsd [rsp + 8], xmm12
// 0x0000002a: .cfi_offset: XMM12 -88
// 0x0000002a: movq [rsp], rdi
// 0x0000002e: mov [rsp + 104], esi
// 0x00000032: movss [rsp + 108], xmm0
// 0x00000038: mov [rsp + 112], edx
// 0x0000003c: mov [rsp + 116], ecx
// 0x00000040: addq rsp, -32
// 0x00000044: .cfi_def_cfa_offset: +128
// 0x00000044: addq rsp, 32
// 0x00000048: .cfi_def_cfa_offset: +96
// 0x00000048: .cfi_remember_state:
// 0x00000048: movsd xmm12, [rsp + 8]
// 0x0000004f: .cfi_restore: XMM12
// 0x0000004f: movsd xmm13, [rsp + 16]
// 0x00000056: .cfi_restore: XMM13
// 0x00000056: movsd xmm14, [rsp + 24]
// 0x0000005d: .cfi_restore: XMM14
// 0x0000005d: movsd xmm15, [rsp + 32]
// 0x00000064: .cfi_restore: XMM15
// 0x00000064: addq rsp, 40
// 0x00000068: .cfi_def_cfa_offset: +56
// 0x00000068: pop rbx
// 0x00000069: .cfi_def_cfa_offset: +48
// 0x00000069: .cfi_restore: RBX
// 0x00000069: pop rbp
// 0x0000006a: .cfi_def_cfa_offset: +40
// 0x0000006a: .cfi_restore: RBP
// 0x0000006a: pop r12
// 0x0000006c: .cfi_def_cfa_offset: +32
// 0x0000006c: .cfi_restore: R12
// 0x0000006c: pop r13
// 0x0000006e: .cfi_def_cfa_offset: +24
// 0x0000006e: .cfi_restore: R13
// 0x0000006e: pop r14
// 0x00000070: .cfi_def_cfa_offset: +16
// 0x00000070: .cfi_restore: R14
// 0x00000070: pop r15
// 0x00000072: .cfi_def_cfa_offset: +8
// 0x00000072: .cfi_restore: R15
// 0x00000072: ret
// 0x00000073: .cfi_restore_state:
// 0x00000073: .cfi_def_cfa_offset: +96


Messung
CHZG
979710097

¤ Dauer der Verarbeitung: 0.10 Sekunden  ¤

*© Formatika GbR, Deutschland