diff options
author | Bert Belder <bertbelder@gmail.com> | 2010-11-25 01:51:32 +0300 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2010-12-21 01:51:08 +0300 |
commit | 9a9edb0e8e6120b3b8a3868d0c44577111dd1857 (patch) | |
tree | 84a915fe26220fde421d4cf0ea4e9c3f322cd4e2 /deps | |
parent | 3216f08b6d9b24ed25227e2b7da9e435f263cff6 (diff) |
Performance-killing bug workaround for V8 on mingw
When V8 on mingw generates a _compiled_ call stub for an external api callback, it fucks up the stack.
It doesn't set the stack pointers properly. Could be due to subtly different calling conventions?
This patch disables the simple_api_call optimization. It hurts performance.
Diffstat (limited to 'deps')
-rw-r--r-- | deps/v8/src/stub-cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/stub-cache.h b/deps/v8/src/stub-cache.h index a7829a600ea..523f4aa9b2a 100644 --- a/deps/v8/src/stub-cache.h +++ b/deps/v8/src/stub-cache.h @@ -762,6 +762,11 @@ class CallOptimization BASE_EMBEDDED { } bool is_simple_api_call() const { + // As of V8 2.6.8 simple api call optimization causes segfaults on MINGW + // Disable it until this gets resolved +#ifdef __MINGW32__ + return false; +#endif return is_simple_api_call_; } |