OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 | 169 |
170 class PropertyCallbackArguments | 170 class PropertyCallbackArguments |
171 : public CustomArguments<PropertyCallbackInfo<Value> > { | 171 : public CustomArguments<PropertyCallbackInfo<Value> > { |
172 public: | 172 public: |
173 typedef PropertyCallbackInfo<Value> T; | 173 typedef PropertyCallbackInfo<Value> T; |
174 typedef CustomArguments<T> Super; | 174 typedef CustomArguments<T> Super; |
175 static const int kArgsLength = T::kArgsLength; | 175 static const int kArgsLength = T::kArgsLength; |
176 static const int kThisIndex = T::kThisIndex; | 176 static const int kThisIndex = T::kThisIndex; |
177 static const int kHolderIndex = T::kHolderIndex; | 177 static const int kHolderIndex = T::kHolderIndex; |
178 static const int kDataIndex = T::kDataIndex; | |
179 static const int kReturnValueDefaultValueIndex = | |
180 T::kReturnValueDefaultValueIndex; | |
181 static const int kIsolateIndex = T::kIsolateIndex; | |
182 | 178 |
183 PropertyCallbackArguments(Isolate* isolate, | 179 PropertyCallbackArguments(Isolate* isolate, |
184 Object* data, | 180 Object* data, |
185 Object* self, | 181 Object* self, |
186 JSObject* holder) | 182 JSObject* holder) |
187 : Super(isolate) { | 183 : Super(isolate) { |
188 Object** values = this->end(); | 184 Object** values = this->end(); |
189 values[T::kThisIndex] = self; | 185 values[T::kThisIndex] = self; |
190 values[T::kHolderIndex] = holder; | 186 values[T::kHolderIndex] = holder; |
191 values[T::kDataIndex] = data; | 187 values[T::kDataIndex] = data; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 return __RT_impl_##Name(args, isolate); \ | 287 return __RT_impl_##Name(args, isolate); \ |
292 } \ | 288 } \ |
293 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) | 289 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) |
294 | 290 |
295 #define RUNTIME_ARGUMENTS(isolate, args) \ | 291 #define RUNTIME_ARGUMENTS(isolate, args) \ |
296 args.length(), args.arguments(), isolate | 292 args.length(), args.arguments(), isolate |
297 | 293 |
298 } } // namespace v8::internal | 294 } } // namespace v8::internal |
299 | 295 |
300 #endif // V8_ARGUMENTS_H_ | 296 #endif // V8_ARGUMENTS_H_ |
OLD | NEW |