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 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2440 * control how allocated external string resources are disposed. | 2440 * control how allocated external string resources are disposed. |
2441 */ | 2441 */ |
2442 virtual void Dispose() { delete this; } | 2442 virtual void Dispose() { delete this; } |
2443 | 2443 |
2444 // Disallow copying and assigning. | 2444 // Disallow copying and assigning. |
2445 ExternalStringResourceBase(const ExternalStringResourceBase&) = delete; | 2445 ExternalStringResourceBase(const ExternalStringResourceBase&) = delete; |
2446 void operator=(const ExternalStringResourceBase&) = delete; | 2446 void operator=(const ExternalStringResourceBase&) = delete; |
2447 | 2447 |
2448 private: | 2448 private: |
2449 friend class internal::Heap; | 2449 friend class internal::Heap; |
| 2450 friend class v8::String; |
2450 }; | 2451 }; |
2451 | 2452 |
2452 /** | 2453 /** |
2453 * An ExternalStringResource is a wrapper around a two-byte string | 2454 * An ExternalStringResource is a wrapper around a two-byte string |
2454 * buffer that resides outside V8's heap. Implement an | 2455 * buffer that resides outside V8's heap. Implement an |
2455 * ExternalStringResource to manage the life cycle of the underlying | 2456 * ExternalStringResource to manage the life cycle of the underlying |
2456 * buffer. Note that the string data must be immutable. | 2457 * buffer. Note that the string data must be immutable. |
2457 */ | 2458 */ |
2458 class V8_EXPORT ExternalStringResource | 2459 class V8_EXPORT ExternalStringResource |
2459 : public ExternalStringResourceBase { | 2460 : public ExternalStringResourceBase { |
(...skipping 7404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9864 */ | 9865 */ |
9865 | 9866 |
9866 | 9867 |
9867 } // namespace v8 | 9868 } // namespace v8 |
9868 | 9869 |
9869 | 9870 |
9870 #undef TYPE_CHECK | 9871 #undef TYPE_CHECK |
9871 | 9872 |
9872 | 9873 |
9873 #endif // INCLUDE_V8_H_ | 9874 #endif // INCLUDE_V8_H_ |
OLD | NEW |