Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 2377) |
+++ src/objects-inl.h (working copy) |
@@ -768,6 +768,8 @@ |
Failure* Failure::RetryAfterGC(int requested_bytes) { |
+ // Assert that the space encoding fits in the three bytes allotted for it. |
+ ASSERT((LAST_SPACE & ~kSpaceTagMask) == 0); |
int requested = requested_bytes >> kObjectAlignmentBits; |
int value = (requested << kSpaceTagSize) | NEW_SPACE; |
ASSERT(value >> kSpaceTagSize == requested); |