| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 66c3043b4aa75f4dda797c749195d22d01ed3511..5bf28a84593f1eb10b489b59804fb51e1547c7da 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -4422,6 +4422,13 @@ class V8_EXPORT FunctionTemplate : public Template {
|
| Local<Value> data = Local<Value>(),
|
| Local<Signature> signature = Local<Signature>(), int length = 0);
|
|
|
| +#ifdef V8_FAST_ACCESSORS
|
| + /** Creates a function template with a code object. */
|
| + static Local<FunctionTemplate> New(
|
| + Isolate* isolate, Local<Value> code, Local<Value> data = Local<Value>(),
|
| + Local<Signature> signature = Local<Signature>(), int length = 0);
|
| +#endif
|
| +
|
| /** Returns the unique function instance in the current execution context.*/
|
| V8_DEPRECATE_SOON("Use maybe version", Local<Function> GetFunction());
|
| V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
|
| @@ -4434,6 +4441,9 @@ class V8_EXPORT FunctionTemplate : public Template {
|
| */
|
| void SetCallHandler(FunctionCallback callback,
|
| Local<Value> data = Local<Value>());
|
| +#ifdef V8_FAST_ACCESSORS
|
| + void SetCallHandler(Local<Value> code, Local<Value> data = Local<Value>());
|
| +#endif
|
|
|
| /** Set the predefined length property for the FunctionTemplate. */
|
| void SetLength(int length);
|
|
|