Revision: 4341
Author: [email protected]
Date: Tue Apr  6 02:27:09 2010
Log: Committing http://codereview.chromium.org/1543003 for pvalchev and sprewell
http://code.google.com/p/v8/source/detail?r=4341

Modified:
 /branches/bleeding_edge/src/globals.h
 /branches/bleeding_edge/src/ia32/codegen-ia32.cc
 /branches/bleeding_edge/tools/gyp/v8.gyp

=======================================
--- /branches/bleeding_edge/src/globals.h       Tue Mar 23 06:38:04 2010
+++ /branches/bleeding_edge/src/globals.h       Tue Apr  6 02:27:09 2010
@@ -112,8 +112,9 @@
 #define V8PRIxPTR "lx"
 #endif

-#if defined(__APPLE__) && defined(__MACH__)
-#define USING_MAC_ABI
+#if (defined(__APPLE__) && defined(__MACH__)) || \
+    defined(__FreeBSD__) || defined(__OpenBSD__)
+#define USING_BSD_ABI
 #endif

 // Code-point values in Unicode 4.0 are 21 bits wide.
=======================================
--- /branches/bleeding_edge/src/ia32/codegen-ia32.cc Tue Mar 30 06:55:03 2010 +++ /branches/bleeding_edge/src/ia32/codegen-ia32.cc Tue Apr 6 02:27:09 2010
@@ -11376,7 +11376,7 @@
 // If true, a Handle<T> passed by value is passed and returned by
 // using the location_ field directly.  If false, it is passed and
 // returned as a pointer to a handle.
-#ifdef USING_MAC_ABI
+#ifdef USING_BSD_ABI
 static const bool kPassHandlesDirectly = true;
 #else
 static const bool kPassHandlesDirectly = false;
=======================================
--- /branches/bleeding_edge/tools/gyp/v8.gyp    Fri Mar 26 04:34:00 2010
+++ /branches/bleeding_edge/tools/gyp/v8.gyp    Tue Apr  6 02:27:09 2010
@@ -74,10 +74,15 @@
             'LinkIncremental': '2',
           },
         },
+        'conditions': [
+         ['OS=="freebsd" or OS=="openbsd"', {
+           'cflags': [ '-I/usr/local/include' ],
+         }],
+       ],
       },
       'Release': {
         'conditions': [
-          ['OS=="linux"', {
+          ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
             'cflags!': [
               '-O2',
               '-Os',
@@ -97,6 +102,9 @@
               }],
             ],
           }],
+         ['OS=="freebsd" or OS=="openbsd"', {
+           'cflags': [ '-I/usr/local/include' ],
+         }],
           ['OS=="mac"', {
             'xcode_settings': {
               'GCC_OPTIMIZATION_LEVEL': '3',  # -O3
@@ -540,6 +548,17 @@
               '../../src/platform-posix.cc'
             ],
           }
+        ],
+        ['OS=="freebsd"', {
+            'link_settings': {
+              'libraries': [
+                '-L/usr/local/lib -lexecinfo',
+            ]},
+            'sources': [
+              '../../src/platform-freebsd.cc',
+              '../../src/platform-posix.cc'
+            ],
+          }
         ],
         ['OS=="openbsd"', {
             'link_settings': {

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe, reply using "remove me" as the subject.

Reply via email to