Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Unified Diff: test/mjsunit/compiler/global-accessors.js

Issue 6691054: [Arguments] Merge (7442,7496] from bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-utils.cc ('k') | test/mjsunit/global-accessors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « test/cctest/test-utils.cc ('k') | test/mjsunit/global-accessors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698