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

Side by Side Diff: include/v8.h

Issue 2424393002: Constrain the zone segment pool size (Closed)
Patch Set: Reaction to comments Created 4 years, 2 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') | 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 5672 matching lines...) Expand 10 before | Expand all | Expand 10 after
5683 void set_max_executable_size(int limit_in_mb) { 5683 void set_max_executable_size(int limit_in_mb) {
5684 max_executable_size_ = limit_in_mb; 5684 max_executable_size_ = limit_in_mb;
5685 } 5685 }
5686 uint32_t* stack_limit() const { return stack_limit_; } 5686 uint32_t* stack_limit() const { return stack_limit_; }
5687 // Sets an address beyond which the VM's stack may not grow. 5687 // Sets an address beyond which the VM's stack may not grow.
5688 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } 5688 void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
5689 size_t code_range_size() const { return code_range_size_; } 5689 size_t code_range_size() const { return code_range_size_; }
5690 void set_code_range_size(size_t limit_in_mb) { 5690 void set_code_range_size(size_t limit_in_mb) {
5691 code_range_size_ = limit_in_mb; 5691 code_range_size_ = limit_in_mb;
5692 } 5692 }
5693 size_t max_zone_pool_size() const { return max_zone_pool_size_; }
5694 void set_max_zone_pool_size(const size_t bytes) {
5695 max_zone_pool_size_ = bytes;
5696 }
5693 5697
5694 private: 5698 private:
5695 int max_semi_space_size_; 5699 int max_semi_space_size_;
5696 int max_old_space_size_; 5700 int max_old_space_size_;
5697 int max_executable_size_; 5701 int max_executable_size_;
5698 uint32_t* stack_limit_; 5702 uint32_t* stack_limit_;
5699 size_t code_range_size_; 5703 size_t code_range_size_;
5704 size_t max_zone_pool_size_;
5700 }; 5705 };
5701 5706
5702 5707
5703 // --- Exceptions --- 5708 // --- Exceptions ---
5704 5709
5705 5710
5706 typedef void (*FatalErrorCallback)(const char* location, const char* message); 5711 typedef void (*FatalErrorCallback)(const char* location, const char* message);
5707 5712
5708 typedef void (*OOMErrorCallback)(const char* location, bool is_heap_oom); 5713 typedef void (*OOMErrorCallback)(const char* location, bool is_heap_oom);
5709 5714
(...skipping 3955 matching lines...) Expand 10 before | Expand all | Expand 10 after
9665 */ 9670 */
9666 9671
9667 9672
9668 } // namespace v8 9673 } // namespace v8
9669 9674
9670 9675
9671 #undef TYPE_CHECK 9676 #undef TYPE_CHECK
9672 9677
9673 9678
9674 #endif // INCLUDE_V8_H_ 9679 #endif // INCLUDE_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