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

Side by Side Diff: include/v8.h

Issue 271843005: Simplify ConfigureHeap and change --max_new_space_size to --max_semi_space_size. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/heap.cc » ('J')
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 3847 matching lines...) Expand 10 before | Expand all | Expand 10 after
3858 * device, in bytes. 3858 * device, in bytes.
3859 * \param virtual_memory_limit The amount of virtual memory on the current 3859 * \param virtual_memory_limit The amount of virtual memory on the current
3860 * device, in bytes, or zero, if there is no limit. 3860 * device, in bytes, or zero, if there is no limit.
3861 * \param number_of_processors The number of CPUs available on the current 3861 * \param number_of_processors The number of CPUs available on the current
3862 * device. 3862 * device.
3863 */ 3863 */
3864 void ConfigureDefaults(uint64_t physical_memory, 3864 void ConfigureDefaults(uint64_t physical_memory,
3865 uint64_t virtual_memory_limit, 3865 uint64_t virtual_memory_limit,
3866 uint32_t number_of_processors); 3866 uint32_t number_of_processors);
3867 3867
3868 int max_new_space_size() const { return max_new_space_size_; } 3868 int max_semi_space_size() const { return max_semi_space_size_; }
3869 void set_max_new_space_size(int value) { max_new_space_size_ = value; } 3869 void set_max_semi_space_size(int value) { max_semi_space_size_ = value; }
3870 int max_old_space_size() const { return max_old_space_size_; } 3870 int max_old_space_size() const { return max_old_space_size_; }
3871 void set_max_old_space_size(int value) { max_old_space_size_ = value; } 3871 void set_max_old_space_size(int value) { max_old_space_size_ = value; }
3872 int max_executable_size() const { return max_executable_size_; } 3872 int max_executable_size() const { return max_executable_size_; }
3873 void set_max_executable_size(int value) { max_executable_size_ = value; } 3873 void set_max_executable_size(int value) { max_executable_size_ = value; }
3874 uint32_t* stack_limit() const { return stack_limit_; } 3874 uint32_t* stack_limit() const { return stack_limit_; }
3875 // Sets an address beyond which the VM's stack may not grow. 3875 // Sets an address beyond which the VM's stack may not grow.
3876 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } 3876 void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
3877 int max_available_threads() const { return max_available_threads_; } 3877 int max_available_threads() const { return max_available_threads_; }
3878 // Set the number of threads available to V8, assuming at least 1. 3878 // Set the number of threads available to V8, assuming at least 1.
3879 void set_max_available_threads(int value) { 3879 void set_max_available_threads(int value) {
3880 max_available_threads_ = value; 3880 max_available_threads_ = value;
3881 } 3881 }
3882 int code_range_size() const { return code_range_size_; } 3882 int code_range_size() const { return code_range_size_; }
3883 void set_code_range_size(int value) { 3883 void set_code_range_size(int value) {
3884 code_range_size_ = value; 3884 code_range_size_ = value;
3885 } 3885 }
3886 3886
3887 private: 3887 private:
3888 int max_new_space_size_; 3888 int max_semi_space_size_;
3889 int max_old_space_size_; 3889 int max_old_space_size_;
3890 int max_executable_size_; 3890 int max_executable_size_;
3891 uint32_t* stack_limit_; 3891 uint32_t* stack_limit_;
3892 int max_available_threads_; 3892 int max_available_threads_;
3893 int code_range_size_; 3893 int code_range_size_;
3894 }; 3894 };
3895 3895
3896 3896
3897 /** 3897 /**
3898 * Sets the given ResourceConstraints on the given Isolate. 3898 * Sets the given ResourceConstraints on the given Isolate.
(...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after
6623 */ 6623 */
6624 6624
6625 6625
6626 } // namespace v8 6626 } // namespace v8
6627 6627
6628 6628
6629 #undef TYPE_CHECK 6629 #undef TYPE_CHECK
6630 6630
6631 6631
6632 #endif // V8_H_ 6632 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698