28 #ifndef V8_PLATFORM_TLS_MAC_H_
29 #define V8_PLATFORM_TLS_MAC_H_
36 #if defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)
38 #define V8_FAST_TLS_SUPPORTED 1
40 extern intptr_t kMacTlsBaseOffset;
42 INLINE(intptr_t InternalGetExistingThreadLocal(intptr_t index));
44 inline intptr_t InternalGetExistingThreadLocal(intptr_t index) {
46 #if defined(V8_HOST_ARCH_IA32)
47 asm(
"movl %%gs:(%1,%2,4), %0;"
49 :
"r"(kMacTlsBaseOffset),
"r"(index));
51 asm(
"movq %%gs:(%1,%2,8), %0;"
53 :
"r"(kMacTlsBaseOffset),
"r"(index));
62 #endif // V8_PLATFORM_TLS_MAC_H_
INLINE(static HeapObject *EnsureDoubleAligned(Heap *heap, HeapObject *object, int size))