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

Side by Side 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: Rebase 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 | « include/v8.h ('k') | 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 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
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 /** 38 V8_DEPRECATED("Use ResourceConstraints::ConfigureDefaults instead",
39 * Configures the constraints with reasonable default values based on the 39 bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
40 * capabilities of the current device the VM is running on. 40 ResourceConstraints* constraints));
41 */
42 bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
43 ResourceConstraints* constraints);
44 41
45 42
46 /** 43 V8_DEPRECATED("Use ResourceConstraints::ConfigureDefaults instead",
47 * Convience function which performs SetResourceConstraints with the settings 44 bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform());
48 * returned by ConfigureResourceConstraintsForCurrentPlatform.
49 */
50 bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
51 45
52 } // namespace v8 46 } // namespace v8
53 47
54 #endif // V8_V8_DEFAULTS_H_ 48 #endif // V8_V8_DEFAULTS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698