Commit 77fb69b6 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Committing http://codereview.chromium.org/1543003 for pvalchev and sprewell

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4341 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0119e809
......@@ -112,8 +112,9 @@ typedef byte* Address;
#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.
......
......@@ -11376,7 +11376,7 @@ void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) {
// 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;
......
......@@ -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
......@@ -541,6 +549,17 @@
],
}
],
['OS=="freebsd"', {
'link_settings': {
'libraries': [
'-L/usr/local/lib -lexecinfo',
]},
'sources': [
'../../src/platform-freebsd.cc',
'../../src/platform-posix.cc'
],
}
],
['OS=="openbsd"', {
'link_settings': {
'libraries': [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment