Reviewers: machenbach,

Description:
Fix shared library build after r17696

Please review this at https://codereview.chromium.org/71573002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+3, -1 lines):
  M src/d8.cc


Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index a71b33bf33fa2ee5be2596acd08c3706cda83ba0..b241644a295cc3f5c95ea24da8eeb7b6f14ec4c9 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());
+  constraints.ConfigureDefaults(v8::internal::OS::TotalPhysicalMemory());
   v8::SetResourceConstraints(isolate, &constraints);
+#endif
   DumbLineEditor dumb_line_editor(isolate);
   {
     Initialize(isolate);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to