| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 Handle<Primitive> V8EXPORT Undefined(); | 1977 Handle<Primitive> V8EXPORT Undefined(); |
| 1978 Handle<Primitive> V8EXPORT Null(); | 1978 Handle<Primitive> V8EXPORT Null(); |
| 1979 Handle<Boolean> V8EXPORT True(); | 1979 Handle<Boolean> V8EXPORT True(); |
| 1980 Handle<Boolean> V8EXPORT False(); | 1980 Handle<Boolean> V8EXPORT False(); |
| 1981 | 1981 |
| 1982 | 1982 |
| 1983 /** | 1983 /** |
| 1984 * A set of constraints that specifies the limits of the runtime's | 1984 * A set of constraints that specifies the limits of the runtime's |
| 1985 * memory use. | 1985 * memory use. |
| 1986 */ | 1986 */ |
| 1987 class V8EXPORT ResourceConstraints { | 1987 class V8EXPORT HeapResourceConstraints { |
| 1988 public: | 1988 public: |
| 1989 ResourceConstraints(); | 1989 HeapResourceConstraints(); |
| 1990 int max_young_space_size() const { return max_young_space_size_; } | 1990 int max_young_space_size() const { return max_young_space_size_; } |
| 1991 void set_max_young_space_size(int value) { max_young_space_size_ = value; } | 1991 void set_max_young_space_size(int value) { max_young_space_size_ = value; } |
| 1992 int max_old_space_size() const { return max_old_space_size_; } | 1992 int max_old_space_size() const { return max_old_space_size_; } |
| 1993 void set_max_old_space_size(int value) { max_old_space_size_ = value; } | 1993 void set_max_old_space_size(int value) { max_old_space_size_ = value; } |
| 1994 uint32_t* stack_limit() const { return stack_limit_; } | |
| 1995 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } | |
| 1996 private: | 1994 private: |
| 1997 int max_young_space_size_; | 1995 int max_young_space_size_; |
| 1998 int max_old_space_size_; | 1996 int max_old_space_size_; |
| 1999 uint32_t* stack_limit_; | |
| 2000 }; | 1997 }; |
| 2001 | 1998 |
| 2002 | 1999 |
| 2003 bool SetResourceConstraints(ResourceConstraints* constraints); | 2000 bool SetHeapResourceConstraints(HeapResourceConstraints* constraints); |
| 2001 |
| 2002 |
| 2003 /** |
| 2004 * Specifies the approximate limit of the runtime's stack |
| 2005 * use. SetStackLimit can be called multiple times to set the stack |
| 2006 * limit on different threads. |
| 2007 */ |
| 2008 void SetStackLimit(uint32_t* limit); |
| 2004 | 2009 |
| 2005 | 2010 |
| 2006 // --- E x c e p t i o n s --- | 2011 // --- E x c e p t i o n s --- |
| 2007 | 2012 |
| 2008 | 2013 |
| 2009 typedef void (*FatalErrorCallback)(const char* location, const char* message); | 2014 typedef void (*FatalErrorCallback)(const char* location, const char* message); |
| 2010 | 2015 |
| 2011 | 2016 |
| 2012 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> data); | 2017 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> data); |
| 2013 | 2018 |
| (...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3096 | 3101 |
| 3097 } // namespace v8 | 3102 } // namespace v8 |
| 3098 | 3103 |
| 3099 | 3104 |
| 3100 #undef V8EXPORT | 3105 #undef V8EXPORT |
| 3101 #undef V8EXPORT_INLINE | 3106 #undef V8EXPORT_INLINE |
| 3102 #undef TYPE_CHECK | 3107 #undef TYPE_CHECK |
| 3103 | 3108 |
| 3104 | 3109 |
| 3105 #endif // V8_H_ | 3110 #endif // V8_H_ |
| OLD | NEW |