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

Side by Side Diff: include/v8.h

Issue 23530071: [Sheriff] Revert "Let SetEntropySource() fail if called after V8::Initialize()." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4522 matching lines...) Expand 10 before | Expand all | Expand 10 after
4533 /** 4533 /**
4534 * Initializes from snapshot if possible. Otherwise, attempts to 4534 * Initializes from snapshot if possible. Otherwise, attempts to
4535 * initialize from scratch. This function is called implicitly if 4535 * initialize from scratch. This function is called implicitly if
4536 * you use the API without calling it first. 4536 * you use the API without calling it first.
4537 */ 4537 */
4538 static bool Initialize(); 4538 static bool Initialize();
4539 4539
4540 /** 4540 /**
4541 * Allows the host application to provide a callback which can be used 4541 * Allows the host application to provide a callback which can be used
4542 * as a source of entropy for random number generators. 4542 * as a source of entropy for random number generators.
4543 *
4544 * \note Setting an entropy source can only be done very early prior to
4545 * calling Initialize().
4546 */ 4543 */
4547 static void SetEntropySource(EntropySource source); 4544 static void SetEntropySource(EntropySource source);
4548 4545
4549 /** 4546 /**
4550 * Allows the host application to provide a callback that allows v8 to 4547 * Allows the host application to provide a callback that allows v8 to
4551 * cooperate with a profiler that rewrites return addresses on stack. 4548 * cooperate with a profiler that rewrites return addresses on stack.
4552 */ 4549 */
4553 static void SetReturnAddressLocationResolver( 4550 static void SetReturnAddressLocationResolver(
4554 ReturnAddressLocationResolver return_address_resolver); 4551 ReturnAddressLocationResolver return_address_resolver);
4555 4552
(...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
6480 */ 6477 */
6481 6478
6482 6479
6483 } // namespace v8 6480 } // namespace v8
6484 6481
6485 6482
6486 #undef TYPE_CHECK 6483 #undef TYPE_CHECK
6487 6484
6488 6485
6489 #endif // V8_H_ 6486 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698