| Index: src/api-natives.h
|
| diff --git a/src/api-natives.h b/src/api-natives.h
|
| index a75d27a9030fe5723dc57f0a65aeafc3513dd657..66901fe965e715918c4d33c61d1f0d2b85a0c647 100644
|
| --- a/src/api-natives.h
|
| +++ b/src/api-natives.h
|
| @@ -6,7 +6,6 @@
|
| #define V8_API_NATIVES_H_
|
|
|
| #include "src/handles.h"
|
| -#include "src/objects.h"
|
| #include "src/property-details.h"
|
|
|
| namespace v8 {
|
| @@ -27,9 +26,16 @@
|
| Handle<ObjectTemplateInfo> data,
|
| Handle<JSReceiver> new_target = Handle<JSReceiver>());
|
|
|
| + enum ApiInstanceType {
|
| + JavaScriptObjectType,
|
| + GlobalObjectType,
|
| + GlobalProxyType
|
| + };
|
| +
|
| static Handle<JSFunction> CreateApiFunction(Isolate* isolate,
|
| Handle<FunctionTemplateInfo> obj,
|
| - InstanceType type);
|
| + Handle<Object> prototype,
|
| + ApiInstanceType instance_type);
|
|
|
| static void AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info,
|
| Handle<Name> name, Handle<Object> value,
|
|
|