Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: include/v8.h

Issue 10081005: Merged r11308, r11311, r11313 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arguments.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
3763 * Writes the next chunk of snapshot data into the stream. Writing 3765 * Writes the next chunk of snapshot data into the stream. Writing
3764 * can be stopped by returning kAbort as function result. EndOfStream 3766 * can be stopped by returning kAbort as function result. EndOfStream
3765 * will not be called in case writing was aborted. 3767 * will not be called in case writing was aborted.
3766 */ 3768 */
3767 virtual WriteResult WriteAsciiChunk(char* data, int size) = 0; 3769 virtual WriteResult WriteAsciiChunk(char* data, int size) = 0;
3768 /** 3770 /**
3769 * Writes the next chunk of heap stats data into the stream. Writing 3771 * Writes the next chunk of heap stats data into the stream. Writing
3770 * can be stopped by returning kAbort as function result. EndOfStream 3772 * can be stopped by returning kAbort as function result. EndOfStream
3771 * will not be called in case writing was aborted. 3773 * will not be called in case writing was aborted.
3772 */ 3774 */
3773 virtual WriteResult WriteUint32Chunk(uint32_t* data, int count) = 0; 3775 // TODO(loislo): Make this pure virtual when WebKit's V8 bindings
3776 // have been updated.
3777 virtual WriteResult WriteUint32Chunk(uint32_t* data, int count) {
3778 return kAbort;
3779 };
3774 }; 3780 };
3775 3781
3776 3782
3777 /** 3783 /**
3778 * An interface for reporting progress and controlling long-running 3784 * An interface for reporting progress and controlling long-running
3779 * activities. 3785 * activities.
3780 */ 3786 */
3781 class V8EXPORT ActivityControl { // NOLINT 3787 class V8EXPORT ActivityControl { // NOLINT
3782 public: 3788 public:
3783 enum ControlOption { 3789 enum ControlOption {
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
4332 4338
4333 4339
4334 } // namespace v8 4340 } // namespace v8
4335 4341
4336 4342
4337 #undef V8EXPORT 4343 #undef V8EXPORT
4338 #undef TYPE_CHECK 4344 #undef TYPE_CHECK
4339 4345
4340 4346
4341 #endif // V8_H_ 4347 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698