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 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 // Note that symbols created this way are never collected, so | 1953 // Note that symbols created this way are never collected, so |
1954 // they should only be used for statically fixed properties. | 1954 // they should only be used for statically fixed properties. |
1955 // Also, there is only one global name space for the names used as keys. | 1955 // Also, there is only one global name space for the names used as keys. |
1956 // To minimize the potential for clashes, use qualified names as keys. | 1956 // To minimize the potential for clashes, use qualified names as keys. |
1957 static Local<Symbol> For(Isolate *isolate, Local<String> name); | 1957 static Local<Symbol> For(Isolate *isolate, Local<String> name); |
1958 | 1958 |
1959 // Retrieve a global symbol. Similar to |For|, but using a separate | 1959 // Retrieve a global symbol. Similar to |For|, but using a separate |
1960 // registry that is not accessible by (and cannot clash with) JavaScript code. | 1960 // registry that is not accessible by (and cannot clash with) JavaScript code. |
1961 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name); | 1961 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name); |
1962 | 1962 |
| 1963 // Well-known symbols |
| 1964 static Local<Symbol> GetIterator(Isolate* isolate); |
| 1965 static Local<Symbol> GetUnscopables(Isolate* isolate); |
| 1966 |
1963 V8_INLINE static Symbol* Cast(v8::Value* obj); | 1967 V8_INLINE static Symbol* Cast(v8::Value* obj); |
| 1968 |
1964 private: | 1969 private: |
1965 Symbol(); | 1970 Symbol(); |
1966 static void CheckCast(v8::Value* obj); | 1971 static void CheckCast(v8::Value* obj); |
1967 }; | 1972 }; |
1968 | 1973 |
1969 | 1974 |
1970 /** | 1975 /** |
1971 * A private symbol | 1976 * A private symbol |
1972 * | 1977 * |
1973 * This is an experimental feature. Use at your own risk. | 1978 * This is an experimental feature. Use at your own risk. |
(...skipping 4763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6737 */ | 6742 */ |
6738 | 6743 |
6739 | 6744 |
6740 } // namespace v8 | 6745 } // namespace v8 |
6741 | 6746 |
6742 | 6747 |
6743 #undef TYPE_CHECK | 6748 #undef TYPE_CHECK |
6744 | 6749 |
6745 | 6750 |
6746 #endif // V8_H_ | 6751 #endif // V8_H_ |
OLD | NEW |