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

Side by Side Diff: include/v8.h

Issue 24357002: Let SetEntropySource() fail if called after V8::Initialize(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 7 years, 3 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') | src/api.cc » ('J')
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().
4543 */ 4546 */
4544 static void SetEntropySource(EntropySource source); 4547 static void SetEntropySource(EntropySource source);
4545 4548
4546 /** 4549 /**
4547 * Allows the host application to provide a callback that allows v8 to 4550 * Allows the host application to provide a callback that allows v8 to
4548 * cooperate with a profiler that rewrites return addresses on stack. 4551 * cooperate with a profiler that rewrites return addresses on stack.
4549 */ 4552 */
4550 static void SetReturnAddressLocationResolver( 4553 static void SetReturnAddressLocationResolver(
4551 ReturnAddressLocationResolver return_address_resolver); 4554 ReturnAddressLocationResolver return_address_resolver);
4552 4555
(...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
6477 */ 6480 */
6478 6481
6479 6482
6480 } // namespace v8 6483 } // namespace v8
6481 6484
6482 6485
6483 #undef TYPE_CHECK 6486 #undef TYPE_CHECK
6484 6487
6485 6488
6486 #endif // V8_H_ 6489 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698