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

Side by Side Diff: include/v8.h

Issue 236063015: Grow old generation slower on low-memory devices. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | 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 // 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 3876 matching lines...) Expand 10 before | Expand all | Expand 10 after
3887 * device, in bytes. 3887 * device, in bytes.
3888 * \param virtual_memory_limit The amount of virtual memory on the current 3888 * \param virtual_memory_limit The amount of virtual memory on the current
3889 * device, in bytes, or zero, if there is no limit. 3889 * device, in bytes, or zero, if there is no limit.
3890 * \param number_of_processors The number of CPUs available on the current 3890 * \param number_of_processors The number of CPUs available on the current
3891 * device. 3891 * device.
3892 */ 3892 */
3893 void ConfigureDefaults(uint64_t physical_memory, 3893 void ConfigureDefaults(uint64_t physical_memory,
3894 uint64_t virtual_memory_limit, 3894 uint64_t virtual_memory_limit,
3895 uint32_t number_of_processors); 3895 uint32_t number_of_processors);
3896 3896
3897 int max_young_space_size() const { return max_young_space_size_; } 3897 int max_new_space_size() const { return max_new_space_size_; }
3898 void set_max_young_space_size(int value) { max_young_space_size_ = value; } 3898 void set_max_new_space_size(int value) { max_new_space_size_ = value; }
3899 int max_old_space_size() const { return max_old_space_size_; } 3899 int max_old_space_size() const { return max_old_space_size_; }
3900 void set_max_old_space_size(int value) { max_old_space_size_ = value; } 3900 void set_max_old_space_size(int value) { max_old_space_size_ = value; }
3901 int max_executable_size() const { return max_executable_size_; } 3901 int max_executable_size() const { return max_executable_size_; }
3902 void set_max_executable_size(int value) { max_executable_size_ = value; } 3902 void set_max_executable_size(int value) { max_executable_size_ = value; }
3903 uint32_t* stack_limit() const { return stack_limit_; } 3903 uint32_t* stack_limit() const { return stack_limit_; }
3904 // Sets an address beyond which the VM's stack may not grow. 3904 // Sets an address beyond which the VM's stack may not grow.
3905 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } 3905 void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
3906 int max_available_threads() const { return max_available_threads_; } 3906 int max_available_threads() const { return max_available_threads_; }
3907 // Set the number of threads available to V8, assuming at least 1. 3907 // Set the number of threads available to V8, assuming at least 1.
3908 void set_max_available_threads(int value) { 3908 void set_max_available_threads(int value) {
3909 max_available_threads_ = value; 3909 max_available_threads_ = value;
3910 } 3910 }
3911 int code_range_size() const { return code_range_size_; } 3911 int code_range_size() const { return code_range_size_; }
3912 void set_code_range_size(int value) { 3912 void set_code_range_size(int value) {
3913 code_range_size_ = value; 3913 code_range_size_ = value;
3914 } 3914 }
3915 3915
3916 private: 3916 private:
3917 int max_young_space_size_; 3917 int max_new_space_size_;
3918 int max_old_space_size_; 3918 int max_old_space_size_;
3919 int max_executable_size_; 3919 int max_executable_size_;
3920 uint32_t* stack_limit_; 3920 uint32_t* stack_limit_;
3921 int max_available_threads_; 3921 int max_available_threads_;
3922 int code_range_size_; 3922 int code_range_size_;
3923 }; 3923 };
3924 3924
3925 3925
3926 /** 3926 /**
3927 * Sets the given ResourceConstraints on the given Isolate. 3927 * Sets the given ResourceConstraints on the given Isolate.
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
6631 */ 6631 */
6632 6632
6633 6633
6634 } // namespace v8 6634 } // namespace v8
6635 6635
6636 6636
6637 #undef TYPE_CHECK 6637 #undef TYPE_CHECK
6638 6638
6639 6639
6640 #endif // V8_H_ 6640 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698