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

Unified Diff: vm/os.h

Issue 10782016: Enforce length/size limits for variable size heap object in order to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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/object_test.cc ('k') | vm/os_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/os.h
===================================================================
--- vm/os.h (revision 10127)
+++ vm/os.h (working copy)
@@ -44,6 +44,10 @@
// the platform doesn't care. Guaranteed to be a power of two.
static word ActivationFrameAlignment();
+ // This constant is guaranteed to be greater or equal to the
+ // preferred code alignment on all platforms.
+ static const int kMaxPreferredCodeAlignment = 32;
+
// Returns the preferred code alignment or zero if
// the platform doesn't care. Guaranteed to be a power of two.
static word PreferredCodeAlignment();
« no previous file with comments | « vm/object_test.cc ('k') | vm/os_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698