Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 451a3725a8b7290b1cd446ad27608a0b8f3192aa..077e782905c4009fb67120084eddd3fd7384bc0e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1064,7 +1064,11 @@ Failure* Failure::Construct(Type type, intptr_t value) { |
uintptr_t info = |
(static_cast<uintptr_t>(value) << kFailureTypeTagSize) | type; |
ASSERT(((info << kFailureTagSize) >> kFailureTagSize) == info); |
- return reinterpret_cast<Failure*>((info << kFailureTagSize) | kFailureTag); |
+ // Fill the unused bits with a pattern that's easy to recognize in crash |
+ // dumps. |
+ static const int kFailureMagicPattern = 0x0BAD0000; |
+ return reinterpret_cast<Failure*>( |
+ (info << kFailureTagSize) | kFailureTag | kFailureMagicPattern); |
} |