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

Unified Diff: dart/runtime/vm/zone.cc

Issue 849893002: Version 1.8.5 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.8/
Patch Set: Created 5 years, 11 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 | « dart/runtime/vm/zone.h ('k') | dart/tests/language/regress_21795_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/zone.cc
===================================================================
--- dart/runtime/vm/zone.cc (revision 42827)
+++ dart/runtime/vm/zone.cc (working copy)
@@ -63,6 +63,7 @@
Zone::Segment* Zone::Segment::New(intptr_t size, Zone::Segment* next) {
ASSERT(size >= 0);
Segment* result = reinterpret_cast<Segment*>(new uint8_t[size]);
+ ASSERT(Utils::IsAligned(result->start(), Zone::kAlignment));
if (result != NULL) {
#ifdef DEBUG
// Zap the entire allocated segment (including the header).
« no previous file with comments | « dart/runtime/vm/zone.h ('k') | dart/tests/language/regress_21795_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698