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 3786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3797 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } | 3797 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } |
3798 | 3798 |
3799 private: | 3799 private: |
3800 int max_young_space_size_; | 3800 int max_young_space_size_; |
3801 int max_old_space_size_; | 3801 int max_old_space_size_; |
3802 int max_executable_size_; | 3802 int max_executable_size_; |
3803 uint32_t* stack_limit_; | 3803 uint32_t* stack_limit_; |
3804 }; | 3804 }; |
3805 | 3805 |
3806 | 3806 |
| 3807 /** |
| 3808 * Sets the given ResourceConstraints on the current isolate. |
| 3809 */ |
3807 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints); | 3810 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints); |
3808 | 3811 |
3809 | 3812 |
3810 // --- Exceptions --- | 3813 // --- Exceptions --- |
3811 | 3814 |
3812 | 3815 |
3813 typedef void (*FatalErrorCallback)(const char* location, const char* message); | 3816 typedef void (*FatalErrorCallback)(const char* location, const char* message); |
3814 | 3817 |
3815 | 3818 |
3816 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); | 3819 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); |
(...skipping 2681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6498 */ | 6501 */ |
6499 | 6502 |
6500 | 6503 |
6501 } // namespace v8 | 6504 } // namespace v8 |
6502 | 6505 |
6503 | 6506 |
6504 #undef TYPE_CHECK | 6507 #undef TYPE_CHECK |
6505 | 6508 |
6506 | 6509 |
6507 #endif // V8_H_ | 6510 #endif // V8_H_ |
OLD | NEW |