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

Unified Diff: vm/assembler_x64.h

Issue 10664004: Fix issue 1968, replace usage of inline 'asm' constructs in 'stack alignment', 'jump to exception h… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « vm/assembler_ia32.h ('k') | vm/cpu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/assembler_x64.h
===================================================================
--- vm/assembler_x64.h (revision 9040)
+++ vm/assembler_x64.h (working copy)
@@ -18,28 +18,6 @@
// Forward declarations.
class RuntimeEntry;
-
-#if defined(TESTING) || defined(DEBUG)
-
-#if defined(TARGET_OS_WINDOWS)
-// The compiler may dynamically align the stack on Windows, so do not check.
-#define CHECK_STACK_ALIGNMENT { }
-#else
-#define CHECK_STACK_ALIGNMENT { \
- uword current_sp; \
- asm volatile("mov %%rsp, %[current_sp]" : [current_sp] "=r" (current_sp)); \
- ASSERT((OS::ActivationFrameAlignment() == 0) || \
- (Utils::IsAligned(current_sp, OS::ActivationFrameAlignment()))); \
-}
-#endif
-
-#else
-
-#define CHECK_STACK_ALIGNMENT { }
-
-#endif
-
-
class Immediate : public ValueObject {
public:
explicit Immediate(int64_t value) : value_(value) { }
« no previous file with comments | « vm/assembler_ia32.h ('k') | vm/cpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698