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 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4070 */ | 4070 */ |
4071 bool HasInstance(Handle<Value> object); | 4071 bool HasInstance(Handle<Value> object); |
4072 | 4072 |
4073 private: | 4073 private: |
4074 FunctionTemplate(); | 4074 FunctionTemplate(); |
4075 friend class Context; | 4075 friend class Context; |
4076 friend class ObjectTemplate; | 4076 friend class ObjectTemplate; |
4077 }; | 4077 }; |
4078 | 4078 |
4079 | 4079 |
4080 enum class PropertyHandlerFlags { kNone = 0, kAllCanRead = 1 }; | 4080 enum class PropertyHandlerFlags { |
| 4081 kNone = 0, |
| 4082 // See ALL_CAN_READ above. |
| 4083 kAllCanRead = 1, |
| 4084 // Will not call into interceptor for properties on the receiver or prototype |
| 4085 // chain. Currently only valid for named interceptors. |
| 4086 kNonMasking = 1 << 1, |
| 4087 // Will not call into interceptor for symbol lookup. Only meaningful for |
| 4088 // named interceptors. |
| 4089 kOnlyInterceptStrings = 1 << 2, |
| 4090 }; |
4081 | 4091 |
4082 | 4092 |
4083 struct NamedPropertyHandlerConfiguration { | 4093 struct NamedPropertyHandlerConfiguration { |
4084 NamedPropertyHandlerConfiguration( | 4094 NamedPropertyHandlerConfiguration( |
4085 /** Note: getter is required **/ | 4095 /** Note: getter is required **/ |
4086 GenericNamedPropertyGetterCallback getter = 0, | 4096 GenericNamedPropertyGetterCallback getter = 0, |
4087 GenericNamedPropertySetterCallback setter = 0, | 4097 GenericNamedPropertySetterCallback setter = 0, |
4088 GenericNamedPropertyQueryCallback query = 0, | 4098 GenericNamedPropertyQueryCallback query = 0, |
4089 GenericNamedPropertyDeleterCallback deleter = 0, | 4099 GenericNamedPropertyDeleterCallback deleter = 0, |
4090 GenericNamedPropertyEnumeratorCallback enumerator = 0, | 4100 GenericNamedPropertyEnumeratorCallback enumerator = 0, |
(...skipping 3662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7753 */ | 7763 */ |
7754 | 7764 |
7755 | 7765 |
7756 } // namespace v8 | 7766 } // namespace v8 |
7757 | 7767 |
7758 | 7768 |
7759 #undef TYPE_CHECK | 7769 #undef TYPE_CHECK |
7760 | 7770 |
7761 | 7771 |
7762 #endif // V8_H_ | 7772 #endif // V8_H_ |
OLD | NEW |