| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index c0c0e477bf8dd65c5a76c4ca79eb3c56cc8417c0..177ab518e44d767196b2c37973e9fa517a24c937 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -912,10 +912,15 @@ void TypeSwitchInfo::TypeSwitchInfoVerify() {
|
| }
|
|
|
|
|
| +void AllocationSite::AllocationSiteVerify() {
|
| + CHECK(IsAllocationSite());
|
| +}
|
| +
|
| +
|
| void AllocationSiteInfo::AllocationSiteInfoVerify() {
|
| CHECK(IsAllocationSiteInfo());
|
| - VerifyHeapPointer(payload());
|
| - CHECK(payload()->IsObject());
|
| + VerifyHeapPointer(allocation_site());
|
| + CHECK(!site_is_valid() || allocation_site()->IsAllocationSite());
|
| }
|
|
|
|
|
|
|