| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/trusted/service_runtime/sel_main_chrome.h" | 7 #include "native_client/src/trusted/service_runtime/sel_main_chrome.h" |
| 8 | 8 |
| 9 #include "native_client/src/include/portability.h" | 9 #include "native_client/src/include/portability.h" |
| 10 #include "native_client/src/include/portability_io.h" | 10 #include "native_client/src/include/portability_io.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 NaClSetCreateMemoryObjectFunc(args->create_memory_object_func); | 136 NaClSetCreateMemoryObjectFunc(args->create_memory_object_func); |
| 137 | 137 |
| 138 /* Inject the validation caching interface, if it exists. */ | 138 /* Inject the validation caching interface, if it exists. */ |
| 139 nap->validation_cache = args->validation_cache; | 139 nap->validation_cache = args->validation_cache; |
| 140 | 140 |
| 141 #if NACL_WINDOWS | 141 #if NACL_WINDOWS |
| 142 if (args->broker_duplicate_handle_func != NULL) | 142 if (args->broker_duplicate_handle_func != NULL) |
| 143 NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func); | 143 NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func); |
| 144 #endif | 144 #endif |
| 145 | 145 |
| 146 if (getenv("NACL_DANGEROUS_USE_DFA_VALIDATOR") != NULL) { | |
| 147 fprintf(stderr, "DANGER! USING THE UNSTABLE DFA VALIDATOR!\n"); | |
| 148 nap->enable_dfa_validator = 1; | |
| 149 } | |
| 150 | |
| 151 NaClAppInitialDescriptorHookup(nap); | 146 NaClAppInitialDescriptorHookup(nap); |
| 152 | 147 |
| 153 /* | 148 /* |
| 154 * NACL_SERVICE_PORT_DESCRIPTOR and NACL_SERVICE_ADDRESS_DESCRIPTOR | 149 * NACL_SERVICE_PORT_DESCRIPTOR and NACL_SERVICE_ADDRESS_DESCRIPTOR |
| 155 * are 3 and 4. | 150 * are 3 and 4. |
| 156 */ | 151 */ |
| 157 | 152 |
| 158 /* import IMC handle - used to be "-i" */ | 153 /* import IMC handle - used to be "-i" */ |
| 159 NaClAddImcHandle(nap, args->imc_bootstrap_handle, export_addr_to); | 154 NaClAddImcHandle(nap, args->imc_bootstrap_handle, export_addr_to); |
| 160 | 155 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 if (LOAD_OK != errcode) { | 336 if (LOAD_OK != errcode) { |
| 342 NaClBlockIfCommandChannelExists(nap); | 337 NaClBlockIfCommandChannelExists(nap); |
| 343 } | 338 } |
| 344 | 339 |
| 345 done_ctor: | 340 done_ctor: |
| 346 | 341 |
| 347 NaClAllModulesFini(); | 342 NaClAllModulesFini(); |
| 348 | 343 |
| 349 NaClExit(ret_code); | 344 NaClExit(ret_code); |
| 350 } | 345 } |
| OLD | NEW |