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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 static V8_INLINE void Copy(const Persistent<S, M>& source, | 659 static V8_INLINE void Copy(const Persistent<S, M>& source, |
660 CopyablePersistent* dest) { | 660 CopyablePersistent* dest) { |
661 // do nothing, just allow copy | 661 // do nothing, just allow copy |
662 } | 662 } |
663 }; | 663 }; |
664 | 664 |
665 | 665 |
666 /** | 666 /** |
667 * A PersistentBase which allows copy and assignment. | 667 * A PersistentBase which allows copy and assignment. |
668 * | 668 * |
669 * Copy, assignment and destructor bevavior is controlled by the traits | 669 * Copy, assignment and destructor behavior is controlled by the traits |
670 * class M. | 670 * class M. |
671 * | 671 * |
672 * Note: Persistent class hierarchy is subject to future changes. | 672 * Note: Persistent class hierarchy is subject to future changes. |
673 */ | 673 */ |
674 template <class T, class M> class Persistent : public PersistentBase<T> { | 674 template <class T, class M> class Persistent : public PersistentBase<T> { |
675 public: | 675 public: |
676 /** | 676 /** |
677 * A Persistent with no storage cell. | 677 * A Persistent with no storage cell. |
678 */ | 678 */ |
679 V8_INLINE Persistent() : PersistentBase<T>(0) { } | 679 V8_INLINE Persistent() : PersistentBase<T>(0) { } |
(...skipping 9151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9831 */ | 9831 */ |
9832 | 9832 |
9833 | 9833 |
9834 } // namespace v8 | 9834 } // namespace v8 |
9835 | 9835 |
9836 | 9836 |
9837 #undef TYPE_CHECK | 9837 #undef TYPE_CHECK |
9838 | 9838 |
9839 | 9839 |
9840 #endif // INCLUDE_V8_H_ | 9840 #endif // INCLUDE_V8_H_ |
OLD | NEW |