| Index: test/mjsunit/compiler/global-accessors.js
|
| diff --git a/src/platform-tls-mac.h b/test/mjsunit/compiler/global-accessors.js
|
| similarity index 62%
|
| copy from src/platform-tls-mac.h
|
| copy to test/mjsunit/compiler/global-accessors.js
|
| index 86a3347d0f710825808a231031a4f81851b15ffa..bd031a8329326274d66784622f18bfb6e8b2a421 100644
|
| --- a/src/platform-tls-mac.h
|
| +++ b/test/mjsunit/compiler/global-accessors.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2010 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -25,38 +25,23 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_PLATFORM_TLS_MAC_H_
|
| -#define V8_PLATFORM_TLS_MAC_H_
|
| +// This test tests that no bailouts are missing by not hitting asserts in debug
|
| +// mode.
|
|
|
| -#include "globals.h"
|
| +test_count_operation()
|
| +test_compound_assignment()
|
|
|
| -namespace v8 {
|
| -namespace internal {
|
| -
|
| -#if defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)
|
| -
|
| -#define V8_FAST_TLS_SUPPORTED 1
|
| -
|
| -INLINE(intptr_t InternalGetExistingThreadLocal(intptr_t index));
|
| -
|
| -inline intptr_t InternalGetExistingThreadLocal(intptr_t index) {
|
| - // The constants below are taken from pthreads.s from the XNU kernel
|
| - // sources archive at www.opensource.apple.com.
|
| - intptr_t result;
|
| -#if defined(V8_HOST_ARCH_IA32)
|
| - asm("movl %%gs:0x48(,%1,4), %0;"
|
| - :"=r"(result) // Output must be a writable register.
|
| - :"0"(index)); // Input is the same as output.
|
| -#else
|
| - asm("movq %%gs:0x60(,%1,8), %0;"
|
| - :"=r"(result)
|
| - :"0"(index));
|
| -#endif
|
| - return result;
|
| +function f() {}
|
| +function test_count_operation()
|
| +{
|
| + this.__defineSetter__('x', f);
|
| + this.__defineGetter__('x', f);
|
| + x = x++;
|
| }
|
|
|
| -#endif
|
| -
|
| -} } // namespace v8::internal
|
| -
|
| -#endif // V8_PLATFORM_TLS_MAC_H_
|
| +function test_compound_assignment()
|
| +{
|
| + this.__defineSetter__('y', f);
|
| + this.__defineGetter__('y', f);
|
| + y += y;
|
| +}
|
|
|