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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2345 V8_INLINE(int Length() const); | 2345 V8_INLINE(int Length() const); |
2346 V8_INLINE(Local<Value> operator[](int i) const); | 2346 V8_INLINE(Local<Value> operator[](int i) const); |
2347 V8_INLINE(Local<Function> Callee() const); | 2347 V8_INLINE(Local<Function> Callee() const); |
2348 V8_INLINE(Local<Object> This() const); | 2348 V8_INLINE(Local<Object> This() const); |
2349 V8_INLINE(Local<Object> Holder() const); | 2349 V8_INLINE(Local<Object> Holder() const); |
2350 V8_INLINE(bool IsConstructCall() const); | 2350 V8_INLINE(bool IsConstructCall() const); |
2351 V8_INLINE(Local<Value> Data() const); | 2351 V8_INLINE(Local<Value> Data() const); |
2352 V8_INLINE(Isolate* GetIsolate() const); | 2352 V8_INLINE(Isolate* GetIsolate() const); |
2353 V8_INLINE(ReturnValue<T> GetReturnValue() const); | 2353 V8_INLINE(ReturnValue<T> GetReturnValue() const); |
2354 // This shouldn't be public, but the arm compiler needs it. | 2354 // This shouldn't be public, but the arm compiler needs it. |
2355 static const int kArgsLength = 6; | 2355 static const int kArgsLength = 7; |
2356 | 2356 |
2357 protected: | 2357 protected: |
2358 friend class internal::FunctionCallbackArguments; | 2358 friend class internal::FunctionCallbackArguments; |
2359 friend class internal::CustomArguments<FunctionCallbackInfo>; | 2359 friend class internal::CustomArguments<FunctionCallbackInfo>; |
2360 static const int kReturnValueIndex = 0; | 2360 static const int kReturnValueIndex = 0; |
2361 static const int kReturnValueDefaultValueIndex = -1; | 2361 static const int kReturnValueDefaultValueIndex = -1; |
2362 static const int kIsolateIndex = -2; | 2362 static const int kIsolateIndex = -2; |
2363 static const int kDataIndex = -3; | 2363 static const int kContextSaveIndex = -3; |
2364 static const int kCalleeIndex = -4; | 2364 static const int kDataIndex = -4; |
2365 static const int kHolderIndex = -5; | 2365 static const int kCalleeIndex = -5; |
| 2366 static const int kHolderIndex = -6; |
2366 | 2367 |
2367 V8_INLINE(FunctionCallbackInfo(internal::Object** implicit_args, | 2368 V8_INLINE(FunctionCallbackInfo(internal::Object** implicit_args, |
2368 internal::Object** values, | 2369 internal::Object** values, |
2369 int length, | 2370 int length, |
2370 bool is_construct_call)); | 2371 bool is_construct_call)); |
2371 internal::Object** implicit_args_; | 2372 internal::Object** implicit_args_; |
2372 internal::Object** values_; | 2373 internal::Object** values_; |
2373 int length_; | 2374 int length_; |
2374 bool is_construct_call_; | 2375 bool is_construct_call_; |
2375 }; | 2376 }; |
(...skipping 4051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6427 */ | 6428 */ |
6428 | 6429 |
6429 | 6430 |
6430 } // namespace v8 | 6431 } // namespace v8 |
6431 | 6432 |
6432 | 6433 |
6433 #undef TYPE_CHECK | 6434 #undef TYPE_CHECK |
6434 | 6435 |
6435 | 6436 |
6436 #endif // V8_H_ | 6437 #endif // V8_H_ |
OLD | NEW |