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 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 V8_INLINE bool IsConstructCall() const; | 2387 V8_INLINE bool IsConstructCall() const; |
2388 V8_INLINE Local<Value> Data() const; | 2388 V8_INLINE Local<Value> Data() const; |
2389 V8_INLINE Isolate* GetIsolate() const; | 2389 V8_INLINE Isolate* GetIsolate() const; |
2390 V8_INLINE ReturnValue<T> GetReturnValue() const; | 2390 V8_INLINE ReturnValue<T> GetReturnValue() const; |
2391 // This shouldn't be public, but the arm compiler needs it. | 2391 // This shouldn't be public, but the arm compiler needs it. |
2392 static const int kArgsLength = 7; | 2392 static const int kArgsLength = 7; |
2393 | 2393 |
2394 protected: | 2394 protected: |
2395 friend class internal::FunctionCallbackArguments; | 2395 friend class internal::FunctionCallbackArguments; |
2396 friend class internal::CustomArguments<FunctionCallbackInfo>; | 2396 friend class internal::CustomArguments<FunctionCallbackInfo>; |
2397 static const int kHolderIndex = 0; | 2397 static const int kContextSaveIndex = 0; |
2398 static const int kIsolateIndex = 1; | 2398 static const int kCalleeIndex = -1; |
2399 static const int kReturnValueDefaultValueIndex = 2; | 2399 static const int kDataIndex = -2; |
2400 static const int kReturnValueIndex = 3; | 2400 static const int kReturnValueIndex = -3; |
2401 static const int kDataIndex = 4; | 2401 static const int kReturnValueDefaultValueIndex = -4; |
2402 static const int kCalleeIndex = 5; | 2402 static const int kIsolateIndex = -5; |
2403 static const int kContextSaveIndex = 6; | 2403 static const int kHolderIndex = -6; |
2404 | 2404 |
2405 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args, | 2405 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args, |
2406 internal::Object** values, | 2406 internal::Object** values, |
2407 int length, | 2407 int length, |
2408 bool is_construct_call); | 2408 bool is_construct_call); |
2409 internal::Object** implicit_args_; | 2409 internal::Object** implicit_args_; |
2410 internal::Object** values_; | 2410 internal::Object** values_; |
2411 int length_; | 2411 int length_; |
2412 bool is_construct_call_; | 2412 bool is_construct_call_; |
2413 }; | 2413 }; |
(...skipping 11 matching lines...) Expand all Loading... |
2425 V8_INLINE Local<Object> This() const; | 2425 V8_INLINE Local<Object> This() const; |
2426 V8_INLINE Local<Object> Holder() const; | 2426 V8_INLINE Local<Object> Holder() const; |
2427 V8_INLINE ReturnValue<T> GetReturnValue() const; | 2427 V8_INLINE ReturnValue<T> GetReturnValue() const; |
2428 // This shouldn't be public, but the arm compiler needs it. | 2428 // This shouldn't be public, but the arm compiler needs it. |
2429 static const int kArgsLength = 6; | 2429 static const int kArgsLength = 6; |
2430 | 2430 |
2431 protected: | 2431 protected: |
2432 friend class MacroAssembler; | 2432 friend class MacroAssembler; |
2433 friend class internal::PropertyCallbackArguments; | 2433 friend class internal::PropertyCallbackArguments; |
2434 friend class internal::CustomArguments<PropertyCallbackInfo>; | 2434 friend class internal::CustomArguments<PropertyCallbackInfo>; |
2435 static const int kHolderIndex = 0; | 2435 static const int kThisIndex = 0; |
2436 static const int kIsolateIndex = 1; | 2436 static const int kDataIndex = -1; |
2437 static const int kReturnValueDefaultValueIndex = 2; | 2437 static const int kReturnValueIndex = -2; |
2438 static const int kReturnValueIndex = 3; | 2438 static const int kReturnValueDefaultValueIndex = -3; |
2439 static const int kDataIndex = 4; | 2439 static const int kIsolateIndex = -4; |
2440 static const int kThisIndex = 5; | 2440 static const int kHolderIndex = -5; |
2441 | 2441 |
2442 V8_INLINE PropertyCallbackInfo(internal::Object** args) : args_(args) {} | 2442 V8_INLINE PropertyCallbackInfo(internal::Object** args) : args_(args) {} |
2443 internal::Object** args_; | 2443 internal::Object** args_; |
2444 }; | 2444 }; |
2445 | 2445 |
2446 | 2446 |
2447 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info); | 2447 typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info); |
2448 | 2448 |
2449 | 2449 |
2450 /** | 2450 /** |
(...skipping 4004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6455 */ | 6455 */ |
6456 | 6456 |
6457 | 6457 |
6458 } // namespace v8 | 6458 } // namespace v8 |
6459 | 6459 |
6460 | 6460 |
6461 #undef TYPE_CHECK | 6461 #undef TYPE_CHECK |
6462 | 6462 |
6463 | 6463 |
6464 #endif // V8_H_ | 6464 #endif // V8_H_ |
OLD | NEW |