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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 class Data; | 129 class Data; |
130 template<typename T> class FunctionCallbackInfo; | 130 template<typename T> class FunctionCallbackInfo; |
131 template<typename T> class PropertyCallbackInfo; | 131 template<typename T> class PropertyCallbackInfo; |
132 class StackTrace; | 132 class StackTrace; |
133 class StackFrame; | 133 class StackFrame; |
134 class Isolate; | 134 class Isolate; |
135 class CallHandlerHelper; | 135 class CallHandlerHelper; |
136 class EscapableHandleScope; | 136 class EscapableHandleScope; |
137 template<typename T> class ReturnValue; | 137 template<typename T> class ReturnValue; |
138 | 138 |
| 139 namespace experimental { |
| 140 class FastAccessorBuilder; |
| 141 } // namespace experimental |
| 142 |
139 namespace internal { | 143 namespace internal { |
140 class Arguments; | 144 class Arguments; |
141 class Heap; | 145 class Heap; |
142 class HeapObject; | 146 class HeapObject; |
143 class Isolate; | 147 class Isolate; |
144 class Object; | 148 class Object; |
145 struct StreamedSource; | 149 struct StreamedSource; |
146 template<typename T> class CustomArguments; | 150 template<typename T> class CustomArguments; |
147 class PropertyCallbackArguments; | 151 class PropertyCallbackArguments; |
148 class FunctionCallbackArguments; | 152 class FunctionCallbackArguments; |
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4412 static Local<FunctionTemplate> New( | 4416 static Local<FunctionTemplate> New( |
4413 Isolate* isolate, FunctionCallback callback = 0, | 4417 Isolate* isolate, FunctionCallback callback = 0, |
4414 Local<Value> data = Local<Value>(), | 4418 Local<Value> data = Local<Value>(), |
4415 Local<Signature> signature = Local<Signature>(), int length = 0); | 4419 Local<Signature> signature = Local<Signature>(), int length = 0); |
4416 | 4420 |
4417 /** | 4421 /** |
4418 * Creates a function template with a fast handler. If a fast handler is set, | 4422 * Creates a function template with a fast handler. If a fast handler is set, |
4419 * the callback cannot be null. | 4423 * the callback cannot be null. |
4420 */ | 4424 */ |
4421 static Local<FunctionTemplate> NewWithFastHandler( | 4425 static Local<FunctionTemplate> NewWithFastHandler( |
4422 Isolate* isolate, FunctionCallback callback, Local<Value> fast_handler, | 4426 Isolate* isolate, FunctionCallback callback, |
| 4427 experimental::FastAccessorBuilder* fast_handler = nullptr, |
4423 Local<Value> data = Local<Value>(), | 4428 Local<Value> data = Local<Value>(), |
4424 Local<Signature> signature = Local<Signature>(), int length = 0); | 4429 Local<Signature> signature = Local<Signature>(), int length = 0); |
4425 | 4430 |
4426 /** Returns the unique function instance in the current execution context.*/ | 4431 /** Returns the unique function instance in the current execution context.*/ |
4427 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction()); | 4432 V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction()); |
4428 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( | 4433 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( |
4429 Local<Context> context); | 4434 Local<Context> context); |
4430 | 4435 |
4431 /** | 4436 /** |
4432 * Set the call-handler callback for a FunctionTemplate. This | 4437 * Set the call-handler callback for a FunctionTemplate. This |
4433 * callback is called whenever the function created from this | 4438 * callback is called whenever the function created from this |
4434 * FunctionTemplate is called. | 4439 * FunctionTemplate is called. |
4435 */ | 4440 */ |
4436 void SetCallHandler(FunctionCallback callback, | 4441 void SetCallHandler( |
4437 Local<Value> data = Local<Value>(), | 4442 FunctionCallback callback, Local<Value> data = Local<Value>(), |
4438 Local<Value> fast_handler = Local<Value>()); | 4443 experimental::FastAccessorBuilder* fast_handler = nullptr); |
4439 | 4444 |
4440 /** Set the predefined length property for the FunctionTemplate. */ | 4445 /** Set the predefined length property for the FunctionTemplate. */ |
4441 void SetLength(int length); | 4446 void SetLength(int length); |
4442 | 4447 |
4443 /** Get the InstanceTemplate. */ | 4448 /** Get the InstanceTemplate. */ |
4444 Local<ObjectTemplate> InstanceTemplate(); | 4449 Local<ObjectTemplate> InstanceTemplate(); |
4445 | 4450 |
4446 /** Causes the function template to inherit from a parent function template.*/ | 4451 /** Causes the function template to inherit from a parent function template.*/ |
4447 void Inherit(Local<FunctionTemplate> parent); | 4452 void Inherit(Local<FunctionTemplate> parent); |
4448 | 4453 |
(...skipping 4020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8469 */ | 8474 */ |
8470 | 8475 |
8471 | 8476 |
8472 } // namespace v8 | 8477 } // namespace v8 |
8473 | 8478 |
8474 | 8479 |
8475 #undef TYPE_CHECK | 8480 #undef TYPE_CHECK |
8476 | 8481 |
8477 | 8482 |
8478 #endif // INCLUDE_V8_H_ | 8483 #endif // INCLUDE_V8_H_ |
OLD | NEW |