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

Side by Side Diff: include/v8.h

Issue 2895473003: [heap] Simplify and scale ResourceConstraints::ConfigureDefaults. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/heap/heap.h » ('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 5943 matching lines...) Expand 10 before | Expand all | Expand 10 after
5954 size_t code_range_size() const { return code_range_size_; } 5954 size_t code_range_size() const { return code_range_size_; }
5955 void set_code_range_size(size_t limit_in_mb) { 5955 void set_code_range_size(size_t limit_in_mb) {
5956 code_range_size_ = limit_in_mb; 5956 code_range_size_ = limit_in_mb;
5957 } 5957 }
5958 size_t max_zone_pool_size() const { return max_zone_pool_size_; } 5958 size_t max_zone_pool_size() const { return max_zone_pool_size_; }
5959 void set_max_zone_pool_size(const size_t bytes) { 5959 void set_max_zone_pool_size(const size_t bytes) {
5960 max_zone_pool_size_ = bytes; 5960 max_zone_pool_size_ = bytes;
5961 } 5961 }
5962 5962
5963 private: 5963 private:
5964 int ComputeMaxOldGenerationSize(uint64_t physical_memory);
5965 int ComputeMaxSemiSpaceSize(uint64_t physical_memory);
5966
5964 int max_semi_space_size_; 5967 int max_semi_space_size_;
5965 int max_old_space_size_; 5968 int max_old_space_size_;
5966 int max_executable_size_; 5969 int max_executable_size_;
5967 uint32_t* stack_limit_; 5970 uint32_t* stack_limit_;
5968 size_t code_range_size_; 5971 size_t code_range_size_;
5969 size_t max_zone_pool_size_; 5972 size_t max_zone_pool_size_;
5970 }; 5973 };
5971 5974
5972 5975
5973 // --- Exceptions --- 5976 // --- Exceptions ---
(...skipping 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after
10140 */ 10143 */
10141 10144
10142 10145
10143 } // namespace v8 10146 } // namespace v8
10144 10147
10145 10148
10146 #undef TYPE_CHECK 10149 #undef TYPE_CHECK
10147 10150
10148 10151
10149 #endif // INCLUDE_V8_H_ 10152 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/heap/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698