| Index: test/preparser/symbols-only.js
|
| diff --git a/src/platform-tls-mac.h b/test/preparser/symbols-only.js
|
| similarity index 65%
|
| copy from src/platform-tls-mac.h
|
| copy to test/preparser/symbols-only.js
|
| index 86a3347d0f710825808a231031a4f81851b15ffa..b6520636bceee784f86c7d37cccd135281cb3bb2 100644
|
| --- a/src/platform-tls-mac.h
|
| +++ b/test/preparser/symbols-only.js
|
| @@ -25,38 +25,25 @@
|
| // (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;
|
| +// This file contains no function declarations.
|
| +
|
| +var x = 42;
|
| +var y = "hello world";
|
| +if (x == y) {
|
| + with ({ x: 10, y: "20", z: 42 }) {
|
| + print(z);
|
| + }
|
| }
|
| -
|
| -#endif
|
| -
|
| -} } // namespace v8::internal
|
| -
|
| -#endif // V8_PLATFORM_TLS_MAC_H_
|
| +try {
|
| + x = 2;
|
| + throw y;
|
| + y = 4;
|
| +} catch (e) {
|
| + y = e;
|
| +} finally {
|
| + x = y;
|
| +}
|
| +for (var i = 0; i < 10; i++) {
|
| + x += x;
|
| +}
|
| +print(y);
|
|
|