From 82d7855748b076ed5e43a98924e645b83e5a7a7b Mon Sep 17 00:00:00 2001 From: "rmcilroy@chromium.org" Date: Wed, 13 Nov 2013 15:32:02 +0000 Subject: [PATCH] Fix shared library build after r17696 R=ulan@chromium.org Review URL: https://codereview.chromium.org/71573002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17700 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d8.cc b/src/d8.cc index a71b33bf33..e855c85e30 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -1683,9 +1683,11 @@ int Shell::Main(int argc, char* argv[]) { v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); int result = 0; Isolate* isolate = Isolate::GetCurrent(); +#ifndef V8_SHARED v8::ResourceConstraints constraints; constraints.ConfigureDefaults(i::OS::TotalPhysicalMemory()); v8::SetResourceConstraints(isolate, &constraints); +#endif DumbLineEditor dumb_line_editor(isolate); { Initialize(isolate);