OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_ARGUMENTS_H_ | 5 #ifndef V8_API_ARGUMENTS_H_ |
6 #define V8_API_ARGUMENTS_H_ | 6 #define V8_API_ARGUMENTS_H_ |
7 | 7 |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 | 10 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 inline Handle<Object> Call(GenericNamedPropertyDeleterCallback f, | 112 inline Handle<Object> Call(GenericNamedPropertyDeleterCallback f, |
113 Handle<Name> name); | 113 Handle<Name> name); |
114 | 114 |
115 inline Handle<Object> Call(IndexedPropertyGetterCallback f, uint32_t index); | 115 inline Handle<Object> Call(IndexedPropertyGetterCallback f, uint32_t index); |
116 inline Handle<Object> Call(IndexedPropertyQueryCallback f, uint32_t index); | 116 inline Handle<Object> Call(IndexedPropertyQueryCallback f, uint32_t index); |
117 inline Handle<Object> Call(IndexedPropertyDeleterCallback f, uint32_t index); | 117 inline Handle<Object> Call(IndexedPropertyDeleterCallback f, uint32_t index); |
118 | 118 |
119 inline Handle<Object> Call(GenericNamedPropertySetterCallback f, | 119 inline Handle<Object> Call(GenericNamedPropertySetterCallback f, |
120 Handle<Name> name, Handle<Object> value); | 120 Handle<Name> name, Handle<Object> value); |
121 | 121 |
| 122 inline Handle<Object> Call(GenericNamedPropertyDefinerCallback f, |
| 123 Handle<Name> name, |
| 124 const v8::PropertyDescriptor& desc); |
| 125 |
122 inline Handle<Object> Call(IndexedPropertySetterCallback f, uint32_t index, | 126 inline Handle<Object> Call(IndexedPropertySetterCallback f, uint32_t index, |
123 Handle<Object> value); | 127 Handle<Object> value); |
124 | 128 |
| 129 inline Handle<Object> Call(IndexedPropertyDefinerCallback f, uint32_t index, |
| 130 const v8::PropertyDescriptor& desc); |
| 131 |
125 inline void Call(AccessorNameSetterCallback f, Handle<Name> name, | 132 inline void Call(AccessorNameSetterCallback f, Handle<Name> name, |
126 Handle<Object> value); | 133 Handle<Object> value); |
127 | 134 |
128 private: | 135 private: |
129 inline JSObject* holder() { | 136 inline JSObject* holder() { |
130 return JSObject::cast(this->begin()[T::kHolderIndex]); | 137 return JSObject::cast(this->begin()[T::kHolderIndex]); |
131 } | 138 } |
132 }; | 139 }; |
133 | 140 |
134 class FunctionCallbackArguments | 141 class FunctionCallbackArguments |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 189 |
183 private: | 190 private: |
184 internal::Object** argv_; | 191 internal::Object** argv_; |
185 int argc_; | 192 int argc_; |
186 }; | 193 }; |
187 | 194 |
188 } // namespace internal | 195 } // namespace internal |
189 } // namespace v8 | 196 } // namespace v8 |
190 | 197 |
191 #endif // V8_API_ARGUMENTS_H_ | 198 #endif // V8_API_ARGUMENTS_H_ |
OLD | NEW |