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

Unified Diff: runtime/vm/native_arguments.h

Issue 23745008: Follow-up fix to my change to IsPowerOfTwo: Alignment of one means no alignment, not zero. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « runtime/vm/assembler_x64_test.cc ('k') | runtime/vm/os.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_arguments.h
===================================================================
--- runtime/vm/native_arguments.h (revision 27015)
+++ runtime/vm/native_arguments.h (working copy)
@@ -29,8 +29,7 @@
#if defined(USING_SIMULATOR)
#define CHECK_STACK_ALIGNMENT { \
uword current_sp = Simulator::Current()->get_register(SPREG); \
- ASSERT((OS::ActivationFrameAlignment() == 0) || \
- (Utils::IsAligned(current_sp, OS::ActivationFrameAlignment()))); \
+ ASSERT(Utils::IsAligned(current_sp, OS::ActivationFrameAlignment())); \
}
#elif defined(TARGET_OS_WINDOWS)
// The compiler may dynamically align the stack on Windows, so do not check.
@@ -40,8 +39,7 @@
uword (*func)() = \
reinterpret_cast<uword (*)()>(StubCode::GetStackPointerEntryPoint()); \
uword current_sp = func(); \
- ASSERT((OS::ActivationFrameAlignment() == 0) || \
- (Utils::IsAligned(current_sp, OS::ActivationFrameAlignment()))); \
+ ASSERT(Utils::IsAligned(current_sp, OS::ActivationFrameAlignment())); \
}
#endif
« no previous file with comments | « runtime/vm/assembler_x64_test.cc ('k') | runtime/vm/os.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698