Lines Matching refs:g_thunks
36 PROTECTED_MEMORY_SECTION base::ProtectedMemory<MojoSystemThunks> g_thunks; variable
49 (reinterpret_cast<uintptr_t>(static_cast<const void*>(&g_thunks->name)) - \
50 reinterpret_cast<uintptr_t>(static_cast<const void*>(&g_thunks)) < \
51 g_thunks->size)
55 ? base::UnsanitizedCfiCall(g_thunks, &MojoSystemThunks::name)(__VA_ARGS__) \
117 DCHECK_EQ(g_thunks->size, 0u); in CoreLibraryInitializer()
119 auto writer = base::AutoWritableMemory::Create(g_thunks); in CoreLibraryInitializer()
120 g_thunks->size = sizeof(*g_thunks); in CoreLibraryInitializer()
121 base::UnsanitizedCfiCall(g_get_thunks)(&*g_thunks); in CoreLibraryInitializer()
124 CHECK_GT(g_thunks->size, 0u) in CoreLibraryInitializer()
149 DCHECK(g_thunks->Initialize); in MojoInitialize()
476 DCHECK_EQ(thunks->size, sizeof(*g_thunks)); in MojoEmbedderSetSystemThunks()
481 DCHECK(g_thunks->size == 0 || !memcmp(&*g_thunks, thunks, sizeof(*g_thunks))) in MojoEmbedderSetSystemThunks()
484 auto writer = base::AutoWritableMemory::Create(g_thunks); in MojoEmbedderSetSystemThunks()
485 *g_thunks = *thunks; in MojoEmbedderSetSystemThunks()