OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4504 /** | 4504 /** |
4505 * Initializes from snapshot if possible. Otherwise, attempts to | 4505 * Initializes from snapshot if possible. Otherwise, attempts to |
4506 * initialize from scratch. This function is called implicitly if | 4506 * initialize from scratch. This function is called implicitly if |
4507 * you use the API without calling it first. | 4507 * you use the API without calling it first. |
4508 */ | 4508 */ |
4509 static bool Initialize(); | 4509 static bool Initialize(); |
4510 | 4510 |
4511 /** | 4511 /** |
4512 * Allows the host application to provide a callback which can be used | 4512 * Allows the host application to provide a callback which can be used |
4513 * as a source of entropy for random number generators. | 4513 * as a source of entropy for random number generators. |
4514 * | |
4515 * \returns true if the entropy source was installed successfully, false | |
4516 * on failure. | |
4517 * \note Setting an entropy source can only be done very early prior to | |
4518 * calling any other V8-related function. | |
Dmitry Lomov (no reviews)
2013/09/23 11:24:15
This is vague; the true statement is that SetEntro
Benedikt Meurer
2013/09/23 11:36:41
Done.
| |
4514 */ | 4519 */ |
4515 static void SetEntropySource(EntropySource source); | 4520 static bool SetEntropySource(EntropySource source); |
4516 | 4521 |
4517 /** | 4522 /** |
4518 * Allows the host application to provide a callback that allows v8 to | 4523 * Allows the host application to provide a callback that allows v8 to |
4519 * cooperate with a profiler that rewrites return addresses on stack. | 4524 * cooperate with a profiler that rewrites return addresses on stack. |
4520 */ | 4525 */ |
4521 static void SetReturnAddressLocationResolver( | 4526 static void SetReturnAddressLocationResolver( |
4522 ReturnAddressLocationResolver return_address_resolver); | 4527 ReturnAddressLocationResolver return_address_resolver); |
4523 | 4528 |
4524 /** | 4529 /** |
4525 * Deprecated, use the variant with the Isolate parameter below instead. | 4530 * Deprecated, use the variant with the Isolate parameter below instead. |
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6455 */ | 6460 */ |
6456 | 6461 |
6457 | 6462 |
6458 } // namespace v8 | 6463 } // namespace v8 |
6459 | 6464 |
6460 | 6465 |
6461 #undef TYPE_CHECK | 6466 #undef TYPE_CHECK |
6462 | 6467 |
6463 | 6468 |
6464 #endif // V8_H_ | 6469 #endif // V8_H_ |
OLD | NEW |