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

Side by Side Diff: include/v8.h

Issue 1080633006: Deprecate 3-args ResourceConstraints::ConfigureDefaults (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 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
« no previous file with comments | « no previous file | no next file » | 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 // 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 4669 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 */ 4685 */
4686 void ConfigureDefaults(uint64_t physical_memory, 4686 void ConfigureDefaults(uint64_t physical_memory,
4687 uint64_t virtual_memory_limit); 4687 uint64_t virtual_memory_limit);
4688 4688
4689 // Deprecated, will be removed soon. 4689 // Deprecated, will be removed soon.
4690 void ConfigureDefaults(uint64_t physical_memory, 4690 V8_DEPRECATED("Use two-args version instead",
4691 uint64_t virtual_memory_limit, 4691 void ConfigureDefaults(uint64_t physical_memory,
4692 uint32_t number_of_processors); 4692 uint64_t virtual_memory_limit,
4693 uint32_t number_of_processors));
4693 4694
4694 int max_semi_space_size() const { return max_semi_space_size_; } 4695 int max_semi_space_size() const { return max_semi_space_size_; }
4695 void set_max_semi_space_size(int value) { max_semi_space_size_ = value; } 4696 void set_max_semi_space_size(int value) { max_semi_space_size_ = value; }
4696 int max_old_space_size() const { return max_old_space_size_; } 4697 int max_old_space_size() const { return max_old_space_size_; }
4697 void set_max_old_space_size(int value) { max_old_space_size_ = value; } 4698 void set_max_old_space_size(int value) { max_old_space_size_ = value; }
4698 int max_executable_size() const { return max_executable_size_; } 4699 int max_executable_size() const { return max_executable_size_; }
4699 void set_max_executable_size(int value) { max_executable_size_ = value; } 4700 void set_max_executable_size(int value) { max_executable_size_ = value; }
4700 uint32_t* stack_limit() const { return stack_limit_; } 4701 uint32_t* stack_limit() const { return stack_limit_; }
4701 // Sets an address beyond which the VM's stack may not grow. 4702 // Sets an address beyond which the VM's stack may not grow.
4702 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } 4703 void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
4703 V8_DEPRECATE_SOON("Unused, will be removed", 4704 V8_DEPRECATED("Unused, will be removed", int max_available_threads() const) {
4704 int max_available_threads() const) {
4705 return max_available_threads_; 4705 return max_available_threads_;
4706 } 4706 }
4707 // 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.
4708 V8_DEPRECATE_SOON("Unused, will be removed", 4708 V8_DEPRECATED("Unused, will be removed",
4709 void set_max_available_threads(int value)) { 4709 void set_max_available_threads(int value)) {
4710 max_available_threads_ = value; 4710 max_available_threads_ = value;
4711 } 4711 }
4712 size_t code_range_size() const { return code_range_size_; } 4712 size_t code_range_size() const { return code_range_size_; }
4713 void set_code_range_size(size_t value) { 4713 void set_code_range_size(size_t value) {
4714 code_range_size_ = value; 4714 code_range_size_ = value;
4715 } 4715 }
4716 4716
4717 private: 4717 private:
4718 int max_semi_space_size_; 4718 int max_semi_space_size_;
4719 int max_old_space_size_; 4719 int max_old_space_size_;
(...skipping 3411 matching lines...) Expand 10 before | Expand all | Expand 10 after
8131 */ 8131 */
8132 8132
8133 8133
8134 } // namespace v8 8134 } // namespace v8
8135 8135
8136 8136
8137 #undef TYPE_CHECK 8137 #undef TYPE_CHECK
8138 8138
8139 8139
8140 #endif // V8_H_ 8140 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698