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

Side by Side Diff: test/cctest/test-platform.cc

Issue 148293020: Merge experimental/a64 to bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove ARM from OWNERS Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-js-a64-variables.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static int sp_addr = 0; \ 46 static int sp_addr = 0; \
47 do { \ 47 do { \
48 ASM("mov %%esp, %0" : "=g" (sp_addr)); \ 48 ASM("mov %%esp, %0" : "=g" (sp_addr)); \
49 } while (0) 49 } while (0)
50 #elif defined(__ARMEL__) 50 #elif defined(__ARMEL__)
51 #define GET_STACK_POINTER() \ 51 #define GET_STACK_POINTER() \
52 static int sp_addr = 0; \ 52 static int sp_addr = 0; \
53 do { \ 53 do { \
54 ASM("str %%sp, %0" : "=g" (sp_addr)); \ 54 ASM("str %%sp, %0" : "=g" (sp_addr)); \
55 } while (0) 55 } while (0)
56 #elif defined(__AARCH64EL__)
57 #define GET_STACK_POINTER() \
58 static int sp_addr = 0; \
59 do { \
60 ASM("mov x16, sp; str x16, %0" : "=g" (sp_addr)); \
61 } while (0)
56 #elif defined(__MIPSEL__) 62 #elif defined(__MIPSEL__)
57 #define GET_STACK_POINTER() \ 63 #define GET_STACK_POINTER() \
58 static int sp_addr = 0; \ 64 static int sp_addr = 0; \
59 do { \ 65 do { \
60 ASM("sw $sp, %0" : "=g" (sp_addr)); \ 66 ASM("sw $sp, %0" : "=g" (sp_addr)); \
61 } while (0) 67 } while (0)
62 #else 68 #else
63 #error Host architecture was not detected as supported by v8 69 #error Host architecture was not detected as supported by v8
64 #endif 70 #endif
65 71
(...skipping 21 matching lines...) Expand all
87 v8::Local<v8::Function> foo = 93 v8::Local<v8::Function> foo =
88 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); 94 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo")));
89 95
90 v8::Local<v8::Value> result = foo->Call(global_object, 0, NULL); 96 v8::Local<v8::Value> result = foo->Call(global_object, 0, NULL);
91 CHECK_EQ(0, result->Int32Value() % OS::ActivationFrameAlignment()); 97 CHECK_EQ(0, result->Int32Value() % OS::ActivationFrameAlignment());
92 } 98 }
93 99
94 #undef GET_STACK_POINTERS 100 #undef GET_STACK_POINTERS
95 #undef ASM 101 #undef ASM
96 #endif // __GNUC__ 102 #endif // __GNUC__
OLDNEW
« no previous file with comments | « test/cctest/test-js-a64-variables.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698