| 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 | |
| 126 inline Handle<Object> Call(IndexedPropertySetterCallback f, uint32_t index, | 122 inline Handle<Object> Call(IndexedPropertySetterCallback f, uint32_t index, |
| 127 Handle<Object> value); | 123 Handle<Object> value); |
| 128 | 124 |
| 129 inline Handle<Object> Call(IndexedPropertyDefinerCallback f, uint32_t index, | |
| 130 const v8::PropertyDescriptor& desc); | |
| 131 | |
| 132 inline void Call(AccessorNameSetterCallback f, Handle<Name> name, | 125 inline void Call(AccessorNameSetterCallback f, Handle<Name> name, |
| 133 Handle<Object> value); | 126 Handle<Object> value); |
| 134 | 127 |
| 135 private: | 128 private: |
| 136 inline JSObject* holder() { | 129 inline JSObject* holder() { |
| 137 return JSObject::cast(this->begin()[T::kHolderIndex]); | 130 return JSObject::cast(this->begin()[T::kHolderIndex]); |
| 138 } | 131 } |
| 139 }; | 132 }; |
| 140 | 133 |
| 141 class FunctionCallbackArguments | 134 class FunctionCallbackArguments |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 182 |
| 190 private: | 183 private: |
| 191 internal::Object** argv_; | 184 internal::Object** argv_; |
| 192 int argc_; | 185 int argc_; |
| 193 }; | 186 }; |
| 194 | 187 |
| 195 } // namespace internal | 188 } // namespace internal |
| 196 } // namespace v8 | 189 } // namespace v8 |
| 197 | 190 |
| 198 #endif // V8_API_ARGUMENTS_H_ | 191 #endif // V8_API_ARGUMENTS_H_ |
| OLD | NEW |