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 #ifndef V8_ACCESSORS_H_ | 5 #ifndef V8_ACCESSORS_H_ |
6 #define V8_ACCESSORS_H_ | 6 #define V8_ACCESSORS_H_ |
7 | 7 |
8 #include "include/v8.h" | 8 #include "include/v8.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
11 #include "src/handles.h" | |
12 #include "src/property-details.h" | 11 #include "src/property-details.h" |
13 | 12 |
14 namespace v8 { | 13 namespace v8 { |
15 namespace internal { | 14 namespace internal { |
16 | 15 |
17 // Forward declarations. | 16 // Forward declarations. |
18 class AccessorInfo; | 17 class AccessorInfo; |
| 18 template <typename T> |
| 19 class Handle; |
19 | 20 |
20 // The list of accessor descriptors. This is a second-order macro | 21 // The list of accessor descriptors. This is a second-order macro |
21 // taking a macro to be applied to all accessor descriptor names. | 22 // taking a macro to be applied to all accessor descriptor names. |
22 #define ACCESSOR_INFO_LIST(V) \ | 23 #define ACCESSOR_INFO_LIST(V) \ |
23 V(ArgumentsIterator) \ | 24 V(ArgumentsIterator) \ |
24 V(ArrayLength) \ | 25 V(ArrayLength) \ |
25 V(BoundFunctionLength) \ | 26 V(BoundFunctionLength) \ |
26 V(BoundFunctionName) \ | 27 V(BoundFunctionName) \ |
27 V(ErrorStack) \ | 28 V(ErrorStack) \ |
28 V(FunctionArguments) \ | 29 V(FunctionArguments) \ |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 113 |
113 static Handle<AccessorInfo> MakeAccessor( | 114 static Handle<AccessorInfo> MakeAccessor( |
114 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter, | 115 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter, |
115 AccessorNameBooleanSetterCallback setter, PropertyAttributes attributes); | 116 AccessorNameBooleanSetterCallback setter, PropertyAttributes attributes); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace internal | 119 } // namespace internal |
119 } // namespace v8 | 120 } // namespace v8 |
120 | 121 |
121 #endif // V8_ACCESSORS_H_ | 122 #endif // V8_ACCESSORS_H_ |
OLD | NEW |