Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 356923004: Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 3284 matching lines...) Expand 10 before | Expand all | Expand 10 after
3295 static PP_Bool Pnacl_M25_PPB_NaCl_Private_Are3DInterfacesDisabled(void) { 3295 static PP_Bool Pnacl_M25_PPB_NaCl_Private_Are3DInterfacesDisabled(void) {
3296 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3296 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3297 return iface->Are3DInterfacesDisabled(); 3297 return iface->Are3DInterfacesDisabled();
3298 } 3298 }
3299 3299
3300 static int32_t Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle(PP_FileHandle so urce_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired _access, uint32_t options) { 3300 static int32_t Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle(PP_FileHandle so urce_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired _access, uint32_t options) {
3301 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3301 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3302 return iface->BrokerDuplicateHandle(source_handle, process_id, target_handle, desired_access, options); 3302 return iface->BrokerDuplicateHandle(source_handle, process_id, target_handle, desired_access, options);
3303 } 3303 }
3304 3304
3305 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_GetReadonlyPnaclFd(const char* u rl) { 3305 static void Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd(const char* url, struc t PP_NaClFileInfo* out_file_info) {
3306 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3306 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3307 return iface->GetReadonlyPnaclFd(url); 3307 iface->GetReadExecPnaclFd(url, out_file_info);
3308 } 3308 }
3309 3309
3310 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) { 3310 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) {
3311 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3311 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3312 return iface->CreateTemporaryFile(instance); 3312 return iface->CreateTemporaryFile(instance);
3313 } 3313 }
3314 3314
3315 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) { 3315 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) {
3316 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3316 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3317 return iface->GetNumberOfProcessors(); 3317 return iface->GetNumberOfProcessors();
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
5217 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = { 5217 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = {
5218 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M 33_PPB_IsolatedFileSystem_Private_Open 5218 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M 33_PPB_IsolatedFileSystem_Private_Open
5219 }; 5219 };
5220 5220
5221 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 5221 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
5222 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime , const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e nable_crash_throttling, void* imc_handle, struct PP_CompletionCallback callback) )&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr, 5222 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime , const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e nable_crash_throttling, void* imc_handle, struct PP_CompletionCallback callback) )&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr,
5223 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy, 5223 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy,
5224 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 5224 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
5225 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 5225 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
5226 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, 5226 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle,
5227 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC l_Private_GetReadonlyPnaclFd, 5227 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd,
5228 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5228 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5229 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5229 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5230 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5230 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5231 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags , PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, 5231 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags , PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd,
5232 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_ NaCl_Private_ReportTranslationFinished, 5232 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_ NaCl_Private_ReportTranslationFinished,
5233 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type , const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent, 5233 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type , const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent,
5234 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64 _t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc cess, 5234 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64 _t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc cess,
5235 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, 5235 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError,
5236 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort, 5236 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort,
5237 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac l_M25_PPB_NaCl_Private_NexeDidCrash, 5237 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac l_M25_PPB_NaCl_Private_NexeDidCrash,
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
6292 6292
6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6294 if (wrapper->real_iface == NULL) { 6294 if (wrapper->real_iface == NULL) {
6295 const void *iface = (*__real_PPPGetInterface)(name); 6295 const void *iface = (*__real_PPPGetInterface)(name);
6296 if (NULL == iface) return NULL; 6296 if (NULL == iface) return NULL;
6297 wrapper->real_iface = iface; 6297 wrapper->real_iface = iface;
6298 } 6298 }
6299 6299
6300 return wrapper->wrapped_iface; 6300 return wrapper->wrapped_iface;
6301 } 6301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698