OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_API_NATIVES_H_ | 5 #ifndef V8_API_NATIVES_H_ |
6 #define V8_API_NATIVES_H_ | 6 #define V8_API_NATIVES_H_ |
7 | 7 |
8 #include "src/handles.h" | 8 #include "src/handles.h" |
| 9 #include "src/property-details.h" |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 | 13 |
| 14 // Forward declarations. |
| 15 class ObjectTemplateInfo; |
| 16 class TemplateInfo; |
| 17 |
13 class ApiNatives { | 18 class ApiNatives { |
14 public: | 19 public: |
15 static const int kInitialFunctionCacheSize = 256; | 20 static const int kInitialFunctionCacheSize = 256; |
16 | 21 |
17 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction( | 22 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction( |
18 Handle<FunctionTemplateInfo> data); | 23 Handle<FunctionTemplateInfo> data); |
19 | 24 |
20 MUST_USE_RESULT static MaybeHandle<JSObject> InstantiateObject( | 25 MUST_USE_RESULT static MaybeHandle<JSObject> InstantiateObject( |
21 Handle<ObjectTemplateInfo> data); | 26 Handle<ObjectTemplateInfo> data); |
22 | 27 |
(...skipping 23 matching lines...) Expand all Loading... |
46 PropertyAttributes attributes); | 51 PropertyAttributes attributes); |
47 | 52 |
48 static void AddNativeDataProperty(Isolate* isolate, Handle<TemplateInfo> info, | 53 static void AddNativeDataProperty(Isolate* isolate, Handle<TemplateInfo> info, |
49 Handle<AccessorInfo> property); | 54 Handle<AccessorInfo> property); |
50 }; | 55 }; |
51 | 56 |
52 } // namespace internal | 57 } // namespace internal |
53 } // namespace v8 | 58 } // namespace v8 |
54 | 59 |
55 #endif | 60 #endif |
OLD | NEW |