| Commit-Queue | +1 |
ptal and lmk what you think here. This could all be implemented with XXX::Cast() methods as well but I do like the free standing casts in other areas actually.
I marked the broken casts on TOT which were all benign but technically wrong.
NormalPage* page = NormalPage::FromHeapObject(object);This cast here was wrong as we don't know whether we are holding a `NormalPage` or `LargePage`.
NormalPage* page = NormalPage::FromHeapObject(object);This cast was wrong.
if (!chunk->InReadOnlySpace()) {This can now be written much nicer.
return NormalPage::FromAddress(heap()->isolate(), addr)->owner() == this;Wrong cast (and below) as we don't know the actual type of the page.
inline Derived& TrustedCppCast(This is a bit annoying but `TrustedCast()` also seems to work with forward decls.
CHECK_EQ(NormalPage::FromAddress(first_name_for_protector()),Wrong casts.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I split off the casting fixes and some stylistic stuff. This is ready now.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |