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

Side by Side Diff: include/v8.h

Issue 73463004: Add a proper way to pass the number of processors to V8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years, 1 month 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 3792 matching lines...) Expand 10 before | Expand all | Expand 10 after
3803 class V8_EXPORT ResourceConstraints { 3803 class V8_EXPORT ResourceConstraints {
3804 public: 3804 public:
3805 ResourceConstraints(); 3805 ResourceConstraints();
3806 3806
3807 /** 3807 /**
3808 * Configures the constraints with reasonable default values based on the 3808 * Configures the constraints with reasonable default values based on the
3809 * capabilities of the current device the VM is running on. 3809 * capabilities of the current device the VM is running on.
3810 * 3810 *
3811 * \param physical_memory The total amount of physical memory on the current 3811 * \param physical_memory The total amount of physical memory on the current
3812 * device, in bytes. 3812 * device, in bytes.
3813 * \param number_of_processors The number of CPUs available on the current
3814 * device.
3813 */ 3815 */
3814 void ConfigureDefaults(uint64_t physical_memory); 3816 void ConfigureDefaults(uint64_t physical_memory,
3817 uint32_t number_of_processors);
3818 V8_DEPRECATED("Will be removed",
3819 void ConfigureDefaults(uint64_t physical_memory));
3815 3820
3816 int max_young_space_size() const { return max_young_space_size_; } 3821 int max_young_space_size() const { return max_young_space_size_; }
3817 void set_max_young_space_size(int value) { max_young_space_size_ = value; } 3822 void set_max_young_space_size(int value) { max_young_space_size_ = value; }
3818 int max_old_space_size() const { return max_old_space_size_; } 3823 int max_old_space_size() const { return max_old_space_size_; }
3819 void set_max_old_space_size(int value) { max_old_space_size_ = value; } 3824 void set_max_old_space_size(int value) { max_old_space_size_ = value; }
3820 int max_executable_size() const { return max_executable_size_; } 3825 int max_executable_size() const { return max_executable_size_; }
3821 void set_max_executable_size(int value) { max_executable_size_ = value; } 3826 void set_max_executable_size(int value) { max_executable_size_ = value; }
3822 uint32_t* stack_limit() const { return stack_limit_; } 3827 uint32_t* stack_limit() const { return stack_limit_; }
3823 // Sets an address beyond which the VM's stack may not grow. 3828 // Sets an address beyond which the VM's stack may not grow.
3824 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } 3829 void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
(...skipping 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after
6545 */ 6550 */
6546 6551
6547 6552
6548 } // namespace v8 6553 } // namespace v8
6549 6554
6550 6555
6551 #undef TYPE_CHECK 6556 #undef TYPE_CHECK
6552 6557
6553 6558
6554 #endif // V8_H_ 6559 #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