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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 // (with delete[]) when the CachedData object is destroyed. | 1032 // (with delete[]) when the CachedData object is destroyed. |
1033 CachedData(const uint8_t* data, int length, | 1033 CachedData(const uint8_t* data, int length, |
1034 BufferPolicy buffer_policy = BufferNotOwned); | 1034 BufferPolicy buffer_policy = BufferNotOwned); |
1035 ~CachedData(); | 1035 ~CachedData(); |
1036 // TODO(marja): Async compilation; add constructors which take a callback | 1036 // TODO(marja): Async compilation; add constructors which take a callback |
1037 // which will be called when V8 no longer needs the data. | 1037 // which will be called when V8 no longer needs the data. |
1038 const uint8_t* data; | 1038 const uint8_t* data; |
1039 int length; | 1039 int length; |
1040 BufferPolicy buffer_policy; | 1040 BufferPolicy buffer_policy; |
1041 | 1041 |
1042 private: | 1042 private: |
1043 // Prevent copying. Not implemented. | 1043 // Prevent copying. Not implemented. |
1044 CachedData(const CachedData&); | 1044 CachedData(const CachedData&); |
1045 CachedData& operator=(const CachedData&); | 1045 CachedData& operator=(const CachedData&); |
1046 }; | 1046 }; |
1047 | 1047 |
1048 /** | 1048 /** |
1049 * Source code which can be then compiled to a UnboundScript or | 1049 * Source code which can be then compiled to a UnboundScript or |
1050 * BoundScript. | 1050 * BoundScript. |
1051 */ | 1051 */ |
1052 class Source { | 1052 class Source { |
(...skipping 5570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6623 */ | 6623 */ |
6624 | 6624 |
6625 | 6625 |
6626 } // namespace v8 | 6626 } // namespace v8 |
6627 | 6627 |
6628 | 6628 |
6629 #undef TYPE_CHECK | 6629 #undef TYPE_CHECK |
6630 | 6630 |
6631 | 6631 |
6632 #endif // V8_H_ | 6632 #endif // V8_H_ |
OLD | NEW |