| 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" | 11 #include "src/handles.h" |
| 12 #include "src/property-details.h" | 12 #include "src/property-details.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 | 16 |
| 17 // Forward declarations. |
| 18 class ExecutableAccessorInfo; |
| 19 |
| 17 // The list of accessor descriptors. This is a second-order macro | 20 // The list of accessor descriptors. This is a second-order macro |
| 18 // taking a macro to be applied to all accessor descriptor names. | 21 // taking a macro to be applied to all accessor descriptor names. |
| 19 #define ACCESSOR_INFO_LIST(V) \ | 22 #define ACCESSOR_INFO_LIST(V) \ |
| 20 V(ArgumentsIterator) \ | 23 V(ArgumentsIterator) \ |
| 21 V(ArrayLength) \ | 24 V(ArrayLength) \ |
| 22 V(FunctionArguments) \ | 25 V(FunctionArguments) \ |
| 23 V(FunctionCaller) \ | 26 V(FunctionCaller) \ |
| 24 V(FunctionName) \ | 27 V(FunctionName) \ |
| 25 V(FunctionLength) \ | 28 V(FunctionLength) \ |
| 26 V(FunctionPrototype) \ | 29 V(FunctionPrototype) \ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 PropertyAttributes attributes); | 102 PropertyAttributes attributes); |
| 100 | 103 |
| 101 static Handle<ExecutableAccessorInfo> CloneAccessor( | 104 static Handle<ExecutableAccessorInfo> CloneAccessor( |
| 102 Isolate* isolate, | 105 Isolate* isolate, |
| 103 Handle<ExecutableAccessorInfo> accessor); | 106 Handle<ExecutableAccessorInfo> accessor); |
| 104 }; | 107 }; |
| 105 | 108 |
| 106 } } // namespace v8::internal | 109 } } // namespace v8::internal |
| 107 | 110 |
| 108 #endif // V8_ACCESSORS_H_ | 111 #endif // V8_ACCESSORS_H_ |
| OLD | NEW |