OLD | NEW |
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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 | 1119 |
1120 private: | 1120 private: |
1121 // Prevent copying. Not implemented. | 1121 // Prevent copying. Not implemented. |
1122 CachedData(const CachedData&); | 1122 CachedData(const CachedData&); |
1123 }; | 1123 }; |
1124 | 1124 |
1125 /** | 1125 /** |
1126 * Source code which can be then compiled to a UnboundScript or | 1126 * Source code which can be then compiled to a UnboundScript or |
1127 * BoundScript. | 1127 * BoundScript. |
1128 */ | 1128 */ |
1129 class V8_EXPORT Source { | 1129 class Source { |
1130 public: | 1130 public: |
1131 // Source takes ownership of CachedData. | 1131 // Source takes ownership of CachedData. |
1132 Source(Local<String> source_string, const ScriptOrigin& origin, | 1132 Source(Local<String> source_string, const ScriptOrigin& origin, |
1133 CachedData* cached_data = NULL); | 1133 CachedData* cached_data = NULL); |
1134 Source(Local<String> source_string, CachedData* cached_data = NULL); | 1134 Source(Local<String> source_string, CachedData* cached_data = NULL); |
1135 ~Source(); | 1135 ~Source(); |
1136 | 1136 |
1137 // Ownership of the CachedData or its buffers is *not* transferred to the | 1137 // Ownership of the CachedData or its buffers is *not* transferred to the |
1138 // caller. The CachedData object is alive as long as the Source object is | 1138 // caller. The CachedData object is alive as long as the Source object is |
1139 // alive. | 1139 // alive. |
(...skipping 5471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6611 */ | 6611 */ |
6612 | 6612 |
6613 | 6613 |
6614 } // namespace v8 | 6614 } // namespace v8 |
6615 | 6615 |
6616 | 6616 |
6617 #undef TYPE_CHECK | 6617 #undef TYPE_CHECK |
6618 | 6618 |
6619 | 6619 |
6620 #endif // V8_H_ | 6620 #endif // V8_H_ |
OLD | NEW |