Changeset 153197 in webkit for trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h
- Timestamp:
- Jul 24, 2013, 9:01:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h
r153162 r153197 53 53 54 54 #define PROBE_CPU_EAX_OFFSET (4 * PTR_SIZE) 55 #define PROBE_CPU_E CX_OFFSET (5 * PTR_SIZE)56 #define PROBE_CPU_E DX_OFFSET (6 * PTR_SIZE)57 #define PROBE_CPU_E BX_OFFSET (7 * PTR_SIZE)58 #define PROBE_CPU_ES P_OFFSET (8 * PTR_SIZE)59 #define PROBE_CPU_E BP_OFFSET (9 * PTR_SIZE)60 #define PROBE_CPU_E SI_OFFSET (10 * PTR_SIZE)61 #define PROBE_CPU_E DI_OFFSET (11 * PTR_SIZE)55 #define PROBE_CPU_EBX_OFFSET (5 * PTR_SIZE) 56 #define PROBE_CPU_ECX_OFFSET (6 * PTR_SIZE) 57 #define PROBE_CPU_EDX_OFFSET (7 * PTR_SIZE) 58 #define PROBE_CPU_ESI_OFFSET (8 * PTR_SIZE) 59 #define PROBE_CPU_EDI_OFFSET (9 * PTR_SIZE) 60 #define PROBE_CPU_EBP_OFFSET (10 * PTR_SIZE) 61 #define PROBE_CPU_ESP_OFFSET (11 * PTR_SIZE) 62 62 63 63 #if CPU(X86) 64 #define PROBE_CPU_EIP_OFFSET (12 * PTR_SIZE) 65 #define PROBE_FIRST_XMM_OFFSET (16 * PTR_SIZE) // After padding. 64 #define PROBE_FIRST_SPECIAL_OFFSET (12 * PTR_SIZE) 66 65 #else // CPU(X86_64) 67 66 #define PROBE_CPU_R8_OFFSET (12 * PTR_SIZE) … … 73 72 #define PROBE_CPU_R14_OFFSET (18 * PTR_SIZE) 74 73 #define PROBE_CPU_R15_OFFSET (19 * PTR_SIZE) 75 #define PROBE_CPU_EIP_OFFSET (20 * PTR_SIZE) 76 #define PROBE_FIRST_XMM_OFFSET (22 * PTR_SIZE) // After padding. 74 #define PROBE_FIRST_SPECIAL_OFFSET (20 * PTR_SIZE) 75 #endif // CPU(X86_64) 76 77 #define PROBE_CPU_EIP_OFFSET (PROBE_FIRST_SPECIAL_OFFSET + (0 * PTR_SIZE)) 78 #define PROBE_CPU_EFLAGS_OFFSET (PROBE_FIRST_SPECIAL_OFFSET + (1 * PTR_SIZE)) 79 80 #if CPU(X86) 81 #define PROBE_FIRST_XMM_OFFSET (PROBE_FIRST_SPECIAL_OFFSET + (4 * PTR_SIZE)) // After padding. 82 #else // CPU(X86_64) 83 #define PROBE_FIRST_XMM_OFFSET (PROBE_FIRST_SPECIAL_OFFSET + (2 * PTR_SIZE)) // After padding. 77 84 #endif // CPU(X86_64) 78 85 … … 87 94 #define PROBE_CPU_XMM7_OFFSET (PROBE_FIRST_XMM_OFFSET + (7 * XMM_SIZE)) 88 95 96 #define PROBE_SIZE (PROBE_CPU_XMM7_OFFSET + XMM_SIZE) 89 97 90 98 // These ASSERTs remind you that if you change the layout of ProbeContext, … … 104 112 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.esi) == PROBE_CPU_ESI_OFFSET, ProbeContext_cpu_esi_offset_matches_ctiMasmProbeTrampoline); 105 113 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.edi) == PROBE_CPU_EDI_OFFSET, ProbeContext_cpu_edi_offset_matches_ctiMasmProbeTrampoline); 114 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.eip) == PROBE_CPU_EIP_OFFSET, ProbeContext_cpu_eip_offset_matches_ctiMasmProbeTrampoline); 115 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.eflags) == PROBE_CPU_EFLAGS_OFFSET, ProbeContext_cpu_eflags_offset_matches_ctiMasmProbeTrampoline); 106 116 107 117 #if CPU(X86_64) … … 116 126 #endif // CPU(X86_64) 117 127 118 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.eip) == PROBE_CPU_EIP_OFFSET, ProbeContext_cpu_eip_offset_matches_ctiMasmProbeTrampoline);119 120 128 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.xmm0) == PROBE_CPU_XMM0_OFFSET, ProbeContext_cpu_xmm0_offset_matches_ctiMasmProbeTrampoline); 121 129 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.xmm1) == PROBE_CPU_XMM1_OFFSET, ProbeContext_cpu_xmm1_offset_matches_ctiMasmProbeTrampoline); … … 126 134 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.xmm6) == PROBE_CPU_XMM6_OFFSET, ProbeContext_cpu_xmm6_offset_matches_ctiMasmProbeTrampoline); 127 135 COMPILE_ASSERT(PROBE_OFFSETOF(cpu.xmm7) == PROBE_CPU_XMM7_OFFSET, ProbeContext_cpu_xmm7_offset_matches_ctiMasmProbeTrampoline); 136 137 COMPILE_ASSERT(sizeof(MacroAssembler::ProbeContext) == PROBE_SIZE, ProbeContext_size_matches_ctiMasmProbeTrampoline); 128 138 129 139 // Also double check that the xmm registers are 16 byte (128-bit) aligned as
Note:
See TracChangeset
for help on using the changeset viewer.