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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // set a (boolean) return value. The setter should roughly follow the same | 107 // set a (boolean) return value. The setter should roughly follow the same |
108 // conventions as many of the internal methods in objects.cc: | 108 // conventions as many of the internal methods in objects.cc: |
109 // - The return value is unset iff there was an exception. | 109 // - The return value is unset iff there was an exception. |
110 // - If the ShouldThrow argument is true, the return value must not be false. | 110 // - If the ShouldThrow argument is true, the return value must not be false. |
111 typedef void (*AccessorNameBooleanSetterCallback)( | 111 typedef void (*AccessorNameBooleanSetterCallback)( |
112 Local<v8::Name> property, Local<v8::Value> value, | 112 Local<v8::Name> property, Local<v8::Value> value, |
113 const PropertyCallbackInfo<v8::Boolean>& info); | 113 const PropertyCallbackInfo<v8::Boolean>& info); |
114 | 114 |
115 static Handle<AccessorInfo> MakeAccessor( | 115 static Handle<AccessorInfo> MakeAccessor( |
116 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter, | 116 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter, |
117 AccessorNameBooleanSetterCallback setter, PropertyAttributes attributes); | 117 AccessorNameBooleanSetterCallback setter, PropertyAttributes attributes, |
| 118 bool replace_on_access); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace internal | 121 } // namespace internal |
121 } // namespace v8 | 122 } // namespace v8 |
122 | 123 |
123 #endif // V8_ACCESSORS_H_ | 124 #endif // V8_ACCESSORS_H_ |
OLD | NEW |