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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 }; | 231 }; |
232 | 232 |
233 | 233 |
234 class FunctionCallbackArguments | 234 class FunctionCallbackArguments |
235 : public CustomArguments<FunctionCallbackInfo<Value> > { | 235 : public CustomArguments<FunctionCallbackInfo<Value> > { |
236 public: | 236 public: |
237 typedef FunctionCallbackInfo<Value> T; | 237 typedef FunctionCallbackInfo<Value> T; |
238 typedef CustomArguments<T> Super; | 238 typedef CustomArguments<T> Super; |
239 static const int kArgsLength = T::kArgsLength; | 239 static const int kArgsLength = T::kArgsLength; |
240 static const int kHolderIndex = T::kHolderIndex; | 240 static const int kHolderIndex = T::kHolderIndex; |
| 241 static const int kDataIndex = T::kDataIndex; |
| 242 static const int kReturnValueDefaultValueIndex = |
| 243 T::kReturnValueDefaultValueIndex; |
| 244 static const int kIsolateIndex = T::kIsolateIndex; |
| 245 static const int kCalleeIndex = T::kCalleeIndex; |
| 246 static const int kContextSaveIndex = T::kContextSaveIndex; |
241 | 247 |
242 FunctionCallbackArguments(internal::Isolate* isolate, | 248 FunctionCallbackArguments(internal::Isolate* isolate, |
243 internal::Object* data, | 249 internal::Object* data, |
244 internal::JSFunction* callee, | 250 internal::JSFunction* callee, |
245 internal::Object* holder, | 251 internal::Object* holder, |
246 internal::Object** argv, | 252 internal::Object** argv, |
247 int argc, | 253 int argc, |
248 bool is_construct_call) | 254 bool is_construct_call) |
249 : Super(isolate), | 255 : Super(isolate), |
250 argv_(argv), | 256 argv_(argv), |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 return __RT_impl_##Name(args, isolate); \ | 299 return __RT_impl_##Name(args, isolate); \ |
294 } \ | 300 } \ |
295 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) | 301 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) |
296 | 302 |
297 #define RUNTIME_ARGUMENTS(isolate, args) \ | 303 #define RUNTIME_ARGUMENTS(isolate, args) \ |
298 args.length(), args.arguments(), isolate | 304 args.length(), args.arguments(), isolate |
299 | 305 |
300 } } // namespace v8::internal | 306 } } // namespace v8::internal |
301 | 307 |
302 #endif // V8_ARGUMENTS_H_ | 308 #endif // V8_ARGUMENTS_H_ |
OLD | NEW |