bool SetElemICInspector::sawTypedArrayWrite() const { if (!icEntry_) return false; // Check for a SetElem_TypedArray stub. for (ICStub *stub = icEntry_->firstStub(); stub; stub = stub->next()) { if (stub->isSetElem_TypedArray()) return true; } return false; }
bool SetElemICInspector::sawOOBTypedArrayWrite() const { if (!icEntry_) return false; // Check for SetElem_TypedArray stubs with expectOutOfBounds set. for (ICStub *stub = icEntry_->firstStub(); stub; stub = stub->next()) { if (!stub->isSetElem_TypedArray()) continue; if (stub->toSetElem_TypedArray()->expectOutOfBounds()) return true; } return false; }