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

Unified Diff: include/v8-defaults.h

Issue 40233002: Avoid calling OS::TotalPhysicalMemory in defaults.cc, since this fails in the chrome renderer sandb… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-defaults.h
diff --git a/include/v8-defaults.h b/include/v8-defaults.h
index 381a48210d1b9895fbda4e4c89eb0e51fa61b6d0..4edba558a186a7e572cfe58058631be5b886dd52 100644
--- a/include/v8-defaults.h
+++ b/include/v8-defaults.h
@@ -35,6 +35,16 @@
*/
namespace v8 {
+
+/**
+ * Initializes the v8-defaults subsystem. Should be called before
+ * ConfigureResourceConstraintsForCurrentPlatform or
+ * SetDefaultResourceConstraintsForCurrentPlatform.
+ */
+void V8_EXPORT InitializeDefaultsForCurrentPlatform(
+ 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
+
+
/**
* Configures the constraints with reasonable default values based on the
* capabilities of the current device the VM is running on.
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698