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

Unified Diff: src/d8.cc

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 | « include/v8-defaults.h ('k') | src/defaults.cc » ('j') | src/defaults.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 17bd6713637c7054bde9ca5240975f48b4f5a307..7cdedc1eb2016b4012580608286d5027af48a812 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1679,11 +1679,15 @@ int Shell::Main(int argc, char* argv[]) {
#else
SetStandaloneFlagsViaCommandLine();
#endif
- v8::SetDefaultResourceConstraintsForCurrentPlatform();
ShellArrayBufferAllocator array_buffer_allocator;
v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
int result = 0;
Isolate* isolate = Isolate::GetCurrent();
+ v8::ResourceConstraints constraints;
+ if (v8::ConfigureDefaultResourceConstraints(&constraints,
+ i::OS::TotalPhysicalMemory())) {
+ v8::SetResourceConstraints(isolate, &constraints);
+ }
DumbLineEditor dumb_line_editor(isolate);
{
Initialize(isolate);
« no previous file with comments | « include/v8-defaults.h ('k') | src/defaults.cc » ('j') | src/defaults.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698