OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 4664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4675 ResourceConstraints(); | 4675 ResourceConstraints(); |
4676 | 4676 |
4677 /** | 4677 /** |
4678 * Configures the constraints with reasonable default values based on the | 4678 * Configures the constraints with reasonable default values based on the |
4679 * capabilities of the current device the VM is running on. | 4679 * capabilities of the current device the VM is running on. |
4680 * | 4680 * |
4681 * \param physical_memory The total amount of physical memory on the current | 4681 * \param physical_memory The total amount of physical memory on the current |
4682 * device, in bytes. | 4682 * device, in bytes. |
4683 * \param virtual_memory_limit The amount of virtual memory on the current | 4683 * \param virtual_memory_limit The amount of virtual memory on the current |
4684 * device, in bytes, or zero, if there is no limit. | 4684 * device, in bytes, or zero, if there is no limit. |
4685 * \param number_of_processors The number of CPUs available on the current | |
4686 * device. | |
4687 */ | 4685 */ |
4688 void ConfigureDefaults(uint64_t physical_memory, | 4686 void ConfigureDefaults(uint64_t physical_memory, |
| 4687 uint64_t virtual_memory_limit); |
| 4688 |
| 4689 // Deprecated, will be removed soon. |
| 4690 void ConfigureDefaults(uint64_t physical_memory, |
4689 uint64_t virtual_memory_limit, | 4691 uint64_t virtual_memory_limit, |
4690 uint32_t number_of_processors); | 4692 uint32_t number_of_processors); |
4691 | 4693 |
4692 int max_semi_space_size() const { return max_semi_space_size_; } | 4694 int max_semi_space_size() const { return max_semi_space_size_; } |
4693 void set_max_semi_space_size(int value) { max_semi_space_size_ = value; } | 4695 void set_max_semi_space_size(int value) { max_semi_space_size_ = value; } |
4694 int max_old_space_size() const { return max_old_space_size_; } | 4696 int max_old_space_size() const { return max_old_space_size_; } |
4695 void set_max_old_space_size(int value) { max_old_space_size_ = value; } | 4697 void set_max_old_space_size(int value) { max_old_space_size_ = value; } |
4696 int max_executable_size() const { return max_executable_size_; } | 4698 int max_executable_size() const { return max_executable_size_; } |
4697 void set_max_executable_size(int value) { max_executable_size_ = value; } | 4699 void set_max_executable_size(int value) { max_executable_size_ = value; } |
4698 uint32_t* stack_limit() const { return stack_limit_; } | 4700 uint32_t* stack_limit() const { return stack_limit_; } |
4699 // Sets an address beyond which the VM's stack may not grow. | 4701 // Sets an address beyond which the VM's stack may not grow. |
4700 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } | 4702 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } |
4701 int max_available_threads() const { return max_available_threads_; } | 4703 V8_DEPRECATE_SOON("Unused, will be removed", |
| 4704 int max_available_threads() const) { |
| 4705 return max_available_threads_; |
| 4706 } |
4702 // Set the number of threads available to V8, assuming at least 1. | 4707 // Set the number of threads available to V8, assuming at least 1. |
4703 void set_max_available_threads(int value) { | 4708 V8_DEPRECATE_SOON("Unused, will be removed", |
| 4709 void set_max_available_threads(int value)) { |
4704 max_available_threads_ = value; | 4710 max_available_threads_ = value; |
4705 } | 4711 } |
4706 size_t code_range_size() const { return code_range_size_; } | 4712 size_t code_range_size() const { return code_range_size_; } |
4707 void set_code_range_size(size_t value) { | 4713 void set_code_range_size(size_t value) { |
4708 code_range_size_ = value; | 4714 code_range_size_ = value; |
4709 } | 4715 } |
4710 | 4716 |
4711 private: | 4717 private: |
4712 int max_semi_space_size_; | 4718 int max_semi_space_size_; |
4713 int max_old_space_size_; | 4719 int max_old_space_size_; |
(...skipping 3378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8092 */ | 8098 */ |
8093 | 8099 |
8094 | 8100 |
8095 } // namespace v8 | 8101 } // namespace v8 |
8096 | 8102 |
8097 | 8103 |
8098 #undef TYPE_CHECK | 8104 #undef TYPE_CHECK |
8099 | 8105 |
8100 | 8106 |
8101 #endif // V8_H_ | 8107 #endif // V8_H_ |
OLD | NEW |