| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 NaClSetCreateMemoryObjectFunc(args->create_memory_object_func); | 134 NaClSetCreateMemoryObjectFunc(args->create_memory_object_func); |
| 135 | 135 |
| 136 /* Inject the validation caching interface, if it exists. */ | 136 /* Inject the validation caching interface, if it exists. */ |
| 137 nap->validation_cache = args->validation_cache; | 137 nap->validation_cache = args->validation_cache; |
| 138 | 138 |
| 139 #if NACL_WINDOWS | 139 #if NACL_WINDOWS |
| 140 if (args->broker_duplicate_handle_func != NULL) | 140 if (args->broker_duplicate_handle_func != NULL) |
| 141 NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func); | 141 NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func); |
| 142 #endif | 142 #endif |
| 143 | 143 |
| 144 if (getenv("NACL_DANGEROUS_USE_DFA_VALIDATOR") != NULL) { | |
| 145 fprintf(stderr, "DANGER! USING THE UNSTABLE DFA VALIDATOR!\n"); | |
| 146 nap->enable_dfa_validator = 1; | |
| 147 } | |
| 148 | |
| 149 NaClAppInitialDescriptorHookup(nap); | 144 NaClAppInitialDescriptorHookup(nap); |
| 150 | 145 |
| 151 /* | 146 /* |
| 152 * NACL_SERVICE_PORT_DESCRIPTOR and NACL_SERVICE_ADDRESS_DESCRIPTOR | 147 * NACL_SERVICE_PORT_DESCRIPTOR and NACL_SERVICE_ADDRESS_DESCRIPTOR |
| 153 * are 3 and 4. | 148 * are 3 and 4. |
| 154 */ | 149 */ |
| 155 | 150 |
| 156 /* import IMC handle - used to be "-i" */ | 151 /* import IMC handle - used to be "-i" */ |
| 157 NaClAddImcHandle(nap, args->imc_bootstrap_handle, export_addr_to); | 152 NaClAddImcHandle(nap, args->imc_bootstrap_handle, export_addr_to); |
| 158 | 153 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 if (LOAD_OK != errcode) { | 329 if (LOAD_OK != errcode) { |
| 335 NaClBlockIfCommandChannelExists(nap); | 330 NaClBlockIfCommandChannelExists(nap); |
| 336 } | 331 } |
| 337 | 332 |
| 338 done_ctor: | 333 done_ctor: |
| 339 | 334 |
| 340 NaClAllModulesFini(); | 335 NaClAllModulesFini(); |
| 341 | 336 |
| 342 NaClExit(ret_code); | 337 NaClExit(ret_code); |
| 343 } | 338 } |
| OLD | NEW |