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

Side by Side Diff: src/platform-linux.cc

Issue 1637015: Add stack alignment check to ia32 and x64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/codegen-x64.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 153
154 int OS::ActivationFrameAlignment() { 154 int OS::ActivationFrameAlignment() {
155 #ifdef V8_TARGET_ARCH_ARM 155 #ifdef V8_TARGET_ARCH_ARM
156 // On EABI ARM targets this is required for fp correctness in the 156 // On EABI ARM targets this is required for fp correctness in the
157 // runtime system. 157 // runtime system.
158 return 8; 158 return 8;
159 #elif V8_TARGET_ARCH_MIPS 159 #elif V8_TARGET_ARCH_MIPS
160 return 8; 160 return 8;
161 #endif 161 #endif
162 // With gcc 4.4 the tree vectorization optimiser can generate code 162 // With gcc 4.4 the tree vectorization optimizer can generate code
163 // that requires 16 byte alignment such as movdqa on x86. 163 // that requires 16 byte alignment such as movdqa on x86.
164 return 16; 164 return 16;
165 } 165 }
166 166
167 167
168 const char* OS::LocalTimezone(double time) { 168 const char* OS::LocalTimezone(double time) {
169 if (isnan(time)) return ""; 169 if (isnan(time)) return "";
170 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); 170 time_t tv = static_cast<time_t>(floor(time/msPerSecond));
171 struct tm* t = localtime(&tv); 171 struct tm* t = localtime(&tv);
172 if (NULL == t) return ""; 172 if (NULL == t) return "";
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 833
834 // This sampler is no longer the active sampler. 834 // This sampler is no longer the active sampler.
835 active_sampler_ = NULL; 835 active_sampler_ = NULL;
836 active_ = false; 836 active_ = false;
837 } 837 }
838 838
839 839
840 #endif // ENABLE_LOGGING_AND_PROFILING 840 #endif // ENABLE_LOGGING_AND_PROFILING
841 841
842 } } // namespace v8::internal 842 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698