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 4668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4679 AccessControl settings = DEFAULT); | 4679 AccessControl settings = DEFAULT); |
4680 void SetNativeDataProperty( | 4680 void SetNativeDataProperty( |
4681 Local<Name> name, AccessorNameGetterCallback getter, | 4681 Local<Name> name, AccessorNameGetterCallback getter, |
4682 AccessorNameSetterCallback setter = 0, | 4682 AccessorNameSetterCallback setter = 0, |
4683 // TODO(dcarney): gcc can't handle Local below | 4683 // TODO(dcarney): gcc can't handle Local below |
4684 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None, | 4684 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None, |
4685 Local<AccessorSignature> signature = Local<AccessorSignature>(), | 4685 Local<AccessorSignature> signature = Local<AccessorSignature>(), |
4686 AccessControl settings = DEFAULT); | 4686 AccessControl settings = DEFAULT); |
4687 | 4687 |
4688 /** | 4688 /** |
| 4689 * Like SetNativeDataProperty, but V8 will replace the native data property |
| 4690 * with a real data property on first access. |
| 4691 */ |
| 4692 void SetLazyDataProperty(Local<Name> name, AccessorNameGetterCallback getter, |
| 4693 Local<Value> data = Local<Value>(), |
| 4694 PropertyAttribute attribute = None); |
| 4695 |
| 4696 /** |
4689 * During template instantiation, sets the value with the intrinsic property | 4697 * During template instantiation, sets the value with the intrinsic property |
4690 * from the correct context. | 4698 * from the correct context. |
4691 */ | 4699 */ |
4692 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic, | 4700 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic, |
4693 PropertyAttribute attribute = None); | 4701 PropertyAttribute attribute = None); |
4694 | 4702 |
4695 private: | 4703 private: |
4696 Template(); | 4704 Template(); |
4697 | 4705 |
4698 friend class ObjectTemplate; | 4706 friend class ObjectTemplate; |
(...skipping 4968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9667 */ | 9675 */ |
9668 | 9676 |
9669 | 9677 |
9670 } // namespace v8 | 9678 } // namespace v8 |
9671 | 9679 |
9672 | 9680 |
9673 #undef TYPE_CHECK | 9681 #undef TYPE_CHECK |
9674 | 9682 |
9675 | 9683 |
9676 #endif // INCLUDE_V8_H_ | 9684 #endif // INCLUDE_V8_H_ |
OLD | NEW |