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
This commit is contained in:
parent
0119e80908
commit
77fb69b6dc
@ -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': [
|
||||
|
Loading…
Reference in New Issue
Block a user