| 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; |
| 178 | 182 |
| 179 PropertyCallbackArguments(Isolate* isolate, | 183 PropertyCallbackArguments(Isolate* isolate, |
| 180 Object* data, | 184 Object* data, |
| 181 Object* self, | 185 Object* self, |
| 182 JSObject* holder) | 186 JSObject* holder) |
| 183 : Super(isolate) { | 187 : Super(isolate) { |
| 184 Object** values = this->end(); | 188 Object** values = this->end(); |
| 185 values[T::kThisIndex] = self; | 189 values[T::kThisIndex] = self; |
| 186 values[T::kHolderIndex] = holder; | 190 values[T::kHolderIndex] = holder; |
| 187 values[T::kDataIndex] = data; | 191 values[T::kDataIndex] = data; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 return __RT_impl_##Name(args, isolate); \ | 291 return __RT_impl_##Name(args, isolate); \ |
| 288 } \ | 292 } \ |
| 289 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) | 293 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) |
| 290 | 294 |
| 291 #define RUNTIME_ARGUMENTS(isolate, args) \ | 295 #define RUNTIME_ARGUMENTS(isolate, args) \ |
| 292 args.length(), args.arguments(), isolate | 296 args.length(), args.arguments(), isolate |
| 293 | 297 |
| 294 } } // namespace v8::internal | 298 } } // namespace v8::internal |
| 295 | 299 |
| 296 #endif // V8_ARGUMENTS_H_ | 300 #endif // V8_ARGUMENTS_H_ |
| OLD | NEW |