| 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 5116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5127 void SetCallHandler( | 5127 void SetCallHandler( |
| 5128 FunctionCallback callback, Local<Value> data = Local<Value>(), | 5128 FunctionCallback callback, Local<Value> data = Local<Value>(), |
| 5129 experimental::FastAccessorBuilder* fast_handler = nullptr); | 5129 experimental::FastAccessorBuilder* fast_handler = nullptr); |
| 5130 | 5130 |
| 5131 /** Set the predefined length property for the FunctionTemplate. */ | 5131 /** Set the predefined length property for the FunctionTemplate. */ |
| 5132 void SetLength(int length); | 5132 void SetLength(int length); |
| 5133 | 5133 |
| 5134 /** Get the InstanceTemplate. */ | 5134 /** Get the InstanceTemplate. */ |
| 5135 Local<ObjectTemplate> InstanceTemplate(); | 5135 Local<ObjectTemplate> InstanceTemplate(); |
| 5136 | 5136 |
| 5137 /** Causes the function template to inherit from a parent function template.*/ | 5137 /** |
| 5138 * Causes the function template to inherit from a parent function template. |
| 5139 * This means the the function's prototype.__proto__ is set to the parent |
| 5140 * function's prototype. |
| 5141 **/ |
| 5138 void Inherit(Local<FunctionTemplate> parent); | 5142 void Inherit(Local<FunctionTemplate> parent); |
| 5139 | 5143 |
| 5140 /** | 5144 /** |
| 5141 * A PrototypeTemplate is the template used to create the prototype object | 5145 * A PrototypeTemplate is the template used to create the prototype object |
| 5142 * of the function created by this template. | 5146 * of the function created by this template. |
| 5143 */ | 5147 */ |
| 5144 Local<ObjectTemplate> PrototypeTemplate(); | 5148 Local<ObjectTemplate> PrototypeTemplate(); |
| 5145 | 5149 |
| 5146 /** | 5150 /** |
| 5151 * A PrototypeProviderTemplate is another function template whose prototype |
| 5152 * property is used for this template. This is mutually exclusive with setting |
| 5153 * a prototype template indirectly by calling PrototypeTemplate() or using |
| 5154 * Inherit(). |
| 5155 **/ |
| 5156 void SetPrototypeProviderTemplate(Local<FunctionTemplate> prototype_provider); |
| 5157 |
| 5158 /** |
| 5147 * Set the class name of the FunctionTemplate. This is used for | 5159 * Set the class name of the FunctionTemplate. This is used for |
| 5148 * printing objects created with the function created from the | 5160 * printing objects created with the function created from the |
| 5149 * FunctionTemplate as its constructor. | 5161 * FunctionTemplate as its constructor. |
| 5150 */ | 5162 */ |
| 5151 void SetClassName(Local<String> name); | 5163 void SetClassName(Local<String> name); |
| 5152 | 5164 |
| 5153 | 5165 |
| 5154 /** | 5166 /** |
| 5155 * When set to true, no access check will be performed on the receiver of a | 5167 * When set to true, no access check will be performed on the receiver of a |
| 5156 * function call. Currently defaults to true, but this is subject to change. | 5168 * function call. Currently defaults to true, but this is subject to change. |
| (...skipping 4518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9675 */ | 9687 */ |
| 9676 | 9688 |
| 9677 | 9689 |
| 9678 } // namespace v8 | 9690 } // namespace v8 |
| 9679 | 9691 |
| 9680 | 9692 |
| 9681 #undef TYPE_CHECK | 9693 #undef TYPE_CHECK |
| 9682 | 9694 |
| 9683 | 9695 |
| 9684 #endif // INCLUDE_V8_H_ | 9696 #endif // INCLUDE_V8_H_ |
| OLD | NEW |