OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 7549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7560 friend class WeakCallbackInfo; | 7560 friend class WeakCallbackInfo; |
7561 template <class T> friend class Eternal; | 7561 template <class T> friend class Eternal; |
7562 template <class T> friend class PersistentBase; | 7562 template <class T> friend class PersistentBase; |
7563 template <class T, class M> friend class Persistent; | 7563 template <class T, class M> friend class Persistent; |
7564 friend class Context; | 7564 friend class Context; |
7565 }; | 7565 }; |
7566 | 7566 |
7567 /** | 7567 /** |
7568 * Helper class to create a snapshot data blob. | 7568 * Helper class to create a snapshot data blob. |
7569 */ | 7569 */ |
7570 class SnapshotCreator { | 7570 class V8_EXPORT SnapshotCreator { |
7571 public: | 7571 public: |
7572 enum class FunctionCodeHandling { kClear, kKeep }; | 7572 enum class FunctionCodeHandling { kClear, kKeep }; |
7573 | 7573 |
7574 /** | 7574 /** |
7575 * Create and enter an isolate, and set it up for serialization. | 7575 * Create and enter an isolate, and set it up for serialization. |
7576 * The isolate is either created from scratch or from an existing snapshot. | 7576 * The isolate is either created from scratch or from an existing snapshot. |
7577 * The caller keeps ownership of the argument snapshot. | 7577 * The caller keeps ownership of the argument snapshot. |
7578 * \param existing_blob existing snapshot from which to create this one. | 7578 * \param existing_blob existing snapshot from which to create this one. |
7579 * \param external_references a null-terminated array of external references | 7579 * \param external_references a null-terminated array of external references |
7580 * that must be equivalent to CreateParams::external_references. | 7580 * that must be equivalent to CreateParams::external_references. |
(...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9692 */ | 9692 */ |
9693 | 9693 |
9694 | 9694 |
9695 } // namespace v8 | 9695 } // namespace v8 |
9696 | 9696 |
9697 | 9697 |
9698 #undef TYPE_CHECK | 9698 #undef TYPE_CHECK |
9699 | 9699 |
9700 | 9700 |
9701 #endif // INCLUDE_V8_H_ | 9701 #endif // INCLUDE_V8_H_ |
OLD | NEW |