Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 17 matching lines...) Expand all Loading... | |
| 28 #ifndef V8_V8_DEFAULTS_H_ | 28 #ifndef V8_V8_DEFAULTS_H_ |
| 29 #define V8_V8_DEFAULTS_H_ | 29 #define V8_V8_DEFAULTS_H_ |
| 30 | 30 |
| 31 #include "v8.h" | 31 #include "v8.h" |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * Default configuration support for the V8 JavaScript engine. | 34 * Default configuration support for the V8 JavaScript engine. |
| 35 */ | 35 */ |
| 36 namespace v8 { | 36 namespace v8 { |
| 37 | 37 |
| 38 | |
| 39 /** | |
| 40 * Initializes the v8-defaults subsystem. Should be called before | |
| 41 * ConfigureResourceConstraintsForCurrentPlatform or | |
| 42 * SetDefaultResourceConstraintsForCurrentPlatform. | |
| 43 */ | |
| 44 void V8_EXPORT InitializeDefaultsForCurrentPlatform( | |
| 45 uint64_t total_physical_memory); | |
|
Benedikt Meurer
2013/10/24 18:09:02
There was probably some misunderstanding on our si
rmcilroy
2013/10/24 21:06:56
No, this is what I discussed with Daniel over VC a
danno
2013/10/25 07:26:15
I apologize, this misunderstanding appears to be m
| |
| 46 | |
| 47 | |
| 38 /** | 48 /** |
| 39 * Configures the constraints with reasonable default values based on the | 49 * Configures the constraints with reasonable default values based on the |
| 40 * capabilities of the current device the VM is running on. | 50 * capabilities of the current device the VM is running on. |
| 41 */ | 51 */ |
| 42 bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform( | 52 bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform( |
| 43 ResourceConstraints* constraints); | 53 ResourceConstraints* constraints); |
| 44 | 54 |
| 45 | 55 |
| 46 /** | 56 /** |
| 47 * Convience function which performs SetResourceConstraints with the settings | 57 * Convience function which performs SetResourceConstraints with the settings |
| 48 * returned by ConfigureResourceConstraintsForCurrentPlatform. | 58 * returned by ConfigureResourceConstraintsForCurrentPlatform. |
| 49 */ | 59 */ |
| 50 bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform(); | 60 bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform(); |
| 51 | 61 |
| 52 } // namespace v8 | 62 } // namespace v8 |
| 53 | 63 |
| 54 #endif // V8_V8_DEFAULTS_H_ | 64 #endif // V8_V8_DEFAULTS_H_ |
| OLD | NEW |