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" |
(...skipping 30 matching lines...) Expand all Loading... |
41 V(ScriptName) \ | 41 V(ScriptName) \ |
42 V(ScriptSource) \ | 42 V(ScriptSource) \ |
43 V(ScriptType) \ | 43 V(ScriptType) \ |
44 V(ScriptSourceUrl) \ | 44 V(ScriptSourceUrl) \ |
45 V(ScriptSourceMappingUrl) \ | 45 V(ScriptSourceMappingUrl) \ |
46 V(ScriptIsEmbedderDebugScript) \ | 46 V(ScriptIsEmbedderDebugScript) \ |
47 V(StringLength) | 47 V(StringLength) |
48 | 48 |
49 #define ACCESSOR_SETTER_LIST(V) \ | 49 #define ACCESSOR_SETTER_LIST(V) \ |
50 V(ReconfigureToDataProperty) \ | 50 V(ReconfigureToDataProperty) \ |
51 V(ObservedReconfigureToDataProperty) \ | |
52 V(ArrayLengthSetter) \ | 51 V(ArrayLengthSetter) \ |
53 V(FunctionPrototypeSetter) | 52 V(FunctionPrototypeSetter) |
54 | 53 |
55 // Accessors contains all predefined proxy accessors. | 54 // Accessors contains all predefined proxy accessors. |
56 | 55 |
57 class Accessors : public AllStatic { | 56 class Accessors : public AllStatic { |
58 public: | 57 public: |
59 // Accessor descriptors. | 58 // Accessor descriptors. |
60 #define ACCESSOR_INFO_DECLARATION(name) \ | 59 #define ACCESSOR_INFO_DECLARATION(name) \ |
61 static void name##Getter( \ | 60 static void name##Getter( \ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 Handle<Name> name, | 108 Handle<Name> name, |
110 AccessorNameGetterCallback getter, | 109 AccessorNameGetterCallback getter, |
111 AccessorNameSetterCallback setter, | 110 AccessorNameSetterCallback setter, |
112 PropertyAttributes attributes); | 111 PropertyAttributes attributes); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace internal | 114 } // namespace internal |
116 } // namespace v8 | 115 } // namespace v8 |
117 | 116 |
118 #endif // V8_ACCESSORS_H_ | 117 #endif // V8_ACCESSORS_H_ |
OLD | NEW |