| Index: test/preparser/functions-only.js
|
| diff --git a/src/platform-tls-mac.h b/test/preparser/functions-only.js
|
| similarity index 65%
|
| copy from src/platform-tls-mac.h
|
| copy to test/preparser/functions-only.js
|
| index 86a3347d0f710825808a231031a4f81851b15ffa..4dcde579798cb6d7dcd69d7280705b24906d9cf6 100644
|
| --- a/src/platform-tls-mac.h
|
| +++ b/test/preparser/functions-only.js
|
| @@ -25,38 +25,14 @@
|
| // (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_
|
| -
|
| -#include "globals.h"
|
| -
|
| -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;
|
| -}
|
| -
|
| -#endif
|
| -
|
| -} } // namespace v8::internal
|
| -
|
| -#endif // V8_PLATFORM_TLS_MAC_H_
|
| +// This file contains no identifiers or string literals, but does contain
|
| +// symbols.
|
| +
|
| +(function () {
|
| + if (this != null) {
|
| + return this;
|
| + }
|
| + while (true) {
|
| + if ([][2]) return false;
|
| + }
|
| +})({}, function() { return [true]; } );
|
|
|