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 3804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3815 | 3815 |
3816 int max_young_space_size() const { return max_young_space_size_; } | 3816 int max_young_space_size() const { return max_young_space_size_; } |
3817 void set_max_young_space_size(int value) { max_young_space_size_ = value; } | 3817 void set_max_young_space_size(int value) { max_young_space_size_ = value; } |
3818 int max_old_space_size() const { return max_old_space_size_; } | 3818 int max_old_space_size() const { return max_old_space_size_; } |
3819 void set_max_old_space_size(int value) { max_old_space_size_ = value; } | 3819 void set_max_old_space_size(int value) { max_old_space_size_ = value; } |
3820 int max_executable_size() { return max_executable_size_; } | 3820 int max_executable_size() { return max_executable_size_; } |
3821 void set_max_executable_size(int value) { max_executable_size_ = value; } | 3821 void set_max_executable_size(int value) { max_executable_size_ = value; } |
3822 uint32_t* stack_limit() const { return stack_limit_; } | 3822 uint32_t* stack_limit() const { return stack_limit_; } |
3823 // Sets an address beyond which the VM's stack may not grow. | 3823 // Sets an address beyond which the VM's stack may not grow. |
3824 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } | 3824 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } |
3825 int max_available_threads() { return max_available_threads_; } | |
Sven Panne
2013/11/18 14:40:07
const
Furthermore, the semantics and the typing a
| |
3826 void set_max_available_threads(int value) { | |
3827 max_available_threads_ = value; | |
3828 } | |
3825 | 3829 |
3826 private: | 3830 private: |
3827 int max_young_space_size_; | 3831 int max_young_space_size_; |
3828 int max_old_space_size_; | 3832 int max_old_space_size_; |
3829 int max_executable_size_; | 3833 int max_executable_size_; |
3830 uint32_t* stack_limit_; | 3834 uint32_t* stack_limit_; |
3835 int max_available_threads_; | |
3831 }; | 3836 }; |
3832 | 3837 |
3833 | 3838 |
3834 V8_DEPRECATED( | 3839 V8_DEPRECATED( |
3835 "Use SetResourceConstraints(isolate, constraints) instead", | 3840 "Use SetResourceConstraints(isolate, constraints) instead", |
3836 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints)); | 3841 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints)); |
3837 | 3842 |
3838 | 3843 |
3839 /** | 3844 /** |
3840 * Sets the given ResourceConstraints on the given Isolate. | 3845 * Sets the given ResourceConstraints on the given Isolate. |
(...skipping 2698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6539 */ | 6544 */ |
6540 | 6545 |
6541 | 6546 |
6542 } // namespace v8 | 6547 } // namespace v8 |
6543 | 6548 |
6544 | 6549 |
6545 #undef TYPE_CHECK | 6550 #undef TYPE_CHECK |
6546 | 6551 |
6547 | 6552 |
6548 #endif // V8_H_ | 6553 #endif // V8_H_ |
OLD | NEW |