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

Unified Diff: include/v8-defaults.h

Issue 68203003: Enable physical memory argument to be passed as an argument to ConfigureResourceConstraintsForPlatf… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/defaults.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..e0802fcb59300a95a807d9693d3d095cd78270a1 100644
--- a/include/v8-defaults.h
+++ b/include/v8-defaults.h
@@ -38,16 +38,22 @@ namespace v8 {
/**
* Configures the constraints with reasonable default values based on the
* capabilities of the current device the VM is running on.
+ *
+ * \param constraints The constraints object to update
+ * \param physical_memory The total amount of physical memory on the current
+ * device, in bytes.
*/
-bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
- ResourceConstraints* constraints);
+bool V8_EXPORT ConfigureDefaultResourceConstraints(
+ ResourceConstraints* constraints, uint64_t physical_memory);
-/**
- * Convience function which performs SetResourceConstraints with the settings
- * returned by ConfigureResourceConstraintsForCurrentPlatform.
- */
-bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
+V8_DEPRECATED("Use ConfigureDefaultResourceConstraints instead",
+ bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
+ ResourceConstraints* constraints));
+
+
+V8_DEPRECATED("Use ConfigureDefaultResourceConstraints instead",
+ bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform());
} // namespace v8
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/defaults.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698