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 kContextSaveIndex = T::kContextSaveIndex; | |
haitao.feng
2013/09/22 09:44:28
This change needs review.
| |
241 | 242 |
242 FunctionCallbackArguments(internal::Isolate* isolate, | 243 FunctionCallbackArguments(internal::Isolate* isolate, |
243 internal::Object* data, | 244 internal::Object* data, |
244 internal::JSFunction* callee, | 245 internal::JSFunction* callee, |
245 internal::Object* holder, | 246 internal::Object* holder, |
246 internal::Object** argv, | 247 internal::Object** argv, |
247 int argc, | 248 int argc, |
248 bool is_construct_call) | 249 bool is_construct_call) |
249 : Super(isolate), | 250 : Super(isolate), |
250 argv_(argv), | 251 argv_(argv), |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
293 return __RT_impl_##Name(args, isolate); \ | 294 return __RT_impl_##Name(args, isolate); \ |
294 } \ | 295 } \ |
295 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) | 296 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) |
296 | 297 |
297 #define RUNTIME_ARGUMENTS(isolate, args) \ | 298 #define RUNTIME_ARGUMENTS(isolate, args) \ |
298 args.length(), args.arguments(), isolate | 299 args.length(), args.arguments(), isolate |
299 | 300 |
300 } } // namespace v8::internal | 301 } } // namespace v8::internal |
301 | 302 |
302 #endif // V8_ARGUMENTS_H_ | 303 #endif // V8_ARGUMENTS_H_ |
OLD | NEW |