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 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 class Arguments { | 1962 class Arguments { |
1963 public: | 1963 public: |
1964 inline int Length() const; | 1964 inline int Length() const; |
1965 inline Local<Value> operator[](int i) const; | 1965 inline Local<Value> operator[](int i) const; |
1966 inline Local<Function> Callee() const; | 1966 inline Local<Function> Callee() const; |
1967 inline Local<Object> This() const; | 1967 inline Local<Object> This() const; |
1968 inline Local<Object> Holder() const; | 1968 inline Local<Object> Holder() const; |
1969 inline bool IsConstructCall() const; | 1969 inline bool IsConstructCall() const; |
1970 inline Local<Value> Data() const; | 1970 inline Local<Value> Data() const; |
1971 inline Isolate* GetIsolate() const; | 1971 inline Isolate* GetIsolate() const; |
| 1972 |
1972 private: | 1973 private: |
1973 static const int kIsolateIndex = 0; | 1974 static const int kIsolateIndex = 0; |
1974 static const int kDataIndex = -1; | 1975 static const int kDataIndex = -1; |
1975 static const int kCalleeIndex = -2; | 1976 static const int kCalleeIndex = -2; |
1976 static const int kHolderIndex = -3; | 1977 static const int kHolderIndex = -3; |
1977 | 1978 |
1978 friend class ImplementationUtilities; | 1979 friend class ImplementationUtilities; |
1979 inline Arguments(internal::Object** implicit_args, | 1980 inline Arguments(internal::Object** implicit_args, |
1980 internal::Object** values, | 1981 internal::Object** values, |
1981 int length, | 1982 int length, |
(...skipping 10 matching lines...) Expand all Loading... |
1992 * of the property access. | 1993 * of the property access. |
1993 */ | 1994 */ |
1994 class V8EXPORT AccessorInfo { | 1995 class V8EXPORT AccessorInfo { |
1995 public: | 1996 public: |
1996 inline AccessorInfo(internal::Object** args) | 1997 inline AccessorInfo(internal::Object** args) |
1997 : args_(args) { } | 1998 : args_(args) { } |
1998 inline Isolate* GetIsolate() const; | 1999 inline Isolate* GetIsolate() const; |
1999 inline Local<Value> Data() const; | 2000 inline Local<Value> Data() const; |
2000 inline Local<Object> This() const; | 2001 inline Local<Object> This() const; |
2001 inline Local<Object> Holder() const; | 2002 inline Local<Object> Holder() const; |
| 2003 |
2002 private: | 2004 private: |
2003 internal::Object** args_; | 2005 internal::Object** args_; |
2004 }; | 2006 }; |
2005 | 2007 |
2006 | 2008 |
2007 typedef Handle<Value> (*InvocationCallback)(const Arguments& args); | 2009 typedef Handle<Value> (*InvocationCallback)(const Arguments& args); |
2008 | 2010 |
2009 /** | 2011 /** |
2010 * NamedProperty[Getter|Setter] are used as interceptors on object. | 2012 * NamedProperty[Getter|Setter] are used as interceptors on object. |
2011 * See ObjectTemplate::SetNamedPropertyHandler. | 2013 * See ObjectTemplate::SetNamedPropertyHandler. |
(...skipping 2320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4332 | 4334 |
4333 | 4335 |
4334 } // namespace v8 | 4336 } // namespace v8 |
4335 | 4337 |
4336 | 4338 |
4337 #undef V8EXPORT | 4339 #undef V8EXPORT |
4338 #undef TYPE_CHECK | 4340 #undef TYPE_CHECK |
4339 | 4341 |
4340 | 4342 |
4341 #endif // V8_H_ | 4343 #endif // V8_H_ |
OLD | NEW |