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

Unified Diff: test/preparser/functions-only.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/preparser/empty.js ('k') | test/preparser/non-alphanum.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]; } );
« no previous file with comments | « test/preparser/empty.js ('k') | test/preparser/non-alphanum.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698